WordPress.org

Make WordPress Core

Changeset 23146


Ignore:
Timestamp:
12/10/2012 02:44:25 AM (6 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.
fixes #22790.
for the 3.5 branch.

File:
1 edited

Legend:

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

    r23120 r23146  
    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.