Issue #2636💬 AnsweredOpened March 11, 2020by mcottret2 reactions

Custom panels not hidden in preview mode

Quick answerby artf1

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

Read full answer below ↓

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...

Answers (2)

artfMarch 18, 2020

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, 2020

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.