iachat/app/javascript/dashboard/components/widgets/WootWriter
Sivin Varghese 92422f979d
chore: Replace plain editor with advanced editor (#13071)
# Pull Request Template

## Description

This PR reverts the plain text editor back to the **advanced editor**,
which was previously removed in
[https://github.com/chatwoot/chatwoot/pull/13058](https://github.com/chatwoot/chatwoot/pull/13058).
All channels now use the **ProseMirror editor**, with formatting applied
based on each channel’s configuration.

This PR also fixes issues where **new lines were not properly preserved
during Markdown serialization**, for both:

* `Enter or CMD/Ctrl+enter` (new paragraph)
* `Shift+Enter` (`hard_break`)

Additionally, it resolves related **[Sentry
issue](https://chatwoot-p3.sentry.io/issues/?environment=production&project=4507182691975168&query=is%3Aunresolved%20markdown&referrer=issue-list&statsPeriod=7d)**.

With these changes:

* Line breaks and spacing are now preserved correctly when saving canned
responses.
* When editing a canned response, the content retains the exact spacing
and formatting as saved in editor.
* Canned responses are now correctly converted to plain text where
required and displayed consistently in the canned response list.

### https://github.com/chatwoot/prosemirror-schema/pull/38

---

## Type of change

- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?



## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2026-01-08 15:17:54 +05:30
..
utils chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
AudioRecorder.vue fix: Update the reply box to handle play, pause callbacks from WaveSurfer (#10223) 2024-10-05 00:17:11 -07:00
constants.js Adds character count to reply box 😳 (#1634) 2021-01-13 19:16:45 +05:30
Editor.vue chore: Replace plain editor with advanced editor (#13071) 2026-01-08 15:17:54 +05:30
EditorModeToggle.vue feat: Enhance button interactions (#12738) 2025-11-06 16:24:05 +05:30
FullEditor.vue fix: styles in ProseMirror URL prompt modal (#11256) 2025-04-08 12:38:28 +05:30
keyboardEmojiSelector.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
ReplyBottomPanel.vue feat: Standardize rich editor across all channels (#12600) 2025-12-08 14:43:45 +05:30
ReplyTopPanel.vue fix: Editor toggle button not showing the correct active mode (#12350) 2025-09-09 17:22:35 +05:30