Kaynağa Gözat

Fix: Focus the editor before executing a command

panr 5 yıl önce
ebeveyn
işleme
a50830bec9

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