mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-03 04:13:49 +00:00
Change arrow-function to function call for HTA (#7552)
This commit is contained in:
parent
6bb0da07dc
commit
16ef1d84cd
@ -161,7 +161,7 @@ function CodeMirrorEngine(options) {
|
|||||||
if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {
|
if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {
|
||||||
cm.state.draggingText(event);
|
cm.state.draggingText(event);
|
||||||
// Ensure the editor is re-focused
|
// Ensure the editor is re-focused
|
||||||
setTimeout(() => cm.display.input.focus(), 20);
|
setTimeout(function() {cm.display.input.focus();}, 20);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@ -173,13 +173,13 @@ function CodeMirrorEngine(options) {
|
|||||||
}
|
}
|
||||||
cm.setCursor(cm.coordsChar({left:event.pageX,top:event.pageY}));
|
cm.setCursor(cm.coordsChar({left:event.pageX,top:event.pageY}));
|
||||||
if (selected) {
|
if (selected) {
|
||||||
for (var i = 0; i < selected.length; ++i) {
|
for (var i = 0; i < selected.length; ++i) {
|
||||||
replaceRange(cm.doc, "", selected[i].anchor, selected[i].head, "drag");
|
replaceRange(cm.doc, "", selected[i].anchor, selected[i].head, "drag");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cm.replaceSelection(text, "around", "paste");
|
cm.replaceSelection(text, "around", "paste");
|
||||||
cm.display.input.focus();
|
cm.display.input.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(e){}
|
catch(e){}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user