html - How to stop TinyMCE to delete the span tags? -
here in work, previous programmer decided use wonderful tinymce on company website. 1 of thousands of problems i'm having is:
if original text have span
tag, when press backspace delete line (p
tag only), span
tags deleted text.
this error more specific other. can delete anything, character or tag (including p
tags), using delete button , nothing happens. if delete using backspace button, nothing happens too. if delete p
tag (even if created during editing of text), using backspace, span
tags deleted.
i'm looking everywhere way solve problem, because client not able delete row without losing markings of text, made css applied in span
tags. e.g.,
<p> <span id="org_2" class="apolop" onclick="myfunction(this.id);"> text </span> </p>
does know how can stop tinymce delete text, beyond necessary?
it not when original text has span
tag. when tinymce creates span
tag (if underline selected text, example), if delete p
tag, span
tags created disappear.
solution: despite tell me not use version 4 because still in beta, version solved problem.
bug not occur in version 4.
Comments
Post a Comment