MCPcopy Create free account
hub / github.com/editablejs/editable / insertText

Function insertText

packages/models/src/transforms/insert-text.ts:8–13  ·  view source on GitHub ↗
(editor: Editor, text: string, options: TextInsertTextOptions = {})

Source from the content-addressed store, hash-verified

6const { insertText: defaultInsertText } = Transforms
7
8export const insertText = (editor: Editor, text: string, options: TextInsertTextOptions = {}) => {
9 const { at = editor.selection } = options
10 if (handleInserInGrid(editor, at)) {
11 defaultInsertText(editor, text, options)
12 }
13}

Callers

nothing calls this directly

Calls 1

handleInserInGridFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…