includes/clientside/tinymce/themes/advanced/link.htm
changeset 1 fe660c52c48f
equal deleted inserted replaced
0:902822492a68 1:fe660c52c48f
       
     1 <html xmlns="http://www.w3.org/1999/xhtml">
       
     2 <head>
       
     3 	<title>{$lang_insert_link_title}</title>
       
     4 	<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
       
     5 	<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script>
       
     6 	<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script>
       
     7 	<script language="javascript" type="text/javascript" src="jscripts/link.js"></script>
       
     8 	<base target="_self" />
       
     9 </head>
       
    10 <body id="link" onload="tinyMCEPopup.executeOnLoad('init();');" style="display: none">
       
    11 <form onsubmit="insertLink();return false;" action="#">
       
    12 	<div class="tabs">
       
    13 		<ul>
       
    14 			<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{$lang_insert_link_title}</a></span></li>
       
    15 		</ul>
       
    16 	</div>
       
    17 
       
    18 	<div class="panel_wrapper">
       
    19 		<div id="general_panel" class="panel current">
       
    20 
       
    21 		<table border="0" cellpadding="4" cellspacing="0">
       
    22           <tr>
       
    23             <td nowrap="nowrap"><label for="href">{$lang_insert_link_url}</label></td>
       
    24             <td><table border="0" cellspacing="0" cellpadding="0"> 
       
    25 				  <tr> 
       
    26 					<td><input id="href" name="href" type="text" value="" style="width: 200px" /></td> 
       
    27 					<td id="hrefbrowsercontainer">&nbsp;</td>
       
    28 				  </tr> 
       
    29 				</table></td>
       
    30           </tr>
       
    31 		  <!-- Link list -->
       
    32 		  <script language="javascript">
       
    33 			if (typeof(tinyMCELinkList) != "undefined" && tinyMCELinkList.length > 0) {
       
    34 				var html = "";
       
    35 
       
    36 				html += '<tr><td><label for="link_list">{$lang_link_list}</label></td>';
       
    37 				html += '<td><select id="link_list" name="link_list" style="width: 200px" onchange="this.form.href.value=this.options[this.selectedIndex].value;">';
       
    38 				html += '<option value="">---</option>';
       
    39 
       
    40 				for (var i=0; i<tinyMCELinkList.length; i++)
       
    41 					html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
       
    42 
       
    43 				html += '</select></td></tr>';
       
    44 
       
    45 				document.write(html);
       
    46 			}
       
    47 		  </script>
       
    48 		  <!-- /Link list -->
       
    49           <tr>
       
    50             <td nowrap="nowrap"><label for="target">{$lang_insert_link_target}</label></td>
       
    51             <td><select id="target" name="target" style="width: 200px">
       
    52                 <option value="_self">{$lang_insert_link_target_same}</option>
       
    53                 <option value="_blank">{$lang_insert_link_target_blank}</option>
       
    54 				<script language="javascript">
       
    55 					var html = "";
       
    56 					var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';');
       
    57 
       
    58 					for (var i=0; i<targets.length; i++) {
       
    59 						var key, value;
       
    60 
       
    61 						if (targets[i] == "")
       
    62 							continue;
       
    63 
       
    64 						key = targets[i].split('=')[0];
       
    65 						value = targets[i].split('=')[1];
       
    66 
       
    67 						html += '<option value="' + value + '">' + key + '</option>';
       
    68 					}
       
    69 
       
    70 					document.write(html);
       
    71 				</script>
       
    72             </select></td>
       
    73           </tr>
       
    74           <tr>
       
    75             <td nowrap="nowrap"><label for="linktitle">{$lang_theme_insert_link_titlefield}</label></td>
       
    76             <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px"></td>
       
    77           </tr>
       
    78           <tr id="styleSelectRow">
       
    79             <td><label for="styleSelect">{$lang_class_name}</label></td>
       
    80             <td>
       
    81 			 <select id="styleSelect" name="styleSelect">
       
    82                 <option value="" selected>{$lang_theme_style_select}</option>
       
    83              </select></td>
       
    84           </tr>
       
    85         </table>
       
    86 		</div>
       
    87 	</div>
       
    88 
       
    89 	<div class="mceActionPanel">
       
    90 		<div style="float: left">
       
    91 			<input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();" />
       
    92 		</div>
       
    93 
       
    94 		<div style="float: right">
       
    95 			<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />
       
    96 		</div>
       
    97 	</div>
       
    98 </form>
       
    99 </body>
       
   100 </html>