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

Commit

Permalink
Fix: Focus the editor before executing a command
Browse files Browse the repository at this point in the history
  • Loading branch information
panr committed Jan 13, 2020
1 parent 73d5596 commit 96c9d55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/linkui.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ export default class LinkUI extends Plugin {
button.bind( 'isOn' ).to( linkCommand, 'value', value => !!value );

// Show the panel on button click.
this.listenTo( button, 'execute', () => this._showUI( true ) );
this.listenTo( button, 'execute', () => {
this._showUI( true );
editor.editing.view.focus();
} );

return button;
} );
Expand Down

0 comments on commit 96c9d55

Please sign in to comment.