MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / insertAt

Function insertAt

test/test-markdown-editor-edit-diff.js:69–71  ·  view source on GitHub ↗

Insert plain text at a ProseMirror doc position (simulates typing).

(pos, text)

Source from the content-addressed store, hash-verified

67 editor,
68 /** Insert plain text at a ProseMirror doc position (simulates typing). */
69 insertAt(pos, text) {
70 editor.chain().focus().insertContentAt(pos, text).run();
71 },
72 /** Replace a text fragment in the document. Searches by visible text
73 * content; if the search string isn't found verbatim (e.g. it spans
74 * inline-code boundaries), falls back to the longest matching prefix. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected