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

mjml css issue #27

Closed
kavi-i opened this issue Nov 10, 2017 · 1 comment
Closed

mjml css issue #27

kavi-i opened this issue Nov 10, 2017 · 1 comment

Comments

@kavi-i
Copy link

kavi-i commented Nov 10, 2017

i got below mjml theme using editor.getHtml().

but when i display to my project. it converts in html and send it as an email.

i have attached image.

<mjml>
<mj-body>
<mj-container min-height="100px">
<mj-section>
<mj-column>
<mj-text>Content 1</mj-text>
</mj-column>
<mj-column>
<mj-text>Content 2</mj-text>
</mj-column>
<mj-column>
<mj-text>Content 3</mj-text>
</mj-column>
</mj-section>
</mj-container>
</mjml>
</mj-body>

screenshot from 2017-11-10 18-36-06

@artf
Copy link
Member

artf commented Nov 10, 2017

editor.getHtml() will actually return the MJML in this case, you can get the final HTML by using editor.runCommand('mjml-get-code').html

@artf artf closed this as completed Nov 10, 2017
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

2 participants