Setting molekules and adding fragments to ketcher #722
Replies: 1 comment 8 replies
-
Hi @sasha-tsepilova , I see that the error is happened because of the fact that ketcher object is not available from your script. I guess Ketcher app and your App are hosted in different domain (because of security reasons, you cannot get access to global objects that are defined inside Ketcher iframe in such case). To fix the issue please choose one of the following: Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi there!
We want to use Ketcher for visualizing molecules in our platform (you can check our GitHub here). Now I'm trying to set molecule with the code provided in the developers manual. I made everything as described and tried standalone and remote Ketcher, but it still doesn't work. I keep getting "Cannot read property 'setMolecule' of undefined" error. Would you mind helping me with some code examples or pointing out my mistakes?
Beta Was this translation helpful? Give feedback.
All reactions