1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-11 13:04:28 +02:00

TinyMce converted to a plugin.

This commit is contained in:
CaMer0n
2006-12-22 18:45:32 +00:00
parent 5d61fee453
commit a2b06eeaa1
180 changed files with 18477 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
function init() {
tinyMCEPopup.resizeToInnerSize();
var formObj = document.forms[0];
formObj.numcols.value = tinyMCE.getWindowArg('numcols', 1);
formObj.numrows.value = tinyMCE.getWindowArg('numrows', 1);
}
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;
tinyMCEPopup.execCommand("mceTableMergeCells", false, args);
tinyMCEPopup.close();
}