From a0109c4933e0bfb5ed9dbcf94f932991ca689542 Mon Sep 17 00:00:00 2001 From: svncommit Date: Thu, 14 Sep 2006 03:49:28 +0000 Subject: Initial TinyMCE editor support (still need to work on spellcheck and skins) --- .../js/tiny_mce/plugins/table/jscripts/merge_cells.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 program/js/tiny_mce/plugins/table/jscripts/merge_cells.js (limited to 'program/js/tiny_mce/plugins/table/jscripts/merge_cells.js') diff --git a/program/js/tiny_mce/plugins/table/jscripts/merge_cells.js b/program/js/tiny_mce/plugins/table/jscripts/merge_cells.js new file mode 100644 index 000000000..51a274962 --- /dev/null +++ b/program/js/tiny_mce/plugins/table/jscripts/merge_cells.js @@ -0,0 +1,19 @@ +function init() { + tinyMCEPopup.resizeToInnerSize(); + + var formObj = document.forms[0]; + + formObj.numcols.value = tinyMCE.getWindowArg('numcols', 1); + formObj.numrows.value = tinyMCE.getWindowArg('numrows', 1); +} + +function mergeCells() { + var args = new Array(); + var formObj = document.forms[0]; + + args["numcols"] = formObj.numcols.value; + args["numrows"] = formObj.numrows.value; + + tinyMCEPopup.execCommand("mceTableMergeCells", false, args); + tinyMCEPopup.close(); +} -- cgit v1.2.3