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
This commit is contained in:
parent
962ba7c52e
commit
6d9c5ea526
@ -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
|
// Add to editor.wp
|
||||||
editor.wp = editor.wp || {};
|
editor.wp = editor.wp || {};
|
||||||
editor.wp.isPlaceholder = isPlaceholder;
|
editor.wp.isPlaceholder = isPlaceholder;
|
||||||
|
Loading…
Reference in New Issue
Block a user