includes/clientside/tinymce/plugins/table/jscripts/merge_cells.js
changeset 1 fe660c52c48f
equal deleted inserted replaced
0:902822492a68 1:fe660c52c48f
       
     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 }