ITeye博客

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

ajonjun · 2014-11-05 18:12 · 学习心得 · Web前端 · Markdown

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;

评论(1)

  1. #1 楼 · ajonjun · 2014-11-10 16:17

    http://viralpatel.net/

评论功能维护中,当前仅展示历史评论。