[Questions]: How to add a toolbar to a component?
Question
Hello,
I would like to extend the table component with a toolbar for adding and removing columns and rows. As far as I understood the documentation and the code the function onActive should be triggered when a component is selected. Or did I misunderstood this function? Because when I try to extend the view of the table component like this
editor.DomComponents.addType("table", {
view: {
onActive() {
...
},
onDisable() {
...
}
}
}
the functions are no executed.
Best, Jens
Answers (1)
Check here https://github.com/artf/grapesjs/issues/266
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2427
[FEATURE REQUEST] Add toolbar redraw functionality
If a selected model toolbar is being changed dynamically (adding a button, removing a button, etc.), the change is not being reflected visu...
Issue #1998
Extending Link component not working properly.
hello @hello @artf I am trying to extend the link component and add new traits like href and target the code is given below. `function load...
Issue #2697
[QUESTION] Problem with custom component type and table cell
Hello! I'm trying to add custom component type: And also I'm adding new block: But when I drop this block on the canvas the <td> tag doesn'...
Issue #2511
How to open a sector when selecting a element?
Hello everybody How do i open a selector like general as i select the element. I am new to javascript, but i tried something out like this....
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.