Open OpenSysJoe opened 4 years ago
@OpenSysJoe Thanks for explaining the issue in detail. And I confirmed that the issue was reproduced in Firefox. Interestingly, it works fine in Chrome in my case.. 🤔
Anyway, I'll let this be fixed in the next release version. Thanks for reporting the issue!
Describe the bug
An error occurs inside
toastui-editor.js
when the editor loses focus (blur event). This only happens in WYSIWYG mode (initialEditType: 'wysiwyg'
). WithinitialEditType: 'markdown'
there's no error during handling of the blur event.This error is logged in the browser console:
As a result, the registered event handler for the blur event is not called. The editor itself still works perfectly after the error occurred.
To Reproduce
I created this minimal HTML+JS to reproduce the error:
After loading the page do this to reproduce:
Expected behavior
There should be no error and the registered event handler for the blur event should be called.
Desktop (please complete the following information):
Additional context
Thanks a lot for all of your hard work on this project. This is really an amazing editor :1st_place_medal:.