Fixed problem improperly refreshing edit controls

Thanks to pmario for pointing out the problem
print-window-tiddler
Jeremy Ruston 2012-05-01 10:02:34 +01:00
rodzic e9996b7fe4
commit 12bf2b6fb9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -96,7 +96,7 @@ TextEditor.prototype.postRenderInDom = function() {
TextEditor.prototype.isRefreshable = function() { TextEditor.prototype.isRefreshable = function() {
// Don't refresh the editor if it contains the caret or selection // 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; exports["text/x-tiddlywiki"] = TextEditor;