iachat/app/javascript/dashboard/routes/dashboard
Sivin Varghese 699b12b1d3
fix: Block inline images in message signatures (#13772)
# Pull Request Template

## Description

This PR includes, block inline images in message signatures and prevent
auto signature insertion when editor is disabled.

- Strip inline base64 images from signature on save and show warning
message
- Add `INLINE_IMAGE_WARNING` translation key for signature inline image
removal notification
- Add disabled check to `addSignature()` to prevent signature insertion
when editor is disabled
- Add `isEditorDisabled` checks to signature toggle logic in
`toggleSignatureForDraft()`, `replaceText()`, and `clearMessage()`
- Remove unused `replaceText` from the codebase, which belongs to old
`textarea` editor

Fixes
https://linear.app/chatwoot/issue/CW-6588/the-browser-hangs-when-the-message-signature-contains-inline-image

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

### Loom video
https://www.loom.com/share/fb556b46a12a4308a737eed732d5ed73


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] 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
- [ ] 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-04-08 12:17:19 +05:30
..
campaigns feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
captain feat(captain): Add paywall and expose Custom Tools (#13977) 2026-04-07 10:58:29 +05:30
commands feat: Add natural language date parser for snooze functionality (#13587) 2026-03-06 12:20:22 +04:00
companies feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
contacts fix: search header overlap with new conversation form (#13548) 2026-02-20 11:24:37 +05:30
conversation chore(v5): update priority icons (#13905) 2026-03-26 09:20:36 +05:30
customviews chore: Update buttons in dashboard (#11145) 2025-03-31 17:21:32 -07:00
helpcenter feat: Add draft status for help center locales (#13768) 2026-03-17 12:45:54 +04:00
inbox feat: Add natural language date parser for snooze functionality (#13587) 2026-03-06 12:20:22 +04:00
noAccounts fix: Handle login when there are no accounts (#12816) 2025-11-07 10:14:59 +05:30
notifications feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
settings fix: Block inline images in message signatures (#13772) 2026-04-08 12:17:19 +05:30
suspended chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
upgrade fix: Conditionally fetch limits and assistants for enterprise/cloud (#12099) 2025-08-04 15:06:58 -07:00
dashboard.routes.js feat: Companies page (#12842) 2025-11-18 15:29:15 +05:30
Dashboard.vue chore: Update theme colors and add new Inter variable fonts (#13347) 2026-01-28 14:36:04 -08:00