Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/basecamp/trix
/ getTextAtIndex
Method
getTextAtIndex
src/trix/models/document.js:460–462 ·
view source on GitHub ↗
(index)
Source
from the content-addressed store, hash-verified
458
}
459
460
getTextAtIndex(index) {
461
return
this.getBlockAtIndex(index)?.text
462
}
463
464
getTextAtPosition(position) {
465
const
{ index } = this.locationFromPosition(position)
Callers
7
updateAttributesForAttachment
Method · 0.95
getTextAtPosition
Method · 0.95
getPieceAtPosition
Method · 0.95
getCharacterAtPosition
Method · 0.95
getRangeOfCommonAttributeAtPosition
Method · 0.95
assertions.js
File · 0.80
trix.js
File · 0.80
Calls
1
getBlockAtIndex
Method · 0.95
Tested by
no test coverage detected