Replies: 1 comment
-
This should work: editor.on("component:selected", (component: Component) => {
if (!component.attributes.components?.length) component.set("toolbar", []);
}); |
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.
-
I also wanted the toolbar to only appear for the parent component, can this be achieved?
Beta Was this translation helpful? Give feedback.
All reactions