code: function (text, link) {
          const editor = this.editor
          const config = editor.config
          const linkCheck = config.linkCheck
          let checkResult = true // 默认为 true
          if (linkCheck && typeof linkCheck === 'function') {
              checkResult = linkCheck(text, link)
          }
          if (checkResult === true) {
              editor.cmd.do('insertHTML', `<a href="${link}" target="_blank">${text}</a>`)
          } else {
              alert(checkResult)
          }
      }
docs: 插入链接