From ce2720984b66aed420181b39c0a1d5b97f95c637 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 7 Dec 2012 00:05:54 +0000 Subject: [PATCH] Extend allowed elements for object and embed. Props azaozz fixes #22790 git-svn-id: https://develop.svn.wordpress.org/trunk@23112 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js | 3 +++ 1 file changed, 3 insertions(+) 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 b2413389f3..3c4dc9b20a 100644 --- a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js +++ b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js @@ -149,6 +149,9 @@ ed.schema.addValidElements('td['+tdAttr+'],th['+tdAttr+']'); // Adds "name" for ed.schema.addValidElements('a['+commonAttr+'|href|target|ping|rel|media|type|name]'); + // Extend and + ed.schema.addValidElements('object[*],param[id|name|value|valuetype|type],embed[*]'); + ed.schema.addValidChildren('object[*]'); }); ed.onInit.add(function(ed) {