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.
fixes #22790.
for the 3.5 branch.



git-svn-id: http://core.svn.wordpress.org/branches/3.5@23146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-10 02:44:25 +00:00
parent d679ed3711
commit 0d084fbd8f
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@
// Extend <object> and <embed> (#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) {