How do I block the insertion of a block inside another block?
@dskarasev you can define custom component type and control the dragging using `draggable` property: Cheers!
Read full answer below ↓Question
Please tell me how do I prevent inserting a block inside another block? I use the editor to create the internal structure of an article for a WEB site. Grapejs building blocks are not used. All custom blocks are added via the configuration editor.BlockManager.add I will be grateful if you can tell me how to do that. Thanks!
Answers (1)
@dskarasev you can define custom component type and control the dragging using `draggable` property: Cheers!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2839
[Question] I added one component named template in the blocks but when i try to drag another components inside this template component ,it will be dragged but after saving it removes all the components inside it. How to avoid this?
This is code of template component: I debugged it, so i got that : setComponents method in the dom_components clearing it ...but not gettin...
Issue #2079
Make Css style to not be returned
How to prevent the CSS of a block/component to be not returned when we used editor.getCss(); it's like https://grapesjs.com/docs/api/compon...
Issue #3337
Question: Use arrow keys to move blocks in canvas configured in absolute positioning mode
Hi, I am building a solution for students to tell their high school experiences as slides built from grapejs editor (similar to canva), and...
Issue #3258
Prevent/Disable Custom Blocks from being dropped inside other Custom Blocks
Hello, I have a custom component, let's call it a Section Block. I want to prevent the user from dropping Section Blocks inside other Secti...
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 →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.