We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41867d5 + 6143f59 commit af4ee2eCopy full SHA for af4ee2e
src/components/Editor/index.vue
@@ -84,7 +84,7 @@ export default {
84
],
85
},
86
placeholder: "请输入内容",
87
- readOnly: this.readOnly,
+ readOnly: true,
88
89
};
90
@@ -123,6 +123,13 @@ export default {
123
init() {
124
const editor = this.$refs.editor;
125
this.Quill = new Quill(editor, this.options);
126
+ // 取消自动聚焦 start
127
+ this.$nextTick(()=>{
128
+ this.Quill.blur();
129
+ if(!this.readOnly){
130
+ this.Quill.enable();
131
+ }
132
+ });
133
// 如果设置了上传地址则自定义图片上传事件
134
if (this.type === 'url') {
135
let toolbar = this.Quill.getModule("toolbar");
0 commit comments