简体   繁体   English

CKEditor禁用HTML转换

[英]CKEditor disable HTML transformation

I've got a problem with CKEditor. CKEditor出现问题。 Especially the br- and img-Tags are transformed to not be valid. 特别是br-和img-Tags转换为无效的。 In the source-view I see 在源代码视图中,我看到了
and but when I inspect the rte-source the slashes are gone as well as when submitting the form. 但是,当我检查rte-source时,斜线也消失了,并且提交了表单。 Can someone tell me where I can disable this or enable XHTML-conformity? 有人可以告诉我在哪里可以禁用此功能或启用XHTML一致性吗? The embedding page is XHTML. 嵌入页面是XHTML。

Thank to any hints, ideas or solutions. 感谢任何提示,想法或解决方案。

To solve this problem describe above: 要解决此问题,请在上面进行描述:

This wasn't a problem of CKEditor. 这不是CKEditor的问题。 I did use jQuery's html-method that relies on the DOM innerHTML property to get CKEditors contents. 我确实使用了jQuery的html方法,该方法依赖于DOM innerHTML属性来获取CKEditors的内容。 This property seems to be unable to handle XHTML at all (tested in FF and Chrome). 该属性似乎根本无法处理XHTML(在FF和Chrome中测试)。 You need to replace all slashes manually. 您需要手动替换所有斜杠。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM