时,Tinymce 编辑器无法正确渲染编辑器
<textarea><p><sample data></p></textarea>
当内容类似于
。当我在这里初始化 TinyMCE 编辑器时,我看不到任何东西,因为它看起来像是假设
是一个 HTML 标签。
请假设我已经加载了tinymce.js并且使用tinymce.init进行初始化。
有解决办法吗?请告诉我这是否是服务器端修复,或者我可以提供一个tinymce.init 选项来修复此问题。
PS:看起来这确实是一个 HTML 实体编码相关问题,但我不是这个领域的专家。
Tinymce editor is not rendering editor properly when the content is something like
<textarea><p><sample data></p></textarea>
i.e. <sample data>
.
When I initialize a TinyMCE editor here, I dont see anything as it looks like it assumes <sample data>
is an HTML tag.
Please assume I have tinymce.js loaded and I initilize using tinymce.init.
Is there a fix for this? Please let me know if it is a server side fix, or is there a tinymce.init option I could give to fix this problem.
PS: It does look like this is an HTML Entity encoding related issue but I am hardly an expert in this area.
发布评论
评论(1)
查看tinymce配置参数entity_encoding。
如果这不起作用,您可以使用此解决方法
Have a look at the tinymce config parameter entity_encoding.
If this does not work you may use this workaround