美文网首页
【CKeditor5】ckeditor Cannot read

【CKeditor5】ckeditor Cannot read

作者: 匿于烟火中 | 来源:发表于2019-04-23 14:35 被阅读0次

    resolve({ default: result['attachment'] })
    返回的resolve必须要带default,后面跟附件路径

      upload() {
          let upload = new Promise((resolve, reject)=>{
            this.loader['file'].then(
                (data)=>{
                    this.uploadFile(data,this.url,'sherry')
                    .subscribe(
                        (result)=>{
                            console.log('result',result);
                            resolve({ default: result['attachment'] })
                        },
                        (error)=>{
                            reject(data.msg);
                        }
                    );
                }
            );
          });
          return upload;
      }
    

    相关文章

      网友评论

          本文标题:【CKeditor5】ckeditor Cannot read

          本文链接:https://www.haomeiwen.com/subject/ugeoiqtx.html