v-craft
v-craft copied to clipboard
export Node class
To enable creating features like duplicating elements on a page
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
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