让PW CKEditor编辑器支持FontAwesome的<i>标签

设置字段 Fields -> Body -> Input -> Extra Allowed Content -> 添加 i(*)

找到文件 \site\modules\InputfieldCKEditor\config-body.jsCKEDITOR.editorConfig中添加

       config.enterMode = 2;
       config.allowedContent = 'i[*]{*}(*)';

完整代码看起来应该是这样的

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here. For example:
    // config.uiColor = '#AADC6E';
       config.enterMode = 2;
       config.allowedContent = 'i[*]{*}(*)';
};

Post Comment