Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create custom MJML component #352

Closed
mabonoah opened this issue Apr 21, 2024 · 2 comments
Closed

Create custom MJML component #352

mabonoah opened this issue Apr 21, 2024 · 2 comments

Comments

@mabonoah
Copy link

Hello everyone,

I'm using the following version with an Angular 7 project:

  • "grapesjs": "^0.15.10",
  • "grapesjs-mjml": "^0.6.0"

I want to create a custom mjml component like mj-text built-in components.
I have tried multiple ways but they are not working with me and I didn't find enough resources.

Please any help.

@adrianodias8
Copy link

Hi there!

I also have been playing with components and specifically for preview text i can give you my 2 cents from my investigation

here is my ticket:
#351
(very basic component test that i did)

regarding documentation i recommend you to check components folder to understand the structure https://github.com/GrapesJS/mjml/tree/master/src/components

also check the base component from base repo here: https://github.com/GrapesJS/grapesjs/blob/dev/src/dom_components/model/Component.ts

this is just the mjml plugin
and read this :
https://grapesjs.com/docs/modules/Components.html (components)
https://grapesjs.com/docs/modules/Traits.html#add-traits-to-components (traits)

I hope this helps and points you in the right direction.

best,
Adriano Dias

@artf
Copy link
Member

artf commented Aug 21, 2024

Thanks @adrianodias8
If anybody wants to enhance the documentation on the README file, I'll be happy to merge the PR.

@artf artf closed this as completed Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants