diff --git a/src/editor.js b/src/editor.js index f1e93e1f779..3ab746fbae1 100644 --- a/src/editor.js +++ b/src/editor.js @@ -94,6 +94,11 @@ class TextEditorEmbed { return this } + getHTML() { + const editor = this.#getEditorComponent()?.editor + return editor?.getHTML() + } + setSearchQuery(query, matchAll) { const editor = this.#getEditorComponent()?.editor editor?.commands.setSearchQuery(query, matchAll)