Issue #704💬 AnsweredOpened January 4, 2018by austinbiggs1 reactions

Restrict draggable elements to parent?

Quick answerby austinbiggs1

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

Read full answer below ↓

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, 2018

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

artfJanuary 4, 2018

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

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.