I use CKEditor to update CMS content on my website. I also use FontAwesome, which includes a set of icons that can be displayed as follows
<i class="icon-envelope"></i>
The problem is that CKEditor hides this tag ion the client side, and I do not see it in native mode.
i
How can I enable this tag? I tried CONFIG.removeFormatTags = '', but he does not know how.
CONFIG.removeFormatTags = ''
It is deleted because it is empty. Place some non-breaking space or zero width space in ​it to save the tag.
​
i CKEDITOR.dtd.$removeEmpty. , , <i> class="icon-envelope". , <i>'s class="icon-envelope". , .
CKEDITOR.dtd.$removeEmpty
<i>
class="icon-envelope"
<i>'s
.. , config.fillEmptyBlocks
CKEDITOR.editorConfig = function( config ) { config.fillEmptyBlocks="​"; } CKEDITOR.dtd.$removeEmpty['span'] = false; CKEDITOR.dtd.$removeEmpty['i'] = false;