;tinyMCE.PluginManager.add("dusky_tinymce_js",(function(d){const t=dusky_localize.admin_settings.adminDark,e=dusky_localize.admin_settings.classicEditorDarkMode;t&&e&&d.on("init",(function(){document.addEventListener("dusky:enable",(function(){d.getBody().parentNode.setAttribute("data-dusky-dark-mode","dark")})),document.addEventListener("dusky:disable",(function(){d.getBody().parentNode.removeAttribute("data-dusky-dark-mode")}))}))}));