OSDN Git Service

original file
[nucleus-jp/nucleus-plugins.git] / trunk / NP_TinyMCE2j / tinymce2j / 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 }