Skip to content

Commit

Permalink
Merge pull request #12 from Banno/firefox-span-bug
Browse files Browse the repository at this point in the history
Fix issue with firefox/codemirror CONTENT-915
  • Loading branch information
jivewise authored Mar 16, 2021
2 parents 2cb7dab + 2109676 commit 6cc7833
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 6cc7833

Please sign in to comment.