home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Plugins / tinymce-advanced / mce / table / jscripts / merge_cells.js < prev    next >
Encoding:
Text File  |  2008-02-20  |  600 b   |  24 lines

  1. function init() {
  2.     tinyMCEPopup.resizeToInnerSize();
  3.  
  4.     var formObj = document.forms[0];
  5.  
  6.     formObj.numcols.value = tinyMCE.getWindowArg('numcols', 1);
  7.     formObj.numrows.value = tinyMCE.getWindowArg('numrows', 1);
  8. }
  9.  
  10. function mergeCells() {
  11.     var args = new Array();
  12.     var formObj = document.forms[0];
  13.  
  14.     if (!AutoValidator.validate(formObj)) {
  15.         alert(tinyMCE.getLang('lang_invalid_data'));
  16.         return false;
  17.     }
  18.  
  19.     args["numcols"] = formObj.numcols.value;
  20.     args["numrows"] = formObj.numrows.value;
  21.  
  22.     tinyMCEPopup.execCommand("mceTableMergeCells", false, args);
  23.     tinyMCEPopup.close();
  24. }