Orphaned span tags when adding/removing custom class #950
Unanswered
shustudios
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm brand new to this editor, but I've managed to stitch together some functionality to dynamically add/remove custom classes or IDs to a selection. The issue I am running into is that when I remove the custom class, the html remains broken up into spans, ie:
<span>beginning of text</span> this text had the custom class <span>end of text</span>
I would like the text to revert back to a single block if possible. Is this problem a limitation of the editor, or am I doing something wrong? Please see my code below - The interesting thing is that this problem does not happen for inserting/removing links.
Beta Was this translation helpful? Give feedback.
All reactions