]> code.citadel.org Git - citadel.git/blob - webcit/tiny_mce/plugins/table/jscripts/merge_cells.js
* Removed the Kevin Roth rich text editor and replaced it with TinyMCE.
[citadel.git] / webcit / tiny_mce / plugins / table / jscripts / merge_cells.js
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         args["numcols"] = formObj.numcols.value;
15         args["numrows"] = formObj.numrows.value;
16
17         tinyMCEPopup.execCommand("mceTableMergeCells", false, args);
18         tinyMCEPopup.close();
19 }