Issue #1208πŸ’¬ AnsweredOpened June 15, 2018by ssabrewolf0 reactions

Create minimalist Panel left sidebar III

Quick answerby artf

@ssabrewolf as you get it right, BlockManager points only to one single DOM element, so you can't create 2 different collections, but you can definitely move elements around with plain javascript. You should do it once the content is rendered

Read full answer below ↓

Question

hello @artf , thanks to you for the comment on #1188, i see in the code https://codepen.io/artf/full/MQpZPj/ uses the appendTo property to render a filtered collection of component in a div with id # block1 , is posible to render 2 different collections, 1 in block1 and another in block2, since the BlockManager only points to one single dom element, i tried to use editor.BlockManager.render twice, the second time after changin editor.BlockManager.getConfig().appendTo property but no luck it keeps changing the orignal block collection in block1, i mean, is possible to have 2 different blocks at the same time in 2 different divs one block with popular components and another with the remaining ones Regards

Answers (2)

artfβ€’ June 16, 2018

@ssabrewolf as you get it right, BlockManager points only to one single DOM element, so you can't create 2 different collections, but you can definitely move elements around with plain javascript. You should do it once the content is rendered

editor.on('load', () => {
	// move stuff
})
lock[bot]β€’ September 17, 2019

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

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.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.