Skip to content

Commit

Permalink
Merge pull request #1497 from intellum/fix-focus-selection-issue-firefox
Browse files Browse the repository at this point in the history
Ensure the focus stays in the editor after execAction for Firefox. #1496
  • Loading branch information
rdeprey committed Jun 2, 2019
2 parents 3ac6583 + 24edffa commit 83e1872
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,12 @@
MediumEditor.util.cleanListDOM(this.options.ownerDocument, this.getSelectedParentElement());
}

// https://github.com/yabwe/medium-editor/issues/1496
// ensure the focus remains in the editor for Firefox
if (MediumEditor.util.isFF) {
MediumEditor.util.getContainerEditorElement(this.getSelectedParentElement()).focus();
}

this.checkSelection();
return result;
},
Expand Down

0 comments on commit 83e1872

Please sign in to comment.