---
title: "解决ckeditor html不显示，ckeditor 自动过滤html"
author: "ajonjun"
date: "2014-11-05T18:12:50Z"
tags: []
categories: ["Web前端"]
slug: "ckeditor-html-ckeditor-html"
draft: false
lastmod: "2014-11-05T18:12:50Z"
id: 2152744
url: "https://hecks.iteye.com/blog/2152744"
---

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