vue-quill-editor如何只读
时间: 2023-08-30 16:05:40 浏览: 251
你可以通过给vue-quill-editor组件绑定disabled属性来实现只读状态。在模板中添加:disabled='true',将该属性值设置为true即可。例如:<quill-editor v-model='content' :options='editorOption' :disabled='true'></quill-editor>。这样设置后,富文本编辑器将变为只读状态,用户无法编辑其中的内容。引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [vue-quill-editor readOnly不生效](https://blog.csdn.net/qq_37855074/article/details/119319383)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [vue富文本编辑器 vue-quill-editor.js quill版本1.3.6](https://download.csdn.net/download/cplvfx/85847785)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文