1 (function ( tinymce ) {
4 tinymce.PluginManager.add( 'wpembed', function ( editor, url ) {
5 editor.on( 'init', function () {
6 var scriptId = editor.dom.uniqueId();
8 var scriptElm = editor.dom.create( 'script', {
10 type: 'text/javascript',
11 src: url + '/../../../wp-embed.js'
14 editor.getDoc().getElementsByTagName( 'head' )[ 0 ].appendChild( scriptElm );