User a0a0b9fc1b
27-05-2016 12:48:31
Hi,
I am embedding marvinJS
16.4.18 in a website linked with a webservice.
I was able to check any
change in the structure to produce an action by using
marvinSketcherInstance.on("molchange", function() { // do something
in JavaScript
});
Now I am struggling to check
when the sketcher is cleared to then produce another
action in JavaScript.
By clearing I mean either through the upper left button or by selecting
and deleting, in fact by any mean that would display the "phenyl/hand” icon, the “Marvin
JS” and the “Chemaxon” icon as in the initial state (when the page is loaded).
Is there a way to check
that the sketcher is in this "cleared" state?
Thanks a lot in advance for your help.
My best,
Antoine.