Skip to content

Commit

Permalink
setHTML -> setMarkdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoov committed May 16, 2024
1 parent 04c9945 commit 456c8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default function BoardJobWriteSection({ postId }: { postId: number }) {
region: savedPost.region,
position: savedPost.position,
});
editorRef.current?.getInstance().setHTML(savedPost.body ?? '');
editorRef.current?.getInstance().setMarkdown(savedPost.body ?? '');
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [savedPost]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default function BoardNormalWriteSection({ boardType, postId }: { boardTy
body: savedPost.body ?? '',
fileList: savedPost.fileList ?? [],
});
editorRef.current?.getInstance().setHTML(savedPost.body ?? '');
editorRef.current?.getInstance().setMarkdown(savedPost.body ?? '');
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [savedPost]);
Expand Down

0 comments on commit 456c8a7

Please sign in to comment.