Auto resize image to fit editor container


(Tbaatar) #1

Matrix Version: 5.4.3.2

Is it possible to auto resize the image in edit+ so that it fits the window/container of the editor?
Working with anything over 1000px just becomes difficult to work with.

Thanks.


(John gill) #2

You could do it with a little modification to your edit+ config, something like

<style>
.bodycopy_content_wrapper img {
    max-width: 100%;
}
</style>

should be fairly safe and prevent images from breaking out of the WYSIWYG area.


(Tbaatar) #3

Hi John,

Thanks for the tip. It did the trick.

It seems the body container for Edit+ is different for each asset type or at least for Standard Pave vs News Item.