public/js/editor.js
function(data, name, $field, $el, field, callback) {
      data[name] = self.getArea($el, name);

      if (field.required && (apos.areaIsEmpty(data[name]))) {
        return apos.afterYield(_.partial(callback, 'required'));
      }
      return apos.afterYield(callback);
    }
function(data, name, $field, $el, field, callback) {
      data[name] = self.getArea($el, name);

      if (field.required && (apos.areaIsEmpty(data[name]))) {
        return apos.afterYield(_.partial(callback, 'required'));
      }
      return apos.afterYield(callback);
    }
function ( data , name , $field , $el , field , callback ) { data [ name ] = self . getArea ( $el , name ) ; if ( field . required && ( apos . areaIsEmpty ( data [ name ] ) ) ) { return apos . afterYield ( _ . partial ( callback , 'required' ) ) ; } return apos . afterYield ( callback ) ; }
Convert the tough cases
Convert the tough cases