docs: function (link) {
          if (!link) {
              return
          }
          const editor = this.editor
          const config = editor.config
  
          // 校验格式
          const linkImgCheck = config.linkImgCheck
          let checkResult
          if (linkImgCheck && typeof linkImgCheck === 'function') {
              checkResult = linkImgCheck(link)
              if (typeof checkResult === 'string') {
                  // 校验失败，提示信息
                  alert(checkResult)
                  return
              }
          }
  
          editor.cmd.do('insertHTML', `<img src="${link}" style="max-width:100%;"/>`)
  
          // 验证图片 url 是否有效，无效的话给出提示
          let img = document.createElement('img')
          img.onload = () => {
              const callback = config.linkImgCallback
              if (callback && typeof callback === 'function') {
                  callback(link)
              }
  
              img = null
          }
          img.onerror = () => {
              img = null
              // 无法成功下载图片
              this._alert('插入图片错误', `wangEditor: 插入图片出错，图片链接是 "${link}"，下载该链接失败`)
              return
          }
          img.onabort = () => {
              img = null
          }
          img.src = link
      }