CoreFiles by mySites.guru
joomla-editor-none.min.js1 lines, 779 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
73d39ba8f4ca9443acd042eda18b2e8d
sha1
e5223164c17e3761d9f6d93b0b6c05f1fec5408e
sha256
6c10f3298eafa7bd00d43d4849d5f2c6c9d33efd53ca4cda7cec5568717dd98d
customElements.define("joomla-editor-none",class extends HTMLElement{connectedCallback(){this.insertAtCursor=this.insertAtCursor.bind(this);const e=this;Joomla.editors.instances[e.childNodes[0].id]={id:e.childNodes[0].id,element:e,getValue:()=>e.childNodes[0].value,setValue:s=>e.childNodes[0].value=s,replaceSelection:s=>e.insertAtCursor(s),onSave:()=>{}}}disconnectedCallback(){delete Joomla.editors.instances[this.childNodes[0].id]}insertAtCursor(e){if(this.childNodes[0].selectionStart||0===this.childNodes[0].selectionStart){const s=this.childNodes[0].selectionStart,t=this.childNodes[0].selectionEnd;this.childNodes[0].value=this.childNodes[0].value.substring(0,s)+e+this.childNodes[0].value.substring(t,this.childNodes[0].value.length)}else this.childNodes[0].value+=e}});

The same content is in 2 releases, Joomla 4.0.0-alpha3 to 4.0.0-alpha5. See them all, or every version of this file.