updating to tinymce 1.44

This commit is contained in:
JT Smith 2005-05-03 14:44:51 +00:00
parent 22347b8b39
commit 379dce7a54
125 changed files with 1915 additions and 937 deletions

View file

@ -3,6 +3,9 @@
<title>{$lang_table_cell_title}</title>
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript">
// Disable auto resize
tinyMCE.getWindowArg('mce_windowresize', false);
function insertTable() {
if (window.opener) {
var args = new Array();
@ -12,6 +15,8 @@ function insertTable() {
args["align"] = document.forms[0].align.options[document.forms[0].align.selectedIndex].value;
args["valign"] = document.forms[0].valign.options[document.forms[0].valign.selectedIndex].value;
args["className"] = document.forms[0].styleSelect.options[document.forms[0].styleSelect.selectedIndex].value;
args["bordercolor"] = document.forms[0].bordercolor.value;
args["bgcolor"] = document.forms[0].bgcolor.value;
window.opener.tinyMCE.execCommand("mceTableCellProps", false, args);
top.close();
@ -19,6 +24,14 @@ function insertTable() {
}
function init() {
if (tinyMCE.settings['table_color_fields']) {
document.getElementById('colors').style.display = tinyMCE.isMSIE ? 'block' : 'table-row';
TinyMCEPlugin_onLoad(); // Resize again
}
document.forms[0].bordercolor.value = tinyMCE.getWindowArg('bordercolor');
document.forms[0].bgcolor.value = tinyMCE.getWindowArg('bgcolor');
for (var i=0; i<document.forms[0].align.options.length; i++) {
if (document.forms[0].align.options[i].value == tinyMCE.getWindowArg('align'))
document.forms[0].align.options.selectedIndex = i;
@ -58,6 +71,8 @@ function init() {
formObj.width.value = tinyMCE.getWindowArg('width');
formObj.height.value = tinyMCE.getWindowArg('height');
// Autoresize and focus
TinyMCEPopup_autoResize();
window.focus();
}
@ -68,7 +83,7 @@ function cancelAction() {
</head>
<body onload="window.focus();init();">
<form onsubmit="insertTable();return false;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td align="center" valign="middle"><table border="0" cellpadding="4" cellspacing="0">
<tr>
@ -104,6 +119,12 @@ function cancelAction() {
<td>{$lang_insert_table_height}: </td>
<td><input name="height" type="text" id="height" value="" size="4" maxlength="4"></td>
</tr>
<tr id="colors" style="display: none">
<td>{$lang_table_bordercolor}:</td>
<td><input name="bordercolor" type="text" id="bordercolor" value="" size="9" maxlength="7"></td>
<td>{$lang_table_bgcolor}:</td>
<td><input name="bgcolor" type="text" id="bgcolor" value="" size="9" maxlength="7"></td>
</tr>
<tr>
<td><input type="button" id="insert" name="insert" value="{$lang_update}" onclick="insertTable();"></td>
<td align="right">&nbsp;</td>