解决ckeditor html不显示,ckeditor 自动过滤html

阅读更多

   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 , , and elements.
    // The final output will also reflect this setting, including the contents only if this setting is disabled.
    config.fullPage= true;
   
    // set editor html no display auto filter
    config.allowedContent= true;

你可能感兴趣的:(html,JavaScript)