FEAT: Event to hook into after editor.render has been executed
Question
What are you trying to add to GrapesJS?
As described in BUG: Panels "visible" attribute doesn't prevent panel rendering I tried to prevent panel rendering on initial start. Since visible attribute didn't work for me I tried some workarounds until I noticed all my changes are gone after render has been called. So best way would be to hook into event, but I found nothing. I think it would be a good addition to trigger event after rendering, if so I would like to help.
Is there an alternative at the latest version?
- Yes (describe the alternative)
- No
I achieved this by calling editor.trigger('render') just after editor.render() myself, then I was able to correctly render panel using editor.on('render', () => editor.Panels.getPanel('test').set('visible', false)) inside plugin.
Is this related to an issue?
- Yes (Give a link to the issue)
- No
BUG: Panels "visible" attribute doesn't prevent panel rendering
Answers (1)
Thanks @emyasnikov I'll close this and will keep the bug issue open
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3418
BUG: Panels "visible" attribute doesn't prevent panel rendering
Version: v0.17.3 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? editor.Panels.addPanel({id: '...
Issue #3245
grapesjs-custom-code doesn't execute <script> from GrapesJS 0.16.30 and up
grapesjs-custom-code work fine with script tag until GrapesJS 0.16.27, after this version, no script content is executed. ✔️ Editor init()...
Issue #2664
[Bug] getComponents method doesn't return tree of components
I'm trying to implement multiple pages as per discussion in that issue - https://github.com/artf/grapesjs/issues/1331 But when I trying to...
Issue #868
[BUG]: "component:add" event triggers when components are moved
Taken from https://github.com/artf/grapesjs/wiki/API-Editorcomponent:add - Triggered when a new component is added to the editor, the model...
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.