Skip to content

Commit cffb276

Browse files
authored
Merge pull request #8080 from nextcloud/expose-getHtml-for-texteditorember
fix: expose getHtml() to editor api
2 parents 1704afe + fea94e3 commit cffb276

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)