iachat/app/javascript/dashboard/routes/dashboard/settings
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
..
account fix(sentry): syntaxError: No error message (#13954) 2026-03-31 21:09:02 +05:30
agentBots feat: sign webhooks for API channel and agentbots (#13892) 2026-04-06 15:28:25 +05:30
agents fix: Adjust inbox settings pages layout width (#13590) 2026-02-20 20:20:32 +05:30
assignmentPolicy feat: allow zero conversation limit capacity policy (#13964) 2026-04-06 11:39:14 +05:30
attributes feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
auditlogs feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
automation fix: Adjust inbox settings pages layout width (#13590) 2026-02-20 20:20:32 +05:30
billing perf: update the logic to purchase credits (#12998) 2025-12-08 10:52:17 +05:30
canned fix: Upgrade pico-search to 0.6.0 (#13645) 2026-02-25 16:52:45 +05:30
captain feat: add global config for captain settings (#13141) 2026-01-12 19:54:19 +05:30
components feat(captain): Add paywall and expose Custom Tools (#13977) 2026-04-07 10:58:29 +05:30
conversationWorkflow feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
customRoles fix: Adjust inbox settings pages layout width (#13590) 2026-02-20 20:20:32 +05:30
helper chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
inbox feat: sign webhooks for API channel and agentbots (#13892) 2026-04-06 15:28:25 +05:30
integrations feat: add per-webhook secret with backfill migration (#13573) 2026-02-26 17:26:12 +05:30
labels fix: Upgrade pico-search to 0.6.0 (#13645) 2026-02-25 16:52:45 +05:30
macros chore(v5): update priority icons (#13905) 2026-03-26 09:20:36 +05:30
profile fix: Block inline images in message signatures (#13772) 2026-04-08 12:17:19 +05:30
reports chore: Remove vue-multiselect package and styles from codebase (#13585) 2026-02-19 15:42:34 +05:30
security feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
sla fix: Adjust inbox settings pages layout width (#13590) 2026-02-20 20:20:32 +05:30
teams fix: Adjust inbox settings pages layout width (#13590) 2026-02-20 20:20:32 +05:30
settings.routes.js feat: Conversation workflows(EE) (#13040) 2026-01-27 11:36:20 +04:00
SettingsHeader.vue feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
SettingsLayout.vue feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
SettingsSubPageHeader.vue feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
SettingsWrapper.vue feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30
Wrapper.vue feat(V5): Update settings pages UI (#13396) 2026-02-19 15:04:40 +05:30