toggleEdit(fieldId, animate = true) {
    const field = document.getElementById(fieldId)
    if (!field) {
      return
    }

    if ($(field).hasClass('editing')) {
      return this.closeField(fieldId, animate)
    } else {
      return this.openField(fieldId, animate)
    }
  }
Toggles the edit mode for the given field
@param  {string} fieldId
@param  {boolean} animate
@return {HTMLElement|void} field