Introduce method to easily "clone" element with children to model writer. #6819
Labels
package:engine
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
Milestone
📝 Provide a description of the new feature
In some copy/paste scenarios there's a need to copy elements along with its attributes and with children.
I'd propose a new method:
That will create a shallow or deep copy of given element. The rationale behind object is that this might be later on enhanced and also simple true/false is hard to remember in code.
ps.: ATM we have private
Element._clone()
but this is not a good way of doing this.If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: