You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all I would like to say that the tool is really nice!
I was looking forward to use it and I'm currently trying to understand how grapesjs and this mjml plugin works.
Hi there!
First of all I would like to say that the tool is really nice!
I was looking forward to use it and I'm currently trying to understand how grapesjs and this mjml plugin works.
I faced similar issue with mj-preview has GrapesJS/grapesjs#5549
I tried to do as @artf said in:
GrapesJS/grapesjs#5549 (comment)
and here is what I did:
(sorry my bad code I'm not proficient in typescript or js)
So I tried to register a new custom component:
Preview.ts
and I load it in here
And I almost got it working as it supposed to with a trait to control the text.
Problem:
if in my mjml template i have
<mj-preview>Hello MJML</mj-preview>
"Hello MJML" is not loaded into the trait field.when i type something it will add to the existing value
I saw this:
https://github.com/GrapesJS/grapesjs/issues?q=is%3Aissue+trait+change+value+is%3Aclosed+#issuecomment-1192600885
but it's not picking up the initial value or (most probably i'm missing something)
Can someone give me some guidance?
Appreciate your time and effort!
Best,
Adriano Dias
The text was updated successfully, but these errors were encountered: