MCPcopy
hub / github.com/slab/quill / getDelta

Method getDelta

packages/quill/src/core/editor.ts:162–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 }
161
162 getDelta(): Delta {
163 return this.scroll.lines().reduce((delta, line) => {
164 return delta.concat(line.delta());
165 }, new Delta());
166 }
167
168 getFormat(index: number, length = 0): Record<string, unknown> {
169 let lines: (Block | BlockEmbed)[] = [];

Callers 12

constructorMethod · 0.95
updateMethod · 0.95
editor.spec.tsFile · 0.80
getEditorDeltaFunction · 0.80
indent.spec.tsFile · 0.80
color.spec.tsFile · 0.80
align.spec.tsFile · 0.80
link.spec.tsFile · 0.80
code.spec.tsFile · 0.80
list.spec.tsFile · 0.80
table.spec.tsFile · 0.80
header.spec.tsFile · 0.80

Calls 2

linesMethod · 0.80
deltaMethod · 0.45

Tested by 1

getEditorDeltaFunction · 0.64