|
|
@@ -92,7 +92,10 @@ export default class ImageStyleUI extends Plugin {
|
|
|
view.bind( 'isEnabled' ).to( command, 'isEnabled' );
|
|
|
view.bind( 'isOn' ).to( command, 'value', value => value === style.name );
|
|
|
|
|
|
- this.listenTo( view, 'execute', () => editor.execute( 'imageStyle', { value: style.name } ) );
|
|
|
+ this.listenTo( view, 'execute', () => {
|
|
|
+ editor.execute( 'imageStyle', { value: style.name } );
|
|
|
+ editor.editing.view.focus();
|
|
|
+ } );
|
|
|
|
|
|
return view;
|
|
|
} );
|