From 12bf2b6fb93e1f639fa6410d33af20cbce919f91 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 1 May 2012 10:02:34 +0100 Subject: [PATCH] Fixed problem improperly refreshing edit controls Thanks to pmario for pointing out the problem --- rabbithole/core/modules/macros/edit/editors/texteditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;