Skip to content

Commit

Permalink
TinyMCE: Use the correct syntax for allowing an embed element to be…
Browse files Browse the repository at this point in the history
… 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: https://develop.svn.wordpress.org/branches/3.5@23146 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
nacin committed Dec 10, 2012
1 parent aa14448 commit 434a270
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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) {
Expand Down

0 comments on commit 434a270

Please sign in to comment.