hide class input #4723
Answered
by
artf
vizardkill
asked this question in
Q&A
hide class input
#4723
-
Hello dear Grapes community. I have a question, I have built a custom block but I would like it not to be possible to inject CSS classes, in the block, it is also possible to hide it, and in the StyleManager it will only show a message that says "This block cannot be customized" or something So? |
Beta Was this translation helpful? Give feedback.
Answered by
artf
Nov 17, 2022
Replies: 1 comment
-
You can rely on component selection event for such a case editor.on('component:selected', (component) => {
if (component.is('my-component-type')) {
// hide stuff in style manager
} else {
// show stuff in style manager
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vizardkill
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can rely on component selection event for such a case