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

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