(text)
| 395 | |
| 396 | return { |
| 397 | setValue(text) { |
| 398 | isGhostText = false; |
| 399 | view.dispatch({ |
| 400 | changes: { from: 0, to: view.state.doc.length, insert: text || "" }, |
| 401 | }); |
| 402 | }, |
| 403 | insert(text) { |
| 404 | if (!text) return; |
| 405 | view.dispatch({ changes: { from: view.state.doc.length, insert: text } }); |
nothing calls this directly
no outgoing calls
no test coverage detected