我如何允许TinyMCE的自关闭标签? [英] How do I allow a self closing tag in TinyMCE?
问题描述
我的视频元素中的源代码都需要自闭使iPad不启动小惠金区。
The source tags inside my video element need to be self closing so the iPad doesn't start whinging.
我输入<信源SRC =myVideo.m4v/>
TinyMCE的不断将其更改为<信源SRC =myVideo.m4v>< /来源方式>
虽然
TinyMCE keeps changing it to <source src="myVideo.m4v" ></source>
though.
如何才能让它停下来?
推荐答案
有一个看的 valid_elements 和 extended_valid_elements。
编辑:
您可以使用封闭设置在TinyMCE的初始化:
You may use the closed setting in your tinymce init:
closed : /^(br|hr|input|meta|img|link|param|area)$/, // default
到
closed: /^(br|hr|input|meta|img|link|param|area|source)$/,
如果这不工作,那么我想你可能additionaly需要从位于editor.js内在线2666(最新微小MCE版)TinyMCE的核心code修改code的一行,并延长设置有您的源标记。
If this does not work then i think you might additionaly need to change one line of code from the tinymce core code located in Editor.js on line 2666 (newest tiny mce version) and extend the setting there with your source tag.
这篇关于我如何允许TinyMCE的自关闭标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!