Issue #2162Opened July 23, 2019by miky95854 reactions

[QUESTION] Show Component settings

Question

There is a way to show "Component settings tab" on component click? I'm trying

editor.on('component:update', function(propertyName)...

but I cannot find a way to show the second tab ("Component Settings")

Answers (3)

selcukcuraJuly 26, 20193 reactions

Here's a cleaner approach:

editor.on('component:selected', (some, argument) => {
    editor.Panels.getButton('views', 'open-tm').set('active', true);
});
miky9585July 26, 20191 reactions

Thank's @selcukcura

miky9585July 24, 20190 reactions

I've solved in this way. But I'ld have a more grapesjs friendly solution

editor.on('component:update', function(propertyName){ 
	if(typeof propertyName.changed.status != 'undefined' && propertyName.changed.status == "selected"){
		$('[data-original-title="Settings"]').trigger('click')
	}
		 
} )

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.