User cdc1fd6fff
10-11-2016 04:59:22
Hi, we are using MarvinJS in our database.
we find it is not convenient to copy/paste structure from/to MarvinJS. in order to find if this issue is related the version, we use your demo.html to test, the browser is firefox/chrome, please see the result as follow:
paste to MarvinJS
1. If the structure is copyed from Chemdraw or Marvin sketch directly, it cannot paste to MarvinJS by ctrl+V, we need to copy as MRV in the Marvin Sketch or copy as smiles in Chemdraw, however, the shape may be changed
copy from MarvinJS
2.if the structure is copyed from MarvinJS to Chemdraw directly, the code rather than the structure is displayed on the canvas of Chemdraw
we find a description as "*Direct copy-paste between Marvin JS and other applications is available
in MRV or MDL Molfile (V2000) format without web services. If web
services are available, direct copy-paste between Marvin JS and other applications are possible in every text formats." in the guide of Marvin JS. we wonder if web services is available or not in your demo.html. if not, how to set the websevice to solve this copy/paste issue. Since the copy-paste is basic operation, current experience is not good enough for users
Thanks
ChemAxon 76c88f5366
10-11-2016 11:13:07
Hi Juan,
We understand your frustration about this, we worked very hard to make the copy-pasting actions as smooth as possible, but as Marvin JS is determined to be a browser component, we cannot bypass the browser security restrictions.
The problem is that browsers do not let copying or pasting binary formats because of security reasons. ChemDraw's native copy format (CDX) is binary, that is why it is restricted by the browser itself. If Marvin OLE is installed, the native copy format of Marvin Sketch is Marvin Object (OLE), which is also binary.
As a workaround we suggest to use Ctrl+M shortcut in Marvin Sketch for copying structures in MRV format (this shortcut is available from version 16.6.6).
As SMILES format do not contain atom coordinates, it is possible, that the pasted structure's orientation can change. MOL and CDXML formats however contains the coordinates, these could give you more accurate results pasting these into Marvin JS.
2. Because of the above detailed reasons, Marvin JS copy formats are all text based, and it seems that ChemDraw displays these sources as plain texts on the canvas. However they have "Paste Special" option to paste text based molecule sources.
Since we do not have control over ChemDraw functionalities, if you need this to be changed, please request it from ChemDraw support.
For details, and more tips, please visit: https://docs.chemaxon.com/display/docs/Marvin+JS+FAQ
I hope this information will help.
Best regards,
Eszter