summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/tiny_mce/plugins/table/jscripts
diff options
context:
space:
mode:
authorestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-11-08 02:23:06 +0000
committerestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-11-08 02:23:06 +0000
commit0997495c510b646c5a91e35b3faf53136b92df02 (patch)
treed7eb99841cd6bee8247c6d271972be0a328002fa /roundcubemail/program/js/tiny_mce/plugins/table/jscripts
parentccec9a6b3a28af29d1d50052eb36218d7ba2b3e0 (diff)
upgrade to TinyMCE v2.0.8
git-svn-id: https://svn.roundcube.net/trunk@362 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/tiny_mce/plugins/table/jscripts')
-rw-r--r--roundcubemail/program/js/tiny_mce/plugins/table/jscripts/merge_cells.js5
-rw-r--r--roundcubemail/program/js/tiny_mce/plugins/table/jscripts/table.js7
2 files changed, 11 insertions, 1 deletions
diff --git a/roundcubemail/program/js/tiny_mce/plugins/table/jscripts/merge_cells.js b/roundcubemail/program/js/tiny_mce/plugins/table/jscripts/merge_cells.js
index 51a274962..06cbb275d 100644
--- a/roundcubemail/program/js/tiny_mce/plugins/table/jscripts/merge_cells.js
+++ b/roundcubemail/program/js/tiny_mce/plugins/table/jscripts/merge_cells.js
@@ -11,6 +11,11 @@ function mergeCells() {
var args = new Array();
var formObj = document.forms[0];
+ if (!AutoValidator.validate(formObj)) {
+ alert(tinyMCE.getLang('lang_invalid_data'));
+ return false;
+ }
+
args["numcols"] = formObj.numcols.value;
args["numrows"] = formObj.numrows.value;
diff --git a/roundcubemail/program/js/tiny_mce/plugins/table/jscripts/table.js b/roundcubemail/program/js/tiny_mce/plugins/table/jscripts/table.js
index 02eaeee27..6904ed0f7 100644
--- a/roundcubemail/program/js/tiny_mce/plugins/table/jscripts/table.js
+++ b/roundcubemail/program/js/tiny_mce/plugins/table/jscripts/table.js
@@ -8,6 +8,11 @@ function insertTable() {
var elm = tinyMCE.tableElm;
var cellLimit, rowLimit, colLimit;
+ if (!AutoValidator.validate(formObj)) {
+ alert(tinyMCE.getLang('lang_invalid_data'));
+ return false;
+ }
+
tinyMCEPopup.restoreSelection();
// Get form data
@@ -180,7 +185,7 @@ function init() {
document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
- var cols = 2, rows = 2, border = 0, cellpadding = "", cellspacing = "";
+ var cols = 2, rows = 2, border = tinyMCE.getParam('table_default_border', '0'), cellpadding = tinyMCE.getParam('table_default_cellpadding', ''), cellspacing = tinyMCE.getParam('table_default_cellspacing', '');
var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = "";
var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "";
var inst = tinyMCE.selectedInstance;