[Question] Change default panel for Block Manager and Style Manager
Question
Hi again Artf,
I was reviewing the files that you defined with the basic commands (such as opening the style manager) and I have a question about it. Is it possible to modify the default panel name in which the Block Manager and Style Manager are opened? As we can see here and here the names of the panels are hard-coded and they are also the same, which means that by default both belong to the same panel. I found several ways to achieve what I want but since my knowledge about this tool is still very basic, I would like to know what would be the path you would take.
Thanks for read.
Answers (2)
Well yeah, those panels are designed that way just to create the "tab effect", you can add a new command with the same id and implement your logic. I also suggest to have a look at how to create a fully custom panels
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1421
[Bug]: "disabled" instead of "active" class for Panel Button View
Hello I assume there is a bug with class when Panel Button is disabled https://github.com/artf/grapesjs/blob/dev/src/panels/view/ButtonView...
Issue #827
[QUESTION] Change location of command panel
Amazing library, thank you!! I have two questions I'm hoping you can help with.How can I move the command panel from the top to the left as...
Issue #1294
How to add category for default block manager?
@artf I want put all default blocks to category named "Basic". But I can't find any documents about it. I use editor.BlockManager.getAll()....
Issue #774
Mimic customRTE behavior when parsing content
Hi @artf, I'd like to replicate this behavior when calling editor.setComponents("<div>This is a text component. <span style='font-size: 20p...
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.