Skip to content

Commit

Permalink
Fix issue with firefox/codemirror
Browse files Browse the repository at this point in the history
  • Loading branch information
rjpepmeyer committed Mar 11, 2021
1 parent 2cb7dab commit 2109676
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/codemirror/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ tinymce.PluginManager.add('codemirror', function(editor, url) {

function showSourceEditor() {
// Insert caret marker
if (document && document.activeElement) {
document.activeElement.blur();
}
editor.focus();
editor.selection.collapse(true);
// Preserve deliberate line-spacing at the caret position
Expand Down

0 comments on commit 2109676

Please sign in to comment.