芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/chicxulubpuebloyucatan.gob.mx/media/plg_editors_tinymce/js/tinymce-builder.min.js
if(!Joomla)throw new Error("Joomla API is not properly initialised");const tinymce={langCode:"en",langStrings:{},icons:{"accessibility-check":'
',"align-center":'
',"align-justify":'
',"align-left":'
',"align-none":'
',"align-right":'
',"arrow-left":'
',"arrow-right":'
',backcolor:'
',bold:'
',bookmark:'
',"border-width":'
',brightness:'
',browse:'
',cancel:'
',"change-case":'
',"character-count":'
',checklist:'
',checkmark:'
',"chevron-down":'
',"chevron-left":'
',"chevron-right":'
',"chevron-up":'
',close:'
',"code-sample":'
',"color-levels":'
',"color-picker":'
',"color-swatch-remove-color":'
',"color-swatch":'
',comment:'
',contrast:'
',copy:'
',crop:'
',cut:'
',"document-properties":'
',drag:'
',duplicate:'
',"edit-image":'
',"embed-page":'
',embed:'
',emoji:'
',fill:'
',"flip-horizontally":'
',"flip-vertically":'
',forecolor:'
',"format-painter":'
',fullscreen:'
',gamma:'
',help:'
',home:'
',"horizontal-rule":'
',"image-options":'
',image:'
',indent:'
',indeterminate:'
',info:'
',"insert-character":'
',"insert-time":'
',invert:'
',italic:'
',line:'
',lineheight:'
',link:'
',"list-bull-circle":'
',"list-bull-default":'
',"list-bull-square":'
',"list-num-default":'
',"list-num-lower-alpha":'
',"list-num-lower-greek":'
',"list-num-lower-roman":'
',"list-num-upper-alpha":'
',"list-num-upper-roman":'
',lock:'
',ltr:'
',"more-drawer":'
',"new-document":'
',"new-tab":'
',"non-breaking":'
',notice:'
',"ordered-list":'
',orientation:'
',outdent:'
',"page-break":'
',paragraph:'
',"paste-text":'
',paste:'
',"permanent-pen":'
',plus:'
',preferences:'
',preview:'
',print:'
',quote:'
',redo:'
',reload:'
',"remove-formatting":'
',remove:'
',"resize-handle":'
',resize:'
',"restore-draft":'
',"rotate-left":'
',"rotate-right":'
',rtl:'
',save:'
',search:'
',"select-all":'
',selected:'
',settings:'
',sharpen:'
',sourcecode:'
',"spell-check":'
',"strike-through":'
',subscript:'
',superscript:'
',"table-cell-properties":'
',"table-cell-select-all":'
',"table-cell-select-inner":'
',"table-delete-column":'
',"table-delete-row":'
',"table-delete-table":'
',"table-insert-column-after":'
',"table-insert-column-before":'
',"table-insert-row-above":'
',"table-insert-row-after":'
',"table-left-header":'
',"table-merge-cells":'
',"table-row-properties":'
',"table-split-cells":'
',"table-top-header":'
',table:'
',template:'
',"temporary-placeholder":'
',toc:'
',translate:'
',underline:'
',undo:'
',unlink:'
',unlock:'
',"unordered-list":'
',unselected:'
',upload:'
',user:'
',visualblocks:'
',visualchars:'
',warning:'
',"zoom-in":'
',"zoom-out":'
'},iconsmap:{aligncenter:"align-center",alignjustify:"align-justify",alignleft:"align-left",alignright:"align-right",anchor:"bookmark",blockquote:"quote",bullist:"unordered-list",charmap:"insert-character",code:"sourcecode",codesample:"code-sample",emoticons:"emoji",hr:"horizontal-rule",insertdatetime:"insert-time",media:"embed",nonbreaking:"non-breaking",numlist:"ordered-list",pagebreak:"page-break",pastetext:"paste-text",removeformat:"remove-formatting",searchreplace:"search",strikethrough:"strike-through"},addI18n:(h,l)=>{tinymce.langCode=h,tinymce.langStrings=l||{}},translate:h=>tinymce.langStrings[h]||h,showIcon:h=>{const l=tinymce.iconsmap[h]||h;return tinymce.icons[l]||tinymce.icons[h]||h}};window.tinymce=tinymce;const TinyMCEBuilder=(h,l)=>{const e=h.querySelector(".tinymce-builder-menu.source"),v=h.querySelector(".tinymce-builder-toolbar.source"),a=h.querySelectorAll(".tinymce-builder-menu.target"),t=h.querySelectorAll(".tinymce-builder-toolbar.target"),i=(h,e,v)=>{const a=`${l.formControl}[${v}][${e}][]`,t=h.getAttribute("data-name");h.innerHTML+=Joomla.sanitizeHtml(`
`)},c=(h,l,e)=>{const v=tinymce.translate(l.label);let a="",t="tox-mbtn";if("menu"===e)a=v;else if(l.text){const h=tinymce.translate(l.text);t+=" tox-tbtn--bespoke";const e=tinymce.showIcon("chevron-down");a="|"!==l.text?`
${h}
${e}
`:h}else a=tinymce.showIcon(h);return`
${a}
`},z=(h,e,v,a)=>{const t=h.getAttribute("data-group"),z=h.getAttribute("data-set"),d="menu"===e?l.menus:l.buttons,s=v||JSON.parse(h.getAttribute("data-value"))||[];let g,r;for(let l=0,v=s.length;l
{const{set:l}=h;a.forEach((h=>{h.getAttribute("data-set")===l&&(h.innerHTML="")})),t.forEach((h=>{h.getAttribute("data-set")===l&&(h.innerHTML="")}))};z(e,"menu"),z(v,"toolbar");const s=dragula([e],{copy:(h,l)=>l===e,accepts:(h,l)=>l!==e,removeOnSpill:!0}).on("drag",(()=>{a.forEach((h=>{h.classList.add("drop-area-highlight")}))})).on("dragend",(()=>{a.forEach((h=>{h.classList.remove("drop-area-highlight")}))})).on("drop",((h,l)=>{l!==e&&i(h,l.getAttribute("data-group"),l.getAttribute("data-set"))}));a.forEach((h=>{z(h,"menu",null,!0),s.containers.push(h)}));const g=dragula([v],{copy:(h,l)=>l===v,accepts:(h,l)=>l!==v,removeOnSpill:!0}).on("drag",(()=>{t.forEach((h=>{h.classList.add("drop-area-highlight")}))})).on("dragend",(()=>{t.forEach((h=>{h.classList.remove("drop-area-highlight")}))})).on("drop",((h,l)=>{l!==v&&i(h,l.getAttribute("data-group"),l.getAttribute("data-set"))}));t.forEach((h=>{z(h,"toolbar",null,!0),g.containers.push(h)}));h.querySelectorAll(".button-action").forEach((h=>{h.addEventListener("click",(({target:h})=>{const e=h.getAttribute("data-action"),v={};switch([].forEach.call(h.attributes,(h=>{if(/^data-/.test(h.name)){const l=h.name.substr(5);v[l]=h.value}})),e){case"clearPane":d(v);break;case"setPreset":(h=>{const{set:e}=h,v=l.toolbarPreset[h.preset]||null;if(!v)throw new Error(`Unknown Preset "${h.preset}"`);d(h),Object.keys(v).forEach((h=>{const l="menu"===h?"menu":"toolbar";"menu"===h?a.forEach((a=>{a.getAttribute("data-group")===h&&a.getAttribute("data-set")===e&&z(a,l,v[h],!0)})):t.forEach((a=>{a.getAttribute("data-group")===h&&a.getAttribute("data-set")===e&&z(a,l,v[h],!0)}))}))})(v);break;default:throw new Error(`Unsupported action: ${e}`)}}))}))},options=Joomla.getOptions?Joomla.getOptions("plg_editors_tinymce_builder",{}):Joomla.optionsStorage.plg_editors_tinymce_builder||{},builder=document.getElementById("joomla-tinymce-builder");TinyMCEBuilder(builder,options);const selects=builder.querySelectorAll(".access-select"),toggleAvailableOption=()=>{selects.forEach((h=>{h.enableAllOptions()})),selects.forEach((h=>{const l=h.value;selects.forEach((e=>{h!==e&&l.forEach((h=>{e.disableByValue(h)}))}))}))};window.addEventListener("load",(()=>toggleAvailableOption())),selects.forEach((h=>{h.addEventListener("change",(()=>{toggleAvailableOption()}))}));