Skip to content

Commit ff37bc8

Browse files
silverkszlobackportbot[bot]
authored andcommitted
feat: expose getHtml() to editor api
Signed-off-by: silver <s.szmajduch@posteo.de>
1 parent 50a058c commit ff37bc8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/editor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ class TextEditorEmbed {
9191
return this
9292
}
9393

94+
getHTML() {
95+
const editor = this.#getEditorComponent()?.editor
96+
return editor?.getHTML()
97+
}
98+
9499
setSearchQuery(query, matchAll) {
95100
const editor = this.#getEditorComponent()?.$editor
96101
editor.commands.setSearchQuery(query, matchAll)

0 commit comments

Comments
 (0)