Ticket #22842: 22842.7.diff
| File 22842.7.diff, 10.7 KB (added by , 14 years ago) |
|---|
-
wp-includes/js/tinymce/wp-tinymce-schema.js
58 58 59 59 if (!html5) { 60 60 html5 = mapCache.html5 = unpack({ 61 A : 'id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup |lang|xml:lang|dir',62 B : '#|a|abbr|area|audio|b|bd o|br|button|canvas|cite|code|command|datalist|del|dfn|em|embed|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|meta|' +63 'meter|noscript|object|output|progress|q|ruby|samp|script|select|small|span|strong|sub|sup|svg|textarea|time|var|video|wbr |acronym|basefont|font|big|strike|s|u|tt|applet',61 A : 'id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup', 62 B : '#|a|abbr|area|audio|b|bdi|bdo|br|button|canvas|cite|code|command|data|datalist|del|dfn|em|embed|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|meta|' + 63 'meter|noscript|object|output|progress|q|ruby|samp|script|select|small|span|strong|sub|sup|svg|textarea|time|var|video|wbr', 64 64 C : '#|a|abbr|area|address|article|aside|audio|b|bdo|blockquote|br|button|canvas|cite|code|command|datalist|del|details|dfn|dialog|div|dl|em|embed|fieldset|' + 65 65 'figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|menu|meta|meter|nav|noscript|ol|object|output|' + 66 'p|pre|progress|q|ruby|samp|script|section|select|small|span|strong|style|sub|sup|svg|table|textarea|time|ul|var|video |acronym|basefont|font|big|strike|s|u|tt|applet|isindex|noframes|center|dir'66 'p|pre|progress|q|ruby|samp|script|section|select|small|span|strong|style|sub|sup|svg|table|textarea|time|ul|var|video' 67 67 }, 'html[A|manifest][body|head]' + 68 68 'head[A][base|command|link|meta|noscript|script|style|title]' + 69 69 'title[A][#]' + 70 70 'base[A|href|target][]' + 71 'link[A|href|rel|media|type|sizes ][]' +71 'link[A|href|rel|media|type|sizes|crossorigin|hreflang][]' + 72 72 'meta[A|http-equiv|name|content|charset][]' + 73 'style[A|type|media|scoped |xml:space][#]' +74 'script[A|charset|type|src|defer|async| language|xml:space][#]' +73 'style[A|type|media|scoped][#]' + 74 'script[A|charset|type|src|defer|async|crossorigin][#]' + 75 75 'noscript[A][C]' + 76 'body[A|on load|onunload|background|bgcolor|text|link|vlink|alink][C]' +76 'body[A|onafterprint|onbeforeprint|onbeforeunload|onblur|onerror|onfocus|onfullscreenchange|onfullscreenerror|onhashchange|onload|onmessage|onoffline|ononline|onpagehide|onpageshow|onpopstate|onresize|onscroll|onstorage|onunload][C]' + 77 77 'section[A][C]' + 78 78 'nav[A][C]' + 79 79 'article[A][C]' + 80 80 'aside[A][C]' + 81 'h1[A |align][B]' +82 'h2[A |align][B]' +83 'h3[A |align][B]' +84 'h4[A |align][B]' +85 'h5[A |align][B]' +86 'h6[A |align][B]' +81 'h1[A][B]' + 82 'h2[A][B]' + 83 'h3[A][B]' + 84 'h4[A][B]' + 85 'h5[A][B]' + 86 'h6[A][B]' + 87 87 'hgroup[A][h1|h2|h3|h4|h5|h6]' + 88 88 'header[A][C]' + 89 89 'footer[A][C]' + 90 90 'address[A][C]' + 91 'p[A |align][B]' +92 'br[A |clear][]' +93 'pre[A |width|xml:space][B]' +94 'dialog[A ][dd|dt]' +91 'p[A][B]' + 92 'br[A][]' + 93 'pre[A][B]' + 94 'dialog[A|open][C|dd|dt]' + 95 95 'blockquote[A|cite][C]' + 96 'ol[A|start|reversed |type|compact][li]' +97 'ul[A |type|compact][li]' +98 'li[A|value |type][C]' +99 'dl[A |compact][dd|dt]' +100 'dt[A][ B]' +96 'ol[A|start|reversed][li]' + 97 'ul[A][li]' + 98 'li[A|value][C]' + 99 'dl[A][dd|dt]' + 100 'dt[A][C|B]' + 101 101 'dd[A][C]' + 102 'a[A|href|target| ping|rel|media|type|tabindex|onfocus|onblur|charset|name|hreflang|rev|shape|coords][B]' +102 'a[A|href|target|download|ping|rel|media|type][C|B]' + 103 103 'em[A][B]' + 104 104 'strong[A][B]' + 105 105 'small[A][B]' + … … 122 122 'ruby[A][B|rt|rp]' + 123 123 'rt[A][B]' + 124 124 'rp[A][B]' + 125 'bdi[A][B]' + 125 126 'bdo[A][B]' + 126 127 'span[A][B]' + 127 'ins[A|cite|datetime][C ]' +128 'del[A|cite|datetime][C ]' +128 'ins[A|cite|datetime][C|B]' + 129 'del[A|cite|datetime][C|B]' + 129 130 'figure[A][C|legend|figcaption]' + 130 131 'figcaption[A][C]' + 131 'img[A|alt|src| height|width|usemap|ismap|name|longdesc|align|border|hspace|vspace][]' +132 'iframe[A|name|src| height|width|sandbox|seamless|longdesc|frameborder|marginwidth|marginheight|scrolling|align][]' +132 'img[A|alt|src|srcset|crossorigin|usemap|ismap|width|height][]' + 133 'iframe[A|name|src|srcdoc|height|width|sandbox|seamless|allowfullscreen][C|B]' + 133 134 'embed[A|src|height|width|type][]' + 134 'object[*][]' + 135 'param[A|name|value|valuetype|type][]' + 136 'details[A|open][C|legend]' + 137 'command[A|type|label|icon|disabled|checked|radiogroup][]' + 138 'menu[A|type|label|compact][C|li]' + 139 'legend[A|align][C|B]' + 140 'div[A|align][C]' + 135 'object[A|data|type|typemustmatch|name|usemap|form|width|height][C|B|param]' + 136 'param[A|name|value][]' + 137 'summary[A][B]' + 138 'details[A|open][C|legend|summary]' + 139 'command[A|type|label|icon|disabled|checked|radiogroup|command][]' + 140 'menu[A|type|label][C|li]' + 141 'legend[A][C|B]' + 142 'div[A][C]' + 141 143 'source[A|src|type|media][]' + 142 'audio[A|src|autobuffer|autoplay|loop|controls][source]' + 143 'video[A|src|autobuffer|autoplay|loop|controls|width|height|poster][source]' + 144 'hr[A|align|noshade|size|width][]' + 145 'form[A|accept-charset|action|autocomplete|enctype|method|name|novalidate|target|onsubmit|onreset|accept][C]' + 144 'track[A|kind|src|srclang|label|default][]' + 145 'audio[A|src|autobuffer|autoplay|loop|controls|crossorigin|preload|mediagroup|muted][C|source|track]' + 146 'video[A|src|autobuffer|autoplay|loop|controls|width|height|poster|crossorigin|preload|mediagroup|muted][C|source|track]' + 147 'hr[A][]' + 148 'form[A|accept-charset|action|autocomplete|enctype|method|name|novalidate|target][C]' + 146 149 'fieldset[A|disabled|form|name][C|legend]' + 147 'label[A|form|for |onfocus|onblur][B]' +148 'input[A|type|accept|alt|autocomplete|autofocus|checked|di sabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|height|list|max|maxlength|min|' +149 'multiple|pattern|placeholder|readonly|required|size|src|step|width|files|value|name|tabindex|onfocus|onblur|usemap|onselect|onchange|align][]' +150 ' button[A|autofocus|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|name|value|type|tabindex|onfocus|onblur][B]' +151 ' select[A|autofocus|disabled|form|multiple|name|size|tabindex|onfocus|onblur|onchange][option|optgroup]' +150 'label[A|form|for][B]' + 151 'input[A|type|accept|alt|autocomplete|autofocus|checked|dirname|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|height|inputmode|list|max|maxlength|min|multiple|name|pattern|placeholder|readonly|required|size|src|step|value|width|files][]' + 152 'button[A|autofocus|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|name|type|value][B]' + 153 'select[A|autofocus|disabled|form|multiple|name|required|size][option|optgroup]' + 154 'data[A|value][B]' + 152 155 'datalist[A][B|option]' + 153 156 'optgroup[A|disabled|label][option]' + 154 'option[A|disabled|selected|label|value][ ]' +155 'textarea[A|auto focus|disabled|form|maxlength|name|placeholder|readonly|required|rows|cols|wrap|tabindex|onfocus|onblur|onselect|onchange][]' +157 'option[A|disabled|selected|label|value][#]' + 158 'textarea[A|autocomplete|autofocus|cols|dirname|disabled|form|inputmode|maxlength|name|placeholder|readonly|required|rows|wrap][#]' + 156 159 'keygen[A|autofocus|challenge|disabled|form|keytype|name][]' + 157 160 'output[A|for|form|name][B]' + 158 'canvas[A|width|height][ ]' +159 'map[A|name][ B|C]' +160 'area[A| shape|coords|href|alt|target|media|rel|ping|type|tabindex|onfocus|onblur|nohref][]' +161 'canvas[A|width|height][a|button|input]' + 162 'map[A|name][C|B]' + 163 'area[A|alt|coords|shape|href|target|download|ping|rel|media|hreflang|type][]' + 161 164 'mathml[A][]' + 162 165 'svg[A][]' + 163 'table[A|border|summary|width|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|colgroup|thead|tfoot|tbody|tr]' + 164 'caption[A|align][C]' + 165 'colgroup[A|span|width|align|char|charoff|valign][col]' + 166 'col[A|span|width|align|char|charoff|valign][]' + 167 'thead[A|align|char|charoff|valign][tr]' + 168 'tfoot[A|align|char|charoff|valign][tr]' + 169 'tbody[A|align|char|charoff|valign][tr]' + 170 'tr[A|align|char|charoff|valign|bgcolor][th|td]' + 171 'th[A|headers|rowspan|colspan|scope|abbr|axis|align|char|charoff|valign|nowrap|bgcolor|width|height][C]' + 172 'td[A|headers|rowspan|colspan|abbr|axis|scope|align|char|charoff|valign|nowrap|bgcolor|width|height][C]' + 173 'wbr[A][]' + 174 'applet[id|class|style|title|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][C]' + 175 'tt[A][B]' + 176 'u[A][B]' + 177 's[A][B]' + 178 'strike[A][B]' + 179 'big[A][B]' + 180 'font[id|class|style|title|lang|xml:lang|dir|size|color|face][B]' + 181 'basefont[id|size|color|face][]' + 182 'acronym[A][C]' + 183 'dir[A][li]' + 184 'center[A][C]' + 185 'noframes[A][C]' + 186 'isindex[id|class|style|title|lang|xml:lang|dir|prompt][]' 166 'table[A][caption|colgroup|thead|tfoot|tbody|tr]' + 167 'caption[A][C]' + 168 'colgroup[A|span][col]' + 169 'col[A|span][]' + 170 'thead[A][tr]' + 171 'tfoot[A][tr]' + 172 'tbody[A][tr]' + 173 'tr[A][th|td]' + 174 'th[A|headers|rowspan|colspan|scope][C]' + 175 'td[A|headers|rowspan|colspan][C]' + 176 'wbr[A][]' 187 177 ); 188 178 } 189 179 -
wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js
135 135 } 136 136 }); 137 137 138 // Extend <object> and <embed> (#WP22790)139 ed.onPreInit.add(function(ed) {140 ed.schema.addValidElements('object[*],param[id|name|value|valuetype|type],embed[*]');141 ed.schema.addValidChildren('+object[embed]');142 });143 144 138 ed.onInit.add(function(ed) { 145 139 var bodyClass = ed.getParam('body_class', ''), body = ed.getBody(); 146 140
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)