kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fixed problem improperly refreshing edit controls
Thanks to pmario for pointing out the problemprint-window-tiddler
rodzic
e9996b7fe4
commit
12bf2b6fb9
|
@ -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;
|
||||||
|
|
Ładowanie…
Reference in New Issue