Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Apr 7, 2024
1 parent 5181033 commit 65f4f0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion with-nextjs/components/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface MyEditorProps {
}

const CoreEditor: React.FC<MyEditorProps> = ({ onChange, initialContent }) => {
const { manager } = useRemirror({ extensions: () => [new BoldExtension()] });
const { manager } = useRemirror({ extensions: () => [new BoldExtension({})] });
return (
<div style={{ width: "100%", maxWidth: "500px" }}>
<Remirror
Expand Down
8 changes: 4 additions & 4 deletions with-vite/src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import {
} from "@remirror/react";

const extensions = () => [
new HeadingExtension(),
new BoldExtension(),
new ItalicExtension(),
new UnderlineExtension(),
new HeadingExtension({}),
new BoldExtension({}),
new ItalicExtension({}),
new UnderlineExtension({}),
];

function EditorToolbar() {
Expand Down

0 comments on commit 65f4f0f

Please sign in to comment.