Skip to content

Commit

Permalink
Update Menu.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
coolov committed Jan 26, 2024
1 parent ed1c32a commit ac2bc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export default function Menu() {

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

return (
Expand Down

0 comments on commit ac2bc9a

Please sign in to comment.