this.$refs.editor.Quill.setSelection(0);//设置光标位置
1、quill增加属性ref="editor"
2、设置光标在首位:this.$refs.editor.Quill.setSelection(0);
0表示在第一位,也可以设置为输入框长度length,表示在末尾
this.$refs.editor.Quill.setSelection(0);//设置光标位置
1、quill增加属性ref="editor"
2、设置光标在首位:this.$refs.editor.Quill.setSelection(0);
0表示在第一位,也可以设置为输入框长度length,表示在末尾