From 621171ff2ca3739f4923efb7c7204074cb93113d Mon Sep 17 00:00:00 2001 From: zero-24 Date: Wed, 23 Sep 2020 18:01:35 +0200 Subject: [PATCH] there is no alt text comming from com_media yet --- .../system/js/fields/joomla-field-media.w-c.es6.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/media_source/system/js/fields/joomla-field-media.w-c.es6.js b/build/media_source/system/js/fields/joomla-field-media.w-c.es6.js index 7e11d5361def7..0873110cf93f8 100644 --- a/build/media_source/system/js/fields/joomla-field-media.w-c.es6.js +++ b/build/media_source/system/js/fields/joomla-field-media.w-c.es6.js @@ -36,9 +36,9 @@ if (Joomla.selectedFile.url) { if (!isElement(editor) && (typeof editor !== 'object')) { - Joomla.editors.instances[editor].replaceSelection(`${Joomla.selectedFile.alt}`); + Joomla.editors.instances[editor].replaceSelection(``); } else if (!isElement(editor) && (typeof editor === 'object' && editor.id)) { - window.parent.Joomla.editors.instances[editor.id].replaceSelection(`${Joomla.selectedFile.alt}`); + window.parent.Joomla.editors.instances[editor.id].replaceSelection(``); } else { editor.value = Joomla.selectedFile.url; fieldClass.updatePreview();