Is there a way to prevent style property/trait edits in the sidebar from actually propagating to the component? #6353
Unanswered
anishpdoshi
asked this question in
Q&A
Replies: 1 comment
-
You can try intercepting addStyleTargets calls by hooking onto it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm currently building a dynamic styling editor using grapesjs. The goal is for someone to be able to set styles/traits for an "initial" state for a given component, but then also support a "dynamic" state that lets someone set conditional styles/trait updates when a rule is selected
The way i've done this so far is to have rules logic elsewhere and then a "rule selector". Then, i'm capturing updates to the styles/traits like so:
But as the above question marks indicate - how owuld I not just listen to, but actually sto these changes from propagating back to the main component styles?
Beta Was this translation helpful? Give feedback.
All reactions