diff options
Diffstat (limited to 'public/javascripts/tiny_mce/plugins/table/js/merge_cells.js')
| -rw-r--r-- | public/javascripts/tiny_mce/plugins/table/js/merge_cells.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/public/javascripts/tiny_mce/plugins/table/js/merge_cells.js b/public/javascripts/tiny_mce/plugins/table/js/merge_cells.js deleted file mode 100644 index 31d6df0..0000000 --- a/public/javascripts/tiny_mce/plugins/table/js/merge_cells.js +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | tinyMCEPopup.requireLangPack(); | ||
| 2 | |||
| 3 | function init() { | ||
| 4 | var f = document.forms[0], v; | ||
| 5 | |||
| 6 | tinyMCEPopup.resizeToInnerSize(); | ||
| 7 | |||
| 8 | f.numcols.value = tinyMCEPopup.getWindowArg('numcols', 1); | ||
| 9 | f.numrows.value = tinyMCEPopup.getWindowArg('numrows', 1); | ||
| 10 | } | ||
| 11 | |||
| 12 | function mergeCells() { | ||
| 13 | var args = [], f = document.forms[0]; | ||
| 14 | |||
| 15 | tinyMCEPopup.restoreSelection(); | ||
| 16 | |||
| 17 | if (!AutoValidator.validate(f)) { | ||
| 18 | tinyMCEPopup.alert(tinyMCEPopup.getLang('invalid_data')); | ||
| 19 | return false; | ||
| 20 | } | ||
| 21 | |||
| 22 | args["numcols"] = f.numcols.value; | ||
| 23 | args["numrows"] = f.numrows.value; | ||
| 24 | |||
| 25 | tinyMCEPopup.execCommand("mceTableMergeCells", false, args); | ||
| 26 | tinyMCEPopup.close(); | ||
| 27 | } | ||
| 28 | |||
| 29 | tinyMCEPopup.onInit.add(init); | ||
