This commit is contained in:
lb
2023-11-27 15:25:41 +08:00
parent 4348d66e53
commit 2fdee9cafd
2 changed files with 50 additions and 30 deletions

View File

@@ -124,9 +124,9 @@ export default {
this.Quill = new Quill(editor, this.options);
// 取消自动聚焦 start
this.$nextTick(() => {
this.Quill.blur();
this.Quill?.blur();
if (!this.readOnly) {
this.Quill.enable();
this.Quill?.enable();
}
});
// 如果设置了上传地址则自定义图片上传事件