How can I disable the Quill editor

Nearpoint picture Nearpoint · Jul 18, 2014 · Viewed 9.9k times · Source

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?

Answer

jhchen picture jhchen · Jul 18, 2014

This isn't currently documented but you can do this:

basicEditor.editor.enable(false)