Set molecule in Ketcher exactly when it is open #1049
EugenReentovich
started this conversation in
General
Replies: 1 comment
-
Dear @EugenReentovich , sorry for delay I missed your message. To set molecule exactly after initialization of canvas you can you onInit property on Editor React component: Best regards, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I already created a similar issue #601 , but didn't get what I expected. I don' want to make any changes in Ketcher, so, I need some API with which I can interact from the outside. E.g., I could define in Ketcher's parent window some 'onKetcherLoad' function. The Ketcher could read the function and, if defined, execute it on load.
And yes, this problem is easy to solve with timers, but I would like to avoid it.
So, can Ketcher read functions from window.top? Maybe you have another ideas to solve this.
Beta Was this translation helpful? Give feedback.
All reactions