MCPcopy
hub / github.com/basecamp/trix / insertString

Function insertString

src/test/test_helpers/editor_helpers.js:4–7  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

2import Attachment from "trix/models/attachment"
3
4export const insertString = function (string) {
5 getComposition().insertString(string)
6 render()
7}
8
9export const insertText = function (text) {
10 getComposition().insertText(text)

Callers 4

trix.jsFile · 0.85

Calls 2

renderFunction · 0.70
insertStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…