Skip to content

Commit 3526f2a

Browse files
committed
refer to the now-global CPO.editor
1 parent 281a831 commit 3526f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/js/cpo-main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@
550550
return;
551551
}
552552
// http://stackoverflow.com/questions/23733455/inserting-a-new-text-at-given-cursor-position
553-
var cm = editor.cm;
553+
var cm = CPO.editor.cm;
554554
var doc = cm.getDoc();
555555
function placeInEditor(str) {
556556
var cursor = doc.getCursor();

0 commit comments

Comments
 (0)