diff --git a/shared/tinymce/toolbar.js b/shared/tinymce/toolbar.js index 647985ddacffdf..096fd64e26f0ff 100644 --- a/shared/tinymce/toolbar.js +++ b/shared/tinymce/toolbar.js @@ -1,5 +1,5 @@ ( function( tinymce ) { - tinymce.ui.svgbutton = tinymce.ui.Button.extend( { + tinymce.ui.Factory.add( 'svgbutton', tinymce.ui.Button.extend( { renderHtml: function() { var id = this._id; var prefix = this.classPrefix; @@ -53,7 +53,7 @@ active: function( isActive ) { this.$( this.getEl() ).toggleClass( 'is-active', isActive ); } - } ); + } ) ); tinymce.PluginManager.add( 'toolbar', function( editor ) { var each = tinymce.each; diff --git a/shared/tinymce/wplink.js b/shared/tinymce/wplink.js index 18c4ab8e495c9d..4bec22f575fa22 100644 --- a/shared/tinymce/wplink.js +++ b/shared/tinymce/wplink.js @@ -1,5 +1,5 @@ ( function( tinymce ) { - tinymce.ui.WPLinkPreview = tinymce.ui.Control.extend( { + tinymce.ui.Factory.add( 'WPLinkPreview', tinymce.ui.Control.extend( { url: '#', renderHtml: function() { return ( @@ -50,9 +50,9 @@ tinymce.$( this.getEl().firstChild ).attr( 'href', this.url ).text( url ); } } - } ); + } ) ); - tinymce.ui.WPLinkInput = tinymce.ui.Control.extend( { + tinymce.ui.Factory.add( 'WPLinkInput', tinymce.ui.Control.extend( { renderHtml: function() { return ( '