如何在 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 (将#修改为@)