如何禁用 Quill 编辑器 [英] How can I disable the Quill editor
本文介绍了如何禁用 Quill 编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个显示富文本数据的模板.当用户单击编辑时,我将模板变成可编辑的 Quill 编辑器,如下所示:
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)
然后,一旦用户单击保存,我希望能够禁用 Quill 编辑器.我该怎么做?
Then once the user clicks save I want to be able to disable the Quill editor. How can I do this?
推荐答案
目前没有记录,但您可以这样做:
This isn't currently documented but you can do this:
basicEditor.editor.enable(false)
这篇关于如何禁用 Quill 编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文