Configuration TinyMCE 4有效元素默认规则集

Configuration TinyMCE 4有效元素默认规则集,configuration,tinymce-4,Configuration,Tinymce 4,有人知道TinyMCE 4中有效_元素的默认规则集是否与TinyMCE 3中定义的规则集相同,因为TinyMCE 4的文档中缺少该规则(已请求添加该规则) -缺少默认规则集 -包括默认规则集 谢谢TinyMCE已经更新了TinyMCE 4的文档。这个标签实际上已经没有默认选项了 此选项的默认规则集是完整HTML5的混合 以及HTML4规范或HTML5或HTML4规范,具体取决于 在配置的架构上 我在源代码中查找了这个。不幸的是,它不是以一个简单的字符串的形式出现,但它应该能提供您所需要的信息 它

有人知道TinyMCE 4中有效_元素的默认规则集是否与TinyMCE 3中定义的规则集相同,因为TinyMCE 4的文档中缺少该规则(已请求添加该规则)

-缺少默认规则集

-包括默认规则集


谢谢

TinyMCE已经更新了TinyMCE 4的文档。这个标签实际上已经没有默认选项了

此选项的默认规则集是完整HTML5的混合 以及HTML4规范或HTML5或HTML4规范,具体取决于 在配置的架构上


我在源代码中查找了这个。不幸的是,它不是以一个简单的字符串的形式出现,但它应该能提供您所需要的信息

它的大多数形式是
add(元素,允许的属性)

//HTML4基本模式TODO:将特定于HTML5的属性移动到特定于HTML5的if语句
//模式项,
添加('html','manifest','head body');
添加('head','','base命令链接meta-noscript脚本样式标题');
添加('title hr noscript br');
添加('base','href target');
添加('link','href rel media hreflang type size hreflang');
添加('meta','name http equiv content charset');
添加('style','media type scoped');
添加('script','src async defer type charset');
添加('body','onafterprint onbeforeprint onbeforeunload onblur onerror onfocus'+
'onhashchange onload onmessage onoffline ononline onpagehide onpageshow'+
“onpopstate onresize onscroll onstorage onunload”,flowContent);
添加('address dt dd div caption','',flowContent);
添加('h1 h2 h3 h4 h5 h6前p缩写代码var samp kbd子支持b u bdo跨度图例em strong s SITE dfn','',措辞内容);
添加('blockquote','cite',flowContent);
添加('ol'、'反向启动类型'、'li');
添加('ul','li');
添加('li'、'value'、flowContent);
添加('dl','','dt-dd');
添加('a','href target rel media hreflang type',phrasingContent);
添加(‘q’、‘引用’、措辞内容);
添加('ins del','cite datetime',flowContent);
添加('img','src size srcset alt usemap ismap width height');
添加('iframe','src name width height',flowContent);
添加('embed','src type width height');
添加('object','data type typemustmatch name usemap form width height',[flowContent',param'].join('');
添加('param','name-value');
添加('map','name',[flowContent',area'])。加入('');
添加('area'、'alt coords shape href target rel media hreflang type');
添加('table','border','caption colgroup thead tfoot tbody tr'+(type=='html4'?'col':'');
添加('colgroup','span','col');
添加('col','span');
添加('tbody thead tfoot','tr');
添加('tr','','td th');
添加('td','colspan行span标题',flowContent);
添加('th','colspan rowspan headers scope abbr',flowContent);
添加('form','accept charset action autocomplete enctype方法名称novalidate target',flowContent);
添加('fieldset','disabled form name',[flowContent',legend'].join('');
添加(‘标签’、‘表格’、‘措辞内容’);
添加('input','accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate'+
'formtarget height list max maxlength min multiple name pattern readonly required size src step type value width'
);
添加('button','disabled form formaction formenctype formmethod formnovalidate formtarget name类型值',
类型=='html4'?flowContent:phrasingContent);
添加('select'、'disabled form multiple name required size'、'option optgroup');
添加('optgroup','disabled label','option');
添加('选项','禁用标签选定值');
添加('textarea','cols dirname disabled form maxlength name readonly required rows wrap');
添加('menu','type label',[flowContent',li'].join('');
添加('noscript','',flowContent);
//使用HTML5元素进行扩展
如果(键入!='html4'){
添加(“wbr”);
添加('ruby','',[phrasingContent,'rtrp'].join('');
添加('figcaption','',flowContent);
添加('mark rt rp summary bdi','',措辞内容);
添加(‘画布’、‘宽度高度’、‘流动内容’);
添加('video','src crossorigin poster preload autoplay mediagroup loop'+
'静音控制缓冲的宽度和高度',[flowContent',track source'].join('');
添加('audio','src crossorigin预加载自动播放媒体组循环静音控件'+
'缓冲卷',[flowContent'跟踪源'].join('');
添加(‘图片’、‘img源’);
添加('source','src srcset type media size');
添加('track','kind src srclang label default');
添加('datalist','',''[phrasingContent',option'].join('');
添加('article section nav About main header footer','',flowContent);
添加('hgroup','','h1h2h3h4h5h6');
添加('figure','',[flowContent,'figcaption'])。加入('');
添加('time','datetime',短语内容);
添加(‘对话框’、‘打开’、flowContent);
添加('command','type label icon disabled checked radiogroup command');
添加('output','for form name',phrasingContent);
添加(‘进度’、‘最大值’、短语内容);
添加(“仪表”、“最小值最大值低-高-最佳值”、短语内容);
添加('details','open',[flowContent','summary'])。加入('');
添加('keygen','autofocus challenge disabled form keytype name');
}
//使用HTML4属性扩展,除非它是严格的html5
如果(键入!='html5 strict'){
addAttrs('script','language xml:space');
addAttrs('style','xml:space');
addAttrs('object','declare classid code codebase code type archive standby align border hspace vspace');
addAttrs('embed','align name hspace vspace');
addAttrs('param','valuetype');
addAttrs('a','charset name rev shape coords');
addAttrs('br','clear');
addAttrs('applet','codebase archive code object alt name width height align hspace vspace');
addAttrs('img','name longdesc align border hspace vspace');
addAttrs('iframe','longdesc frameborder marginwidth marginheight scrolling align');
addAttrs('font-basefont','size-color-face');
addAttrs('input','usemap align');
addAttrs('select','onchange');
addAttrs('texta