manually clear all TinyMCE events on editor removal

This commit is contained in:
Gani Georgiev
2024-02-10 15:06:49 +02:00
parent 71141dde69
commit a5fdbeae79
33 changed files with 45 additions and 40 deletions
+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 (_) {}