Replies: 1 comment 1 reply
-
The component updates automatically its classes if you update |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I can't solve a problem related to traits in grapejs
I created a traits that acts on the DIV and SECTION tags
It should give the possibility to add a pre-determined class (contained in a drop-down) to a DIV element.
On data attributes it works for me.
If I add a class to a DIV that contains another class (example myclass) it does not work: I delete the old class.
Instead, it should add the new class to the old one.
Try adding the block "SECTION" to the editor: it has its own class "myclass" that is deleted if through the “component setting” I go to edit it
Has anyone already done something similar? I would then implement everything to use tailwind and its classes
I have made a working demo
https://jsfiddle.net/zucco/5jnt9zhL/17/
Beta Was this translation helpful? Give feedback.
All reactions