Issue #3419Opened April 27, 2021by emyasnikov0 reactions

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)

artfMay 4, 20210 reactions

Thanks @emyasnikov I'll close this and will keep the bug issue open

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.