BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
wp-content
/
plugins
/
cmp-coming-soon-maintenance
/
js
📤 Upload
📝 New File
📁 New Folder
Close
Editing: cmp-editor-translation.min.js
!function () { const t = document.querySelector(".wp-editor-tabs"); if (t && translation.langs.length > 1) { translation.langs.reverse().forEach((e, n) => { const o = `<button type="button" data-lang="${e}" class="cmp-switch-editor-lang${n === translation.langs.length - 1 ? " active" : ""}">${e.toUpperCase()}</button>`; t.insertAdjacentHTML("afterbegin", o) }); const e = document.querySelectorAll(".cmp-switch-editor-lang"), n = document.getElementById("niteoCS_body"); let o = translation.default; for (const t of e) t.addEventListener("click", function (t) { for (var a of e) a.classList.remove("active"); t.target.classList.add("active"); const c = t.target.dataset.lang, i = document.querySelector(`#niteoCS_body_${c}`); document.getElementById("wp-niteoCS_body-wrap").classList.contains("tmce-active") ? tinyMCE.activeEditor.setContent(i.value) : n.value = i.value, o = c }); jQuery(document).on("tinymce-editor-setup", function (t, e) { e.on("focusout", function (t) { document.querySelector(`#niteoCS_body_${o}`).value = e.getContent() }) }), n.addEventListener("focusout", function (t) { document.querySelector(`#niteoCS_body_${o}`).value = t.target.value }) } }();
Save
Cancel