diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 09b7461..b5056a1 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -81,11 +81,16 @@ // if debugSyntaxTree prop is set, display syntax tree for debugging if (this.debugSyntaxTree) { setInterval(() => { + const cursorPos = this.editor.view.state.selection.main.head function render(tree) { let lists = '' tree.iterate({ enter(type) { - lists += `