Ckeditor 设置不转义html和特殊符号

阅读 (4121)
Ckeditor设置
var content = CKEDITOR.replace( '{$this->id}',{
        extraAllowedContent :'*[*]{*}(*)', // 允许data-等html属性
        width :'100%',
        height :'450px',
        language :'zh-cn',
        allowedContent: true, // 允许所有html
    });
    CKFinder.setupCKEditor( content );

通过如上方法设置即可

更新于:2018-01-03 20:09:51
返回顶部