fix: page version history application error (#6529)
This commit is contained in:
parent
66be0b1862
commit
d2a6307bb0
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ export const useEditor = (props: CustomEditorProps) => {
|
|||
getDocument: () => {
|
||||
const documentBinary = provider?.document ? Y.encodeStateAsUpdate(provider?.document) : null;
|
||||
const documentHTML = editor?.getHTML() ?? "<p></p>";
|
||||
const documentJSON = editor.getJSON() ?? null;
|
||||
const documentJSON = editor?.getJSON() ?? null;
|
||||
|
||||
return {
|
||||
binary: documentBinary,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue