[PR #13737] [CLOSED] Fix: Markdown/RichTextInput being used for Prompts PromptEditor and for message input in the main chat #46322

Closed
opened 2026-04-29 21:04:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/13737
Author: @Classic298
Created: 5/9/2025
Status: Closed

Base: devHead: main


📝 Commits (10+)

📊 Changes

3 files changed (+531 additions, -422 deletions)

View changed files

📝 src/lib/components/chat/MessageInput.svelte (+250 -249)
📝 src/lib/components/chat/MessageInput/Commands/Prompts.svelte (+210 -101)
📝 src/lib/components/workspace/Prompts/PromptEditor.svelte (+71 -72)

📄 Description

Pull Request Checklist

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

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests to validate the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • fix: Bug fix or error correction

Changelog Entry

Description

  • The Prompt Editor in the Workspace Section now supports Markdown / RichTextInput
  • The main chat input RichTextInput now seems to work nicely

(I labled it 'fix' because many users had issues with the fact that the old editor actually broke markdown texts the moment you would paste markdown into the text editor field)

Changed

  • The Prompt Editor was improved to fix this
  • The main MessageInput.svelte was improved to fix this
  • The Commands.svelte had to be changed to properly insert the prompts from the Prompt Library in Workspace section, otherwise everything would have been inserted in just a single line without being rendered correctly.

Screenshots or Videos

Not my proudest or highest quality presentation but it gets the point across.

https://github.com/user-attachments/assets/aa8428d6-390a-4799-a62e-099303d19112

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 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/13737 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 5/9/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (10+) - [`a3bb7df`](https://github.com/open-webui/open-webui/commit/a3bb7df61058e690a76cebb7681bd5390e77d226) Merge pull request #13530 from open-webui/dev - [`583263f`](https://github.com/open-webui/open-webui/commit/583263f30735b01d5e3e02b0ddc66f609208b25e) Update PromptEditor.svelte - [`93974e7`](https://github.com/open-webui/open-webui/commit/93974e70ab82febea05d83787bcb057075de051d) Update PromptEditor.svelte - [`9196f0c`](https://github.com/open-webui/open-webui/commit/9196f0c49d47d02e75f61bdb1ed182633eca66c2) Update PromptEditor.svelte - [`71d2459`](https://github.com/open-webui/open-webui/commit/71d2459cf01036e16a053a6b21cdf38e2119df4c) Update PromptEditor.svelte - [`3f6d735`](https://github.com/open-webui/open-webui/commit/3f6d735371cae7fc4dfa94b801acb9cec8db2b88) Update PromptEditor.svelte - [`4042af6`](https://github.com/open-webui/open-webui/commit/4042af64c92f372b071554eb8c40dfdb0f204197) Update PromptEditor.svelte - [`3416fd1`](https://github.com/open-webui/open-webui/commit/3416fd19ddf23c858e14a665ac9349739c3813f4) Update MessageInput.svelte - [`45654cf`](https://github.com/open-webui/open-webui/commit/45654cf98e551898f840183c8bd8ad0ac46b7463) Update Prompts.svelte - [`29e73dc`](https://github.com/open-webui/open-webui/commit/29e73dcbec44064e44d4fcd577237d6be8b38d99) Update Prompts.svelte ### 📊 Changes **3 files changed** (+531 additions, -422 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/MessageInput.svelte` (+250 -249) 📝 `src/lib/components/chat/MessageInput/Commands/Prompts.svelte` (+210 -101) 📝 `src/lib/components/workspace/Prompts/PromptEditor.svelte` (+71 -72) </details> ### 📄 Description # Pull Request Checklist **Before submitting, make sure you've checked the following:** - [X] **Target branch:** Please verify that the pull request targets the `dev` branch. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Have you written and run sufficient tests to validate the changes? - [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [X] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **fix**: Bug fix or error correction # Changelog Entry ### Description - The Prompt Editor in the Workspace Section now supports Markdown / RichTextInput - The main chat input RichTextInput now seems to work nicely (I labled it 'fix' because many users had issues with the fact that the old editor actually **broke** markdown texts the moment you would paste markdown into the text editor field) ### Changed - The Prompt Editor was improved to fix this - The main MessageInput.svelte was improved to fix this - The Commands.svelte had to be changed to properly insert the prompts from the Prompt Library in Workspace section, otherwise everything would have been inserted in just a single line without being rendered correctly. --- ### Screenshots or Videos Not my proudest or highest quality presentation but it gets the point across. https://github.com/user-attachments/assets/aa8428d6-390a-4799-a62e-099303d19112 ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <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-04-29 21:04:46 -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#46322