Quill: Toggle readonly option

Created on 23 May 2014  Â·  6Comments  Â·  Source: quilljs/quill

I can't find any documentation that would let me toggle the readonly option. Is there such a thing?

Most helpful comment

Hello,

you can enable or disable your editor like this :

var basicEditor = new Quill('#basic-editor');
basicEditor.editor.disable();
basicEditor.editor.enable();

All 6 comments

Hello,

you can enable or disable your editor like this :

var basicEditor = new Quill('#basic-editor');
basicEditor.editor.disable();
basicEditor.editor.enable();

Ahah. Thanks! This should be documented though :smile:

:+1: should be made clear in the doc

Yes found the page already but no mention of editor.editor.enable or
editor.editor.disable
Le 17 juil. 2015 21:07, "Jason Chen" [email protected] a écrit :

http://quilljs.com/docs/configuration/

—
Reply to this email directly or view it on GitHub
https://github.com/quilljs/quill/issues/119#issuecomment-122375621.

Hello, it doen't work for me, has this changed? _this.quill.editor.disable is not a function

Hello, it doen't work for me, has this changed? _this.quill.editor.disable is not a function

@karim10 If you've done something like var myEditor = newQuill('#editor, {...}) then doing myEditor.enable() or myEditor.disable() should work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sferoze picture sferoze  Â·  3Comments

markstewie picture markstewie  Â·  3Comments

Kivylius picture Kivylius  Â·  3Comments

Softvision-MariusComan picture Softvision-MariusComan  Â·  3Comments

lastmjs picture lastmjs  Â·  3Comments