New section in View Container
To add more buttons there Then create yourCommand Command, which might be very similar to https://github.com/artf/grapesjs/blob/dev/src/commands/view/OpenBlocks.js
Read full answer below ↓Question
Hello,
I want to add a new section in view container. Lets say, when we click Style manager it opens style manager. I want to create similar behaviour. Need to show some pre-defined templates which should be shown under that section.
Can you please help me out?
Answers (3)
To add more buttons there
editor.Panels.addButton('views', {
id: 'yourBtnId',
className: 'fa fa-paint-brush yourClass',
command: 'yourCommand',
attributes: { title: 'Some title'},
})
Then create yourCommand Command, which might be very similar to
https://github.com/artf/grapesjs/blob/dev/src/commands/view/OpenBlocks.js
Hey did you manage to create that new templates view? If so I would like some pointers as I try to do something similar
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 #2097
New views question
Hello all, Is there is any simple way to add a new view right next to the style manager? I would like to create a new view that will show s...
Issue #1334
How to import previous saved templates in new template.
@artf I have saved some templates created by grapejs and want to use/import it in new template as a section / block. I do not want import a...
Issue #1733
How to remove script tag which is added by add block manager script
Hello @artf I want to export final/production based html content excluding the script(Only which is added by block manager). Suppose i am a...
Issue #1639
[Question]: Would it be possible to have change settings under style manager in a way that it has href when a link is created?
I'm using preset newsletter with built-in RTE (do not want to use ck editor like the demo) In order to make any text to link, i need to cli...
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 →Related tutorials
In-depth guides on the same topic.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.