Make WordPress Core


Ignore:
Timestamp:
12/10/2012 02:40:16 AM (11 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js

    r23142 r23144  
    139139            ed.onPreInit.add(function(ed) {
    140140                ed.schema.addValidElements('object[*],param[id|name|value|valuetype|type],embed[*]');
    141                 ed.schema.addValidChildren('+object[*]');
     141                ed.schema.addValidChildren('+object[embed]');
    142142            });
    143143
Note: See TracChangeset for help on using the changeset viewer.