openmolecules.org

 
Home » DataWarrior » Functionality » System clipboard (Copy & paste of structures with the system clipboard)
Re: System clipboard [message #27 is a reply to message #22] Thu, 04 December 2014 09:14 Go to previous messageGo to previous message
bruno.b is currently offline  bruno.b
Messages: 13
Registered: October 2014
Location: Germaniy
Junior Member
Hi Thomas,

I am pretty sure it would not be easy to provide a mime type for a copy operation from a pure JavaScript web application because of browser security paranoia.

IMO, DW should accept text/plain and be smart to recognise its type. There are many web sites that show the SMILES of a compound as a text that can be selected and copied.

I tried once a ChemAxon molecule drawing program on a Window 8 computer. This program accepted the drag and drop (D&D) from JSME, which is very convenient. I guess that the molecule drawing program needs only to accept a paste operation with text/plain mime type for D&D to work.


Bruno

PS: I implemented the copy/paste and D&D in JSME
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 2D view
Next Topic: entering IC50s (or other data row by row)
Goto Forum:
  


Current Time: Wed May 15 18:50:57 CEST 2024

Total time taken to generate the page: 0.06337 seconds