react-quill
react-quill copied to clipboard
Cannot store image resize property !! After inserting html value automatic content has been changed !!! Very Strange
I am using react-quill and quill-image-resize-module-react both modules , when I resize an image ,That's working fine . But problem is when I restore that content from db and insert value inside <ReactQuill value={content} /> editor automatic changes it's styles and image resize property also and reflect default bigger image as well !! Is it my fault or Is it bug ? I do not know . Can you help me anyone ?
My version "react-quill": "^2.0.0", "quill-image-resize-module-react": "^3.0.0",
Try to add 'width' in your formats.
such as:
<ReactQuill formats={[...pre, 'width']}>