While inserting images from the media library using "Insert/Edit Image or Media", if we change the width and height in the properties, the editor adds inline width and height style to the tag.
This causes the image to deform on mobile devices so I need to change how this ckeditor cms extension to have it not set the inline style. It should definitely set the new image width and height in the url parameters but not in the image tag style attribute.
I can't find how/where to do this Thanks
Federico CAlvo
Hi Frederico,
you can try adding your own style in the ckeditor. Maybe add the class that can make the image responsive. hope this helps
https://docs.kentico.com/k12/configuring-kentico/configuring-the-environment-for-content-editors/configuring-the-editor/defining-styles-for-the-editor
I have the same problem and would love a better solution. I ended up using a regular expression to replace any inline styles.
{% Content.RegexReplace("style=\".*\"\s?","") %}
I'm also having this issue I just want to remove the style hgeight and width from the image tags in the WYSYWG editor CKEditor
Please, sign in to be able to submit a new answer.