From 6d9c5ea5263e218333eef7d909c89981944f594d Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 11 Mar 2015 23:32:44 +0000 Subject: [PATCH] TinyMCE: remove blocking of commands on placeholder images. Breaks some execCommand. Props iseulde. Fixes #31571. git-svn-id: https://develop.svn.wordpress.org/trunk@31738 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js b/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js index af9d5272c2..a30b034291 100644 --- a/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js @@ -961,12 +961,6 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) { } }); - editor.on( 'beforeexeccommand', function( event ) { - if ( isPlaceholder( editor.selection.getNode() ) ) { - event.preventDefault(); - } - } ); - // Add to editor.wp editor.wp = editor.wp || {}; editor.wp.isPlaceholder = isPlaceholder;