| Server IP : 46.105.57.169 / Your IP : 216.73.216.144 Web Server : Apache System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : maitricfuz ( 93378) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/maitricfuz/www/maitric/media/plg_editors-xtd_image/js/ |
Upload File : |
import{JoomlaEditorButton as a}from"editor-api";import t from"joomla.dialog";/**
* @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/a.registerAction("modal-media",(l,o)=>{let e;o.popupButtons=[{label:Joomla.Text._("PLG_IMAGE_BUTTON_INSERT"),className:"button button-success btn btn-success",location:"header",onClick:()=>{Joomla.selectedMediaFile&&Joomla.selectedMediaFile.path&&Joomla.getMedia(Joomla.selectedMediaFile,l).then(()=>{e.close(),Joomla.selectedMediaFile={}})}},{label:"",ariaLabel:Joomla.Text._("JCLOSE"),className:"button-close btn-close",data:{buttonClose:"",dialogClose:""},location:"header"}],e=new t(o),e.addEventListener("joomla-dialog:close",()=>{Joomla.Modal.setCurrent(null),e.destroy()}),Joomla.Modal.setCurrent(e),e.show()});