tinymce.full.js
function adjustWidth(table, delta, index) {
        var tableDetails = getTableDetails(table);
        var tableGrid = getTableGrid(tableDetails);

        function setSizes(newSizes, styleExtension) {
          Tools.each(newSizes, function (cell) {
            editor.dom.setStyle(cell.element, 'width', cell.width + styleExtension);
            editor.dom.setAttrib(cell.element, 'width', null);
          });
        }

        function getNewTablePercentWidth() {
          return index < tableGrid.grid.maxCols - 1 ? getCurrentTablePercentWidth(table) :
            getCurrentTablePercentWidth(table) + getTablePercentDelta(table, delta);
        }

        function getNewTablePixelWidth() {
          return index < tableGrid.grid.maxCols - 1 ? getComputedStyleSize(table, 'width') :
            getComputedStyleSize(table, 'width') + delta;
        }

        function setTableSize(newTableWidth, styleExtension, isPercentBased) {
          if (index == tableGrid.grid.maxCols - 1 || !isPercentBased) {
            editor.dom.setStyle(table, 'width', newTableWidth + styleExtension);
            editor.dom.setAttrib(table, 'width', null);
          }
        }

        var percentageBased = isPercentageBasedSize(table.width) ||
          isPercentageBasedSize(table.style.width);

        var widths = getWidths(tableGrid, percentageBased, table);

        var step = percentageBased ? getCellPercentDelta(table, delta) : delta;
        // TODO: change the min for percentage maybe?
        var deltas = determineDeltas(widths, index, step, RESIZE_MINIMUM_WIDTH, percentageBased, table);
        var newWidths = [];

        for (var i = 0; i < deltas.length; i++) {
          newWidths.push(deltas[i] + widths[i]);
        }

        var newSizes = recalculateWidths(tableGrid, newWidths);
        var styleExtension = percentageBased ? '%' : 'px';
        var newTableWidth = percentageBased ? getNewTablePercentWidth() :
          getNewTablePixelWidth();

        editor.undoManager.transact(function () {
          setSizes(newSizes, styleExtension);
          setTableSize(newTableWidth, styleExtension, percentageBased);
        });
      }
function adjustWidth(table, delta, index) {
        var tableDetails = getTableDetails(table);
        var tableGrid = getTableGrid(tableDetails);

        function setSizes(newSizes, styleExtension) {
          Tools.each(newSizes, function (cell) {
            editor.dom.setStyle(cell.element, 'width', cell.width + styleExtension);
            editor.dom.setAttrib(cell.element, 'width', null);
          });
        }

        function getNewTablePercentWidth() {
          return index < tableGrid.grid.maxCols - 1 ? getCurrentTablePercentWidth(table) :
            getCurrentTablePercentWidth(table) + getTablePercentDelta(table, delta);
        }

        function getNewTablePixelWidth() {
          return index < tableGrid.grid.maxCols - 1 ? getComputedStyleSize(table, 'width') :
            getComputedStyleSize(table, 'width') + delta;
        }

        function setTableSize(newTableWidth, styleExtension, isPercentBased) {
          if (index == tableGrid.grid.maxCols - 1 || !isPercentBased) {
            editor.dom.setStyle(table, 'width', newTableWidth + styleExtension);
            editor.dom.setAttrib(table, 'width', null);
          }
        }

        var percentageBased = isPercentageBasedSize(table.width) ||
          isPercentageBasedSize(table.style.width);

        var widths = getWidths(tableGrid, percentageBased, table);

        var step = percentageBased ? getCellPercentDelta(table, delta) : delta;
        // TODO: change the min for percentage maybe?
        var deltas = determineDeltas(widths, index, step, RESIZE_MINIMUM_WIDTH, percentageBased, table);
        var newWidths = [];

        for (var i = 0; i < deltas.length; i++) {
          newWidths.push(deltas[i] + widths[i]);
        }

        var newSizes = recalculateWidths(tableGrid, newWidths);
        var styleExtension = percentageBased ? '%' : 'px';
        var newTableWidth = percentageBased ? getNewTablePercentWidth() :
          getNewTablePixelWidth();

        editor.undoManager.transact(function () {
          setSizes(newSizes, styleExtension);
          setTableSize(newTableWidth, styleExtension, percentageBased);
        });
      }
function adjustWidth ( table , delta , index ) { var tableDetails = getTableDetails ( table ) ; var tableGrid = getTableGrid ( tableDetails ) ; function setSizes ( newSizes , styleExtension ) { Tools . each ( newSizes , function ( cell ) { editor . dom . setStyle ( cell . element , 'width' , cell . width + styleExtension ) ; editor . dom . setAttrib ( cell . element , 'width' , null ) ; } ) ; } function getNewTablePercentWidth ( ) { return index < tableGrid . grid . maxCols - 1 ? getCurrentTablePercentWidth ( table ) : getCurrentTablePercentWidth ( table ) + getTablePercentDelta ( table , delta ) ; } function getNewTablePixelWidth ( ) { return index < tableGrid . grid . maxCols - 1 ? getComputedStyleSize ( table , 'width' ) : getComputedStyleSize ( table , 'width' ) + delta ; } function setTableSize ( newTableWidth , styleExtension , isPercentBased ) { if ( index == tableGrid . grid . maxCols - 1 || ! isPercentBased ) { editor . dom . setStyle ( table , 'width' , newTableWidth + styleExtension ) ; editor . dom . setAttrib ( table , 'width' , null ) ; } } var percentageBased = isPercentageBasedSize ( table . width ) || isPercentageBasedSize ( table . style . width ) ; var widths = getWidths ( tableGrid , percentageBased , table ) ; var step = percentageBased ? getCellPercentDelta ( table , delta ) : delta ; // TODO: change the min for percentage maybe? var deltas = determineDeltas ( widths , index , step , RESIZE_MINIMUM_WIDTH , percentageBased , table ) ; var newWidths = [ ] ; for ( var i = 0 ; i < deltas . length ; i ++ ) { newWidths . push ( deltas [ i ] + widths [ i ] ) ; } var newSizes = recalculateWidths ( tableGrid , newWidths ) ; var styleExtension = percentageBased ? '%' : 'px' ; var newTableWidth = percentageBased ? getNewTablePercentWidth ( ) : getNewTablePixelWidth ( ) ; editor . undoManager . transact ( function ( ) { setSizes ( newSizes , styleExtension ) ; setTableSize ( newTableWidth , styleExtension , percentageBased ) ; } ) ; }
Adjust the width of the column of table at index, with delta.
Adjust the width of the column of table at index with delta .