Changeset 22411
- Timestamp:
- 11/06/2012 11:36:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js
r21415 r22411 143 143 } 144 144 } 145 }); 146 147 // Add HTML5 obsolete attributes that are still in use. 148 ed.onPreInit.add(function(ed) { 149 // This list is taken from TinyMCE 3.5.7 getHTML5() 150 var commonAttr = 'id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup'; 151 // Additional table attributes from TinyMCE 3.5.7 getHTML4() 152 ed.schema.addValidElements('table['+commonAttr+'|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor]'); 153 // Adds "name" for <a> 154 ed.schema.addValidElements('a['+commonAttr+'|href|target|ping|rel|media|type|name]'); 145 155 }); 146 156
Note: See TracChangeset
for help on using the changeset viewer.