芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/ixilyucatan.gob.mx/media/com_modules/js/admin-modules-modal.min.js
document.addEventListener("DOMContentLoaded",(()=>{const t=[].slice.call(document.querySelectorAll(".js-module-insert")),e=[].slice.call(document.querySelectorAll(".js-position-insert"));t.forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();const e=t.target.getAttribute("data-module"),o=t.target.getAttribute("data-editor");window.parent.Joomla&&window.parent.Joomla.editors&&window.parent.Joomla.editors.instances&&Object.prototype.hasOwnProperty.call(window.parent.Joomla.editors.instances,o)&&window.parent.Joomla.editors.instances[o].replaceSelection(`{loadmoduleid ${e}}`),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}))})),e.forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();const e=t.target.getAttribute("data-position"),o=t.target.getAttribute("data-editor");window.Joomla&&window.Joomla.editors&&Joomla.editors.instances&&Object.prototype.hasOwnProperty.call(window.parent.Joomla.editors.instances,o)&&window.parent.Joomla.editors.instances[o].replaceSelection(`{loadposition ${e}}`),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}))}))}));