芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/chicxulubpuebloyucatan.gob.mx/media/plg_editors_tinymce/js/tinymce-es5.min.js
!function(){"use strict";!function(t,e,n,i){e.JoomlaTinyMCE={setupEditors:function(t){var n=t||i,o=e.getOptions?e.getOptions("plg_editor_tinymce",{}):e.optionsStorage.plg_editor_tinymce||{};[].slice.call(n.querySelectorAll(".js-editor-tinymce")).forEach((function(t){var n=t.querySelector("textarea"),i=t.querySelector(".js-tiny-toggler-button"),c=t.querySelector(".icon-eye");e.JoomlaTinyMCE.setupEditor(n,o),i&&(i.removeAttribute("disabled"),i.addEventListener("click",(function(){e.editors.instances[n.id].instance.isHidden()?(c.setAttribute("class","icon-eye"),e.editors.instances[n.id].instance.show()):(c.setAttribute("class","icon-eye-slash"),e.editors.instances[n.id].instance.hide())})))}))},setupEditor:function(n,o){if(!e.editors.instances[n.id]){var c=n?n.getAttribute("name").replace(/\[\]|\]/g,"").split("[").pop():"default",s=o&&o.tinyMCE||{},r=s.default||{},a=s[c]?s[c]:r;a=a.joomlaMergeDefaults?e.extend(e.extend({},r),a):e.extend({},a),n&&(a.selector=null,a.target=n);var d=[],u=Object.keys(a.joomlaExtButtons.names).map((function(t){return a.joomlaExtButtons.names[t]})),l={joomla:'
'};u.forEach((function(t){var e={};e.text=t.name,e.icon=t.icon,e.type="menuitem",t.iconSVG&&(l[e.icon]=t.iconSVG),t.href?e.onAction=function(){i.getElementById(t.id+"_modal").open()}:e.onAction=function(){new Function(t.click)()},d.push(e)}));var f=!1;n&&(f=n.readOnly),d.length?a.setup=function(t){t.settings.readonly=f,Object.keys(l).forEach((function(e){t.ui.registry.addIcon(e,l[e])})),t.ui.registry.addMenuButton("jxtdbuttons",{text:e.Text._("PLG_TINY_CORE_BUTTONS"),icon:"joomla",fetch:function(t){return t(d)}})}:a.setup=function(t){t.settings.readonly=f},a.init_instance_callback=function(t){t.on("submit",(function(){t.isHidden()&&t.show()}),!0)};var m=new t.Editor(n.id,a,tinymce.EditorManager);m.render(),e.editors.instances[n.id]={getValue:function(){return e.editors.instances[n.id].instance.getContent()},setValue:function(t){return e.editors.instances[n.id].instance.setContent(t)},getSelection:function(){return e.editors.instances[n.id].instance.selection.getContent({format:"text"})},replaceSelection:function(t){return e.editors.instances[n.id].instance.execCommand("mceInsertContent",!1,t)},disable:function(t){return e.editors.instances[n.id].instance.setMode(t?"readonly":"design")},id:n.id,instance:m}}}},i.addEventListener("DOMContentLoaded",(function(){e.JoomlaTinyMCE.setupEditors(i)})),i.addEventListener("joomla:updated",(function(t){var n=t.target;return e.JoomlaTinyMCE.setupEditors(n)}))}(window.tinyMCE,Joomla,window,document)}();