Parcourir la source

Fix: Focus the editor before executing a command

panr il y a 5 ans
Parent
commit
a50830bec9
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      packages/ckeditor5-heading/src/headingbuttonsui.js

+ 1 - 0
packages/ckeditor5-heading/src/headingbuttonsui.js

@@ -94,6 +94,7 @@ export default class HeadingButtonsUI extends Plugin {
 
 			view.on( 'execute', () => {
 				editor.execute( 'heading', { value: option.model } );
+				editor.editing.view.focus();
 			} );
 
 			return view;