ckeditor html不显示,ckeditor 自动过滤html
项目里面用CKeditor来编辑合同模板,模板中有Html样式,有div,但一保存就会自动去掉,需要做以下设置:
// editorIndicates whether the contents to be edited are being input as a full HTML page.
// A full page includes the <html>, <head>, and <body> elements.
// The final output will also reflect this setting, including the <body> contents only if this setting is disabled.
config.fullPage= true;
// set editor html no display auto filter
config.allowedContent= true;