UI - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: локальный emoji popup для комментариев деталей задач

This commit is contained in:
DCCONSTRUCTIONS
2026-04-22 20:40:13 +03:00
parent 55549219ff
commit 2ec2a4fcd3
4 changed files with 323 additions and 41 deletions
@@ -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>[];
};