[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)
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
Great ! #2669 opened.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2637
[Bug]: Preview mode & automatic components borders toggling
Hello again :) Our team recently started customising the editor & removing the webpage preset, and we might have found some bugs related to...
Issue #2863
[Bug]: Programmatic retrieval of layers' visibility always returns `true`
Hello again :) Our team might have found a bug while using the Layer Manager API: every call to component.viewLayer.isVisible() seems to al...
Issue #1745
[Feature]: Allow to import HTML documents
Hi Team, We are using grapesjs newsletter plugin in our project for importing and preview the template. We are facing some difficulty in re...
Issue #1909
SetComponents is sometimes very slow
Hi all We're working on a newsletter app and are using grapesjs as the email editor with the newsletter preset plguin and some custom chang...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.