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

Method getTextWithoutBlockBreak

src/trix/models/block.js:232–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 }
231
232 getTextWithoutBlockBreak() {
233 if (textEndsInBlockBreak(this.text)) {
234 return this.text.getTextAtRange([ 0, this.getBlockBreakPosition() ])
235 } else {
236 return this.text.copy()
237 }
238 }
239
240 // Grouping
241

Callers 4

consolidateWithMethod · 0.95
mergeDocumentAtRangeMethod · 0.45

Calls 4

getBlockBreakPositionMethod · 0.95
textEndsInBlockBreakFunction · 0.85
getTextAtRangeMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected