Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TinyMCE valid_elements setting for HTML5
valid_elements : ""
+"@[accesskey|draggable|style|class|hidden|tabindex|contenteditable|id|title|contextmenu|lang|dir<ltr?rtl|spellcheck|"
+"onabort|onerror|onmousewheel|onblur|onfocus|onpause|oncanplay|onformchange|onplay|oncanplaythrough|onforminput|onplaying|onchange|oninput|onprogress|onclick|oninvalid|onratechange|oncontextmenu|onkeydown|onreadystatechange|ondblclick|onkeypress|onscroll|ondrag|onkeyup|onseeked|ondragend|onload|onseeking|ondragenter|onloadeddata|onselect|ondragleave|onloadedmetadata|onshow|ondragover|onloadstart|onstalled|ondragstart|onmousedown|onsubmit|ondrop|onmousemove|onsuspend|ondurationmouseout|ontimeupdate|onemptied|onmouseover|onvolumechange|onended|onmouseup|onwaiting],"
+"a[target<_blank?_self?_top?_parent|ping|media|href|hreflang|type"
+"|rel<alternate?archives?author?bookmark?external?feed?first?help?index?last?license?next?nofollow?noreferrer?prev?search?sidebar?tag?up"
+"],"
+"abbr,"
+"address,"
+"area[alt|coords|shape|href|target<_blank?_self?_top?_parent|ping|media|hreflang|type|shape<circle?default?poly?rect"
+"|rel<alternate?archives?author?bookmark?external?feed?first?help?index?last?license?next?nofollow?noreferrer?prev?search?sidebar?tag?up"
+"],"
+"article,"
+"aside,"
+"audio[src|preload<none?metadata?auto|autoplay<autoplay|loop<loop|controls<controls|mediagroup],"
+"blockquote[cite],"
+"body,"
+"br,"
+"button[autofocus<autofocus|disabled<disabled|form|formaction|formenctype|formmethod<get?put?post?delete|formnovalidate?novalidate|"
+"formtarget<_blank?_self?_top?_parent|name|type<reset?submit?button|value],"
+"canvas[width,height],"
+"caption,"
+"cite,"
+"code,"
+"col[span],"
+"colgroup[span],"
+"command[type<command?checkbox?radio|label|icon|disabled<disabled|checked<checked|radiogroup|default<default],"
+"datalist[data],"
+"dd,"
+"del[cite|datetime],"
+"details[open<open],"
+"dfn,"
+"div,"
+"dl,"
+"dt,"
+"-em/i,"
+"embed[src|type|width|height],"
+"eventsource[src],"
+"fieldset[disabled<disabled|form|name],"
+"figcaption,"
+"figure,"
+"footer,"
+"form[accept-charset|action|enctype|method<get?post?put?delete|name|novalidate<novalidate|target<_blank?_self?_top?_parent],"
+"-h1,-h2,-h3,-h4,-h5,-h6,"
+"header,"
+"hgroup,"
+"hr,"
+"iframe[name|src|srcdoc|seamless<seamless|width|height|sandbox],"
+"img[alt=|src|ismap|usemap|width|height],"
+"input[accept|alt|autocomplete<on?off|autofocus<autofocus|checked<checked|disabled<disabled"
+"|form|formaction|formenctype|formmethod<get?put?post?delete|formnovalidate?novalidate|formtarget<_blank?_self?_top?_parent"
+"|height|list|max|maxlength|min|multiple<multiple|name|pattern|placeholder|readonly<readonly|required<required"
+"|size|src|step|type<hidden?text?search?tel?url?email?password?datetime?date?month?week?time?datetime-local?number?range?color"
+"?checkbox?radio?file?submit?image?reset?button?value|width],"
+"ins[cite|datetime],"
+"kbd,"
+"keygen[autofocus<autofocus|challenge|disabled<disabled|form|name],"
+"label[for|form],"
+"legend,"
+"li[value],"
+"mark,"
+"map[name],"
+"menu[type<context?toolbar?list|label],"
+"meter[value|min|low|high|max|optimum],"
+"nav,"
+"noscript,"
+"object[data|type|name|usemap|form|width|height],"
+"ol[reversed|start],"
+"optgroup[disabled<disabled|label],"
+"option[disabled<disabled|label|selected<selected|value],"
+"output[for|form|name],"
+"-p,"
+"param[name,value],"
+"-pre,"
+"progress[value,max],"
+"q[cite],"
+"ruby,"
+"rp,"
+"rt,"
+"samp,"
+"script[src|async<async|defer<defer|type|charset],"
+"section,"
+"select[autofocus<autofocus|disabled<disabled|form|multiple<multiple|name|size],"
+"small,"
+"source[src|type|media],"
+"-span,"
+"-strong/b,"
+"-sub,"
+"summary,"
+"-sup,"
+"table,"
+"tbody,"
+"td[colspan|rowspan|headers],"
+"textarea[autofocus<autofocus|disabled<disabled|form|maxlength|name|placeholder|readonly<readonly|required<required|rows|cols|wrap<soft|hard],"
+"tfoot,"
+"th[colspan|rowspan|headers|scope],"
+"thead,"
+"time[datetime],"
+"tr,"
+"ul,"
+"var,"
+"video[preload<none?metadata?auto|src|crossorigin|poster|autoplay<autoplay|"
+"mediagroup|loop<loop|muted<muted|controls<controls|width|height],"
+"wbr"
});
@kuruminoki
Copy link

kuruminoki commented Jan 21, 2013

thank you!

@susebus
Copy link

susebus commented Mar 20, 2013

Exactly what I was looking for. Thank you!

@carlosmartinezt
Copy link

carlosmartinezt commented Apr 24, 2013

Thanks!... you shouldsend it to tinyMCE for them to integrate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment