iVis-at-Bilkent / cytoscape.js-clipboard

A Cytoscape.js extension to provide copy-paste utilities
MIT License
8 stars 4 forks source link

Problem with multiple instances support during paste operation #5

Closed hasanbalci closed 6 years ago

hasanbalci commented 6 years ago

When a node is copied and pasted multiple times, extension behaves weirdly. Furthermore, when two tabs exist, if a node is tried to be copied and pasted in one tab, it pastes to the other tab.

metincansiper commented 6 years ago

@hasanbalci that is interesting because it works fine in the collaborative editor (that is based on Newt) even with multiple views. You can find it deployed here. If I am not wrong it works well in the demo page of this extension as well (note that there is just one view in demo page, it can at least be said that seems like working fine for one instance). I suppose that it behaves weirdly in Newt. Could it be caused by some changes that are committed after multiple instances/tabs support in Newt or some related libraries (chise.js, sbgnviz.js).

hasanbalci commented 6 years ago

@metincansiper Thanks, I realized that the problem is about the release of the extension. I think, @kinimesi released the extension without recent updates.