<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Editor`](Editor) ## Editor class A common interface that bridges the gap between CodeMirror 5 and CodeMirror 6. **Signature:** ```typescript export abstract class Editor ``` ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [`blur()`](Editor/blur) | <code>abstract</code> | | | [`exec(command)`](Editor/exec) | <code>abstract</code> | | | [`focus()`](Editor/focus) | <code>abstract</code> | | | [`getCursor(string)`](Editor/getCursor) | <code>abstract</code> | | | [`getDoc()`](Editor/getDoc) | | | | [`getLine(line)`](Editor/getLine) | <code>abstract</code> | Get the text at line (0-indexed) | | [`getRange(from, to)`](Editor/getRange) | <code>abstract</code> | | | [`getScrollInfo()`](Editor/getScrollInfo) | <code>abstract</code> | | | [`getSelection()`](Editor/getSelection) | <code>abstract</code> | | | [`getValue()`](Editor/getValue) | <code>abstract</code> | | | [`hasFocus()`](Editor/hasFocus) | <code>abstract</code> | | | [`lastLine()`](Editor/lastLine) | <code>abstract</code> | | | [`lineCount()`](Editor/lineCount) | <code>abstract</code> | Gets the number of lines in the document | | [`listSelections()`](Editor/listSelections) | <code>abstract</code> | | | [`offsetToPos(offset)`](Editor/offsetToPos) | <code>abstract</code> | | | [`posToOffset(pos)`](Editor/posToOffset) | <code>abstract</code> | | | [`processLines(read, write, ignoreEmpty)`](Editor/processLines) | | | | [`redo()`](Editor/redo) | <code>abstract</code> | | | [`refresh()`](Editor/refresh) | <code>abstract</code> | | | [`replaceRange(replacement, from, to, origin)`](Editor/replaceRange) | <code>abstract</code> | | | [`replaceSelection(replacement, origin)`](Editor/replaceSelection) | <code>abstract</code> | | | [`scrollIntoView(range, center)`](Editor/scrollIntoView) | <code>abstract</code> | | | [`scrollTo(x, y)`](Editor/scrollTo) | <code>abstract</code> | | | [`setCursor(pos, ch)`](Editor/setCursor) | | | | [`setLine(n, text)`](Editor/setLine) | | | | [`setSelection(anchor, head)`](Editor/setSelection) | <code>abstract</code> | | | [`setSelections(ranges, main)`](Editor/setSelections) | <code>abstract</code> | | | [`setValue(content)`](Editor/setValue) | <code>abstract</code> | | | [`somethingSelected()`](Editor/somethingSelected) | | | | [`transaction(tx, origin)`](Editor/transaction) | <code>abstract</code> | | | [`undo()`](Editor/undo) | <code>abstract</code> | | | [`wordAt(pos)`](Editor/wordAt) | <code>abstract</code> | |