Skip to content

Commit

Permalink
Merge branch 'master' into document-domain
Browse files Browse the repository at this point in the history
  • Loading branch information
rjpepmeyer committed May 4, 2021
2 parents 2fd9cc6 + 6cc7833 commit e15c651
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 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 Expand Up @@ -66,6 +69,10 @@ tinymce.PluginManager.add('codemirror', function(editor, url) {

};

// If either the .addButton.title or .addMenuItem.text changes, this will break some logic in
// the page editor for disabling buttons (save, etc) in the header.
// https://github.com/Banno/platform-ux/pull/8418/files#diff-93d7632a21b27d323a46cfd5939b6758R178

// Add a button to the button bar
editor.addButton('code', {
title: 'Source code',
Expand Down

0 comments on commit e15c651

Please sign in to comment.