Skip to content

Commit

Permalink
[4.0][bugfix] Fix Figure misbehaviour in tinyMCE (#36221)
Browse files Browse the repository at this point in the history
* Fix Figure misbehaviour in tinyMCE

* Update joomla-media-select.w-c.es6.js
  • Loading branch information
dgrammatiko authored Dec 21, 2021
1 parent 3b16615 commit 5f8fb0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`;
Expand Down

0 comments on commit 5f8fb0d

Please sign in to comment.