diff --git a/rabbithole/core/modules/macros/edit/editors/texteditor.js b/rabbithole/core/modules/macros/edit/editors/texteditor.js index fa7a2412d..25ca37f37 100644 --- a/rabbithole/core/modules/macros/edit/editors/texteditor.js +++ b/rabbithole/core/modules/macros/edit/editors/texteditor.js @@ -96,7 +96,7 @@ TextEditor.prototype.postRenderInDom = function() { TextEditor.prototype.isRefreshable = function() { // Don't refresh the editor if it contains the caret or selection - return !window.getSelection().containsNode(this.macroNode.domNode, true); + return document.activeElement !== this.macroNode.children[0].domNode; }; exports["text/x-tiddlywiki"] = TextEditor;