Issue #2833Opened June 16, 2020by jpdigital0 reactions

[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)

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.