getData(formData) {
    const data = this.data

    if (!formData) {
      formData = this.config.opts.formData
    }

    if (!formData) {
      return false
    }

    const setData = {
      xml: formData => (Array.isArray(formData) ? formData : parseXML(formData)),
      json: formData => {
        if (typeof formData === 'string') {
          return window.JSON.parse(formData)
        }
        return formData
      },
    }

    data.formData = setData[this.config.opts.dataType](formData) || []

    return data.formData
  }
Get and set the data for an editor. Mainly
a wrapper for handling dataType option
@param  {Object} formData
@return {Object} formData