Expose options parameter to `setStyle` & `setComponents`
Yeah, it actually might make sense having options in these methods, so a PR would be welcome.
Read full answer below ↓Question
Hello again ! Our team has recently been trying to update GrapesJS' canvas programmatically without accidentally triggering an update event. If our understanding is correct, this would mean allowing a call to setStyle or setComponents not to trigger an update event, regardless of the current stepsBeforeSave & changesCount values. After some research, the avoidStore option seems like a good fit to achieve what we're trying to do, but the problem is that we didn't find any way to use this parameter with the current public API. A potential solution we found would imply exposing the options param...
Answers (2)
Yeah, it actually might make sense having options in these methods, so a PR would be welcome.
Great ! #2872 opened.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3561
FEAT: Enhanced Shadow DOM Support
What are you trying to add to GrapesJS? Better Shadow DOM support, allowing developers to render GrapesJS inside a Shadow element without h...
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 #2181
global functions/variables
Hello there! recently i noticed this issue. I think it would be beneficial to have this feature. in contrast to the suggested approach by @...
Issue #1095
[FEATURE REQUEST] Preselect a trait select option
Hello, I'd like you to add to the options array of a select trait a third parameter next to 'name' and 'value', which is 'selected' in orde...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.