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

Method getBlock

src/trix/models/composition.js:765–770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

763 }
764
765 getBlock() {
766 const locationRange = this.getLocationRange()
767 if (locationRange) {
768 return this.document.getBlockAtIndex(locationRange[0].index)
769 }
770 }
771
772 getAttachmentAtRange(range) {
773 const document = this.document.getDocumentAtRange(range)

Callers 11

deleteInDirectionMethod · 0.95
decreaseNestingLevelMethod · 0.95
increaseNestingLevelMethod · 0.95
decreaseListLevelMethod · 0.95
ifFunction · 0.80
trix.jsFile · 0.80

Calls 2

getLocationRangeMethod · 0.95
getBlockAtIndexMethod · 0.80

Tested by

no test coverage detected