diff --git a/src/commandOrchestrator.ts b/src/commandOrchestrator.ts index b76aad7e..28f97ec1 100644 --- a/src/commandOrchestrator.ts +++ b/src/commandOrchestrator.ts @@ -24,6 +24,10 @@ export class TextAreaTextApi implements TextApi { this.textArea.selectionEnd = selection.end; return getStateFromTextArea(this.textArea); } + + getState(): TextState { + return getStateFromTextArea(this.textArea); + } } export function getStateFromTextArea(textArea: HTMLTextAreaElement): TextState {