This is a proposal to solve the problem of copying nodes with infoboxes. See iVis-at-Bilkent/newt#63
While doing this I also noticed that before all the changes related to infoboxes in Newt, the ids of infoboxes were duplicated on copy/paste and then saved as is in sbgnml. That was leading to duplicated IDs in the xml, which is invalid.
Both problems can be solved easily with these changes. We can use afterPaste() to maintain consistency of the data inside the pasted nodes.
This is a proposal to solve the problem of copying nodes with infoboxes. See iVis-at-Bilkent/newt#63
While doing this I also noticed that before all the changes related to infoboxes in Newt, the ids of infoboxes were duplicated on copy/paste and then saved as is in sbgnml. That was leading to duplicated IDs in the xml, which is invalid.
Both problems can be solved easily with these changes. We can use afterPaste() to maintain consistency of the data inside the pasted nodes.