Explorar o código

Fix: Focus the editor before executing a command

panr %!s(int64=6) %!d(string=hai) anos
pai
achega
da721cc594
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      packages/ckeditor5-undo/src/undoui.js

+ 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;
 		} );