瀏覽代碼

Fix: Focus the editor before executing a command

panr 5 年之前
父節點
當前提交
a50830bec9
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;