简体   繁体   English

如何在TinyMce中取消自动关闭标签?

[英]How can I cancel auto closing tags in TinyMce?

TinyMce by default try to close html tags in rawHTML editor mode. TinyMce默认情况下尝试在rawHTML编辑器模式下关闭html标签。

For example: 例如:

<p>sample text<strong>text</p>

automaticaly modified to 自动修改为

<p>sample text<strong>text</strong></p>

How can I cancel this functionality? 如何取消此功能?

This is not the fault of tinymce. 这不是tinymce的错。 What you have here is non-valid html so your browser will try to make it valid adding a closing strong tag. 您所拥有的是无效的html,因此您的浏览器将尝试通过添加一个封闭的强标签使其有效。

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

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