diff --git a/build/media_source/system/js/fields/joomla-media-select.w-c.es6.js b/build/media_source/system/js/fields/joomla-media-select.w-c.es6.js index 0807cd8ebb249..8392a1a9c365e 100644 --- a/build/media_source/system/js/fields/joomla-media-select.w-c.es6.js +++ b/build/media_source/system/js/fields/joomla-media-select.w-c.es6.js @@ -160,7 +160,7 @@ const insertAsImage = async (media, editor, fieldClass) => { } alt = attribs.getAttribute('alt-value') ? ` alt="${attribs.getAttribute('alt-value')}"` : appendAlt; classes = attribs.getAttribute('img-classes') ? ` class="${attribs.getAttribute('img-classes')}"` : ''; - figClasses = attribs.getAttribute('fig-classes') ? ` class="${attribs.getAttribute('fig-classes')}"` : ''; + figClasses = attribs.getAttribute('fig-classes') ? ` class="image ${attribs.getAttribute('fig-classes')}"` : ' class="image"'; figCaption = attribs.getAttribute('fig-caption') ? `${attribs.getAttribute('fig-caption')}` : ''; if (attribs.getAttribute('is-lazy') === 'true') { isLazy = ` loading="lazy" width="${Joomla.selectedMediaFile.width}" height="${Joomla.selectedMediaFile.height}"`;