Make WordPress Core

Changeset 30748


Ignore:
Timestamp:
12/06/2014 12:32:18 AM (12 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r30560 r30748  
    336336                editor.dom.bind( editor.getWin(), 'scroll', hide );
    337337        });
    338        
     338
    339339        editor.on( 'blur hide', hide );
    340340
     
    11251125                                floatingToolbar.reposition();
    11261126                        }
     1127
     1128                        editor.fire( 'ExecCommand', {
     1129                                command: cmd,
     1130                                ui: event.ui,
     1131                                value: event.value
     1132                        } );
    11271133                }
    11281134        });
Note: See TracChangeset for help on using the changeset viewer.