Mj-preview is not editable
This is not core related issue and probably not an issue at all as <mj-preview> is not supported by default in mjml plugin
Read full answer below βQuestion
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Safari 17Reproducible demo link https://grapesjs.com/demo-mjml.htmlDescribe the bug How to reproduce the bug?https://grapesjs.com/demo-mjml.htmlGo to view code - copy the MJMLGo to import code - paste in the MJML and add to the top <mj-head><mj-preview>Some preview text</mj-preview></mj-head>Now try to edit it <img width="878" alt="Screenshot 2023-12-06 at 14 23 53" src="https://github.com/GrapesJS/grapesjs/assets/939815/2d6ab784-c6b5-4de4-a522-d6f4ed076eee"> What is the expected behavior? Should be...
Answers (4)
This is not core related issue and probably not an issue at all as <mj-preview> is not supported by default in mjml plugin
@artf Sorry I don't understand. Itβs an issue as detailed. Is it something to raise on the other repository? Iβm not familiar with the internals here so donβt know what it is that the GrapesJS/mjml needs to support in order for this repository to not display it
It is noted in Head: https://github.com/GrapesJS/mjml/blob/master/src/components/Head.ts#L14
The issue you're encountering with mj-preview not being editable and displaying incorrectly in the GrapesJS editor stems from how the grapesjs-mjml plugin handles this specific MJML component. The mj-preview tag is designed to define the preview text that appears next to the subject line in an emai...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6152
CSS added via custom code persists after custom code component is removed
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any Reproducible demo link https://grapesj...
Issue #4208
Style click state bug in every element
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Brave Last, tested on chrome last and Safa...
Issue #6683
Modals close on mouseup event outside of modal rather than a full click
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 143.0.7499.169 Reproducible demo li...
Issue #6211
Too much recursion
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox 131.0.2 Reproducible demo link htt...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins βPremium plugins ship with support, regular updates, and production-ready features β save days of integration work.
Browse premium plugins βRelated tutorials
In-depth guides on the same topic.
Tutorial
How to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
Tutorial
Big Updates: TinyMCE 8 and Placeholder 2.0 for GrapesJS
In May we shipped major updates to two of our most popular GrapesJS plugins β TinyMCE Inline Text Editor and Placeholder.
Tutorial
Find the Right GrapesJS Plugin in Seconds: Smarter Discovery Is Live
We're shipping a set of discovery upgrades. New label filters, a proper compatibility switch for GrapesJS vs Studio, one-click and a smarter sort bar.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.