moveable icon indicating copy to clipboard operation
moveable copied to clipboard

How to create a correct copy of Movable object?

Open basil-gor opened this issue 6 years ago • 2 comments

Environments

  • Framework name: Vue
  • Framework version: 2.6.11
  • Moveable Component version: 1.8.7

Description

How can I create a correct copy of Movable object? It would be ideal to have a method for deep copying objects. Something like this:

let movableCopy = Movable.copy(movable);

or

let movableCopy = movable.copy();

basil-gor avatar Sep 07 '20 11:09 basil-gor

@VaskaGor

I'm sorry. There is no clone function yet. The only way to do this is to copy the options and create an instance.

daybrush avatar Sep 08 '20 20:09 daybrush

But in this demo(https://daybrush.com/moveable/) i had seen copy paste keyboard action. can you share the demo source(Vanila js)

sooryaraj avatar Oct 05 '20 03:10 sooryaraj