[PR #24704] [MERGED] feat: add emoji picker button to rich text formatting toolbar #115103

Closed
opened 2026-05-18 16:03:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24704
Author: @silentoplayz
Created: 5/14/2026
Status: Merged
Merged: 5/15/2026
Merged by: @tjbck

Base: devHead: feat/rich-text-emoji-picker


📝 Commits (1)

  • e541d25 feat(ui): add emoji picker to rich text formatting toolbar

📊 Changes

1 file changed (+26 additions, -0 deletions)

View changed files

📝 src/lib/components/common/RichTextInput/FormattingButtons.svelte (+26 -0)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.

This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.

Before submitting, make sure you've checked the following:

  • Linked Issue/Discussion: This PR references an existing Issue or DiscussionRelates to discussion post https://github.com/open-webui/open-webui/discussions/24703.
  • Target branch: The pull request targets the dev branch. PRs targeting main will be immediately closed.
  • Description: A concise description of the changes is provided below.
  • Changelog: A changelog entry following Keep a Changelog format is included at the bottom.
  • Documentation: Relevant documentation has been added or updated in the Open WebUI Docs Repository.
  • Dependencies: Any new or updated dependencies are explained, tested, and documented.
  • Testing: Manual tests have been performed to verify the fix/feature works correctly and does not introduce regressions. Screenshots or recordings are included where applicable.
  • No Unchecked AI Code: This PR is either human-written or has undergone thorough human review AND manual testing. Unreviewed AI-generated PRs may be closed immediately.
  • Self-Review: A self-review of the code has been performed, ensuring adherence to project coding standards.
  • Architecture: Smart defaults are preferred over new settings. Local state is used for ephemeral UI logic. Major architectural or UX changes have been discussed first.
  • Git Hygiene: The PR is atomic (one logical change), rebased on dev, and contains no unrelated commits.
  • Title Prefix: The PR title uses one of the following prefixes:
    • feat: New features or enhancements

Changelog Entry

Description

  • Added an emoji picker button to the rich text formatting toolbar for chat input. This enhancement allows users to easily insert emojis while using the rich text input mode, improving consistency with other emoji-enabled areas of the application.

Added

  • Emoji picker button in FormattingButtons.svelte within the rich text editor.
  • Logic to resolve and insert actual Unicode emoji characters from shortcodes using the shortCodesToEmojis store.

Changed

  • Updated FormattingButtons.svelte to include the EmojiPicker component.

Additional Information

Screenshots or Videos

Screenshots:
image
image

Manual Verification Performed

  1. Enabled "Rich Text Input for Chat" and "Show Formatting Toolbar" in User Settings.
  2. Verified the presence of the FaceSmile icon at the far right of the formatting toolbar (visible on text selection or empty line depending on Tiptap configuration).
  3. Selected an emoji from the picker and confirmed it inserts correctly at the cursor.
  4. Verified that skin-toned emojis and other complex Unicode sequences are handled correctly.

Contributor License Agreement

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/24704 **Author:** [@silentoplayz](https://github.com/silentoplayz) **Created:** 5/14/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feat/rich-text-emoji-picker` --- ### 📝 Commits (1) - [`e541d25`](https://github.com/open-webui/open-webui/commit/e541d25d62dca7e62217a6e58994d4ddcf6e2eef) feat(ui): add emoji picker to rich text formatting toolbar ### 📊 Changes **1 file changed** (+26 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/common/RichTextInput/FormattingButtons.svelte` (+26 -0) </details> ### 📄 Description <!-- ⚠️ CRITICAL CHECKS FOR CONTRIBUTORS (READ, DON'T DELETE) ⚠️ 1. Target the `dev` branch. PRs targeting `main` will be automatically closed. 2. Do NOT delete the CLA section at the bottom. It is required for the bot to accept your PR. --> # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request. This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR. <!-- ### ⚠️ Important: Your PR is a contribution, not a guarantee of merge. The most impactful way to contribute to Open WebUI is through well-written bug reports, detailed feature discussions, and thoughtful ideas. These directly shape the project. If you do open a pull request, please know that Open WebUI is held to the highest standard of code quality, consistency, and architectural coherence, and every line merged becomes something the core team must own, maintain, and support indefinitely. Submitted code may be refactored, rewritten, or used as inspiration for a different implementation. This is not a reflection of your work's quality. It is how we ensure that a small team can deeply understand and evolve every part of the codebase. --> **Before submitting, make sure you've checked the following:** - [x] **Linked Issue/Discussion:** This PR references an existing [Issue](https://github.com/open-webui/open-webui/issues) or [Discussion](https://github.com/open-webui/open-webui/discussions) — `Relates to discussion post https://github.com/open-webui/open-webui/discussions/24703`. - [x] **Target branch:** The pull request targets the `dev` branch. **PRs targeting `main` will be immediately closed.** - [x] **Description:** A concise description of the changes is provided below. - [x] **Changelog:** A changelog entry following [Keep a Changelog](https://keepachangelog.com/) format is included at the bottom. - [ ] **Documentation:** Relevant documentation has been added or updated in the [Open WebUI Docs Repository](https://github.com/open-webui/docs). - [ ] **Dependencies:** Any new or updated dependencies are explained, tested, and documented. - [x] **Testing:** Manual tests have been performed to verify the fix/feature works correctly and does not introduce regressions. Screenshots or recordings are included where applicable. - [x] **No Unchecked AI Code:** This PR is either human-written or has undergone thorough human review AND manual testing. Unreviewed AI-generated PRs may be closed immediately. - [x] **Self-Review:** A self-review of the code has been performed, ensuring adherence to project coding standards. - [x] **Architecture:** Smart defaults are preferred over new settings. Local state is used for ephemeral UI logic. Major architectural or UX changes have been discussed first. - [x] **Git Hygiene:** The PR is atomic (one logical change), rebased on `dev`, and contains no unrelated commits. - [x] **Title Prefix:** The PR title uses one of the following prefixes: - **feat**: New features or enhancements # Changelog Entry ### Description - Added an emoji picker button to the rich text formatting toolbar for chat input. This enhancement allows users to easily insert emojis while using the rich text input mode, improving consistency with other emoji-enabled areas of the application. ### Added - Emoji picker button in `FormattingButtons.svelte` within the rich text editor. - Logic to resolve and insert actual Unicode emoji characters from shortcodes using the `shortCodesToEmojis` store. ### Changed - Updated `FormattingButtons.svelte` to include the `EmojiPicker` component. --- ### Additional Information - **Discussion:** https://github.com/open-webui/open-webui/discussions/24703 - Reuses the existing `EmojiPicker.svelte` component. - Handles multi-part Unicode emojis (e.g. skin tone modifiers) correctly. ### Screenshots or Videos **Screenshots:** <img width="785" height="222" alt="image" src="https://github.com/user-attachments/assets/b8e245d2-36b0-47bc-955c-f39f35a18b67" /> <img width="785" height="222" alt="image" src="https://github.com/user-attachments/assets/bd7dbf37-2440-4429-ab13-f58deb7c23bf" /> ### Manual Verification Performed 1. Enabled "Rich Text Input for Chat" and "Show Formatting Toolbar" in User Settings. 2. Verified the presence of the FaceSmile icon at the far right of the formatting toolbar (visible on text selection or empty line depending on Tiptap configuration). 3. Selected an emoji from the picker and confirmed it inserts correctly at the cursor. 4. Verified that skin-toned emojis and other complex Unicode sequences are handled correctly. ### Contributor License Agreement <!-- 🚨 DO NOT DELETE THE TEXT BELOW 🚨 Keep the "Contributor License Agreement" confirmation text intact. Deleting it will trigger the CLA-Bot to INVALIDATE your PR. Your PR will NOT be reviewed or merged until you check the box below confirming that you have read and agree to the terms of the CLA. --> - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-18 16:03:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#115103