iachat/app/javascript/dashboard/routes/dashboard/settings
Sivin Varghese 863c033699
fix: Strip unsupported markdown formatting from canned responses (#13028)
# Pull Request Template

## Description

This PR fixes, 
1. **Issue with canned response insertion** - Canned responses with
formatting (bold, italic, code, lists, etc.) were not being inserted
into channels that don't support that formatting.
Now unsupported markdown syntax is automatically stripped based on the
channel's schema before insertion.
2. **Make image node optional** - Images are now stripped while paste.
9e269fca04
3. Enable **bold** and _italic_ for API channel

Fixes
https://linear.app/chatwoot/issue/CW-6091/editor-breaks-when-inserting-canned-response

## 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/9a5215dfef2949fcaa3871f51bdec4bb


## 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
- [x] Any dependent changes have been merged and published in downstream
modules
2025-12-09 09:15:35 +05:30
..
account feat: SAML feedback changes [CW-5666] (#12511) 2025-09-24 16:07:07 +05:30
agentBots feat: Ability to reset api_access_token (#11565) 2025-05-29 14:42:13 +05:30
agents feat: SAML feedback changes [CW-5666] (#12511) 2025-09-24 16:07:07 +05:30
assignmentPolicy chore: Assignment policy improvements (#12429) 2025-09-16 14:10:10 +05:30
attributes fix: Translate Priority and Messages types in Automations and Macros (#11741) 2025-07-08 12:40:40 +05:30
auditlogs chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
automation feat: Add support for labels in automations (#11658) 2025-09-18 14:17:54 +05:30
billing perf: update the logic to purchase credits (#12998) 2025-12-08 10:52:17 +05:30
canned fix: Strip unsupported markdown formatting from canned responses (#13028) 2025-12-09 09:15:35 +05:30
components chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
customRoles chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
helper chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
inbox feat: Standardize rich editor across all channels (#12600) 2025-12-08 14:43:45 +05:30
integrations fix: Brand installation name not showing (#12861) 2025-11-13 22:16:25 +05:30
labels chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
macros chore: Replace Thumbnail with Avatar (#12119) 2025-08-11 15:47:17 +05:30
profile feat: Standardize rich editor across all channels (#12600) 2025-12-08 14:43:45 +05:30
reports fix: invalid language tag in heatmap component in reports page (#12952) 2025-11-26 13:24:29 +05:30
security feat: Control the allowed login methods via Super Admin (#12892) 2025-11-17 21:55:12 -08:00
sla chore: Migrate to next Switch component (#12005) 2025-07-23 13:56:17 +05:30
teams feat: Update Inbox/Team creation UI (#12305) 2025-09-02 14:11:38 +05:30
settings.routes.js feat: SAML UI [CW-2958] (#12345) 2025-09-15 19:33:54 +05:30
SettingsHeader.vue chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
SettingsLayout.vue feat: Agent assignment policy index page with CRUD actions (#12373) 2025-09-10 12:07:21 +05:30
SettingsSubPageHeader.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
SettingsWrapper.vue feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
Wrapper.vue chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00