# Drag and drop placeholder?

**URL:** https://discuss.prosemirror.net/t/drag-and-drop-placeholder/487
**Category:** Uncategorized
**Created:** [November 9, 2016, 5:10pm UTC](https://discuss.prosemirror.net/t/drag-and-drop-placeholder/487 "2016-11-09T17:10:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kapouer](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/kapouer/32/227_2.png) [@kapouer](https://discuss.prosemirror.net/u/kapouer)
#### Post date: [November 9, 2016, 5:10pm UTC](https://discuss.prosemirror.net/t/drag-and-drop-placeholder/487/1 "2016-11-09T17:10:16Z")

</div>

Hi,

when dragging a block node, it feels like it would be easier for the user if some (customizable) placeholder was shown instead of the text caret.

Is this easy to do ? is this a job for a plugin or for a core prosemirror module ?

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [November 9, 2016, 8:59pm UTC](https://discuss.prosemirror.net/t/drag-and-drop-placeholder/487/2 "2016-11-09T20:59:25Z")

</div>

The problem that makes this difficult is that dragover/dragenter handlers do not get access to the clipboard, so they don’t know _what_ is actually being dragged, and thus it’s hard to figure out what kind of placeholder to show.

In the case where the drag originates from the editor, we can know, but I’m not sure having different behavior in different situations is all that desirable.

---

<div class="post-metadata">

### Author: ![herkulano](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/herkulano/32/286_2.png) [@herkulano](https://discuss.prosemirror.net/u/herkulano)
#### Post date: [February 10, 2017, 4:14pm UTC](https://discuss.prosemirror.net/t/drag-and-drop-placeholder/487/3 "2017-02-10T16:14:18Z")

</div>

> [@marijn](#):
>
> In the case where the drag originates from the editor, we can know, but I’m not sure having different behavior in different situations is all that desirable.

Would this be easy to implement with a plugin or it needs changes to the core?

Having a good user experience on one of the behaviours is better than having a bad user experience on both, consistency is definitely not a problem in this case.

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [February 22, 2017, 4:48pm UTC](https://discuss.prosemirror.net/t/drag-and-drop-placeholder/487/4 "2017-02-22T16:48:54Z")

</div>

The core would have to export information about what is being dragged. You could try to write a plugin using `view.dragging.slice`, and see how it goes, but I’m not currently committing to keeping that stable (seeing a working placeholder plugin implementation might convince me).
