Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #140 from ckeditor/i/353
Browse files Browse the repository at this point in the history
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
  • Loading branch information
Reinmar authored Jan 28, 2020
2 parents 94fbca7 + a065435 commit 2495b81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/headingbuttonsui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2495b81

Please sign in to comment.