You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with GrapesJS and I've noticed that when I update plugin options programmatically, the changes don't take effect until the editor is reloaded. Is there a way to make plugin options update instantly without having to reload or reinitialize the editor?
Questions
Is this feature already available in GrapesJS? If so, what's the proper way to update plugin options dynamically?
If not available, are there any workarounds besides destroying and reinitializing the editor?
Would it be possible to implement an API like editor.updatePluginOptions('plugin-name', newOptions) that would notify plugins of option changes?
Use Case
I need to allow users to change plugin behavior on the fly based on their interactions with the editor, without disrupting their current editing session with a reload.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with GrapesJS and I've noticed that when I update plugin options programmatically, the changes don't take effect until the editor is reloaded. Is there a way to make plugin options update instantly without having to reload or reinitialize the editor?
Questions
Use Case
I need to allow users to change plugin behavior on the fly based on their interactions with the editor, without disrupting their current editing session with a reload.
@artf
Beta Was this translation helpful? Give feedback.
All reactions