How to Customize Drag Behavior and Make Indicator Occupy Full Space in GrapesJS #6154
fredrickreuben
started this conversation in
General
Replies: 1 comment 1 reply
-
@fredrickreuben
There's also an internal div, here's the actual code <div class="${ppfx}placeholder">
<div class="${ppfx}placeholder-int"></div>
</div> It may not be a great solution to override the CSS for the placeholder, but I think it should work though |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m currently working on customizing the drag-and-drop behavior in GrapesJS, and I need help with a few things related to the default behavior:
Static Green Line: By default, a green line appears to indicate the drop position during the drag action. I’d like to either remove or customize this line.
Full-Space Indicator: Instead of just a line, I want the drag indicator to occupy the entire space (e.g., filling the area between the elements where the dragged component is about to be dropped). I’d like to change the appearance and behavior of this indicator.
So far, I’ve tried inspecting the elements, but I haven’t been able to identify the correct CSS selectors or classes to target for these changes. Could someone guide me on how to:
If there’s a configuration option or specific code snippet that can help achieve this, I’d greatly appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions