Kaynağa Gözat

Other: Focus editing view after execution of the alignment button.

Maciej Gołaszewski 8 yıl önce
ebeveyn
işleme
5cdb0952e7

+ 4 - 1
packages/ckeditor5-alignment/src/alignmentui.js

@@ -124,7 +124,10 @@ export default class AlignmentUI extends Plugin {
 			buttonView.bind( 'isOn', 'isEnabled' ).to( command, 'value', 'isEnabled' );
 
 			// Execute command.
-			this.listenTo( buttonView, 'execute', () => editor.execute( commandName ) );
+			this.listenTo( buttonView, 'execute', () => {
+				editor.execute( commandName );
+				editor.editing.view.focus();
+			} );
 
 			return buttonView;
 		} );