ckeditor removing empty span automatically
ckeditor, html, javascript
Solution
You'll find two valid answers in this question: CKEditor strips <i> Tag
One says it's not possible to keep them if you want to see them in the editor and second says that you can prevent them from deleting, but you'll hide them.
Problem
i am using ckeditor and i have vary strange issue. it remove automatically empty `<span>` for example ``` <span class="new-class"></span> ``` removed automatically. i am searching for solution for last 2 days but no success. i try to put following code in config.js ``` CKEDITOR.config.allowedContent = true; ``` but no success. i also add following code in html where i use ckeditor but no success. ``` <script> var editor = CKEDITOR.replace( 'editor1', { allowedContent: true, } ); </script> ``` thanks