From c0f05b62775140f23ed459481f52072e51e6ed5d Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 14 Apr 2026 13:05:07 +0200 Subject: [PATCH] feat(editor): register emoji autocomplete extension --- frontend/src/components/input/editor/TipTap.vue | 3 +++ frontend/src/components/input/editor/emoji/EmojiList.vue | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/input/editor/TipTap.vue b/frontend/src/components/input/editor/TipTap.vue index e2a718ffc..d233b3e1a 100644 --- a/frontend/src/components/input/editor/TipTap.vue +++ b/frontend/src/components/input/editor/TipTap.vue @@ -170,6 +170,7 @@ import HardBreak from '@tiptap/extension-hard-break' import Commands from './commands' import suggestionSetup from './suggestion' +import {EmojiExtension} from './emoji/emojiExtension' import mentionSuggestionSetup from './mention/mentionSuggestion' import MentionUser from './mention/MentionUser.vue' @@ -515,6 +516,8 @@ const extensions : Extensions = [ suggestion: suggestionSetup(t), }), + EmojiExtension, + PasteHandler, ] diff --git a/frontend/src/components/input/editor/emoji/EmojiList.vue b/frontend/src/components/input/editor/emoji/EmojiList.vue index a08a80aeb..c5d23896b 100644 --- a/frontend/src/components/input/editor/emoji/EmojiList.vue +++ b/frontend/src/components/input/editor/emoji/EmojiList.vue @@ -12,8 +12,12 @@ > {{ item.emoji }}
-

:{{ item.shortcode }}:

-

{{ item.annotation }}

+

+ :{{ item.shortcode }}: +

+

+ {{ item.annotation }} +