Issue #2162✓ SolvedOpened July 23, 2019by miky95854 reactions

Show Component settings

快速解答by selcukcura3

Here's a cleaner approach:

Read full answer below ↓

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)

👍 Most helpfulselcukcuraJuly 26, 2019

Here's a cleaner approach:

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

Thank's @selcukcura

miky9585July 24, 2019

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.