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

Method insertString

src/trix/models/composition.js:92–96  ·  view source on GitHub ↗
(string, options)

Source from the content-addressed store, hash-verified

90 }
91
92 insertString(string, options) {
93 const attributes = this.getCurrentTextAttributes()
94 const text = Text.textForStringWithAttributes(string, attributes)
95 return this.insertText(text, options)
96 }
97
98 insertBlockBreak() {
99 const selectedRange = this.getSelectedRange()

Callers 2

insertLineBreakMethod · 0.95
insertPlaceholderMethod · 0.95

Calls 3

insertTextMethod · 0.95

Tested by

no test coverage detected