manually clear all TinyMCE events on editor removal

This commit is contained in:
Gani Georgiev committed 2024-02-10 15:06:49 +02:00
1 parent 71141dde69
commit a5fdbeae79
33 files changed
+45 -40

No files matched your search

+3
View File
@@ -225,6 +225,9 @@
return () => {
try {
if (editorRef) {
// temp workaround for https://github.com/tinymce/tinymce/issues/9377
editorRef.dom?.unbind(document);
getTinymce()?.remove(editorRef);
}
} catch (_) {}