CKEditor and escaping elements

前端 未结 3 934
一整个雨季
一整个雨季 2021-01-18 13:36

I\'ve using CKEditor for updating CMS content on my website. I also using FontAwesome, which includes set of fancy icons, that can be displayed like this

&l         


        
3条回答
  •  死守一世寂寞
    2021-01-18 13:54

    below worked for me.. thanks to Vince Kronlein pointing out config.fillEmptyBlocks

    CKEDITOR.editorConfig = function( config ) {
           config.fillEmptyBlocks="​";  
    }
    CKEDITOR.dtd.$removeEmpty['span'] = false;
    CKEDITOR.dtd.$removeEmpty['i'] = false;
    

提交回复
热议问题