code: function (alertInfo, debugInfo) {
          const editor = this.editor
          const debug = editor.config.debug
          const customAlert = editor.config.customAlert
  
          if (debug) {
              throw new Error('wangEditor: ' + (debugInfo || alertInfo))
          } else {
              if (customAlert && typeof customAlert === 'function') {
                  customAlert(alertInfo)
              } else {
                  alert(alertInfo)
              }
          }
      }
docs: 根据 debug 弹出不同的信息