Skip to content

Commit fea94e3

Browse files
committed
feat: expose getHtml() to editor api
Signed-off-by: silver <s.szmajduch@posteo.de>
1 parent 59a370a commit fea94e3

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
@@ -94,6 +94,11 @@ class TextEditorEmbed {
9494
return this
9595
}
9696

97+
getHTML() {
98+
const editor = this.#getEditorComponent()?.editor
99+
return editor?.getHTML()
100+
}
101+
97102
setSearchQuery(query, matchAll) {
98103
const editor = this.#getEditorComponent()?.editor
99104
editor?.commands.setSearchQuery(query, matchAll)

0 commit comments

Comments
 (0)