jsme-editor / jsme-editor.github.io

73 stars 19 forks source link

Invalid callback name: AfterPaste #22

Closed radusuciu closed 2 years ago

radusuciu commented 2 years ago

This is with the latest version of jsme-editor:

jsmeApplet.setCallBack('AfterPaste', () => console.log('hi!')) # does not work
jsmeApplet.setCallBack('BeforePaste', () => console.log('hi!')) # works fine!

jsmeApplet.getAlldefinedCallBackNames()
# ['BeforePaste', 'AfterStructureModified', 'AtomHighlight', 'BondHighlight', 'AtomClicked', 'BondClicked', 'InchiKeySearch']
# missing 'AfterPaste' ^
jsme-editor commented 2 years ago

You are correct, "AfterPaste" is missing. This will be corrected in the next release.

jsme-editor commented 2 years ago

Could you try version 2022-02-26 and report if the problem is fixed?

radusuciu commented 2 years ago

Hey, I was just out on vacation but will test and report back soon. Thank you for addressing this!

radusuciu commented 2 years ago

Can confirm this was fixed, thank you!