Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to programatically clear ketcher's drawing area ? #26

Closed
sfialok98 opened this issue Aug 29, 2020 · 2 comments
Closed

How to programatically clear ketcher's drawing area ? #26

sfialok98 opened this issue Aug 29, 2020 · 2 comments
Assignees

Comments

@sfialok98
Copy link

I want to clear the Ketcher's drawing area programatically .
I tried ketcher.setMolecule('') but it throws BAD Request Error.
How can we achieve this ?

@Vesdet
Copy link
Contributor

Vesdet commented Sep 11, 2020

Hi @sfialok98 , you can clear drawing area with using ketcher.editor.struct(null).

@Vesdet Vesdet self-assigned this Sep 11, 2020
@sfialok98
Copy link
Author

Yes, that worked.
Thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants