vue-quill-editor
vue-quill-editor copied to clipboard
option: readOnly doesn't work
version: "vue": "2.3.3", "vue-quill-editor": "^3.0.6"
option: { readOnly: true, theme: 'bubble' } but i can still edit, sorry to bother, have a nice day!
readOnly: true not working for me as well. To enable/disable the editor, you have to bind the disabled to the component like this:
<quill-editor
v-model='content'
:options='editorOption'
:disabled='disabled'
></quill-editor>
Then you can toggle the disabled in your data property.
It should be the problem of the source,I have the same problem,disabled is a good point
I have the same question and disable doesn't work either . So I want to ask you how do you show the content generated by the editor.
use [email protected] plz.
The readOnly options isn't working but :disabled='disabled' is working as expected. Thanks!
readOnly: truenot working for me as well. To enable/disable the editor, you have to bind thedisabledto the component like this:<quill-editor v-model='content' :options='editorOption' :disabled='disabled' ></quill-editor>Then you can toggle the
disabledin yourdataproperty.
This is a good idea and now I success to make it disabled.
yeah,the readonly property is not work,but :disabled='true' is worked
<quill-editor v-model='content' :options='editorOption' :disabled='disabled' ></quill-editor>Then you can toggle the
disabledin yourdataproperty.
With multiple editors on one page this does not work quite well. What did the trick for me was to initially disable all editors with :disabled='disabled' and then listen on the @focus-event.
onEditorFocus(quill) {
if (!quill.isEnabled()) {
quill.enable()
quill.focus()
}
}