v-craft icon indicating copy to clipboard operation
v-craft copied to clipboard

export Node class

Open RaymondAtivie opened this issue 3 years ago • 2 comments

To enable creating features like duplicating elements on a page

RaymondAtivie avatar Aug 18 '21 20:08 RaymondAtivie

Thanks for the PR, but we think the Node class is the implementational details of v-craft, we don't want to expose it to the developer. We implement duplicate() method in Node, and hope it would resolve your use case.

https://github.com/yoychen/v-craft/issues/19#issuecomment-927302070

yoychen avatar Sep 26 '21 13:09 yoychen

We've been trying to use the duplicate method, but we don't know how to add the new node generated by the method in the editor. We just receive the duplicated element as a Javascript object with no use

beyondlevi avatar Dec 05 '22 21:12 beyondlevi