tinymce.full.js
function (elm) {
        var self = this, w, h;

        elm = self.get(elm);
        w = self.getStyle(elm, 'width');
        h = self.getStyle(elm, 'height');

        // Non pixel value, then force offset/clientWidth
        if (w.indexOf('px') === -1) {
          w = 0;
        }

        // Non pixel value, then force offset/clientWidth
        if (h.indexOf('px') === -1) {
          h = 0;
        }

        return {
          w: parseInt(w, 10) || elm.offsetWidth || elm.clientWidth,
          h: parseInt(h, 10) || elm.offsetHeight || elm.clientHeight
        };
      }
function (elm) {
        var self = this, w, h;

        elm = self.get(elm);
        w = self.getStyle(elm, 'width');
        h = self.getStyle(elm, 'height');

        // Non pixel value, then force offset/clientWidth
        if (w.indexOf('px') === -1) {
          w = 0;
        }

        // Non pixel value, then force offset/clientWidth
        if (h.indexOf('px') === -1) {
          h = 0;
        }

        return {
          w: parseInt(w, 10) || elm.offsetWidth || elm.clientWidth,
          h: parseInt(h, 10) || elm.offsetHeight || elm.clientHeight
        };
      }
function ( elm ) { var self = this , w , h ; elm = self . get ( elm ) ; w = self . getStyle ( elm , 'width' ) ; h = self . getStyle ( elm , 'height' ) ; // Non pixel value, then force offset/clientWidth if ( w . indexOf ( 'px' ) === - 1 ) { w = 0 ; } // Non pixel value, then force offset/clientWidth if ( h . indexOf ( 'px' ) === - 1 ) { h = 0 ; } return { w : parseInt ( w , 10 ) || elm . offsetWidth || elm . clientWidth , h : parseInt ( h , 10 ) || elm . offsetHeight || elm . clientHeight } ; }
Returns the size dimensions of the specified element.

@method getSize
@param {Element/String} elm Element object or element ID to get rectangle from.
@return {object} Rectangle for specified element object with w, h fields.
Returns the size dimensions of the specified element .