TinyMCE: manually fire `ExecCommand` when aligning images as we do `preventDefault()` on `BeforeExecCommand` for them. Props avryl, fixes #30565.

Built from https://develop.svn.wordpress.org/trunk@30748


git-svn-id: http://core.svn.wordpress.org/trunk@30738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-12-06 00:33:24 +00:00
parent 3826c2de6a
commit 91b8617f29
4 changed files with 9 additions and 3 deletions

View File

@ -1124,6 +1124,12 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
if ( floatingToolbar ) {
floatingToolbar.reposition();
}
editor.fire( 'ExecCommand', {
command: cmd,
ui: event.ui,
value: event.value
} );
}
});

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-beta2-30747';
$wp_version = '4.1-beta2-30748';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.