updating to tinymce 1.44
This commit is contained in:
parent
22347b8b39
commit
379dce7a54
125 changed files with 1915 additions and 937 deletions
|
|
@ -3,6 +3,9 @@
|
|||
<title>{$lang_table_row_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();
|
||||
|
|
@ -11,6 +14,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("mceTableRowProps", false, args);
|
||||
top.close();
|
||||
|
|
@ -18,6 +23,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;
|
||||
|
|
@ -56,6 +69,8 @@ function init() {
|
|||
var formObj = document.forms[0];
|
||||
formObj.height.value = tinyMCE.getWindowArg('height');
|
||||
|
||||
// Autoresize and focus
|
||||
TinyMCEPopup_autoResize();
|
||||
window.focus();
|
||||
}
|
||||
|
||||
|
|
@ -66,7 +81,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>
|
||||
|
|
@ -96,11 +111,11 @@ function cancelAction() {
|
|||
<td>{$lang_insert_table_height}: </td>
|
||||
<td><input name="height" type="text" id="height" value="" size="4" maxlength="4" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue