From da1825f71ab266733c6aaf98e144017465ee9202 Mon Sep 17 00:00:00 2001 From: iseulde Date: Fri, 10 Mar 2017 12:33:02 +0100 Subject: [PATCH] Use TinyMCE nightly for contenteditable false fixes --- shared/tinymce/toolbar.js | 4 ++-- shared/tinymce/wplink.js | 8 ++++---- tinymce-single/index.html | 2 +- tinymce-single/tinymce/block.js | 7 ++++--- 4 files changed, 11 insertions(+), 10 deletions(-) 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 ( '