Crop images; activate "object-fit:cover" function

AndreasKrause
Community Member

Hi,

is there a possibility to activate the "object-fit: cover" function in the rich Text Editor of Canvas? 
I tried to crop an image there. In the preview it worked, but when saving/publishing, the image was again only rescaled and the "object-fit" flag in the style disappeared.

See my example below. Please insert an image of choice.

<img id="2442165" style="width: 1200px; height: 200px; object-fit: cover;" src="/courses/16078/files/2442165/preview" alt="BorasSteel_140.jpg" /> the preview can be seen in the "cropped_image.png"

when saving (Updatera Kursöversikt) the object-fit flag disappears and the image is only scaled. (scaled_image_after_saving.png)

Best
Andreas

0 Likes
Users who also had this question