Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit f56cc26

Browse files
authored
Merge pull request #100 from ckeditor/i/353
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
2 parents 6ce1985 + dd87f83 commit f56cc26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/undoui.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ export default class UndoUI extends Plugin {
5959

6060
view.bind( 'isEnabled' ).to( command, 'isEnabled' );
6161

62-
this.listenTo( view, 'execute', () => editor.execute( name ) );
62+
this.listenTo( view, 'execute', () => {
63+
editor.execute( name );
64+
editor.editing.view.focus();
65+
} );
6366

6467
return view;
6568
} );

0 commit comments

Comments
 (0)