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 #4335
No way to upload background video component in the editor , Please suggest if there is any way to upload background video
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v9 Reproducible demo link Not there...
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 #3615
text in text component cannot update , cannot get final result from toHTML
it is text component, if select body, the text will correct save/apply/store in component toHTML method, if just updating text, but not lea...
Issue #3404
Style Manager Issue.
Hi @artf I want to hide and show style properties for specific component. After referencing this issue https://github.com/artf/grapesjs/iss...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.