quill-image-resize-module icon indicating copy to clipboard operation
quill-image-resize-module copied to clipboard

Disable ImageResize Module

Open zizizi17 opened this issue 7 years ago • 3 comments

Hello. Is it possible to disable image-resize modue for readonly state of the quill editor? I was trying to remove the listener from the quill.root, but it didn't help. What the status about this functionality?

zizizi17 avatar Jan 31 '18 13:01 zizizi17

Disable ImageResize Module is a Reasonable feature

sunchenguang avatar Oct 10 '18 12:10 sunchenguang

I've created a fork which allows you to pass a readOnly option: https://github.com/evansoderberg/quill-image-resize-module

Will create a PR if interested, but it appears as though the repo is inactive.

evansoderberg avatar Mar 15 '19 22:03 evansoderberg

@evansoderberg I know this was a while ago now, but how exactly do you use the readOnly option in your repo? I found you could do imageResize: { displaySize: true, readOnly: true } But that's just as good as just leaving out imageResize completely. Is there a way to add the readOnly attribute, say on a button click?

CrispyCabot avatar Apr 13 '21 12:04 CrispyCabot