timo-reymann / intellij-mjml-support

MJML support for the IntelliJ Platform.
https://timo-reymann.github.io/intellij-mjml-support/
Other
26 stars 11 forks source link

How to enable live preview of MJML? #204

Closed satvug closed 1 month ago

satvug commented 4 months ago

What happened?

Hi, how do I enable live preview of MJML? It says something about having to have JS / Node modules enabled? How do I enable that in Rider? Thanks a lot!

OS

macOS 14.6.1

What IDE are you facing the problem in?

JetBrains Rider 2024.1.2

Problem description

Hi, how do I enable live preview of MJML? It says something about having to have JS / Node modules enabled? How do I enable that? Thanks a lot!

Expected behaviour

I can see the live preview of MJML

Actual behaviour

I don't see any live preview

Steps to Reproduce

n/a

Important Factoids

No response

References

No response

I read and aggree to the contribution guidelines

timo-reymann commented 4 months ago

In Rider Node.js should be enabled by default, unless you disabled it.

Also see Jetbrains Docs: https://www.jetbrains.com/help/rider/Developing_Node_JS_Applications.html

satvug commented 1 month ago

There's still little information about how to make this plugin work @timo-reymann . How do I make the MJML preview window open? Should the preview automatically appear when I open an .mjml file?

Node.js and js/ts is enabled in plugins. Would really appreciate your help, as this looks like an awesome plugin which meets my exact needs.

image
timo-reymann commented 1 month ago

Have you followed the steps mentioned in the docs? Especially configuring a Node.js interpreter?

If Node is enabled the Preview panel will be visible. If it is not configured correctly it will show up in the Preview.

Can you share your Node settings and maybe a open mjml file (with project explorer & editor visible)?

satvug commented 1 month ago

I am so sorry, it seems like the preview might always have been there, I just did not find the "preview" buttons toolbar, here visible in the upper right corner, besides my file tabs. Easy to miss for me apparently. Maybe it could be worth adding in a FAQ that the user has to look for the toolbar and manually enable the preview by using the available buttons.

image

Sorry for the bad bug report, it's working just fine. Thanks for your work!