BUG: mj-preview is not editable
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Safari 17
Reproducible demo link
https://grapesjs.com/demo-mjml.html
Describe the bug
How to reproduce the bug?
- https://grapesjs.com/demo-mjml.html
- Go to view code - copy the MJML
- Go 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
What is the expected behavior?
Should be able to edit - or it shouldn't be visible in the editor.
What is the current behavior? It displays top left, with default font, no padding, and is not editable. In previous versions of grapeJS builder it is in fact editable, but if you edit it too short the highlight "BODY" gets in the way and you can never get back to editing it. Further, if you empty it, it seems unreachable in the editor completely but the gap is still there.
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (3)
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
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5937
image send to mail
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? chromeReproducible demo link https://grapesj...
Issue #5941
BUG: GrapesJS CDN not working
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 125.0.6422.113 Reproducible demo li...
Issue #3950
BUG: Unable to create a link to image
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v95 Reproducible demo link https://...
Issue #4475
BUG: Link Button Not work
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 103.0.5060.134Reproducible demo link...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.