diff --git a/src/editor.js b/src/editor.js index 26b15268d14..0976e2c440d 100644 --- a/src/editor.js +++ b/src/editor.js @@ -91,6 +91,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)