Description:
When applying hyperlinks to formatted text in EditorJS, all existing HTML tags (<b>, <i>, <font>, etc.) are removed, leaving only plain text wrapped in an <a> tag.
Current Behavior:
Format text with any combination of formatting (bold, italic, color, etc.)
Example: <b><font color="red">Text</font></b>
Apply hyperlink
Result: <a href="#">Text</a> (all formatting tags are lost)
Expected Behavior:
Hyperlinks should wrap existing formatting without modification:
Expected result: <a href="#"><b><font color="red">Text</font></b></a>
Reproduction Steps:
Create formatted text in EditorJS
Select the formatted text
Use the hyperlink tool
Inspect DOM to see stripped formatting
Description:
When applying hyperlinks to formatted text in EditorJS, all existing HTML tags (
<b>, <i>, <font>,etc.) are removed, leaving only plain text wrapped in an<a>tag.Current Behavior:
Format text with any combination of formatting (bold, italic, color, etc.)
Example:
<b><font color="red">Text</font></b>Apply hyperlink
Result:
<a href="#">Text</a>(all formatting tags are lost)Expected Behavior:
Hyperlinks should wrap existing formatting without modification:
Expected result:
<a href="#"><b><font color="red">Text</font></b></a>Reproduction Steps:
Create formatted text in EditorJS
Select the formatted text
Use the hyperlink tool
Inspect DOM to see stripped formatting