Skip to content

Commit

Permalink
chore: remove file handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan1437 committed Sep 13, 2024
1 parent 5a95486 commit 2e1745e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SideMenuExtension, SlashCommand } from "@/extensions";
import { EditorRefApi, IRichTextEditor } from "@/types";

const RichTextEditor = (props: IRichTextEditor) => {
const { dragDropEnabled, fileHandler } = props;
const { dragDropEnabled } = props;

const getExtensions = useCallback(() => {
const extensions = [SlashCommand()];
Expand All @@ -21,7 +21,7 @@ const RichTextEditor = (props: IRichTextEditor) => {
);

return extensions;
}, [dragDropEnabled, fileHandler.upload]);
}, [dragDropEnabled]);

return (
<EditorWrapper {...props} extensions={getExtensions()}>
Expand Down

0 comments on commit 2e1745e

Please sign in to comment.