Skip to content

Commit

Permalink
Fix the Remirror export initialization (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
senwang86 committed Jul 4, 2023
1 parent 8f2054b commit 362100e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/components/nodes/Rich.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@ const MyEditor = ({
setState(nextState);
// TODO sync with DB and yjs
if (parameter.tr?.docChanged) {
setPodRichContent({
id,
richContent: parameter.helpers.getMarkdown(),
});
index_onChange += 1;
if (index_onChange == 1) {
if (
Expand All @@ -626,10 +630,6 @@ const MyEditor = ({
}
}
setPodContent({ id, content: nextState.doc.toJSON() });
setPodRichContent({
id,
richContent: parameter.helpers.getMarkdown(),
});
}
}}
>
Expand Down

0 comments on commit 362100e

Please sign in to comment.