spatie/laravel-mailcoach-codemirror
Optional add-on for Mailcoach that adds the CodeMirror HTML editor to the campaign editor, with MJML autocompletion. Works with Mailcoach v7+ where MJML can be compiled automatically.
composer test), but no end-to-end tests for Mailcoach integration. Assumes Mailcoach’s existing test coverage suffices.composer require spatie/laravel-mailcoach-codemirror
config/mailcoach.php or a custom config file.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| CodeMirror JS fails to load | Broken editor, but Mailcoach works | Fallback to default editor with feature flag. |
| MJML autocompletion broken | Reduced developer productivity | Disable MJML features or use raw HTML. |
| CSS conflicts with Mailcoach UI | Visual regression | Isolate CodeMirror styles with a shadow DOM or BEM. |
| Mailcoach upgrade breaks compatibility | Editor stops working | Test against Mailcoach’s upgrade path. |
| Abandoned package leads to vulnerabilities | Security risk | Fork and maintain internally. |
How can I help you explore Laravel packages today?