mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.63k stars 131 forks source link

Disable image resizing #410

Closed jaijuneja closed 3 months ago

jaijuneja commented 3 months ago

Hi there,

I'm working with both MDX Editor and React Markdown and am running into issues with the tag from resized images not being correctly parsed (MDX Editor handles this gracefully/as expected, but React Markdown does not unless I use specific plugins). I would prefer if the regular image markup ![]() not be converted to tags.

To solve this and reduce complexity I'd like to disable the ability for the end-user to resize images in the editor. Is there an easy way to achieve this?

This is an awesome project and by far the best Markdown editor I've worked with - thank you!

petyosi commented 3 months ago

The image plugin accepts disableImageResize option.