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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -