How to NOT set default image max-height

Hi

Currently, when I insert an image into the rich text editor, it defaults to a max-height value. It specifies something like 1400px, which seems to be related to the browser size. I know there is an option to specify the max-height value, but how do I not specify it?

my RTE option

<RichTextEditorImageSettings SaveUrl="api/Image/Save" Path="[my api path]" />

below is img tag when I insert image

<img src="[img source]" class="e-rte-image e-imginline e-resize" alt="20190731_143458.jpg" width="auto" height="auto" style="min-width: 0px; min-height: 0px; max-height: 1423px;">


This is because I want to resize image with a stylesheet, but I can't because of the inline styles.


Thank you


1 Reply

VJ Vinitha Jeyakumar Syncfusion Team March 4, 2025 07:12 AM UTC

Hi Pandango,


By default, inserted images in the RichTextEditor do not have a max-height inline style. The max-height inline style is applied only if you configure the MaxHeight property in RichTextEditorImageSettings. Please refer to the attached screenshot below.


Make sure you have not specified any MaxHeight value with the RichTextEditorImageSettings to resolve your reported issue.

Regards,
Vinitha



Loader.
Up arrow icon