| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,64 +0,0 @@ |
| 1 |
-<html> |
|
| 2 |
-<head> |
|
| 3 |
-<title>{$lang_insert_link_title}</title>
|
|
| 4 |
-<script language="javascript" src="../../tiny_mce_popup.js"></script> |
|
| 5 |
-<script language="javascript"> |
|
| 6 |
- function init() {
|
|
| 7 |
- for (var i=0; i<document.forms[0].target.options.length; i++) {
|
|
| 8 |
- var option = document.forms[0].target.options[i]; |
|
| 9 |
- |
|
| 10 |
- if (option.value == tinyMCE.getWindowArg('target'))
|
|
| 11 |
- option.selected = true; |
|
| 12 |
- } |
|
| 13 |
- |
|
| 14 |
- document.forms[0].href.value = tinyMCE.getWindowArg('href');
|
|
| 15 |
- document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true);
|
|
| 16 |
- |
|
| 17 |
- window.focus(); |
|
| 18 |
- } |
|
| 19 |
- |
|
| 20 |
- function insertLink() {
|
|
| 21 |
- if (window.opener) {
|
|
| 22 |
- var href = document.forms[0].href.value; |
|
| 23 |
- var target = document.forms[0].target.options[document.forms[0].target.selectedIndex].value; |
|
| 24 |
- |
|
| 25 |
- window.opener.tinyMCE.insertLink(href, target); |
|
| 26 |
- top.close(); |
|
| 27 |
- } |
|
| 28 |
- } |
|
| 29 |
- |
|
| 30 |
- function cancelAction() {
|
|
| 31 |
- top.close(); |
|
| 32 |
- } |
|
| 33 |
-</script> |
|
| 34 |
-</head> |
|
| 35 |
-<body onload="init();"> |
|
| 36 |
-<form onsubmit="insertLink();return false;"> |
|
| 37 |
- <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
| 38 |
- <tr> |
|
| 39 |
- <td align="center" valign="middle"><table border="0" cellpadding="4" cellspacing="0"> |
|
| 40 |
- <tr> |
|
| 41 |
- <td colspan="2" class="title">{$lang_insert_link_title}</td>
|
|
| 42 |
- </tr> |
|
| 43 |
- <tr> |
|
| 44 |
- <td>{$lang_insert_link_url}:</td>
|
|
| 45 |
- <td><input name="href" type="text" id="href" value="" style="width: 200px"></td> |
|
| 46 |
- </tr> |
|
| 47 |
- <tr> |
|
| 48 |
- <td>{$lang_insert_link_target}:</td>
|
|
| 49 |
- <td><select name="target" style="width: 200px"> |
|
| 50 |
- <option value="_self">{$lang_insert_link_target_same}</option>
|
|
| 51 |
- <option value="_blank">{$lang_insert_link_target_blank}</option>
|
|
| 52 |
- </select></td> |
|
| 53 |
- </tr> |
|
| 54 |
- <tr> |
|
| 55 |
- <td><input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();">
|
|
| 56 |
- </td> |
|
| 57 |
- <td align="right"><input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="cancelAction();"></td>
|
|
| 58 |
- </tr> |
|
| 59 |
- </table></td> |
|
| 60 |
- </tr> |
|
| 61 |
- </table> |
|
| 62 |
-</form> |
|
| 63 |
-</body> |
|
| 64 |
-</html> |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,64 @@ |
| 1 |
+<html> |
|
| 2 |
+<head> |
|
| 3 |
+<title>{$lang_insert_link_title}</title>
|
|
| 4 |
+<script language="javascript" src="../../tiny_mce_popup.js"></script> |
|
| 5 |
+<script language="javascript"> |
|
| 6 |
+ function init() {
|
|
| 7 |
+ for (var i=0; i<document.forms[0].target.options.length; i++) {
|
|
| 8 |
+ var option = document.forms[0].target.options[i]; |
|
| 9 |
+ |
|
| 10 |
+ if (option.value == tinyMCE.getWindowArg('target'))
|
|
| 11 |
+ option.selected = true; |
|
| 12 |
+ } |
|
| 13 |
+ |
|
| 14 |
+ document.forms[0].href.value = tinyMCE.getWindowArg('href');
|
|
| 15 |
+ document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true);
|
|
| 16 |
+ |
|
| 17 |
+ window.focus(); |
|
| 18 |
+ } |
|
| 19 |
+ |
|
| 20 |
+ function insertLink() {
|
|
| 21 |
+ if (window.opener) {
|
|
| 22 |
+ var href = document.forms[0].href.value; |
|
| 23 |
+ var target = document.forms[0].target.options[document.forms[0].target.selectedIndex].value; |
|
| 24 |
+ |
|
| 25 |
+ window.opener.tinyMCE.insertLink(href, target); |
|
| 26 |
+ top.close(); |
|
| 27 |
+ } |
|
| 28 |
+ } |
|
| 29 |
+ |
|
| 30 |
+ function cancelAction() {
|
|
| 31 |
+ top.close(); |
|
| 32 |
+ } |
|
| 33 |
+</script> |
|
| 34 |
+</head> |
|
| 35 |
+<body onload="init();"> |
|
| 36 |
+<form onsubmit="insertLink();return false;"> |
|
| 37 |
+ <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
| 38 |
+ <tr> |
|
| 39 |
+ <td align="center" valign="middle"><table border="0" cellpadding="4" cellspacing="0"> |
|
| 40 |
+ <tr> |
|
| 41 |
+ <td colspan="2" class="title">{$lang_insert_link_title}</td>
|
|
| 42 |
+ </tr> |
|
| 43 |
+ <tr> |
|
| 44 |
+ <td>{$lang_insert_link_url}:</td>
|
|
| 45 |
+ <td><input name="href" type="text" id="href" value="" style="width: 200px"></td> |
|
| 46 |
+ </tr> |
|
| 47 |
+ <tr> |
|
| 48 |
+ <td>{$lang_insert_link_target}:</td>
|
|
| 49 |
+ <td><select name="target" style="width: 200px"> |
|
| 50 |
+ <option value="_self">{$lang_insert_link_target_same}</option>
|
|
| 51 |
+ <option value="_blank">{$lang_insert_link_target_blank}</option>
|
|
| 52 |
+ </select></td> |
|
| 53 |
+ </tr> |
|
| 54 |
+ <tr> |
|
| 55 |
+ <td><input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();">
|
|
| 56 |
+ </td> |
|
| 57 |
+ <td align="right"><input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="cancelAction();"></td>
|
|
| 58 |
+ </tr> |
|
| 59 |
+ </table></td> |
|
| 60 |
+ </tr> |
|
| 61 |
+ </table> |
|
| 62 |
+</form> |
|
| 63 |
+</body> |
|
| 64 |
+</html> |