Reference
ts
import { DocumentModel } from '@adecore/editor-core';DocumentModel
| Group | Members | Guide |
|---|---|---|
| Text | getText, getLength, getLineCount, getLine, slice, positionAt, offsetAt | Documents |
| Selections | getSelections, getSelectionCount, getPrimary, setSelections, expandSelectionTo, occurrencesExhausted | Documents |
| Edits | applyEdits, setText, undo, redo, getRevision | Documents |
| State | getSnapshot, subscribe | Documents |
| Saving | markSaved, getModifiedLines, cleanUpWhitespace | Documents |
| Commands | typeText, paste, execute, wordSelectionAt, wordStartBefore, wordEndAfter | Typing and commands |
| Search | find, findNext, replace, replaceAll, replaceMatches | Search |
| Folding | getFoldingRanges | Folding |
| Lexical | matchBracket, placeAt, postfixOperands, surroundShape, unwrapTargets, findTodos | Lexical queries |
@adecore/editor-core
Every name the package exports, read from its source. Anything not listed is internal.