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

Method getTextAtPosition

src/trix/models/document.js:464–467  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

462 }
463
464 getTextAtPosition(position) {
465 const { index } = this.locationFromPosition(position)
466 return this.getTextAtIndex(index)
467 }
468
469 getPieceAtPosition(position) {
470 const { index, offset } = this.locationFromPosition(position)

Callers

nothing calls this directly

Calls 2

locationFromPositionMethod · 0.95
getTextAtIndexMethod · 0.95

Tested by

no test coverage detected