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

MJML HTML preview window #180

Closed TomLittlePixel closed 10 months ago

TomLittlePixel commented 11 months ago

What happened?

MJML 3.1.2 using Jetbrains Pycharm 2023.3 Professional Edition when clicking on view HTML in the preview causes the window to collapse on click. I am unable to interact with the preview window to copy the rendered html out.

OS

Windows

What IDE are you facing the problem in?

PyCharm Professional

Problem description

Unable to interact with the preview window to copy out html

Expected behaviour

clicking inside the preview window when view html is selected should allow me to focus on the html so that I can copy it out

Actual behaviour

Window collapses and returned to the mjml code

Steps to Reproduce

  1. Open MJML file in Pycharm 2023.3 professional edition.
  2. Click Preview HTML.
  3. Click to focus on html code in preview window

Important Factoids

No response

References

No response

I read and aggree to the contribution guidelines

timo-reymann commented 11 months ago

Heya @TomLittlePixel,

thanks for bringing this to my attention.

It seems like a general issue that the panel is collapsed on click, also affecting the preview.

Seems like this was introduced with the latest PyCharm version. I will take a look and try to find a fix quickly.

Cheers Timo

timo-reymann commented 10 months ago

Should be fixed with 3.2.0, its currently reviewed by JetBrains :)

nicolapiccoli commented 10 months ago

Hi @timo-reymann, it's happening on PhpStorm too. Does the fix repair it on PS too or is it a different situation?

timo-reymann commented 10 months ago

Hi @timo-reymann, it's happening on PhpStorm too. Does the fix repair it on PS too or is it a different situation?

Same problem, same fix :)

timo-reymann commented 10 months ago

verified to work with 3.2.0 in PyCharm and PHPStorm on my macbook :)