Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/basecamp/trix
/ getLength
Method
getLength
src/trix/models/document.js:479–481 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
477
}
478
479
getLength() {
480
return
this.blockList.getEndPosition()
481
}
482
483
getBlocks() {
484
return
this.blockList.toArray()
Callers
10
getStringAtRange
Method · 0.95
mergeDocumentAtRange
Method · 0.45
removeTextAtRange
Method · 0.45
moveTextFromRangeToPosition
Method · 0.45
expandRangeToLineBreaksAndSplitBlocks
Method · 0.45
eachBlockAtRange
Method · 0.45
getRangeOfAttachment
Method · 0.45
findRangesForBlockAttribute
Method · 0.45
findRangesForTextAttribute
Method · 0.45
locationFromPosition
Method · 0.45
Calls
1
getEndPosition
Method · 0.80
Tested by
no test coverage detected