bgneal@312: tinyMCEPopup.requireLangPack(); bgneal@312: bgneal@312: var MergeCellsDialog = { bgneal@312: init : function() { bgneal@312: var f = document.forms[0]; bgneal@312: bgneal@312: f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1); bgneal@312: f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1); bgneal@312: }, bgneal@312: bgneal@312: merge : function() { bgneal@312: var func, f = document.forms[0]; bgneal@312: bgneal@312: tinyMCEPopup.restoreSelection(); bgneal@312: bgneal@312: func = tinyMCEPopup.getWindowArg('onaction'); bgneal@312: bgneal@312: func({ bgneal@312: cols : f.numcols.value, bgneal@312: rows : f.numrows.value bgneal@312: }); bgneal@312: bgneal@312: tinyMCEPopup.close(); bgneal@312: } bgneal@312: }; bgneal@312: bgneal@312: tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog);