Replies: 1 comment
-
Try to use this API: |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!

I am doing my own custom tabs for grapesjs. I have 2 nonactive tabs and 1 active all of the time. (1 picture)
What is the default flow in grapesjs to change style for nonactive and active elements in that repo ?
Another one question. I moved all that logic in traits section. (2 picture)

Now I gonna get my active and non active class styles by click of button.
Inside of trait style button handler i have code like that:
In section with '???' i gonna set active or passsive class of my element in Style Manager.
There's no info in docs about the way for swapping active class for element.
So, the question is: 'How can I change active class for Style Manager using editor object?'
Any solutions?
Beta Was this translation helpful? Give feedback.
All reactions