Fix diagram navigation and token highlighting
This commit is contained in:
1 parent
7ed885f0d1
commit
7aa729d41e
6 files changed
+354
-63
No files matched your search
@@ -33,6 +33,7 @@ function addTab(o) {
|
||||
t.ed = makeEditor(t);
|
||||
t.ed.onInput = function () { onEdit(t); };
|
||||
t.ed.onCaret = updatePos;
|
||||
t.ed.onPick = function () { if (t.kind === 'input') focusDiagramAt(t); };
|
||||
setEditorText(t.ed, o.text);
|
||||
$('editors').appendChild(t.ed.root);
|
||||
S.tabs.push(t);
|
||||
|
||||
Reference in new issue
Block a user