Skip to content

Commit

Permalink
[BUGFIX] #61: Respect max width and height configuration for images w…
Browse files Browse the repository at this point in the history
…hen saving element
  • Loading branch information
mcmulman committed Oct 5, 2020
1 parent ffb5948 commit 19e0602
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/Public/JavaScript/Plugins/typo3image.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@

$.extend(filteredAttr, {
src: getImg.url,
width: getImg.processed.width || getImg.width,
height: getImg.processed.height || getImg.height,
'data-cke-saved-src': getImg.processed.url,
'data-htmlarea-file-uid': img.uid,
'data-htmlarea-file-table': table
Expand Down

0 comments on commit 19e0602

Please sign in to comment.