Changeset 6632 for trunk/wp-includes/js/tinymce/themes/advanced/link.htm
- Timestamp:
- 01/17/2008 03:44:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/themes/advanced/link.htm
r5577 r6632 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1 2 <html xmlns="http://www.w3.org/1999/xhtml"> 2 3 <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="../../utils/validate.js"></script>8 <script language="javascript" type="text/javascript" src="jscripts/link.js"></script>4 <title>{#advanced_dlg.link_title}</title> 5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script> 6 <script type="text/javascript" src="../../utils/mctabs.js"></script> 7 <script type="text/javascript" src="../../utils/form_utils.js"></script> 8 <script type="text/javascript" src="../../utils/validate.js"></script> 9 <script type="text/javascript" src="js/link.js"></script> 9 10 <base target="_self" /> 10 11 </head> 11 <!-- WordPress: onload after the init();'); --> 12 <body id="link" onload="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';document.getElementById('href').focus();" style="display: none"> 13 <form onsubmit="insertLink();return false;" action="#"> 12 <body id="link" style="display: none"> 13 <form onsubmit="LinkDialog.update();return false;" action="#"> 14 14 <div class="tabs"> 15 15 <ul> 16 <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>16 <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.link_title}</a></span></li> 17 17 </ul> 18 18 </div> … … 23 23 <table border="0" cellpadding="4" cellspacing="0"> 24 24 <tr> 25 <td nowrap="nowrap"><label for="href">{ $lang_insert_link_url}</label></td>25 <td nowrap="nowrap"><label for="href">{#advanced_dlg.link_url}</label></td> 26 26 <td><table border="0" cellspacing="0" cellpadding="0"> 27 27 <tr> 28 <td><input id="href" name="href" type="text" value="" style="width: 200px" onchange=" checkPrefix(this);" /></td>28 <td><input id="href" name="href" type="text" value="" style="width: 200px" onchange="LinkDialog.checkPrefix(this);" /></td> 29 29 <td id="hrefbrowsercontainer"> </td> 30 30 </tr> 31 31 </table></td> 32 32 </tr> 33 <!-- Link list --> 34 <script language="javascript"> 35 if (typeof(tinyMCELinkList) != "undefined" && tinyMCELinkList.length > 0) { 36 var html = ""; 37 38 html += '<tr><td><label for="link_list">{$lang_link_list}</label></td>'; 39 html += '<td><select id="link_list" name="link_list" style="width: 200px" onchange="this.form.href.value=this.options[this.selectedIndex].value;">'; 40 html += '<option value="">---</option>'; 41 42 for (var i=0; i<tinyMCELinkList.length; i++) 43 html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>'; 44 45 html += '</select></td></tr>'; 46 47 document.write(html); 48 } 49 </script> 50 <!-- /Link list --> 33 <tr> 34 <td><label for="link_list">{#advanced_dlg.link_list}</label></td> 35 <td><select id="link_list" name="link_list" onchange="document.getElementById('href').value=this.options[this.selectedIndex].value;"></select></td> 36 </tr> 37 <tr> 38 <td><label id="targetlistlabel" for="targetlist">{#advanced_dlg.link_target}</label></td> 39 <td><select id="target_list" name="target_list"></select></td> 40 </tr> 51 41 <tr> 52 <td nowrap="nowrap"><label for="target">{$lang_insert_link_target}</label></td> 53 <td><select id="target" name="target" style="width: 200px"> 54 <option value="_self">{$lang_insert_link_target_same}</option> 55 <option value="_blank">{$lang_insert_link_target_blank}</option> 56 <script language="javascript"> 57 var html = ""; 58 var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';'); 59 60 for (var i=0; i<targets.length; i++) { 61 var key, value; 62 63 if (targets[i] == "") 64 continue; 65 66 key = targets[i].split('=')[0]; 67 value = targets[i].split('=')[1]; 68 69 html += '<option value="' + value + '">' + key + '</option>'; 70 } 71 72 document.write(html); 73 </script> 74 </select></td> 42 <td nowrap="nowrap"><label for="linktitle">{#advanced_dlg.link_titlefield}</label></td> 43 <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px" /></td> 75 44 </tr> 76 <tr> 77 <td nowrap="nowrap"><label for="linktitle">{$lang_theme_insert_link_titlefield}</label></td> 78 <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px"></td> 79 </tr> 80 <tr id="styleSelectRow"> 81 <td><label for="styleSelect">{$lang_class_name}</label></td> 82 <td> 83 <select id="styleSelect" name="styleSelect"> 84 <option value="" selected>{$lang_theme_style_select}</option> 85 </select></td> 86 </tr> 45 <tr> 46 <td><label for="class_list">{#class_name}</label></td> 47 <td><select id="class_list" name="class_list"></select></td> 48 </tr> 87 49 </table> 88 50 </div> … … 90 52 91 53 <div class="mceActionPanel"> 92 <!-- WordPress: Buttons are reversed! -->93 54 <div style="float: left"> 94 <input type="button" id=" cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />55 <input type="button" id="insert" name="insert" value="{#insert}" onclick="LinkDialog.update();" /> 95 56 </div> 96 57 97 58 <div style="float: right"> 98 <input type=" submit" id="insert" name="insert" value="{$lang_insert}" onclick="insertLink();" />59 <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> 99 60 </div> 100 61 </div>
Note: See TracChangeset
for help on using the changeset viewer.