Ticket #22842: 22842.4.diff

File 22842.4.diff, 2.8 KB (added by koopersmith, 5 months ago)
Line 
1Index: wp-includes/js/tinymce/wp-tinymce-schema.js
2===================================================================
3--- wp-includes/js/tinymce/wp-tinymce-schema.js (revision 23147)
4+++ wp-includes/js/tinymce/wp-tinymce-schema.js (working copy)
5@@ -131,16 +131,18 @@
6                                        'img[A|alt|src|height|width|usemap|ismap|name|longdesc|align|border|hspace|vspace][]' +
7                                        'iframe[A|name|src|height|width|sandbox|seamless|longdesc|frameborder|marginwidth|marginheight|scrolling|align][]' +
8                                        'embed[A|src|height|width|type][]' +
9-                                       'object[*][]' +
10+                                       'object[*][C]' +
11                                        'param[A|name|value|valuetype|type][]' +
12-                                       'details[A|open][C|legend]' +
13-                                       'command[A|type|label|icon|disabled|checked|radiogroup][]' +
14+                                       'summary[A][B]' +
15+                                       'details[A|open][C|legend|summary]' +
16+                                       'command[A|type|label|icon|disabled|checked|radiogroup|command][]' +
17                                        'menu[A|type|label|compact][C|li]' +
18                                        'legend[A|align][C|B]' +
19                                        'div[A|align][C]' +
20                                        'source[A|src|type|media][]' +
21-                                       'audio[A|src|autobuffer|autoplay|loop|controls][source]' +
22-                                       'video[A|src|autobuffer|autoplay|loop|controls|width|height|poster][source]' +
23+                                       'track[A|kind|src|srclang|label|default][]' +
24+                                       'audio[A|src|autobuffer|autoplay|loop|controls|crossorigin|preload|mediagroup|muted][C|source|track]' +
25+                                       'video[A|src|autobuffer|autoplay|loop|controls|width|height|poster|crossorigin|preload|mediagroup|muted][C|source|track]' +
26                                        'hr[A|align|noshade|size|width][]' +
27                                        'form[A|accept-charset|action|autocomplete|enctype|method|name|novalidate|target|onsubmit|onreset|accept][C]' +
28                                        'fieldset[A|disabled|form|name][C|legend]' +
29@@ -155,7 +157,7 @@
30                                        'textarea[A|autofocus|disabled|form|maxlength|name|placeholder|readonly|required|rows|cols|wrap|tabindex|onfocus|onblur|onselect|onchange][]' +
31                                        'keygen[A|autofocus|challenge|disabled|form|keytype|name][]' +
32                                        'output[A|for|form|name][B]' +
33-                                       'canvas[A|width|height][]' +
34+                                       'canvas[A|width|height][a|button|input]' +
35                                        'map[A|name][B|C]' +
36                                        'area[A|shape|coords|href|alt|target|media|rel|ping|type|tabindex|onfocus|onblur|nohref][]' +
37                                        'mathml[A][]' +
38Index: wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js
39===================================================================
40--- wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js       (revision 23147)
41+++ wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js       (working copy)
42@@ -135,12 +135,6 @@
43                                }
44                        });
45 
46-                       // Extend <object> and <embed> (#WP22790)
47-                       ed.onPreInit.add(function(ed) {
48-                               ed.schema.addValidElements('object[*],param[id|name|value|valuetype|type],embed[*]');
49-                               ed.schema.addValidChildren('+object[embed]');
50-                       });
51-
52                        ed.onInit.add(function(ed) {
53                                var bodyClass = ed.getParam('body_class', ''), body = ed.getBody();
54