File manager - Edit - /home/capoccitel/www/wp-admin/none.tar
Back
js/none.min.js 0000444 00000001654 15242220252 0007237 0 ustar 00 !function(i,e,o){e.jInsertEditorText=function(e,t){i.editors.instances[t].replaceSelection(e)},o.addEventListener("DOMContentLoaded",function(){for(var e=o.querySelectorAll(".js-editor-none"),t=0,n=e.length;t<n;t++)i.editors.instances[e[t].childNodes[0].id]={id:e[t].childNodes[0].id,element:e[t].childNodes[0],getValue:function(){return this.element.value},setValue:function(e){return this.element.value=e},getSelection:function(){return e=this.element,o.selection?(e.focus(),o.selection.createRange()):e.selectionStart||0===e.selectionStart?e.value.substring(e.selectionStart,e.selectionEnd):e.value;var e},replaceSelection:function(e){return t=this.element,n=e,void(o.selection?(t.focus(),o.selection.createRange().text=n):t.selectionStart||0===t.selectionStart?t.value=t.value.substring(0,t.selectionStart)+n+t.value.substring(t.selectionEnd,t.value.length):t.value+=n);var t,n},onSave:function(){return""}}})}(Joomla,window,document); js/none.js 0000444 00000003732 15242220252 0006454 0 ustar 00 /** * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Editor None */ ;(function(Joomla, window, document){ function insertAtCursor(myField, myValue) { if (document.selection) { // IE support myField.focus(); var sel = document.selection.createRange(); sel.text = myValue; } else if (myField.selectionStart || myField.selectionStart === 0) { // MOZILLA/NETSCAPE support myField.value = myField.value.substring(0, myField.selectionStart) + myValue + myField.value.substring(myField.selectionEnd, myField.value.length); } else { myField.value += myValue; } } function getSelection(myField) { if (document.selection) { // IE support myField.focus(); return document.selection.createRange(); } else if (myField.selectionStart || myField.selectionStart === 0) { // MOZILLA/NETSCAPE support return myField.value.substring(myField.selectionStart, myField.selectionEnd); } else { return myField.value; } } // @deprecated 4.0 Use directly Joomla.editors.instances[editor].replaceSelection(text); window.jInsertEditorText = function(text, editor) { Joomla.editors.instances[editor].replaceSelection(text); }; document.addEventListener('DOMContentLoaded', function() { var editors = document.querySelectorAll('.js-editor-none'); for(var i = 0, l = editors.length; i < l; i++) { /** Register Editor */ Joomla.editors.instances[editors[i].childNodes[0].id] = { 'id': editors[i].childNodes[0].id, 'element': editors[i].childNodes[0], 'getValue': function () { return this.element.value; }, 'setValue': function (text) { return this.element.value = text; }, 'getSelection': function () { return getSelection(this.element); }, 'replaceSelection': function (text) { return insertAtCursor(this.element, text); }, 'onSave': function() { return ''; } }; } }); }(Joomla, window, document));
| ver. 1.6 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings