我只是将CKEditor 4集成到我的网站中,问题是当我将HTML代码粘贴到编辑区域时就像这样enter image description here
我得到的价值是enter image description here所以,有没有办法像第一张图片一样存储Raw Html?
更新:我希望CKEditor知道何时粘贴HTML代码,输出HTML也是原始HTML
更新:
我将这些行添加到我的config.js中
config.htmlEncodeOutput = false;
config.fullPage = true;
config.basicEntities = false;
它解决了这个问题