Issue #2636Opened March 11, 2020by mcottret2 reactions

[Bug]: Custom panels not hidden in preview mode

Question

Hello again :)

Our team recently started customising the editor & removing the webpage preset, and we might have found some bugs related to the preview mode:

When using the built-in preview mode with custom panels, the custom panels are not hidden when entering preview mode.

If we look at the source, the preview command uses the editor.Panels.getPanelsEl function to retrieve the panels to hide, which corresponds to the "internal" panels element containing the built-in panels.

A proposed solution would be to rather loop through the panels collection (retrieved via editor.Panels.getPanels) and toggle their visible attribute. What do you think ?

I'd be happy to open a PR to fix it, let me know :)

Answers (2)

artfMarch 18, 20201 reactions

A proposed solution would be to rather loop through the panels collection (retrieved via editor.Panels.getPanels) and toggle their visible attribute. What do you think ?

Yeah, it makes totally sense. Go ahead with the PR, thank you very much

mcottretMarch 19, 20201 reactions

Great ! #2669 opened.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.