vab-quill 取消自动获取焦点
时间: 2023-09-15 19:17:41 浏览: 160
vue quill editor 使用富文本添加上传音频功能
回答: 要取消vab-quill自动获取焦点,你可以使用以下方法。首先,你需要在vab-quill组件上添加一个ref属性,比如ref="myquill"。然后,在你的代码中,使用this.$refs.myquill.$refs.myQuillEditor.quill.enable(false)来禁用编辑器的焦点获取。最后,你可以使用setTimeout来延迟一段时间后再启用编辑器的焦点获取,例如:setTimeout(() => { this.$refs.myquill.$refs.myQuillEditor.quill.enable(true) }, 0)。这样就可以取消vab-quill的自动获取焦点了。\[2\]
#### 引用[.reference_title]
- *1* [zx-quill+vue+element实现富文本图片上传到服务器](https://blog.csdn.net/weixin_42738504/article/details/120314205)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [解决Vue-Quill-Editor自动定位到文本框问题](https://blog.csdn.net/qq_41687299/article/details/120222515)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [【每日一坑】 npm i vue-quill-editor –save报错装不上](https://blog.csdn.net/weixin_43806705/article/details/123359354)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文