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

Method getTextAtIndex

src/trix/models/document.js:460–462  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

458 }
459
460 getTextAtIndex(index) {
461 return this.getBlockAtIndex(index)?.text
462 }
463
464 getTextAtPosition(position) {
465 const { index } = this.locationFromPosition(position)

Callers 7

getTextAtPositionMethod · 0.95
getPieceAtPositionMethod · 0.95
assertions.jsFile · 0.80
trix.jsFile · 0.80

Calls 1

getBlockAtIndexMethod · 0.95

Tested by

no test coverage detected