iachat/app/javascript/dashboard
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
..
api perf: update the logic to purchase credits (#12998) 2025-12-08 10:52:17 +05:30
assets chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
components feat: Standardize rich editor across all channels (#12600) 2025-12-08 14:43:45 +05:30
components-next feat: Standardize rich editor across all channels (#12600) 2025-12-08 14:43:45 +05:30
composables feat: Add AI credit topup flow for Stripe (#12988) 2025-12-02 17:53:44 -08:00
constants fix: Strip unsupported markdown formatting from canned responses (#13028) 2025-12-09 09:15:35 +05:30
helper fix: Strip unsupported markdown formatting from canned responses (#13028) 2025-12-09 09:15:35 +05:30
i18n feat: Standardize rich editor across all channels (#12600) 2025-12-08 14:43:45 +05:30
mixins feat: allow configuring attachment upload limit (#12835) 2025-11-17 14:03:08 -08:00
modules chore: Adds URL-based search and tab selection (#12663) 2025-10-27 11:17:04 +05:30
routes fix: Strip unsupported markdown formatting from canned responses (#13028) 2025-12-09 09:15:35 +05:30
store feat: Add AI credit topup flow for Stripe (#12988) 2025-12-02 17:53:44 -08:00
stores feat: Add Pinia support and relocate store factory (#12854) 2025-11-28 16:31:59 +05:30
App.vue fix: Handle login when there are no accounts (#12816) 2025-11-07 10:14:59 +05:30
featureFlags.js feat: Companies page (#12842) 2025-11-18 15:29:15 +05:30