[QUESTION]Block Placeholder
Question
I just noticed, it is hard to drag blocks/component from toolbox if the placeholder (a line with yellow green color e.g see it in demo online) is just a lign.
Is it possible to make the "yellow green line/placeholder" to become a box and while we are dragging the blocks, this placeholder should take up some space like a new element is there.
For example Default: https://imgur.com/Ym69GDt
Is it possible to make it a block tahas has some height and all other elements below it will move down to make some space on it? Like this https://imgur.com/WbLbyZw
Answers (2)
You can change the aspect of the line with your custom CSS but you can't move other components around it, the DOM of the placeholder is like a layer on top of the canvas and not between them
Can you explain this a little bit as to how can we update the custom CSS?
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1143
How to enable progamatic placeholder block insert
Hello grapesjs Team I succesfully created a component with traits and a block to insert it, when i drag n drop the block there is a green l...
Issue #3258
QUESTION: 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...
Issue #2744
[QUESTION] Disable a block drag&drop
Hello everyone, I would like to make forbidden the drop of one block before another specific one. Context : i've create a new trait for som...
Issue #1895
[QUESTION] Drag component over canvas with script, script appended multiple times.
Hi, not sure if this is a bug or not. But I noticed a weird behavior, when I drag a block that has a component that contains a script funct...
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.