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

Method getBlockAtIndex

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

Source from the content-addressed store, hash-verified

449 }
450
451 getBlockAtIndex(index) {
452 return this.blockList.getObjectAtIndex(index)
453 }
454
455 getBlockAtPosition(position) {
456 const { index } = this.locationFromPosition(position)

Callers 15

isEmptyMethod · 0.95
mergeDocumentAtRangeMethod · 0.95
removeTextAtRangeMethod · 0.95
getBlockAtPositionMethod · 0.95
getTextAtIndexMethod · 0.95
eachBlockAtRangeMethod · 0.95
decreaseListLevelMethod · 0.80
getPreviousBlockMethod · 0.80
getBlockMethod · 0.80
constructorMethod · 0.80

Calls 1

getObjectAtIndexMethod · 0.80

Tested by

no test coverage detected