TinyMCE: remove blocking of commands on placeholder images. Breaks some execCommand.
Props iseulde. Fixes #31571. Built from https://develop.svn.wordpress.org/trunk@31738 git-svn-id: http://core.svn.wordpress.org/trunk@31719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce297a7227
commit
8b53e5470d
|
@ -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;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-alpha-31737';
|
$wp_version = '4.2-alpha-31738';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue