diff --git a/with-nextjs/components/editor.tsx b/with-nextjs/components/editor.tsx index 12e1b97..006e066 100644 --- a/with-nextjs/components/editor.tsx +++ b/with-nextjs/components/editor.tsx @@ -30,7 +30,7 @@ interface MyEditorProps { } const CoreEditor: React.FC = ({ onChange, initialContent }) => { - const { manager } = useRemirror({ extensions: () => [new BoldExtension()] }); + const { manager } = useRemirror({ extensions: () => [new BoldExtension({})] }); return (
[ - new HeadingExtension(), - new BoldExtension(), - new ItalicExtension(), - new UnderlineExtension(), + new HeadingExtension({}), + new BoldExtension({}), + new ItalicExtension({}), + new UnderlineExtension({}), ]; function EditorToolbar() {