javascript - Textarea Selected Text Drag and Drop Copy -


i want users of application able highlight text textarea , drag , drop text input.

i want change default behavior (the user shouldn't have hold down ctrl or alt) copy text rather being moved textarea input.

i've tried using jquery draggable , droppable. see how work if div or static static selected , helper clone used, don't know how random text selection in textarea.

you try following hack:

  1. on select create transparent div , copy selected text it, 'window.getselection'
  2. make div draggable , droppable
  3. on drop content div, populate input field , clear div

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -