Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
coolov committed Jan 25, 2024
1 parent ab988e9 commit ed1c32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Menu() {

const toggleBold = useEditorEventCallback((view) => {
if (!view) return;
const toggleBoldMark = toggleMark(view.state.schema.marks["bold"]);
const toggleBoldMark = toggleMark(view.state.schema.marks["strong"]);
toggleBoldMark(view.state, view.dispatch, view);
});

Expand Down

0 comments on commit ed1c32a

Please sign in to comment.