Changeset 28594 for trunk/src/wp-includes/js/mce-view.js
- Timestamp:
- 05/27/2014 07:59:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mce-view.js
r28580 r28594 678 678 wp.mce.views.register( 'playlist', wp.mce.playlist ); 679 679 680 /** 681 * TinyMCE handler for the embed shortcode 682 */ 680 683 wp.mce.embed = { 681 684 shortcode: 'embed', … … 717 720 }, 718 721 setHtml: function ( content ) { 719 var scripts = $( content ).find( 'script' );720 721 722 this.parsed = content; 722 723 723 $( this.node ).html( this.getHtml() ); 724 if ( scripts ) {725 _.each( scripts, function (script) {726 var element = document.createElement( 'script' );727 element.type = 'text/javascript';728 element.src = script.src;729 tinymce.activeEditor.contentDocument.getElementsByTagName( 'head' )[0].appendChild( element );730 } );731 }732 724 this.parseMediaShortcodes(); 733 725 },
Note: See TracChangeset
for help on using the changeset viewer.