[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)
Here's a cleaner approach:
editor.on('component:selected', (some, argument) => {
editor.Panels.getButton('views', 'open-tm').set('active', true);
});
Thank's @selcukcura
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.
Issue #1707
Find images links in the editor
I am trying to integrate GrapesJs in reactJs. Can you please help me out with the below question w.r.t GrapesJs-React, • Is there a way to...
Issue #2738
[QUESTION] Keep Hover state when amending the child
I'm trying to edit a dropdown list option, and it's quite difficult to style it because you cannot move your mouse to the Style Manager sin...
Issue #2549
[QUESTION] Update component view on property change
Hi everyone, I'm trying to create a component that will update it's view based on a property value My approach is bassed on #1227 and on th...
Issue #2337
[BUG / QUESTION] Deleting default styles does not work
Hello, i'm trying to delete some of the default styles of the blocks. I wrote everything I changed in a plugin. I used this function to upd...
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.