tinymce.full.js
function (value) {
        var len, radix = 10;

        if (!value) {
          return;
        }

        if (typeof value === "number") {
          value = value || 0;

          return {
            top: value,
            left: value,
            bottom: value,
            right: value
          };
        }

        value = value.split(' ');
        len = value.length;

        if (len === 1) {
          value[1] = value[2] = value[3] = value[0];
        } else if (len === 2) {
          value[2] = value[0];
          value[3] = value[1];
        } else if (len === 3) {
          value[3] = value[1];
        }

        return {
          top: parseInt(value[0], radix) || 0,
          right: parseInt(value[1], radix) || 0,
          bottom: parseInt(value[2], radix) || 0,
          left: parseInt(value[3], radix) || 0
        };
      }
function (value) {
        var len, radix = 10;

        if (!value) {
          return;
        }

        if (typeof value === "number") {
          value = value || 0;

          return {
            top: value,
            left: value,
            bottom: value,
            right: value
          };
        }

        value = value.split(' ');
        len = value.length;

        if (len === 1) {
          value[1] = value[2] = value[3] = value[0];
        } else if (len === 2) {
          value[2] = value[0];
          value[3] = value[1];
        } else if (len === 3) {
          value[3] = value[1];
        }

        return {
          top: parseInt(value[0], radix) || 0,
          right: parseInt(value[1], radix) || 0,
          bottom: parseInt(value[2], radix) || 0,
          left: parseInt(value[3], radix) || 0
        };
      }
function ( value ) { var len , radix = 10 ; if ( ! value ) { return ; } if ( typeof value === "number" ) { value = value || 0 ; return { top : value , left : value , bottom : value , right : value } ; } value = value . split ( ' ' ) ; len = value . length ; if ( len === 1 ) { value [ 1 ] = value [ 2 ] = value [ 3 ] = value [ 0 ] ; } else if ( len === 2 ) { value [ 2 ] = value [ 0 ] ; value [ 3 ] = value [ 1 ] ; } else if ( len === 3 ) { value [ 3 ] = value [ 1 ] ; } return { top : parseInt ( value [ 0 ] , radix ) || 0 , right : parseInt ( value [ 1 ] , radix ) || 0 , bottom : parseInt ( value [ 2 ] , radix ) || 0 , left : parseInt ( value [ 3 ] , radix ) || 0 } ; }
Parses the specified box value. A box value contains 1-4 properties in clockwise order.

@method parseBox
@param {String/Number} value Box value "0 1 2 3" or "0" etc.
@return {Object} Object with top/right/bottom/left properties.
@private
Parses the specified box value . A box value contains 1 - 4 properties in clockwise order .