I have a a template which displays rich text data. When the user clicks edit I turn the template into an editable Quill editor like so:
'click #editNote': (e, t) ->
note = t.find '.container'
console.log note
basicEditor = new Quill(note)
Then once the user clicks save I want to be able to disable the Quill editor. How can I do this?
Show activity on this post. quill. disable() should do the trick. Save this answer.
in React Quill 1.3. 5, you can add the readOnly prop as true. It will disable your editor like input tag when disabled. Save this answer.
Quill is a free, open source WYSIWYG editor built for the modern web. With its modular architecture and expressive API, it is completely customizable to fit any need.
Use this statement
var quill = new Quill('#editor-container');
quill.enable(false);
If you are using ngx-quill, use this code:
@ViewChild('quill') quill: QuillEditorComponent;
this.quill.setDisabledState(true);
Work for me
quill.disable()
should do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With