diff --git a/packages/editor/src/ce/extensions/document-extensions.tsx b/packages/editor/src/ce/extensions/document-extensions.tsx index efb6618db..57583e60a 100644 --- a/packages/editor/src/ce/extensions/document-extensions.tsx +++ b/packages/editor/src/ce/extensions/document-extensions.tsx @@ -1,11 +1,8 @@ -import { LayersIcon } from "lucide-react"; import { SlashCommand } from "@/extensions"; // hooks import { TFileHandler } from "@/hooks/use-editor"; // plane editor types import { TIssueEmbedConfig } from "@/plane-editor/types"; -// types -import { ISlashCommandItem } from "@/types"; type Props = { fileHandler: TFileHandler; @@ -15,27 +12,7 @@ type Props = { export const DocumentEditorAdditionalExtensions = (props: Props) => { const { fileHandler } = props; - const slashCommandAdditionalOptions: ISlashCommandItem[] = [ - { - key: "issue_embed", - title: "Issue embed", - description: "Embed an issue from the project.", - searchTerms: ["issue", "link", "embed"], - icon: , - command: ({ editor, range }) => { - editor - .chain() - .focus() - .insertContentAt( - range, - "

#issue_

" - ) - .run(); - }, - }, - ]; - - const extensions = [SlashCommand(fileHandler.upload, slashCommandAdditionalOptions)]; + const extensions = [SlashCommand(fileHandler.upload)]; return extensions; };