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;
本文介绍如何配置CKEditor以防止其自动过滤掉HTML代码,确保编辑器能正确保留div等元素,适用于合同模板等场景。

被折叠的 条评论
为什么被折叠?



