You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! We are now working closely with Ketcher, integrating it to our platform. And there are some questions regarding Ketcehr API, which I want to raise:
is there a way to get the Ketcher settings via some API method?
in case we have the settings, is there a way to apply them via API also? At the moment of ketcher creation or after it was created. We are using StandaloneStructServiceProvider to create Ketcher.
Btw, is there some documentation with detailed API description?
Thank you very much in advance!
The text was updated successfully, but these errors were encountered:
We are currently working on api documentation. We will provide a link once it will be ready.
You can use a method ketcher.editor.options() to get options and ketcher.editor.setOptions() to set options. F.e: ketcher.editor.setOptions('{"atomColoring": false}')
To use these methods it needs to ketcher be initialised. So you can use it in onInit property of Editor component, as it done in our example/src/App.tsx.
Please let me know if you need something, I will glad to help.
Hi @rrodionov91! Thank you for the information.
I have one question regarding ketcher.editor.setOptions() method. I call it inside onInit method as you suggested. And everything seems to work correctly - the options are applied. But I keep getting the following exception:
Can you please advice how to better handle it?
Hi! We are now working closely with Ketcher, integrating it to our platform. And there are some questions regarding Ketcehr API, which I want to raise:
is there a way to get the Ketcher settings via some API method?
in case we have the settings, is there a way to apply them via API also? At the moment of ketcher creation or after it was created. We are using StandaloneStructServiceProvider to create Ketcher.
Btw, is there some documentation with detailed API description?
Thank you very much in advance!
The text was updated successfully, but these errors were encountered: