Issue #704Opened January 4, 2018by austinbiggs1 reactions

Restrict draggable elements to parent?

Question

I'm not sure if this already exists and I haven't seen it yet (apologies if that's the case). Is there a way to restrict where certain draggable elements are droppable?

Say I have a list:

<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>

And I want the user to be able to rearrange the list items, but restrict them from dragging outside of the <ul>.

similar to http://api.jqueryui.com/draggable/#option-containment

Answers (3)

austinbiggsJanuary 4, 20181 reactions

It seems you've thought of everything, you've done such an amazing job w/ GrapesJS! 😄

artfJanuary 4, 20180 reactions

Thanks Austin :)

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.