From 9857a5d02871267ab30cb9679f0b7660ec3b721d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 10 Dec 2012 02:40:16 +0000 Subject: [PATCH] TinyMCE: Use the correct syntax for allowing an `embed` element to be a valid child of an `object` element. Fixes a bug in TinyMCE when using its HTML5 schema definition. props azaozz. see #22790. for trunk. ... with the right patch this time. [23142] was done in error. git-svn-id: https://develop.svn.wordpress.org/trunk@23144 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js index 8861cc98a0..89b2771f89 100644 --- a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js +++ b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js @@ -138,7 +138,7 @@ // Extend and (#WP22790) ed.onPreInit.add(function(ed) { ed.schema.addValidElements('object[*],param[id|name|value|valuetype|type],embed[*]'); - ed.schema.addValidChildren('+object[*]'); + ed.schema.addValidChildren('+object[embed]'); }); ed.onInit.add(function(ed) {