Skip to content

export Node class#20

Open
RaymondAtivie wants to merge 1 commit intoyoychen:masterfrom
RaymondAtivie:master
Open

export Node class#20
RaymondAtivie wants to merge 1 commit intoyoychen:masterfrom
RaymondAtivie:master

Conversation

@RaymondAtivie
Copy link
Copy Markdown

To enable creating features like duplicating elements on a page

@yoychen
Copy link
Copy Markdown
Owner

yoychen commented Sep 26, 2021

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.

#19 (comment)

@beyondlevi
Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants