0

I'm going to create drag and drop builder for client. Is there any way to copy the whole element and paste it anywhere in the same origin site? Even I know that the hidden element or hidden visibility text can't be copied. Because copy execution command requires selection.

Can any one explain how does it works and how to do that?

I have attached one demo to show you that how I want to make.

menu I want want to create like gif

  • [Node.cloneNode](https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode). Beware of cloning elements with an id. – kelsny Sep 12 '22 at 19:07
  • @kelly I want actual code. Node.cloneNode is only call when events call. But actually how js store those temp clipboard values? – Manthan Kanani Sep 12 '22 at 19:17
  • @kelly I think this code might helpful [stackdemo](https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript?rq=1), [gitdemo](https://w3c.github.io/clipboard-apis/#override-copy) – Manthan Kanani Sep 12 '22 at 19:28
  • What is your question? – kelsny Sep 12 '22 at 19:30
  • Please provide enough code so others can better understand or reproduce the problem. – Community Sep 22 '22 at 15:00

0 Answers0