Insert plain text at a ProseMirror doc position (simulates typing).
(pos, text)
| 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. */ |
nothing calls this directly
no outgoing calls
no test coverage detected