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

Method getStringAtPosition

src/trix/models/text.js:133–135  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

131 }
132
133 getStringAtPosition(position) {
134 return this.getStringAtRange([ position, position + 1 ])
135 }
136
137 startsWithString(string) {
138 return this.getStringAtRange([ 0, string.length ]) === string

Callers 4

constructorMethod · 0.80
removeTextAtRangeMethod · 0.80
trix.jsFile · 0.80
constructorMethod · 0.80

Calls 1

getStringAtRangeMethod · 0.95

Tested by

no test coverage detected