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 634742a commit 57e2564
Showing 1 changed file with 2 additions and 4 deletions.
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 57e2564

Please sign in to comment.