Файловый менеджер - Редактировать - /var/www/html/joomla-highlighter.zip
Ðазад
PK ! 9Q?9 9 plugin.min.js.gznu �[��� � }U�n�6��+h��)����ܤ����� ����"��Y�-�Qɑw7������i�g��f8|z�8;{�����>��!��u��_>����A`K�v�� &���� Q�ʋ��v��@l�V뫉�;!c��z�{���]�a�����a`�F�5A\��n�\]�(��vv�u��V��րz�څ;t Qik�˿vu�s����j01[Qu5�ڠ�($�>X<���C҆�(&T��@HP1ft��i�� �-�3[@5XQ���2���hH� ?<8ؖ'�c��@,T'�s�z:3��E�cX���r���V9�P��s���=�}9о��w:���x��ru��y�8�s�ǚ��#hS�:%ؑ�����G�B���C��V�\�>��WY�2�OPr�c���0<�L�if=F����s4�6����#6�8"��z�~?_5�V�=��r:X��j��T"M�,E���B-�BFe<&�O��:/�i�,$����*���2�x�u ��^�\�a$���[#F^�c��c�"?�W���6�b](j �LM�s��a�e��'�[ݕ�(,��e7�g����Q��AmqP VM�B �Wq���Qp�UA��^HS��t�@72�t�Q�H�f�h�[1�� r]>T�Pբ�N鮃`��cS�J$���oT���{G���F���*����zZȾ�_��T���a�H�*���X��Hb�͙����q_�����h�?�F��7l��\z�m��CL����uP�Xrp����p�G��� z�������Ԕ����\6���("R��a{�#�#S��jmn�*����=��e'S�6T��u��2*����Q�����$���تD{�ջ�L��a7v��c1�b�$�w*B��}v������3J>�ݜ��c=�=���4����d�_���п!h����_!�&�qF�OE���#�����o\��K�����u��K]ȡ��V���C�Y�^g�̈́g��[+���B�����q,O���z� PK ! ��z� � plugin.min.jsnu �[��� /** * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */window.tinymce.PluginManager.add("joomlaHighlighter",e=>{const d=t=>{e.focus(),e.undoManager.transact(()=>{e.setContent(t)}),e.selection.setCursorLocation(),e.nodeChanged()},g=()=>e.getContent({source_view:!0});let n=!1;const a=()=>{if(n)return;n=!0;let t;const m={title:"Source code",body:{type:"panel",classes:["joomla-highlighter-dialog"],items:[{type:"textarea",name:"textarea",inputMode:"text",maximized:!0}]},size:"large",buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",buttonType:"primary"}],onSubmit:r=>{d(t.state.doc.toString()),r.close()},onClose:()=>{t.destroy(),t=null,n=!1}};Promise.all([import("codemirror"),import("@codemirror/view"),import("@codemirror/commands")]).then(([{createFromTextarea:r},{keymap:h},{indentMore:p}])=>{e.windowManager.open(m);const o=document.querySelector(".joomla-highlighter-dialog textarea"),c=o.parentElement,i=c.attachShadow({mode:"open"});o.value=g(),i.appendChild(o);const y=(s,f)=>{f.preventDefault();const l=c.closest('[role="dialog"]'),u=l.querySelector('.tox-dialog__footer [type="button"]:not(.tox-button--secondary)');u?u.focus():l.focus()},w={mode:"html",lineNumbers:!0,lineWrapping:!0,activeLine:!0,highlightSelection:!0,foldGutter:!0,width:"100%",height:"100%",root:i,customExtensions:[()=>h.of([{key:"Tab",run:p,shift:y}])]},x=c.scrollHeight;r(o,w).then(s=>{t=s,t.focus(),t.dom.style.maxHeight=`${x}px`})})};return e.ui.registry.addButton("code",{icon:"sourcecode",title:"Source code+",tooltip:"Source code+",onAction:a}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code+",onAction:a,context:"tools"}),e.addShortcut("Alt+U","Opens the code editor",a),{getMetadata:()=>({name:"Source Code Editor (Joomla)",url:"https://www.joomla.org/"})}}); PK ! kUS� � plugin.jsnu �[��� /** * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ // @TODO: remove the specific conditional on plg_system_shortcut/js/shortcut.es6.js when this moves to JoomlaDialog window.tinymce.PluginManager.add('joomlaHighlighter', editor => { const setContent = html => { editor.focus(); editor.undoManager.transact(() => { editor.setContent(html); }); editor.selection.setCursorLocation(); editor.nodeChanged(); }; const getContent = () => editor.getContent({ source_view: true }); let running = false; const showSourceEditor = () => { if (running) { return; } running = true; // Create the dialog let cmEditor; const dialogConfig = { title: 'Source code', body: { type: 'panel', classes: ['joomla-highlighter-dialog'], items: [{ type: 'textarea', name: 'textarea', inputMode: 'text', maximized: true }] }, size: 'large', buttons: [{ type: 'cancel', name: 'cancel', text: 'Cancel' }, { type: 'submit', name: 'save', text: 'Save', buttonType: 'primary' }], onSubmit: dialogApi => { setContent(cmEditor.state.doc.toString()); dialogApi.close(); }, onClose: () => { cmEditor.destroy(); cmEditor = null; running = false; } }; // Import codemirror and open the dialog Promise.all([import('codemirror'), import('@codemirror/view'), import('@codemirror/commands')]).then(([{ createFromTextarea }, { keymap }, { indentMore }]) => { editor.windowManager.open(dialogConfig); // Find textarea and move it to shadow DOM to isolate from TinyMCE styling const textarea = document.querySelector('.joomla-highlighter-dialog textarea'); const wrapper = textarea.parentElement; const shadow = wrapper.attachShadow({ mode: 'open' }); textarea.value = getContent(); shadow.appendChild(textarea); // Move focus out of the codemirror const escapeTabTrap = (view, event) => { event.preventDefault(); // Find a Save button const dialogEl = wrapper.closest('[role="dialog"]'); const btnEl = dialogEl.querySelector('.tox-dialog__footer [type="button"]:not(.tox-button--secondary)'); if (btnEl) { btnEl.focus(); } else { dialogEl.focus(); } }; const cmOptions = { mode: 'html', lineNumbers: true, lineWrapping: true, activeLine: true, highlightSelection: true, foldGutter: true, width: '100%', height: '100%', root: shadow, customExtensions: [ // Enable Tab trapping () => keymap.of([{ key: 'Tab', run: indentMore, shift: escapeTabTrap }])] }; const wrapperheight = wrapper.scrollHeight; createFromTextarea(textarea, cmOptions).then(cmView => { cmEditor = cmView; cmEditor.focus(); cmEditor.dom.style.maxHeight = `${wrapperheight}px`; }); }); }; editor.ui.registry.addButton('code', { icon: 'sourcecode', title: 'Source code+', tooltip: 'Source code+', onAction: showSourceEditor }); editor.ui.registry.addMenuItem('code', { icon: 'sourcecode', text: 'Source code+', onAction: showSourceEditor, context: 'tools' }); editor.addShortcut('Alt+U', 'Opens the code editor', showSourceEditor); return { getMetadata: () => ({ name: 'Source Code Editor (Joomla)', url: 'https://www.joomla.org/' }) }; }); PK ! 9Q?9 9 plugin.min.js.gznu �[��� PK ! ��z� � y plugin.min.jsnu �[��� PK ! kUS� � : plugin.jsnu �[��� PK � l
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка