Make WordPress Core

Changeset 23142


Ignore:
Timestamp:
12/10/2012 02:37:50 AM (12 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.

File:
1 edited

Legend:

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

    r23120 r23142  
    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[*]');
    142142            });
    143143
Note: See TracChangeset for help on using the changeset viewer.