bgneal@45: tinyMCEPopup.requireLangPack(); bgneal@45: bgneal@45: function init() { bgneal@45: var f = document.forms[0], v; bgneal@45: bgneal@45: tinyMCEPopup.resizeToInnerSize(); bgneal@45: bgneal@45: f.numcols.value = tinyMCEPopup.getWindowArg('numcols', 1); bgneal@45: f.numrows.value = tinyMCEPopup.getWindowArg('numrows', 1); bgneal@45: } bgneal@45: bgneal@45: function mergeCells() { bgneal@45: var args = [], f = document.forms[0]; bgneal@45: bgneal@45: tinyMCEPopup.restoreSelection(); bgneal@45: bgneal@45: if (!AutoValidator.validate(f)) { bgneal@45: tinyMCEPopup.alert(tinyMCEPopup.getLang('invalid_data')); bgneal@45: return false; bgneal@45: } bgneal@45: bgneal@45: args["numcols"] = f.numcols.value; bgneal@45: args["numrows"] = f.numrows.value; bgneal@45: bgneal@45: tinyMCEPopup.execCommand("mceTableMergeCells", false, args); bgneal@45: tinyMCEPopup.close(); bgneal@45: } bgneal@45: bgneal@45: tinyMCEPopup.onInit.add(init);