I have two jstrees, and I want to perform a DND between them.
The first jstree is a 2 level tree. Parent and Leafs. simple. This tree does not get altered in any way, no drop/change operations allowed.
The second jstree needs to be empty.
Here's the operation I need to do:
If a child is brought across, it must go into the same parent it just left. If a parent doesn't exist? create it.
If a parent is brought across, then the parent and all of it's children are brought across.
That's it. While I'm trying to find this across google, I was hoping someone has worked this issue before and knows how to accomplish this.