--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/includes/clientside/tinymce/plugins/table/js/merge_cells.js Thu Dec 27 22:09:33 2007 -0500
@@ -0,0 +1,28 @@
+tinyMCEPopup.requireLangPack();
+
+function init() {
+ tinyMCEPopup.resizeToInnerSize();
+
+ var formObj = document.forms[0];
+
+ formObj.numcols.value = tinyMCEPopup.getWindowArg('numcols', 1);
+ formObj.numrows.value = tinyMCEPopup.getWindowArg('numrows', 1);
+}
+
+function mergeCells() {
+ var args = new Array();
+ var formObj = document.forms[0];
+
+ if (!AutoValidator.validate(formObj)) {
+ alert(tinyMCEPopup.getLang('invalid_data'));
+ return false;
+ }
+
+ args["numcols"] = formObj.numcols.value;
+ args["numrows"] = formObj.numrows.value;
+
+ tinyMCEPopup.execCommand("mceTableMergeCells", false, args);
+ tinyMCEPopup.close();
+}
+
+tinyMCEPopup.onInit.add(init);