File manager - Edit - /home/opticamezl/www/newok/fullpage.zip
Back
PK o6�\> �E� � plugin.min.js.gznu �[��� � �Ymo7��_��lҢVV���ʌ�8iQ\�〞�3�ݑ��ԑ\Y���~ �E������H�g�Ù�����W�yt�k#fs�D�B��[H�JK=`i�J�譔Q���f Y�?���,*T&rs�>�t�1�&�Q��L*��dIx~Ԧ$� ��ح\$T�0�ߐ��h�65s$�T��;�U#��6ȝ;���`�;��q*u� ^E����B�$�6^�?D���o^����[�*:�:�*�a�A���:#R�F�|$0�͒��1p�Q����X�FnGm{��1��v��{?WQC<w� �1�R.���"�{��.L �K�����?�)/����L�Y�y�R�V�~�s!�m�/�ߊߡ�}����_�͒K�q�ɐ��W<��%�i��rhG!��rN�7���20���\�]k�4'�"�Yv���<�)o�n�^�q,����'+���uTQC9M�ݟ�Qb��l������a�r�]� M�5vT�-��H�1�)�v��0��a_��;�6,���Xw=2#�[/���x���`'s6��!<���İ��x�e��L� %'�а��[)q����Ťa�3]���t}���ԫ���t � 'n��<� ��=]iGc�����8"�}a�E��U~F>(�����)�����c;�Q?���0�4��V��I�u����f���S�� ���rw����s��;{>��ҫO�����'����Y�3`6�"�m�r��>2�[K�s g�x��]R�/�B{oW�����iGd�(�1jn`���t�>P=��<5j�S�g�\ +d�����_V���h�4<ub �%^�����fx�7;� A� D���Q����Ԉ�����]X�kH�g� �#T*�G�2��W|&�P���p<�G\e�*E����n���CQ�d�/O�\�DT8�m2ޔ���,��jQ8D% ��۰��em�q�ի }��,�[ W��/��ҏ�iߖk{m��>��^�Mv�pN+勒4�*��+e�#+���r� ���!���| 5���{aD��:9��M�P� .�s��Z}�ɓ��BE�d�P��T���T?��.Tm�K-��U���k[)���BY0mϓ��|� �a ;� �� q��PJ|]�g�v����C-S�M+b:$����2�3OO.H�k},!�w �UA��-Kh��0�@gT����)�=v�+�Y�C�;Cg�~w����u^���Mk-9M���$I�驯�� �p��ѪWj�W�/V{7TtxA��>� I�-e��-<�T3��~�X���yH��EU!� �Zv�0w������� �鐐�"hwo��k�>�2Hj˻5�">GQU^��a�K(q���!_�5���2�T�����&�9�@}�s��&��KJUEhZ����b���aDNf� ��˓#�L�aB��KUE�H�zDL1vL�ńt0�?ZR�N�`��r�ޖ$q�5d�a���R8rh��ݑ�7(c���G#8w�Ǥ�J�n����l�N܆���m��/���rB1�Q�_��8 "��^���4n���?��%P��O���*���j��HTw�S�X���S���6|"T��[�x�8��w:[cB7aˤښf�$:΄�ˏB}Iv����oKyE��oG��A���V�� �R���%�)�ۭm�B�`��Q��KN.�_�0��P��%@3�/ w��7;�G�Өx�ԁ�s�;[0�K�;�T���he�Z�~�է)F�/��8$���ʃ*ʗ#�ĊP�]����H�����7��<<��\���9� f��mH;O��D[�*K����f��9��)]�9]3��&#[�$���n,�v�:�_�2�rL}�xG����pDqt�z���y I%����|H��w��8v��Rd�cx��e���ԕ��ne�ꪜ��^�v����������L��8�L�;#r\I$=t�P��4ݡ�hH������LPt��a�:H+J��+,��O�AT�Bt�Ŧc�7$���7t��9��o�n��/��XX�|K�� �&��#�iBIp� ��� <c@��*AT(�;��Z�2��P�x��+?����o�靡��͝:#t�c���� �}3#�ڷ1=���e����7w Q<��� �T��0~�z����;��$S�o,�)$ڣ*�UQ} �@�Yo��F�)[U��=�|�_v�(�1*w�rH^��� +W�w�� Ö��A�2b{x~u��t֛{x� Dz(��&�2�ա��Mx�T7��`�����-ŝ�Ӻ��i��W�٣Uz��2�PJ����YχFH�-h=_5<l/��y���Wv�.뚷?�� B�ꁪS�� �3a߭o��W�C�aH��F�e�hp�Fd��;R���9\w^�� wp+��� � �9���$^<��K�yzL)�p��o��$߯�"C�[&گ�)�F�#1�'�B�'�|�&�m[�����6�+����G,I�Пm1��{[�^p*�����\���� ��8��� �j-=R�Z����nd1��o!Bg��� <c��ח�[+fj�}�)3��q3�a뇋��#�둚P�o:{����J�/�:<��~zTU/m�\J��g c1aο�j$ep�5vsai#���㋜�_C������:��)�;n�r6j>9���s��N7�����k�*:�/!�b���G)����j\��LXg�^�nkK�8�����g������)R�`����%����_�\h���'�l�;��P�����4LQ�$�ڻ��]xl|w]?�ۧdqyBU�3��iu�|�o䘦���3�d��U��J� �µۭhcpq�m�*,��kX�E� AwZv`� ��w�����o:/�և�BU(���1���sHg�� PK o6�\*���E E plugin.jsnu �[��� /** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.10.9 (2023-11-15) */ (function () { 'use strict'; var Cell = function (initial) { var value = initial; var get = function () { return value; }; var set = function (v) { value = v; }; return { get: get, set: set }; }; var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager'); var __assign = function () { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var global$3 = tinymce.util.Tools.resolve('tinymce.util.Tools'); var global$2 = tinymce.util.Tools.resolve('tinymce.html.DomParser'); var global$1 = tinymce.util.Tools.resolve('tinymce.html.Node'); var global = tinymce.util.Tools.resolve('tinymce.html.Serializer'); var shouldHideInSourceView = function (editor) { return editor.getParam('fullpage_hide_in_source_view'); }; var getDefaultXmlPi = function (editor) { return editor.getParam('fullpage_default_xml_pi'); }; var getDefaultEncoding = function (editor) { return editor.getParam('fullpage_default_encoding'); }; var getDefaultFontFamily = function (editor) { return editor.getParam('fullpage_default_font_family'); }; var getDefaultFontSize = function (editor) { return editor.getParam('fullpage_default_font_size'); }; var getDefaultTextColor = function (editor) { return editor.getParam('fullpage_default_text_color'); }; var getDefaultTitle = function (editor) { return editor.getParam('fullpage_default_title'); }; var getDefaultDocType = function (editor) { return editor.getParam('fullpage_default_doctype', '<!DOCTYPE html>'); }; var getProtect = function (editor) { return editor.getParam('protect'); }; var parseHeader = function (editor, head) { return global$2({ validate: false, root_name: '#document' }, editor.schema).parse(head, { format: 'xhtml' }); }; var htmlToData = function (editor, head) { var headerFragment = parseHeader(editor, head); var data = {}; var elm, matches; var getAttr = function (elm, name) { var value = elm.attr(name); return value || ''; }; data.fontface = getDefaultFontFamily(editor); data.fontsize = getDefaultFontSize(editor); elm = headerFragment.firstChild; if (elm.type === 7) { data.xml_pi = true; matches = /encoding="([^"]+)"/.exec(elm.value); if (matches) { data.docencoding = matches[1]; } } elm = headerFragment.getAll('#doctype')[0]; if (elm) { data.doctype = '<!DOCTYPE' + elm.value + '>'; } elm = headerFragment.getAll('title')[0]; if (elm && elm.firstChild) { data.title = elm.firstChild.value; } global$3.each(headerFragment.getAll('meta'), function (meta) { var name = meta.attr('name'); var httpEquiv = meta.attr('http-equiv'); var matches; if (name) { data[name.toLowerCase()] = meta.attr('content'); } else if (httpEquiv === 'Content-Type') { matches = /charset\s*=\s*(.*)\s*/gi.exec(meta.attr('content')); if (matches) { data.docencoding = matches[1]; } } }); elm = headerFragment.getAll('html')[0]; if (elm) { data.langcode = getAttr(elm, 'lang') || getAttr(elm, 'xml:lang'); } data.stylesheets = []; global$3.each(headerFragment.getAll('link'), function (link) { if (link.attr('rel') === 'stylesheet') { data.stylesheets.push(link.attr('href')); } }); elm = headerFragment.getAll('body')[0]; if (elm) { data.langdir = getAttr(elm, 'dir'); data.style = getAttr(elm, 'style'); data.visited_color = getAttr(elm, 'vlink'); data.link_color = getAttr(elm, 'link'); data.active_color = getAttr(elm, 'alink'); } return data; }; var dataToHtml = function (editor, data, head) { var headElement, elm; var dom = editor.dom; var setAttr = function (elm, name, value) { elm.attr(name, value ? value : undefined); }; var addHeadNode = function (node) { if (headElement.firstChild) { headElement.insert(node, headElement.firstChild); } else { headElement.append(node); } }; var headerFragment = parseHeader(editor, head); headElement = headerFragment.getAll('head')[0]; if (!headElement) { elm = headerFragment.getAll('html')[0]; headElement = new global$1('head', 1); if (elm.firstChild) { elm.insert(headElement, elm.firstChild, true); } else { elm.append(headElement); } } elm = headerFragment.firstChild; if (data.xml_pi) { var value = 'version="1.0"'; if (data.docencoding) { value += ' encoding="' + data.docencoding + '"'; } if (elm.type !== 7) { elm = new global$1('xml', 7); headerFragment.insert(elm, headerFragment.firstChild, true); } elm.value = value; } else if (elm && elm.type === 7) { elm.remove(); } elm = headerFragment.getAll('#doctype')[0]; if (data.doctype) { if (!elm) { elm = new global$1('#doctype', 10); if (data.xml_pi) { headerFragment.insert(elm, headerFragment.firstChild); } else { addHeadNode(elm); } } elm.value = data.doctype.substring(9, data.doctype.length - 1); } else if (elm) { elm.remove(); } elm = null; global$3.each(headerFragment.getAll('meta'), function (meta) { if (meta.attr('http-equiv') === 'Content-Type') { elm = meta; } }); if (data.docencoding) { if (!elm) { elm = new global$1('meta', 1); elm.attr('http-equiv', 'Content-Type'); elm.shortEnded = true; addHeadNode(elm); } elm.attr('content', 'text/html; charset=' + data.docencoding); } else if (elm) { elm.remove(); } elm = headerFragment.getAll('title')[0]; if (data.title) { if (!elm) { elm = new global$1('title', 1); addHeadNode(elm); } else { elm.empty(); } elm.append(new global$1('#text', 3)).value = data.title; } else if (elm) { elm.remove(); } global$3.each('keywords,description,author,copyright,robots'.split(','), function (name) { var nodes = headerFragment.getAll('meta'); var i, meta; var value = data[name]; for (i = 0; i < nodes.length; i++) { meta = nodes[i]; if (meta.attr('name') === name) { if (value) { meta.attr('content', value); } else { meta.remove(); } return; } } if (value) { elm = new global$1('meta', 1); elm.attr('name', name); elm.attr('content', value); elm.shortEnded = true; addHeadNode(elm); } }); var currentStyleSheetsMap = {}; global$3.each(headerFragment.getAll('link'), function (stylesheet) { if (stylesheet.attr('rel') === 'stylesheet') { currentStyleSheetsMap[stylesheet.attr('href')] = stylesheet; } }); global$3.each(data.stylesheets, function (stylesheet) { if (!currentStyleSheetsMap[stylesheet]) { elm = new global$1('link', 1); elm.attr({ rel: 'stylesheet', text: 'text/css', href: stylesheet }); elm.shortEnded = true; addHeadNode(elm); } delete currentStyleSheetsMap[stylesheet]; }); global$3.each(currentStyleSheetsMap, function (stylesheet) { stylesheet.remove(); }); elm = headerFragment.getAll('body')[0]; if (elm) { setAttr(elm, 'dir', data.langdir); setAttr(elm, 'style', data.style); setAttr(elm, 'vlink', data.visited_color); setAttr(elm, 'link', data.link_color); setAttr(elm, 'alink', data.active_color); dom.setAttribs(editor.getBody(), { style: data.style, dir: data.dir, vLink: data.visited_color, link: data.link_color, aLink: data.active_color }); } elm = headerFragment.getAll('html')[0]; if (elm) { setAttr(elm, 'lang', data.langcode); setAttr(elm, 'xml:lang', data.langcode); } if (!headElement.firstChild) { headElement.remove(); } var html = global({ validate: false, indent: true, indent_before: 'head,html,body,meta,title,script,link,style', indent_after: 'head,html,body,meta,title,script,link,style' }).serialize(headerFragment); return html.substring(0, html.indexOf('</body>')); }; var open = function (editor, headState) { var data = htmlToData(editor, headState.get()); var defaultData = { title: '', keywords: '', description: '', robots: '', author: '', docencoding: '' }; var initialData = __assign(__assign({}, defaultData), data); editor.windowManager.open({ title: 'Metadata and Document Properties', size: 'normal', body: { type: 'panel', items: [ { name: 'title', type: 'input', label: 'Title' }, { name: 'keywords', type: 'input', label: 'Keywords' }, { name: 'description', type: 'input', label: 'Description' }, { name: 'robots', type: 'input', label: 'Robots' }, { name: 'author', type: 'input', label: 'Author' }, { name: 'docencoding', type: 'input', label: 'Encoding' } ] }, buttons: [ { type: 'cancel', name: 'cancel', text: 'Cancel' }, { type: 'submit', name: 'save', text: 'Save', primary: true } ], initialData: initialData, onSubmit: function (api) { var nuData = api.getData(); var headHtml = dataToHtml(editor, global$3.extend(data, nuData), headState.get()); headState.set(headHtml); api.close(); } }); }; var register$1 = function (editor, headState) { editor.addCommand('mceFullPageProperties', function () { open(editor, headState); }); }; var protectHtml = function (protect, html) { global$3.each(protect, function (pattern) { html = html.replace(pattern, function (str) { return '<!--mce:protected ' + escape(str) + '-->'; }); }); return html; }; var unprotectHtml = function (html) { return html.replace(/<!--mce:protected ([\s\S]*?)-->/g, function (a, m) { return unescape(m); }); }; var each = global$3.each; var low = function (s) { return s.replace(/<\/?[A-Z]+/g, function (a) { return a.toLowerCase(); }); }; var handleSetContent = function (editor, headState, footState, evt) { var startPos, endPos, content, styles = ''; var dom = editor.dom; if (evt.selection) { return; } content = protectHtml(getProtect(editor), evt.content); if (evt.format === 'raw' && headState.get()) { return; } if (evt.source_view && shouldHideInSourceView(editor)) { return; } if (content.length === 0 && !evt.source_view) { content = global$3.trim(headState.get()) + '\n' + global$3.trim(content) + '\n' + global$3.trim(footState.get()); } content = content.replace(/<(\/?)BODY/gi, '<$1body'); startPos = content.indexOf('<body'); if (startPos !== -1) { startPos = content.indexOf('>', startPos); headState.set(low(content.substring(0, startPos + 1))); endPos = content.indexOf('</body', startPos); if (endPos === -1) { endPos = content.length; } evt.content = global$3.trim(content.substring(startPos + 1, endPos)); footState.set(low(content.substring(endPos))); } else { headState.set(getDefaultHeader(editor)); footState.set('\n</body>\n</html>'); } var headerFragment = parseHeader(editor, headState.get()); each(headerFragment.getAll('style'), function (node) { if (node.firstChild) { styles += node.firstChild.value; } }); var bodyElm = headerFragment.getAll('body')[0]; if (bodyElm) { dom.setAttribs(editor.getBody(), { style: bodyElm.attr('style') || '', dir: bodyElm.attr('dir') || '', vLink: bodyElm.attr('vlink') || '', link: bodyElm.attr('link') || '', aLink: bodyElm.attr('alink') || '' }); } dom.remove('fullpage_styles'); var headElm = editor.getDoc().getElementsByTagName('head')[0]; if (styles) { var styleElm = dom.add(headElm, 'style', { id: 'fullpage_styles' }); styleElm.appendChild(document.createTextNode(styles)); } var currentStyleSheetsMap = {}; global$3.each(headElm.getElementsByTagName('link'), function (stylesheet) { if (stylesheet.rel === 'stylesheet' && stylesheet.getAttribute('data-mce-fullpage')) { currentStyleSheetsMap[stylesheet.href] = stylesheet; } }); global$3.each(headerFragment.getAll('link'), function (stylesheet) { var href = stylesheet.attr('href'); if (!href) { return true; } if (!currentStyleSheetsMap[href] && stylesheet.attr('rel') === 'stylesheet') { dom.add(headElm, 'link', { 'rel': 'stylesheet', 'text': 'text/css', href: href, 'data-mce-fullpage': '1' }); } delete currentStyleSheetsMap[href]; }); global$3.each(currentStyleSheetsMap, function (stylesheet) { stylesheet.parentNode.removeChild(stylesheet); }); }; var getDefaultHeader = function (editor) { var header = '', value, styles = ''; if (getDefaultXmlPi(editor)) { var piEncoding = getDefaultEncoding(editor); header += '<?xml version="1.0" encoding="' + (piEncoding ? piEncoding : 'ISO-8859-1') + '" ?>\n'; } header += getDefaultDocType(editor); header += '\n<html>\n<head>\n'; if (value = getDefaultTitle(editor)) { header += '<title>' + value + '</title>\n'; } if (value = getDefaultEncoding(editor)) { header += '<meta http-equiv="Content-Type" content="text/html; charset=' + value + '" />\n'; } if (value = getDefaultFontFamily(editor)) { styles += 'font-family: ' + value + ';'; } if (value = getDefaultFontSize(editor)) { styles += 'font-size: ' + value + ';'; } if (value = getDefaultTextColor(editor)) { styles += 'color: ' + value + ';'; } header += '</head>\n<body' + (styles ? ' style="' + styles + '"' : '') + '>\n'; return header; }; var handleGetContent = function (editor, head, foot, evt) { if (evt.format === 'html' && !evt.selection && (!evt.source_view || !shouldHideInSourceView(editor))) { evt.content = unprotectHtml(global$3.trim(head) + '\n' + global$3.trim(evt.content) + '\n' + global$3.trim(foot)); } }; var setup = function (editor, headState, footState) { editor.on('BeforeSetContent', function (evt) { handleSetContent(editor, headState, footState, evt); }); editor.on('GetContent', function (evt) { handleGetContent(editor, headState.get(), footState.get(), evt); }); }; var register = function (editor) { editor.ui.registry.addButton('fullpage', { tooltip: 'Metadata and document properties', icon: 'document-properties', onAction: function () { editor.execCommand('mceFullPageProperties'); } }); editor.ui.registry.addMenuItem('fullpage', { text: 'Metadata and document properties', icon: 'document-properties', onAction: function () { editor.execCommand('mceFullPageProperties'); } }); }; function Plugin () { global$4.add('fullpage', function (editor) { var headState = Cell(''), footState = Cell(''); register$1(editor, headState); register(editor); setup(editor, headState, footState); }); } Plugin(); }()); PK o6�\��:F� � index.jsnu �[��� // Exports the "fullpage" plugin for usage with module loaders // Usage: // CommonJS: // require('tinymce/plugins/fullpage') // ES2015: // import 'tinymce/plugins/fullpage' require('./plugin.js');PK o6�\sHg�� � plugin.min.jsnu �[��� /** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.10.9 (2023-11-15) */ !function(){"use strict";function i(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function _(e){return e.getParam("fullpage_hide_in_source_view")}function b(e){return e.getParam("fullpage_default_encoding")}function x(e){return e.getParam("fullpage_default_font_family")}function k(e){return e.getParam("fullpage_default_font_size")}function C(e,t){return n({validate:!1,root_name:"#document"},e.schema).parse(t,{format:"xhtml"})}function c(u,m){u.addCommand("mceFullPageProperties",function(){var l,i,o,e,t,n,r,a,c,s;function d(e,t){return e.attr(t)||""}t=l=u,n=(i=m).get(),c=C(t,n),(s={}).fontface=x(t),s.fontsize=k(t),7===(r=c.firstChild).type&&(s.xml_pi=!0,(a=/encoding="([^"]+)"/.exec(r.value))&&(s.docencoding=a[1])),(r=c.getAll("#doctype")[0])&&(s.doctype="<!DOCTYPE"+r.value+">"),(r=c.getAll("title")[0])&&r.firstChild&&(s.title=r.firstChild.value),w.each(c.getAll("meta"),function(e){var t,n=e.attr("name"),l=e.attr("http-equiv");n?s[n.toLowerCase()]=e.attr("content"):"Content-Type"===l&&(t=/charset\s*=\s*(.*)\s*/gi.exec(e.attr("content")))&&(s.docencoding=t[1])}),(r=c.getAll("html")[0])&&(s.langcode=d(r,"lang")||d(r,"xml:lang")),s.stylesheets=[],w.each(c.getAll("link"),function(e){"stylesheet"===e.attr("rel")&&s.stylesheets.push(e.attr("href"))}),(r=c.getAll("body")[0])&&(s.langdir=d(r,"dir"),s.style=d(r,"style"),s.visited_color=d(r,"vlink"),s.link_color=d(r,"link"),s.active_color=d(r,"alink")),o=s,e=g(g({},{title:"",keywords:"",description:"",robots:"",author:"",docencoding:""}),o),l.windowManager.open({title:"Metadata and Document Properties",size:"normal",body:{type:"panel",items:[{name:"title",type:"input",label:"Title"},{name:"keywords",type:"input",label:"Keywords"},{name:"description",type:"input",label:"Description"},{name:"robots",type:"input",label:"Robots"},{name:"author",type:"input",label:"Author"},{name:"docencoding",type:"input",label:"Encoding"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:e,onSubmit:function(e){var t=e.getData(),n=function(e,o,t){function n(e,t,n){e.attr(t,n||void 0)}function r(e){s.firstChild?s.insert(e,s.firstChild):s.append(e)}var a,l,i=e.dom,c=C(e,t),s=c.getAll("head")[0];s||(a=c.getAll("html")[0],s=new f("head",1),a.firstChild?a.insert(s,a.firstChild,!0):a.append(s)),a=c.firstChild,o.xml_pi?(l='version="1.0"',o.docencoding&&(l+=' encoding="'+o.docencoding+'"'),7!==a.type&&(a=new f("xml",7),c.insert(a,c.firstChild,!0)),a.value=l):a&&7===a.type&&a.remove(),a=c.getAll("#doctype")[0],o.doctype?(a||(a=new f("#doctype",10),o.xml_pi?c.insert(a,c.firstChild):r(a)),a.value=o.doctype.substring(9,o.doctype.length-1)):a&&a.remove(),a=null,w.each(c.getAll("meta"),function(e){"Content-Type"===e.attr("http-equiv")&&(a=e)}),o.docencoding?(a||((a=new f("meta",1)).attr("http-equiv","Content-Type"),a.shortEnded=!0,r(a)),a.attr("content","text/html; charset="+o.docencoding)):a&&a.remove(),a=c.getAll("title")[0],o.title?(a?a.empty():r(a=new f("title",1)),a.append(new f("#text",3)).value=o.title):a&&a.remove(),w.each("keywords,description,author,copyright,robots".split(","),function(e){for(var t,n=c.getAll("meta"),l=o[e],i=0;i<n.length;i++)if((t=n[i]).attr("name")===e)return void(l?t.attr("content",l):t.remove());l&&((a=new f("meta",1)).attr("name",e),a.attr("content",l),a.shortEnded=!0,r(a))});var d={};w.each(c.getAll("link"),function(e){"stylesheet"===e.attr("rel")&&(d[e.attr("href")]=e)}),w.each(o.stylesheets,function(e){d[e]||((a=new f("link",1)).attr({rel:"stylesheet",text:"text/css",href:e}),a.shortEnded=!0,r(a)),delete d[e]}),w.each(d,function(e){e.remove()}),(a=c.getAll("body")[0])&&(n(a,"dir",o.langdir),n(a,"style",o.style),n(a,"vlink",o.visited_color),n(a,"link",o.link_color),n(a,"alink",o.active_color),i.setAttribs(e.getBody(),{style:o.style,dir:o.dir,vLink:o.visited_color,link:o.link_color,aLink:o.active_color})),(a=c.getAll("html")[0])&&(n(a,"lang",o.langcode),n(a,"xml:lang",o.langcode)),s.firstChild||s.remove();var u=p({validate:!1,indent:!0,indent_before:"head,html,body,meta,title,script,link,style",indent_after:"head,html,body,meta,title,script,link,style"}).serialize(c);return u.substring(0,u.indexOf("</body>"))}(l,w.extend(o,t),i.get());i.set(n),e.close()}})})}function A(e){return e.replace(/<\/?[A-Z]+/g,function(e){return e.toLowerCase()})}function s(e,t,n,l){var i,o,r,a,c,s,d,u,m,g,f,p,h,y="",v=e.dom;l.selection||(a=e.getParam("protect"),c=l.content,w.each(a,function(e){c=c.replace(e,function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"})}),r=c,"raw"===l.format&&t.get()||l.source_view&&_(e)||(-1!==(i=(r=(r=0!==r.length||l.source_view?r:w.trim(t.get())+"\n"+w.trim(r)+"\n"+w.trim(n.get())).replace(/<(\/?)BODY/gi,"<$1body")).indexOf("<body"))?(i=r.indexOf(">",i),t.set(A(r.substring(0,i+1))),-1===(o=r.indexOf("</body",i))&&(o=r.length),l.content=w.trim(r.substring(i+1,o)),n.set(A(r.substring(o)))):(t.set((h=p="",(g=e).getParam("fullpage_default_xml_pi")&&(p+='<?xml version="1.0" encoding="'+(b(g)||"ISO-8859-1")+'" ?>\n'),p+=g.getParam("fullpage_default_doctype","<!DOCTYPE html>"),p+="\n<html>\n<head>\n",(f=g.getParam("fullpage_default_title"))&&(p+="<title>"+f+"</title>\n"),(f=b(g))&&(p+='<meta http-equiv="Content-Type" content="text/html; charset='+f+'" />\n'),(f=x(g))&&(h+="font-family: "+f+";"),(f=k(g))&&(h+="font-size: "+f+";"),(f=g.getParam("fullpage_default_text_color"))&&(h+="color: "+f+";"),p+="</head>\n<body"+(h?' style="'+h+'"':"")+">\n")),n.set("\n</body>\n</html>")),s=C(e,t.get()),P(s.getAll("style"),function(e){e.firstChild&&(y+=e.firstChild.value)}),(d=s.getAll("body")[0])&&v.setAttribs(e.getBody(),{style:d.attr("style")||"",dir:d.attr("dir")||"",vLink:d.attr("vlink")||"",link:d.attr("link")||"",aLink:d.attr("alink")||""}),v.remove("fullpage_styles"),u=e.getDoc().getElementsByTagName("head")[0],y&&v.add(u,"style",{id:"fullpage_styles"}).appendChild(document.createTextNode(y)),m={},w.each(u.getElementsByTagName("link"),function(e){"stylesheet"===e.rel&&e.getAttribute("data-mce-fullpage")&&(m[e.href]=e)}),w.each(s.getAll("link"),function(e){var t=e.attr("href");if(!t)return!0;m[t]||"stylesheet"!==e.attr("rel")||v.add(u,"link",{rel:"stylesheet",text:"text/css",href:t,"data-mce-fullpage":"1"}),delete m[t]}),w.each(m,function(e){e.parentNode.removeChild(e)})))}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),g=function(){return(g=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},w=tinymce.util.Tools.resolve("tinymce.util.Tools"),n=tinymce.util.Tools.resolve("tinymce.html.DomParser"),f=tinymce.util.Tools.resolve("tinymce.html.Node"),p=tinymce.util.Tools.resolve("tinymce.html.Serializer"),P=w.each;e.add("fullpage",function(e){var t,o,r,a,n=i(""),l=i("");c(e,n),(t=e).ui.registry.addButton("fullpage",{tooltip:"Metadata and document properties",icon:"document-properties",onAction:function(){t.execCommand("mceFullPageProperties")}}),t.ui.registry.addMenuItem("fullpage",{text:"Metadata and document properties",icon:"document-properties",onAction:function(){t.execCommand("mceFullPageProperties")}}),r=n,a=l,(o=e).on("BeforeSetContent",function(e){s(o,r,a,e)}),o.on("GetContent",function(e){var t,n,l,i;t=o,n=r.get(),l=a.get(),"html"!==(i=e).format||i.selection||i.source_view&&_(t)||(i.content=(w.trim(n)+"\n"+w.trim(i.content)+"\n"+w.trim(l)).replace(/<!--mce:protected ([\s\S]*?)-->/g,function(e,t){return unescape(t)}))})})}();PK o6�\> �E� � plugin.min.js.gznu �[��� PK o6�\*���E E plugin.jsnu �[��� PK o6�\��:F� � �Q index.jsnu �[��� PK o6�\sHg�� � �R plugin.min.jsnu �[��� PK . �q
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings