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

@ -1,2 +1,2 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('advlink','en,de,sv,zh_cn,cs,fa,fr_ca,fr');function TinyMCE_advlink_getInsertLinkTemplate(){var template=new Array();template['file']='../../plugins/advlink/link.htm';template['width']=440;template['height']=420;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);return template;}
tinyMCE.importPluginLanguagePack('advlink','en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl');function TinyMCE_advlink_getInsertLinkTemplate(){var template=new Array();template['file']='../../plugins/advlink/link.htm';template['width']=400;template['height']=420;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);return template;}

View file

@ -1,5 +1,5 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('advlink', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr');
tinyMCE.importPluginLanguagePack('advlink', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl');
/**
* Insert link template function.
@ -7,7 +7,7 @@ tinyMCE.importPluginLanguagePack('advlink', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr');
function TinyMCE_advlink_getInsertLinkTemplate() {
var template = new Array();
template['file'] = '../../plugins/advlink/link.htm';
template['width'] = 440;
template['width'] = 400;
template['height'] = 420;
// Language specific width and height addons

View file

@ -0,0 +1,23 @@
// PL lang variables
tinyMCELang['lang_insert_link_target_same'] = 'Otwórz w tym samym oknie';
tinyMCELang['lang_insert_link_target_parent'] = 'Open in parent window / frame';
tinyMCELang['lang_insert_link_target_top'] = 'Open in top frame (replaces all frames)';
tinyMCELang['lang_insert_link_target_blank'] = 'Otwórz w nowym oknie';
tinyMCELang['lang_insert_link_target_named'] = 'Open in the window';
tinyMCELang['lang_insert_link_popup'] = 'JS-Popup';
tinyMCELang['lang_insert_link_popup_url'] = 'Popup URL';
tinyMCELang['lang_insert_link_popup_name'] = 'Window name';
tinyMCELang['lang_insert_link_popup_return'] = 'insert \'return false\'';
tinyMCELang['lang_insert_link_popup_scrollbars'] = 'Show scrollbars';
tinyMCELang['lang_insert_link_popup_statusbar'] = 'Show statusbar';
tinyMCELang['lang_insert_link_popup_toolbar'] = 'Show toolbars';
tinyMCELang['lang_insert_link_popup_menubar'] = 'Show menubar';
tinyMCELang['lang_insert_link_popup_location'] = 'Show locationbar';
tinyMCELang['lang_insert_link_popup_resizable'] = 'Make window resizable';
tinyMCELang['lang_insert_link_popup_size'] = 'Size';
tinyMCELang['lang_insert_link_popup_position'] = 'Position (X/Y)';
tinyMCELang['lang_insert_link_popup_missingtarget'] = 'Please insert a name for the target or choose another option.';
tinyMCELang['lang_insert_link_url'] = 'Adres URL';
tinyMCELang['lang_insert_link_target'] = 'Cel';

View file

@ -9,6 +9,9 @@ if (url != null)
</script>
<script language="javascript" type="text/javascript">
<!--
// Disable auto resize
tinyMCE.getWindowArg('mce_windowresize', false);
function myRegexpReplace(in_str, reg_exp, replace_str, opts) {
if (typeof opts == "undefined")
opts = 'g';
@ -81,18 +84,9 @@ if (url != null)
// Handle file browser
if (tinyMCE.getParam("file_browser_callback") != null) {
document.getElementById('href').style.width = '280px';
var html = '';
html += '<img id="browserBtn" src="../../themes/advanced/images/browse.gif"';
html += ' onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');"';
html += ' onmouseout="tinyMCE.restoreClass(this);"';
html += ' onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');"';
html += ' onclick="javascript:tinyMCE.openFileBrowser(\'href\',document.forms[0].href.value,\'file\',window);"';
html += ' width="20" height="18" border="0" title="' + tinyMCE.getLang('lang_browse') + '"';
html += ' class="mceButtonNormal" alt="' + tinyMCE.getLang('lang_browse') + '" />';
document.getElementById('browser').innerHTML = html;
document.getElementById('winurl').style.width = '180px';
document.getElementById('browser1').innerHTML = getBrowserHTML('href');
document.getElementById('browser2').innerHTML = getBrowserHTML('winurl');
}
// Auto select link in list
@ -103,6 +97,8 @@ if (url != null)
}
}
// Autoresize and focus
TinyMCEPopup_autoResize();
window.focus();
}
@ -235,6 +231,20 @@ if (url != null)
}
}
function getBrowserHTML(name) {
var html = "";
html += '<img id="browserBtn" src="../../themes/advanced/images/browse.gif"';
html += ' onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');"';
html += ' onmouseout="tinyMCE.restoreClass(this);"';
html += ' onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');"';
html += ' onclick="javascript:tinyMCE.openFileBrowser(\'' + name + '\',document.forms[0].' + name + '.value,\'file\',window);"';
html += ' width="20" height="18" border="0" title="' + tinyMCE.getLang('lang_browse') + '"';
html += ' class="mceButtonNormal" alt="' + tinyMCE.getLang('lang_browse') + '" />';
return html;
}
function setPopupInputs() {
var formObj = document.forms[0];
var ids = new Array('url','name','left','top','width','height','location','menubar','toolbar','status','scrollbars','resizable','return');
@ -286,18 +296,18 @@ if (url != null)
</head>
<body onload="init();">
<form onsubmit="insertLink();return false;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100">
<tr>
<td align="center" valign="middle"><table border="0" cellpadding="4" cellspacing="0">
<tr>
<td colspan="2" class="title">{$lang_insert_link_title}</td>
<td colspan="2" class="title" nowrap="nowrap">{$lang_insert_link_title}</td>
</tr>
<tr>
<td align="right">{$lang_insert_link_url}:</td>
<td align="right" nowrap="nowrap">{$lang_insert_link_url}:</td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="href" type="text" id="href" value="" style="width: 300px;" /></td>
<td id="browser"></td>
<td id="browser1"></td>
</tr>
</table></td>
</tr>
@ -320,7 +330,7 @@ if (url != null)
</script>
<!-- /Link list -->
<tr>
<td align="right">{$lang_theme_insert_link_titlefield}:</td>
<td align="right" nowrap="nowrap">{$lang_theme_insert_link_titlefield}:</td>
<td><input name="linktitle" type="text" id="linktitle" value="" style="width: 300px;" /></td>
</tr>
<tr>
@ -363,7 +373,12 @@ if (url != null)
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" nowrap="nowrap">{$lang_insert_link_popup_url}:&nbsp;</td>
<td id="labelurl"><input type="text" name="winurl" id="winurl" value="" style="width: 200px;" /></td>
<td id="labelurl"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="text" name="winurl" id="winurl" value="" style="width: 200px;" /></td>
<td id="browser2"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" nowrap="nowrap" id="labelname">{$lang_insert_link_popup_name}:&nbsp;</td>