微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在 CKEDITOR 5 v.22 中启用 HTML 注释代码

如何解决如何在 CKEDITOR 5 v.22 中启用 HTML 注释代码

有没有办法在 Ck5 中保留 HTML 注释片段。我试过了,但 CK5 删除了注释的 HTML。

示例代码

editor.data.set(`<p class="answer noindent" epub:type="answer" id="ishh091826f4d4dd5b157bc689214033">Answers to the Checkpoint questions can be found at the end of this chapter.<!--<p class="glossdef" epub:type="glossdef" id="dceiea56ad571f2de1bba60b05f86239">A name given to the market economy because prices provide considerable information to both buyers and sellers.</p>--></p>`,{suppressErrorInCollaboration: true})

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。