CoreFiles by mySites.guru
joomla-editor-none-es5.min.js4 lines, 2,585 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
fd657c5ba02d29bf090780a330ffb70b
sha1
de93453b349867a5edd2dccbaaa3530a97cfddad
sha256
eb1245562fe52ebf4db5d5f6fd9c4c53665ad030aa4a50ce358e539280dec075
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict';var _createClass=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function _possibleConstructorReturn(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function _inherits(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}customElements.define('joomla-editor-none',function(a){function b(){return _classCallCheck(this,b),_possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return _inherits(b,a),_createClass(b,[{key:'connectedCallback',value:function connectedCallback(){this.insertAtCursor=this.insertAtCursor.bind(this);var a=this;Joomla.editors.instances[a.childNodes[0].id]={id:a.childNodes[0].id,element:a,getValue:function getValue(){return a.childNodes[0].value},setValue:function setValue(b){return a.childNodes[0].value=b},replaceSelection:function replaceSelection(b){return a.insertAtCursor(b)},onSave:function onSave(){}}}},{key:'disconnectedCallback',value:function disconnectedCallback(){delete Joomla.editors.instances[this.childNodes[0].id]}},{key:'insertAtCursor',value:function insertAtCursor(a){if(this.childNodes[0].selectionStart||0===this.childNodes[0].selectionStart){var b=this.childNodes[0].selectionStart,c=this.childNodes[0].selectionEnd;this.childNodes[0].value=this.childNodes[0].value.substring(0,b)+a+this.childNodes[0].value.substring(c,this.childNodes[0].value.length)}else this.childNodes[0].value+=a}}]),b}(HTMLElement));

},{}]},{},[1]);

No other release has this exact content. See every version of this file.