!492 富文本编辑器自动聚焦问题 update yudao-ui-admin/src/components/Editor/index.vue.

Merge pull request !492 from zbk/N/A
This commit is contained in:
芋道源码 2023-06-03 12:56:05 +00:00 committed by Gitee
commit f59119bf6e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -84,7 +84,7 @@ export default {
],
},
placeholder: "请输入内容",
readOnly: this.readOnly,
readOnly: true,
},
};
},
@ -123,6 +123,13 @@ export default {
init() {
const editor = this.$refs.editor;
this.Quill = new Quill(editor, this.options);
// start
this.$nextTick(()=>{
this.Quill.blur();
if(!this.readOnly){
this.Quill.enable();
}
});
//
if (this.type === 'url') {
let toolbar = this.Quill.getModule("toolbar");