You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If HTML tags are included in markdown, and that markdown is loaded to the editor, it seems the entire line (including anything inside/after the tags) is put in a span like:
<span data-value="<div> some text" data-type="html" contenteditable="false" class=""><div> some text</span>
Users then cannot edit the HTML tags, or any text in the line, and if the user clicks backspace it deletes the whole line.
I have tried to change this, or at least make this contenteditable="true", by replacing and by extending the preset-commonmark htmlSchema, but I've been unsuccessful so far. Can anyone recommend what I should actually do? I would like to make the whole thing regularly editable, but barring that, limit the uneditable portion to the actual tags.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If HTML tags are included in markdown, and that markdown is loaded to the editor, it seems the entire line (including anything inside/after the tags) is put in a span like:
<span data-value="<div> some text" data-type="html" contenteditable="false" class=""><div> some text</span>
Users then cannot edit the HTML tags, or any text in the line, and if the user clicks backspace it deletes the whole line.
I have tried to change this, or at least make this contenteditable="true", by replacing and by extending the preset-commonmark htmlSchema, but I've been unsuccessful so far. Can anyone recommend what I should actually do? I would like to make the whole thing regularly editable, but barring that, limit the uneditable portion to the actual tags.
Beta Was this translation helpful? Give feedback.
All reactions