如何使用ckeditor 4存储原始html

问题描述 投票:0回答:1

我只是将CKEditor 4集成到我的网站中,问题是当我将HTML代码粘贴到编辑区域时就像这样enter image description here

我得到的价值是enter image description here所以,有没有办法像第一张图片一样存储Raw Html?

更新:我希望CKEditor知道何时粘贴HTML代码,输出HTML也是原始HTML

ckeditor ckeditor4.x
1个回答
0
投票

更新:

我将这些行添加到我的config.js中

config.htmlEncodeOutput = false;

config.fullPage = true;

config.basicEntities = false;

它解决了这个问题

© www.soinside.com 2019 - 2024. All rights reserved.