Forum Academy Marketplace Showcase Pricing Features

Rich Text Editor: Inline image spills over element

Hello,

I tried the Rich Text Editor in-lin image upload.

When I am viewing the rich text output though, the in-line image spills over the element:

I would need the image to be stretched to fit in I suppose.

How can that be done?

PS: I suppose a horizontal scroll bar would be an acceptable alternative solutio too :thinking:

I am trying the CSS overflow-x attribute to no avail:

Fixed using REGEX while outputting the text:

image

Regex String:
(?<=\[img width=)(.*)(?=\]\/)

2 Likes