UI - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: локальный emoji popup для комментариев деталей задач
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
||||
MinusSquare,
|
||||
Palette,
|
||||
AlignCenter,
|
||||
SmilePlus,
|
||||
} from "lucide-react";
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import { LinkIcon } from "@plane/propel/icons";
|
||||
@@ -37,6 +38,7 @@ import {
|
||||
insertHorizontalRule,
|
||||
insertImage,
|
||||
insertTableCommand,
|
||||
openEmojiPicker,
|
||||
setLinkEditor,
|
||||
setText,
|
||||
setTextAlign,
|
||||
@@ -255,6 +257,14 @@ export const TextAlignItem = (editor: Editor): EditorMenuItem<"text-align"> => (
|
||||
icon: AlignCenter,
|
||||
});
|
||||
|
||||
export const EmojiItem = (editor: Editor): EditorMenuItem<"emoji"> => ({
|
||||
key: "emoji",
|
||||
name: "Emoji",
|
||||
isActive: () => false,
|
||||
command: () => openEmojiPicker(editor),
|
||||
icon: SmilePlus,
|
||||
});
|
||||
|
||||
export const getEditorMenuItems = (editor: Editor | null): EditorMenuItem<TEditorCommands>[] => {
|
||||
if (!editor) return [];
|
||||
|
||||
@@ -282,5 +292,6 @@ export const getEditorMenuItems = (editor: Editor | null): EditorMenuItem<TEdito
|
||||
TextColorItem(editor),
|
||||
BackgroundColorItem(editor),
|
||||
TextAlignItem(editor),
|
||||
EmojiItem(editor),
|
||||
] as EditorMenuItem<TEditorCommands>[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user