upgrading to tinymce 1.45

This commit is contained in:
JT Smith 2005-08-05 19:49:15 +00:00
parent c287ab8a3e
commit c351096b73
196 changed files with 3608 additions and 1636 deletions

View file

@ -3,9 +3,6 @@
<title>{$lang_insert_table_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();
@ -21,9 +18,12 @@ function insertTable() {
args["bgcolor"] = document.forms[0].bgcolor.value;
args["align"] = document.forms[0].align.options[document.forms[0].align.selectedIndex].value;
args["className"] = document.forms[0].styleSelect.options[document.forms[0].styleSelect.selectedIndex].value;
args["action"] = tinyMCE.getWindowArg('action');
window.opener.tinyMCE.execCommand("mceInsertTable", false, args);
top.close();
// Close the dialog
tinyMCE.closeDialog();
}
}
@ -79,18 +79,15 @@ function init() {
formObj.bordercolor.value = tinyMCE.getWindowArg('bordercolor');
formObj.bgcolor.value = tinyMCE.getWindowArg('bgcolor');
formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true);
// Autoresize and focus
TinyMCEPopup_autoResize();
window.focus();
}
function cancelAction() {
top.close();
// Close the dialog
tinyMCE.closeDialog();
}
</script>
</head>
<body onload="window.focus();init();">
<body onload="init();">
<form onsubmit="insertTable();return false;">
<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr>