Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
isEmpty
Method · 0.95
mergeDocumentAtRange
Method · 0.95
removeTextAtRange
Method · 0.95
getBlockAtPosition
Method · 0.95
getTextAtIndex
Method · 0.95
eachBlockAtRange
Method · 0.95
getCommonAttributesAtPosition
Method · 0.95
getBaseBlockAttributes
Method · 0.95
decreaseListLevel
Method · 0.80
getPreviousBlock
Method · 0.80
getBlock
Method · 0.80
constructor
Method · 0.80
Calls
1
getObjectAtIndex
Method · 0.80
Tested by
no test coverage detected