froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.27k stars 673 forks source link

'iframe' mode editor crashed when destroy before it is not fully initialized #4581

Open torrac12 opened 1 year ago

torrac12 commented 1 year ago

Though we are using 'react-froala-wysiwyg' library, I believe the issue should be fixed in 'wysiwyg-editor' library

Simplified demo: https://codesandbox.io/s/billowing-paper-pn1fe5?file=/src/App.js.

We found editor crashed in our product if the editor frequently init and destroy, and we simplify the bug to above demo

It only happens in "iframe" mode, seems the editor get destroy before it fully initialized which cause the issue

dcsaszar commented 1 year ago

See also #4342