Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / lib / editor / tinymce / jscripts / tiny_mce / themes / advanced / link.htm
blob0cc29206a87b99c7ae21a0690da3baeb10ab9c1f
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>
18 <div class="panel_wrapper">
19 <div id="general_panel" class="panel current">
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 = "";
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>';
40 for (var i=0; i<tinyMCELinkList.length; i++)
41 html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
43 html += '</select></td></tr>';
45 document.write(html);
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(';');
58 for (var i=0; i<targets.length; i++) {
59 var key, value;
61 if (targets[i] == "")
62 continue;
64 key = targets[i].split('=')[0];
65 value = targets[i].split('=')[1];
67 html += '<option value="' + value + '">' + key + '</option>';
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>
89 <div class="mceActionPanel">
90 <div style="float: left">
91 <input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();" />
92 </div>
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>