Subversion Repositories Sites.tela-botanica.org

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
420 florian 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
}