Left and right Panel
Question
Hi,
for my project i need two panels, left and right, to show blocks/layers and style simultaneously. The panel id is hard coded in the command view files (OpenBlocks, OpenLayers). It would be good if this is configurable. I can do a pull request, but i am not sure, in which files I should put the configuration (panelId).
@artf Can you give me a hint?
Answers (2)
I'd just add
attributes() {
return this.model.get('attributes');
},
in PanelView and put some checks in PanelView.render (just to avoid those hard coded attrs), then when you create panels you just pass attributes key
editor.Panels.addPanel({
id: '...',
attributes: { ... }
});
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 #535
New section in View Container
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 simila...
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 #1672
[Bug] Item drop duplicates after opening Layers Panel.
Hi i'm a novice posting an issue for the first time. Please let me know if you need any more information for the query. grapesjs version:0....
Issue #454
Make block manager default open panel?
I tried this code: It works but doing this will hide the device selector in the top left for some reason.
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.