Issue #1325💬 AnsweredOpened July 30, 2018by ploutos271 reactions

How to disable drop for specific blocks/components

Quick answerby artf1

From the https://github.com/artf/grapesjs/releases/tag/v0.14.17 you get data-gjs-type on all rendered components, therefore you can do something like this: droppable: '[data-gjs-type="column"], [data-gjs-type="other"]',

Read full answer below ↓

Question

Hello, with the following code we are able to indicate if it's possible to drop other component(blocks) inside that particular component...: We are looking to indicate if it's possible to drop other components only for specific blocks. For example: A. Container Block - > we want to drop only columns B. Column Block - > we want to drop only columns and components We thought that we could do that by using an array of selectors which could be dropped inside (as documentation says) but unfortunately is not working: Any ideas? Thank you!

Answers (3)

ploutos27August 2, 2018

Thank you! :)

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.