From c751ee47ac23b4709090d224d8c72693abefc475 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 6 Oct 2021 10:23:24 +0200 Subject: [PATCH] fix tinymce loading: waiting dom is ready --- assets/js/admin/modules/editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/admin/modules/editor.js b/assets/js/admin/modules/editor.js index ba8cdcd..1aa343a 100644 --- a/assets/js/admin/modules/editor.js +++ b/assets/js/admin/modules/editor.js @@ -151,5 +151,7 @@ module.exports = function () { const config = { attributes: false, childList: true, subtree: true } observer.observe(document.querySelector('body'), config) - doInitEditor() + $(() => { + doInitEditor() + }) }