Skip to content

dsh-overleaf v0.2.8

Choose a tag to compare

@gychen-NJU gychen-NJU released this 28 Aug 14:07
· 14 commits to main since this release

Fix: locate the CodeMirror 6 EditorView (assist panel insert/outline restored)

The assist panel silently found no editor: Overleaf edits with CodeMirror 6, whose DOM handle lives under the cmView key of the .cm-editor node - but that field is a ContentView wrapper, and the EditorView itself sits on its .view property. The probe validated the wrapper object (no state/dispatch) and gave up, so caret insert and outline extraction did nothing.

  • findCm6 unwraps up to four .view hops per candidate, probes every own property of editor DOM nodes as a last resort, and accepts an object only when it has state.doc + dispatch.
  • Also fixed a template-literal regression (backticks inside the bridge comment) found by the build.
  • Version 0.2.8.