WordPress.org

Make WordPress Core

Changeset 23112


Ignore:
Timestamp:
12/07/2012 12:05:54 AM (9 years ago)
Author:
ryan
Message:

Extend allowed elements for object and embed.

Props azaozz
fixes #22790

File:
1 edited

Legend:

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

    r23046 r23112  
    150150                // Adds "name" for <a>
    151151                ed.schema.addValidElements('a['+commonAttr+'|href|target|ping|rel|media|type|name]');
     152                // Extend <object> and <embed>
     153                ed.schema.addValidElements('object[*],param[id|name|value|valuetype|type],embed[*]');
     154                ed.schema.addValidChildren('object[*]');
    152155            });
    153156
Note: See TracChangeset for help on using the changeset viewer.