Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Oct 24, 2024
1 parent 709b180 commit 33762ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/plate-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import {
someNode,
} from '@udecode/plate-common';
import {
createPlateEditor,
ParagraphPlugin,
Plate,
PlateLeaf,
usePlateEditor,
} from '@udecode/plate-common/react';
import { DndPlugin } from '@udecode/plate-dnd';
import { DocxPlugin } from '@udecode/plate-docx';
Expand Down Expand Up @@ -164,7 +164,7 @@ export default function PlateEditor() {
}

export const useMyEditor = () => {
const editor = createPlateEditor({
return usePlateEditor({
plugins: [
// Nodes
HeadingPlugin,
Expand Down Expand Up @@ -450,6 +450,4 @@ export const useMyEditor = () => {
},
],
});

return editor;
};

0 comments on commit 33762ff

Please sign in to comment.