How to disable Quill Editor

I have a template that displays rich text data. When the user clicks on the edit, I turn the template into an editable Quill editor as follows:

  'click #editNote': (e, t) ->
    note = t.find '.container'
    console.log note
    basicEditor = new Quill(note)

Then, as soon as the user clicks on save, I want to disable the Quill editor. How can i do this?

+5
source share
3 answers

This is not currently documented, but you can do this:

basicEditor.editor.enable(false)
+7
source

quill.disable()must do the quill.disable()deed.

+3
source

Use this statement.

var quill = new Quill('#editor-container');
quill.enable(false);
+3
source

All Articles