mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-02 00:00:15 +00:00
TinyMCE: manually fire ExecCommand when aligning images as we do preventDefault() on BeforeExecCommand for them. Props avryl, fixes #30565.
git-svn-id: https://develop.svn.wordpress.org/trunk@30748 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -335,7 +335,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
||||
editor.on( 'init', function() {
|
||||
editor.dom.bind( editor.getWin(), 'scroll', hide );
|
||||
});
|
||||
|
||||
|
||||
editor.on( 'blur hide', hide );
|
||||
|
||||
// 119 = F8
|
||||
@@ -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
|
||||
} );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user