mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
53 lines
1.7 KiB
HTML
53 lines
1.7 KiB
HTML
<html>
|
|
<head>
|
|
<title>{$lang_insert_anchor_title}</title>
|
|
<script language="javascript" src="../../tiny_mce_popup.js"></script>
|
|
<script language="javascript">
|
|
// Disable auto resize
|
|
tinyMCE.getWindowArg('mce_windowresize', false);
|
|
|
|
function init() {
|
|
document.forms[0].anchorName.value = tinyMCE.getWindowArg('name');
|
|
document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true);
|
|
|
|
// Autoresize and focus
|
|
TinyMCEPopup_autoResize();
|
|
window.focus();
|
|
}
|
|
|
|
function insertAnchor() {
|
|
if (window.opener) {
|
|
tinyMCE.execInstanceCommand(tinyMCE.getWindowArg('editor_id'), 'mceAnchor', false, document.forms[0].anchorName.value);
|
|
top.close();
|
|
}
|
|
}
|
|
|
|
function cancelAction() {
|
|
top.close();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="init();">
|
|
<form onsubmit="insertAnchor();return false;">
|
|
<table border="0" cellpadding="0" cellspacing="0" width="200">
|
|
<tr>
|
|
<td align="center" valign="middle"><table border="0" cellpadding="4" cellspacing="0">
|
|
<tr>
|
|
<td colspan="2" class="title">{$lang_insert_anchor_title}</td>
|
|
</tr>
|
|
<tr>
|
|
<td nowrap="nowrap">{$lang_insert_anchor_name}:</td>
|
|
<td><input name="anchorName" type="text" id="anchorName" value="" style="width: 200px"></td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertAnchor();">
|
|
</td>
|
|
<td align="right"><input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="cancelAction();"></td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html>
|