Skip to content

Commit 1ad8d32

Browse files
senwang86li-xin-yi
authored andcommitted
Fix the Remirror export initialization (#356)
1 parent d4f30de commit 1ad8d32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/components/nodes/Rich.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ const MyEditor = ({
615615
setState(nextState);
616616
// TODO sync with DB and yjs
617617
if (parameter.tr?.docChanged) {
618+
setPodRichContent({
619+
id,
620+
richContent: parameter.helpers.getMarkdown(),
621+
});
618622
index_onChange += 1;
619623
if (index_onChange == 1) {
620624
if (
@@ -626,10 +630,6 @@ const MyEditor = ({
626630
}
627631
}
628632
setPodContent({ id, content: nextState.doc.toJSON() });
629-
setPodRichContent({
630-
id,
631-
richContent: parameter.helpers.getMarkdown(),
632-
});
633633
}
634634
}}
635635
>

0 commit comments

Comments
 (0)