fix: getHTMLFromFragment now expects a fragment instead of node

This commit is contained in:
Philipp Kühn
2021-09-28 21:34:57 +02:00
parent 50b6e6c1c6
commit 2c9cf03398
3 changed files with 7 additions and 7 deletions

View File

@@ -397,7 +397,7 @@ export class Editor extends EventEmitter {
* Get the document as HTML.
*/
public getHTML(): string {
return getHTMLFromFragment(this.state.doc, this.schema)
return getHTMLFromFragment(this.state.doc.content, this.schema)
}
/**