File manager - Edit - /home/opticamezl/www/newok/quickbars.zip
Back
PK M�\jBd�� � index.jsnu �[��� // Exports the "quickbars" plugin for usage with module loaders // Usage: // CommonJS: // require('tinymce/plugins/quickbars') // ES2015: // import 'tinymce/plugins/quickbars' require('./plugin.js');PK M�\tya�69 69 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 global$3 = tinymce.util.Tools.resolve('tinymce.PluginManager'); var unique = 0; var generate = function (prefix) { var date = new Date(); var time = date.getTime(); var random = Math.floor(Math.random() * 1000000000); unique++; return prefix + '_' + random + unique + String(time); }; var createTableHtml = function (cols, rows) { var html = '<table data-mce-id="mce" style="width: 100%">'; html += '<tbody>'; for (var y = 0; y < rows; y++) { html += '<tr>'; for (var x = 0; x < cols; x++) { html += '<td><br></td>'; } html += '</tr>'; } html += '</tbody>'; html += '</table>'; return html; }; var getInsertedElement = function (editor) { var elms = editor.dom.select('*[data-mce-id]'); return elms[0]; }; var insertTableHtml = function (editor, cols, rows) { editor.undoManager.transact(function () { editor.insertContent(createTableHtml(cols, rows)); var tableElm = getInsertedElement(editor); tableElm.removeAttribute('data-mce-id'); var cellElm = editor.dom.select('td,th', tableElm); editor.selection.setCursorLocation(cellElm[0], 0); }); }; var insertTable = function (editor, cols, rows) { editor.plugins.table ? editor.plugins.table.insertTable(cols, rows) : insertTableHtml(editor, cols, rows); }; var insertBlob = function (editor, base64, blob) { var blobCache = editor.editorUpload.blobCache; var blobInfo = blobCache.create(generate('mceu'), blob, base64); blobCache.add(blobInfo); editor.insertContent(editor.dom.createHTML('img', { src: blobInfo.blobUri() })); }; var global$2 = tinymce.util.Tools.resolve('tinymce.util.Promise'); var blobToBase64 = function (blob) { return new global$2(function (resolve) { var reader = new FileReader(); reader.onloadend = function () { resolve(reader.result.split(',')[1]); }; reader.readAsDataURL(blob); }); }; var global$1 = tinymce.util.Tools.resolve('tinymce.Env'); var global = tinymce.util.Tools.resolve('tinymce.util.Delay'); var pickFile = function (editor) { return new global$2(function (resolve) { var fileInput = document.createElement('input'); fileInput.type = 'file'; fileInput.accept = 'image/*'; fileInput.style.position = 'fixed'; fileInput.style.left = '0'; fileInput.style.top = '0'; fileInput.style.opacity = '0.001'; document.body.appendChild(fileInput); var changeHandler = function (e) { resolve(Array.prototype.slice.call(e.target.files)); }; fileInput.addEventListener('change', changeHandler); var cancelHandler = function (e) { var cleanup = function () { resolve([]); fileInput.parentNode.removeChild(fileInput); }; if (global$1.os.isAndroid() && e.type !== 'remove') { global.setEditorTimeout(editor, cleanup, 0); } else { cleanup(); } editor.off('focusin remove', cancelHandler); }; editor.on('focusin remove', cancelHandler); fileInput.click(); }); }; var setupButtons = function (editor) { editor.ui.registry.addButton('quickimage', { icon: 'image', tooltip: 'Insert image', onAction: function () { pickFile(editor).then(function (files) { if (files.length > 0) { var blob_1 = files[0]; blobToBase64(blob_1).then(function (base64) { insertBlob(editor, base64, blob_1); }); } }); } }); editor.ui.registry.addButton('quicktable', { icon: 'table', tooltip: 'Insert table', onAction: function () { insertTable(editor, 2, 2); } }); }; var typeOf = function (x) { var t = typeof x; if (x === null) { return 'null'; } else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) { return 'array'; } else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) { return 'string'; } else { return t; } }; var isType = function (type) { return function (value) { return typeOf(value) === type; }; }; var isSimpleType = function (type) { return function (value) { return typeof value === type; }; }; var eq = function (t) { return function (a) { return t === a; }; }; var isString = isType('string'); var isObject = isType('object'); var isArray = isType('array'); var isBoolean = isSimpleType('boolean'); var isUndefined = eq(undefined); var isFunction = isSimpleType('function'); var noop = function () { }; var constant = function (value) { return function () { return value; }; }; var identity = function (x) { return x; }; var never = constant(false); var always = constant(true); var none = function () { return NONE; }; var NONE = function () { var call = function (thunk) { return thunk(); }; var id = identity; var me = { fold: function (n, _s) { return n(); }, isSome: never, isNone: always, getOr: id, getOrThunk: call, getOrDie: function (msg) { throw new Error(msg || 'error: getOrDie called on none.'); }, getOrNull: constant(null), getOrUndefined: constant(undefined), or: id, orThunk: call, map: none, each: noop, bind: none, exists: never, forall: always, filter: function () { return none(); }, toArray: function () { return []; }, toString: constant('none()') }; return me; }(); var some = function (a) { var constant_a = constant(a); var self = function () { return me; }; var bind = function (f) { return f(a); }; var me = { fold: function (n, s) { return s(a); }, isSome: always, isNone: never, getOr: constant_a, getOrThunk: constant_a, getOrDie: constant_a, getOrNull: constant_a, getOrUndefined: constant_a, or: self, orThunk: self, map: function (f) { return some(f(a)); }, each: function (f) { f(a); }, bind: bind, exists: bind, forall: bind, filter: function (f) { return f(a) ? me : NONE; }, toArray: function () { return [a]; }, toString: function () { return 'some(' + a + ')'; } }; return me; }; var from = function (value) { return value === null || value === undefined ? NONE : some(value); }; var Optional = { some: some, none: none, from: from }; function ClosestOrAncestor (is, ancestor, scope, a, isRoot) { if (is(scope, a)) { return Optional.some(scope); } else if (isFunction(isRoot) && isRoot(scope)) { return Optional.none(); } else { return ancestor(scope, a, isRoot); } } var ELEMENT = 1; var fromHtml = function (html, scope) { var doc = scope || document; var div = doc.createElement('div'); div.innerHTML = html; if (!div.hasChildNodes() || div.childNodes.length > 1) { console.error('HTML does not have a single root node', html); throw new Error('HTML must have a single root node'); } return fromDom(div.childNodes[0]); }; var fromTag = function (tag, scope) { var doc = scope || document; var node = doc.createElement(tag); return fromDom(node); }; var fromText = function (text, scope) { var doc = scope || document; var node = doc.createTextNode(text); return fromDom(node); }; var fromDom = function (node) { if (node === null || node === undefined) { throw new Error('Node cannot be null or undefined'); } return { dom: node }; }; var fromPoint = function (docElm, x, y) { return Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom); }; var SugarElement = { fromHtml: fromHtml, fromTag: fromTag, fromText: fromText, fromDom: fromDom, fromPoint: fromPoint }; var is = function (element, selector) { var dom = element.dom; if (dom.nodeType !== ELEMENT) { return false; } else { var elem = dom; if (elem.matches !== undefined) { return elem.matches(selector); } else if (elem.msMatchesSelector !== undefined) { return elem.msMatchesSelector(selector); } else if (elem.webkitMatchesSelector !== undefined) { return elem.webkitMatchesSelector(selector); } else if (elem.mozMatchesSelector !== undefined) { return elem.mozMatchesSelector(selector); } else { throw new Error('Browser lacks native selectors'); } } }; typeof window !== 'undefined' ? window : Function('return this;')(); var name = function (element) { var r = element.dom.nodeName; return r.toLowerCase(); }; var ancestor$1 = function (scope, predicate, isRoot) { var element = scope.dom; var stop = isFunction(isRoot) ? isRoot : never; while (element.parentNode) { element = element.parentNode; var el = SugarElement.fromDom(element); if (predicate(el)) { return Optional.some(el); } else if (stop(el)) { break; } } return Optional.none(); }; var closest$1 = function (scope, predicate, isRoot) { var is = function (s, test) { return test(s); }; return ClosestOrAncestor(is, ancestor$1, scope, predicate, isRoot); }; var ancestor = function (scope, selector, isRoot) { return ancestor$1(scope, function (e) { return is(e, selector); }, isRoot); }; var closest = function (scope, selector, isRoot) { var is$1 = function (element, selector) { return is(element, selector); }; return ClosestOrAncestor(is$1, ancestor, scope, selector, isRoot); }; var validDefaultOrDie = function (value, predicate) { if (predicate(value)) { return true; } throw new Error('Default value doesn\'t match requested type.'); }; var items = function (value, defaultValue) { if (isArray(value) || isObject(value)) { throw new Error('expected a string but found: ' + value); } if (isUndefined(value)) { return defaultValue; } if (isBoolean(value)) { return value === false ? '' : defaultValue; } return value; }; var getToolbarItemsOr_ = function (predicate) { return function (editor, name, defaultValue) { validDefaultOrDie(defaultValue, predicate); var value = editor.getParam(name, defaultValue); return items(value, defaultValue); }; }; var getToolbarItemsOr = getToolbarItemsOr_(isString); var getTextSelectionToolbarItems = function (editor) { return getToolbarItemsOr(editor, 'quickbars_selection_toolbar', 'bold italic | quicklink h2 h3 blockquote'); }; var getInsertToolbarItems = function (editor) { return getToolbarItemsOr(editor, 'quickbars_insert_toolbar', 'quickimage quicktable'); }; var getImageToolbarItems = function (editor) { return getToolbarItemsOr(editor, 'quickbars_image_toolbar', 'alignleft aligncenter alignright'); }; var addToEditor$1 = function (editor) { var insertToolbarItems = getInsertToolbarItems(editor); if (insertToolbarItems.trim().length > 0) { editor.ui.registry.addContextToolbar('quickblock', { predicate: function (node) { var sugarNode = SugarElement.fromDom(node); var textBlockElementsMap = editor.schema.getTextBlockElements(); var isRoot = function (elem) { return elem.dom === editor.getBody(); }; return closest(sugarNode, 'table', isRoot).fold(function () { return closest$1(sugarNode, function (elem) { return name(elem) in textBlockElementsMap && editor.dom.isEmpty(elem.dom); }, isRoot).isSome(); }, never); }, items: insertToolbarItems, position: 'line', scope: 'editor' }); } }; var addToEditor = function (editor) { var isEditable = function (node) { return editor.dom.getContentEditableParent(node) !== 'false'; }; var isImage = function (node) { return node.nodeName === 'IMG' || node.nodeName === 'FIGURE' && /image/i.test(node.className); }; var imageToolbarItems = getImageToolbarItems(editor); if (imageToolbarItems.trim().length > 0) { editor.ui.registry.addContextToolbar('imageselection', { predicate: isImage, items: imageToolbarItems, position: 'node' }); } var textToolbarItems = getTextSelectionToolbarItems(editor); if (textToolbarItems.trim().length > 0) { editor.ui.registry.addContextToolbar('textselection', { predicate: function (node) { return !isImage(node) && !editor.selection.isCollapsed() && isEditable(node); }, items: textToolbarItems, position: 'selection', scope: 'editor' }); } }; function Plugin () { global$3.add('quickbars', function (editor) { setupButtons(editor); addToEditor$1(editor); addToEditor(editor); }); } Plugin(); }()); PK M�\��� � � 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 n(a){a.ui.registry.addButton("quickimage",{icon:"image",tooltip:"Insert image",onAction:function(){var i=a;new s(function(n){var r=document.createElement("input");r.type="file",r.accept="image/*",r.style.position="fixed",r.style.left="0",r.style.top="0",r.style.opacity="0.001",document.body.appendChild(r),r.addEventListener("change",function(t){n(Array.prototype.slice.call(t.target.files))});var o=function(t){function e(){n([]),r.parentNode.removeChild(r)}d.os.isAndroid()&&"remove"!==t.type?f.setEditorTimeout(i,e,0):e(),i.off("focusin remove",o)};i.on("focusin remove",o),r.click()}).then(function(t){var c,n;0<t.length&&(c=t[0],n=c,new s(function(t){var e=new FileReader;e.onloadend=function(){t(e.result.split(",")[1])},e.readAsDataURL(n)}).then(function(t){var e,n,r,o,i,u;n=t,r=c,i=(e=a).editorUpload.blobCache,u=i.create((o=(new Date).getTime(),"mceu_"+Math.floor(1e9*Math.random())+ ++l+String(o)),r,n),i.add(u),e.insertContent(e.dom.createHTML("img",{src:u.blobUri()}))}))})}}),a.ui.registry.addButton("quicktable",{icon:"table",tooltip:"Insert table",onAction:function(){var t,n;(t=a).plugins.table?t.plugins.table.insertTable(2,2):(n=t).undoManager.transact(function(){n.insertContent(function(){var t='<table data-mce-id="mce" style="width: 100%">';t+="<tbody>";for(var e=0;e<2;e++){t+="<tr>";for(var n=0;n<2;n++)t+="<td><br></td>";t+="</tr>"}return(t+="</tbody>")+"</table>"}());var t=n.dom.select("*[data-mce-id]")[0];t.removeAttribute("data-mce-id");var e=n.dom.select("td,th",t);n.selection.setCursorLocation(e[0],0)})}})}function t(r){return function(t){return n=typeof(e=t),(null===e?"null":"object"==n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n)===r;var e,n}}function e(e){return function(t){return typeof t===e}}function i(t){return function(){return t}}function r(t){return t}function o(){return y}var u,c=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=0,s=tinymce.util.Tools.resolve("tinymce.util.Promise"),d=tinymce.util.Tools.resolve("tinymce.Env"),f=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=t("string"),m=t("object"),g=t("array"),v=e("boolean"),h=e("function"),p=i(!1),b=i(!(u=void 0)),y={fold:function(t,e){return t()},isSome:p,isNone:b,getOr:r,getOrThunk:k,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:r,orThunk:k,map:o,each:function(){},bind:o,exists:p,forall:b,filter:function(){return y},toArray:function(){return[]},toString:i("none()")};function k(t){return t()}var w=function(n){function t(){return o}function e(t){return t(n)}var r=i(n),o={fold:function(t,e){return e(n)},isSome:b,isNone:p,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:t,orThunk:t,map:function(t){return w(t(n))},each:function(t){t(n)},bind:e,exists:e,forall:e,filter:function(t){return t(n)?o:y},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return o},T={some:w,none:o,from:function(t){return null==t?y:w(t)}};function E(t,e,n,r,o){return t(n,r)?T.some(n):h(o)&&o(n)?T.none():e(n,r,o)}function N(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}function M(t){if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}}var S={fromHtml:function(t,e){var n=(e||document).createElement("div");if(n.innerHTML=t,!n.hasChildNodes()||1<n.childNodes.length)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return M(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return M(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return M(n)},fromDom:M,fromPoint:function(t,e,n){return T.from(t.dom.elementFromPoint(e,n)).map(M)}};function C(t,e,n){for(var r=t.dom,o=h(n)?n:p;r.parentNode;){var r=r.parentNode,i=S.fromDom(r);if(e(i))return T.some(i);if(o(i))break}return T.none()}function O(t,e,n){return C(t,function(t){return N(t,e)},n)}"undefined"!=typeof window||Function("return this;")();var q,x=(q=a,function(t,e,n){return function(){if(!q(n))throw new Error("Default value doesn't match requested type.")}(),function(t,e){if(g(t)||m(t))throw new Error("expected a string but found: "+t);return u===t?e:v(t)?!1===t?"":e:t}(t.getParam(e,n),n)});c.add("quickbars",function(t){var o,e;n(t),0<(e=x(o=t,"quickbars_insert_toolbar","quickimage quicktable")).trim().length&&o.ui.registry.addContextToolbar("quickblock",{predicate:function(t){function e(t){return t.dom===o.getBody()}var n=S.fromDom(t),r=o.schema.getTextBlockElements();return E(N,O,n,"table",e).fold(function(){return E(function(t,e){return e(t)},C,n,function(t){return t.dom.nodeName.toLowerCase()in r&&o.dom.isEmpty(t.dom)},e).isSome()},p)},items:e,position:"line",scope:"editor"}),function(e){function n(t){return"IMG"===t.nodeName||"FIGURE"===t.nodeName&&/image/i.test(t.className)}var t=x(e,"quickbars_image_toolbar","alignleft aligncenter alignright");0<t.trim().length&&e.ui.registry.addContextToolbar("imageselection",{predicate:n,items:t,position:"node"});var r=x(e,"quickbars_selection_toolbar","bold italic | quicklink h2 h3 blockquote");0<r.trim().length&&e.ui.registry.addContextToolbar("textselection",{predicate:function(t){return!n(t)&&!e.selection.isCollapsed()&&"false"!==e.dom.getContentEditableParent(t)},items:r,position:"selection",scope:"editor"})}(t)})}();PK M�\}�� plugin.min.js.gznu �[��� � �]o�8!pY�a��}X9lЦ�n��-��ł��6/���8�X��0��(N��,r>8�/�������sv�et�92�Kv�]B>��3I��>��uY�+� �5���]>A�_@d8v�ǧs"�,U1w�de��Ѽ�GJ o�9�1�c���bȦ!n����+�.�-��g����N���b���R�eh��g���!&|�~�G#�;/G/}qt���7��=?|�7m|N y˛,at9��f�ya�Ս�f.a\j[o�����Uv\ݺ<���WB���{� "[o��� ���9c�,�-���h��7x�y�pV�w�n��qԸ���+���m�C�����9m%\����&�(� %L�������:�6w�4|�G�#��"MB�Զ���sW"J��(ή��K���z���v(o�x�]�:t�ȶ:�e)P��3@M�JR�rL�f�ak%���7:��<~�U���`m�C�.��E�r��|��x2� �p⥫ 4(�5���ө�Ӑ7�y��VA�c��!BT�y��+![�q^o@wʕ��Q��g8������oʛ\�Ě�s%���8|l�0�BA:HM�:եC��_���V���[���_��?)(�� ʩf� �hr� c��NQ_j:[O�09��Tc��Y�F��o-��3@Ҫ��W94��s=-C��~�-��E�����<����R��<��h���: )"@�Z���Źசqu�b�5�x_�#;��Ǒ�vR�E�z����"�$e�e3s>����W��o�R�����n|.��3�����(G��n~9�¢}Q������Yچ/\���F��~���Hq����!���Fc8~9��y�c�؛������C�WǓ���W�gyHml��y@�$�+� �:�Y3A 9 ����߸�:�6�u��F�n� >@�=#�a���9W(�~�G�L<mb �<���#�BpԻI�M4(���/������H� 0(��MYc���x�ГǍ���K�6���j:>alrq�w�8�� � �t�>x��)=ɓǤ�yi���u�h�A2���C�?�r��o��q��n;�a/[��Q�����A7�J}B�(!���>uq�2.UiF*�e�C�p���":��\����J��RY�b�}�*Z�M-ՌV�Hum@�I%Xϥ��r�&.Um��;�jB��1�l$�Z��i(����Β(d�\�*�j�҇�!���ǘ��r���_�u� ͏��ނ�C�Zq���m�=�P0����e��Дe�x���_��y(2'�P� [)*[gA���Üܪ��n\�j�-�l���D��C�[� C|�_����� N��e{WC^ V��9fX� ��3#j���q�K~d4 ��&�ՏY-�Y-�w�M�p�f��H�/IJ��=�#tBuV��`cx`��W? ����x �)T ��?��x�juin �-0jC��}NǓe�(ہ��H�}�4YEyr������"��@7�Խ�d z�;��ؿ�H���M�ў1^�P����w4�J {�D]Y���hl�!@�b���{C��R/`r��I���!��i!��~7��71,DV�*1o�]Kk��� {��}F��u,��d�lN�n���:�n�Pe�v��ܒ��U����V��I�6s���N����~5������u0$Sr�::�:��ۆ��%h��A\X 1���^�,9?+��ə�R��wDU��&�ܞ]��(_G�Y�.��� �\7|��!��rz������T�m�^jB]�i�%{�!�)uekqq/�O7\6q�V3�H�Y=6��Mk?�T�|�kQE�|��r+Y�B\�D�W��'�;'��s5�|֧�Vy��;��[�l�|�ջ %�d��Kc.E_eW7F|7V=��A&vS�����Q���)�]۲��m�/Ⱥ��"|o !]�H����g��� ��U%��pSCN,�(6ih��"c���iC��k��d�[q�A��@ja?�h��Hkr�w i�2NlL����B��jt,�܈`P��ݷpSg9����\� Q)5FW ����ko�紑��W�u�����e�W�Ƙ@�}��l�E�� :�s�l��� ����!��V�g����4� 5U-�a�u&��dP��T��|�WJMlEӫ�xjI�Ra�tVո�ÛJ��ڈjۚ*%����ͤ,��U�C ���x8�����:(�J�Z�w������~N�4BB�:/mJ�5��F�=g!����<M�X���G��w7�岛.�x�?���6��ǯ��=u��zHwE�= e����l�{y���d�_Y�ߛ�Љ����x\����G��{0�t��� �A�Ԗ���C�l&.4+$���%��K{�āv��RK$������ � PK M�\jBd�� � index.jsnu �[��� PK M�\tya�69 69 plugin.jsnu �[��� PK M�\��� � � z: plugin.min.jsnu �[��� PK M�\}�� aR plugin.min.js.gznu �[��� PK . �\
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings