mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-30 19:54:32 +01:00
fix: fixing pre-lanuch issues
- store post's body as markdown - stories page design changes - thick borders post details page - make text-editor toolbar sticky - fix update post api - change dropdown icons to emojis - remove vote/comments stats from postDetailsPage - remove "Type of post" component from createPostPage & replace it with back button - change insert tags placeholder text
This commit is contained in:
@@ -18,7 +18,10 @@ export default function SaveModule(props: Props) {
|
||||
|
||||
const changeCallback = useDebouncedCallback(ctx => {
|
||||
const { state } = ctx;
|
||||
onChange(getHTML(state));
|
||||
const md = getMarkdown(state);
|
||||
console.log(md);
|
||||
|
||||
onChange(md);
|
||||
}, [], 500)
|
||||
|
||||
useRemirrorContext(changeCallback)
|
||||
|
||||
Reference in New Issue
Block a user