javascript - ckeditor removing empty span automatically -
i using ckeditor , have vary strange issue.
it remove automatically empty <span>
example
<span class="new-class"></span>
removed automatically.
i searching solution last 2 days no success. try put following code in
config.js
ckeditor.config.allowedcontent = true;
but no success.
i add following code in html use ckeditor no success.
<script> var editor = ckeditor.replace( 'editor1', { allowedcontent: true, } ); </script>
thanks
you'll find 2 valid answers in question: ckeditor strips <i> tag
one says it's not possible keep them if want see them in editor , second says can prevent them deleting, you'll hide them.
Comments
Post a Comment