From dbd77561630ebce63e27646c0a65962f6d21cc03 Mon Sep 17 00:00:00 2001
From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com>
Date: Thu, 27 Jun 2024 16:24:52 +0530
Subject: [PATCH] fix: issue embed option in slash command (#4938)
---
.../src/ce/extensions/document-extensions.tsx | 25 +------------------
1 file changed, 1 insertion(+), 24 deletions(-)
diff --git a/packages/editor/src/ce/extensions/document-extensions.tsx b/packages/editor/src/ce/extensions/document-extensions.tsx
index efb6618db1..57583e60a2 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:
#issue_
" - ) - .run(); - }, - }, - ]; - - const extensions = [SlashCommand(fileHandler.upload, slashCommandAdditionalOptions)]; + const extensions = [SlashCommand(fileHandler.upload)]; return extensions; };