Vue-quill-editor rich text editor cancels automatic focus

 mounted(){

      this.$refs.myTextEditor.quill.enable(false);//Solve rich text auto focus

      setTimeout(() => {

        this.$refs.myTextEditor.quill.enable(true);//clickable after one second

      }, 1000);

  },

 mounted(){
      this.$refs.myTextEditor.quill.enable(false);//解决富文本自动聚焦
      setTimeout(() => {
        this.$refs.myTextEditor.quill.enable(true);//一秒之后可点击
      }, 1000);
  },

After opening this way, it will not be the location of the rich text.

Guess you like

Origin blog.csdn.net/weixin_42574985/article/details/127420362
Recommended