fix: initial content of contentEditor

This commit is contained in:
MTG2000
2022-06-15 21:16:02 +03:00
parent 6cfaa8e354
commit fd84860601

View File

@@ -96,24 +96,11 @@ export default function ContentEditor({ placeholder, initialContent, name }: Pro
});
const initContent = `## hello
how are you doing man
what's up with this face of yours
`.replace(/\n(?=\n)/g, "\n\n<br/>\n");
console.log(initContent);
return (
<div className={`remirror-theme ${styles.wrapper} bg-white`}>
<Remirror
manager={manager}
initialContent={initContent}
initialContent={initialContent}
>
<TextEditorComponents.SaveModule name={name} />
<Toolbar />