8
0
Эх сурвалжийг харах

Merge pull request #100 from ckeditor/i/353

Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Piotrek Koszuliński 6 жил өмнө
parent
commit
ce7df1a04b

+ 4 - 1
packages/ckeditor5-undo/src/undoui.js

@@ -59,7 +59,10 @@ export default class UndoUI extends Plugin {
 
 			view.bind( 'isEnabled' ).to( command, 'isEnabled' );
 
-			this.listenTo( view, 'execute', () => editor.execute( name ) );
+			this.listenTo( view, 'execute', () => {
+				editor.execute( name );
+				editor.editing.view.focus();
+			} );
 
 			return view;
 		} );