4:html 在InsertLink目录下添加请求的文件。 请求文件的模板代码: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> html> head> title>Link Properties/title> meta http-equiv="Content-Type" content="text/html; charset=utf-8"> meta content="noindex, nofollow" name="robots"> script language="javascript">
var oEditor = window.parent.InnerDialogLoaded() ; var FCK = oEditor.FCK ; var FCKLang = oEditor.FCKLang ; var FCKInsertLink = oEditor.FCKInsertLink ;
window.onload = function () { LoadSelected() ; //see function below window.parent.SetOkButton( true ) ; }
//适合于第一种选择操作的代码: // if ( eSelected.tagName == 'IMG' ) { // -- code for setting dialog values -- } // else // eSelected == null ; //this will replace the current selection if not the right type
}
//点击ok按钮发生的操作 function Ok() { if ( document.getElementById('txtHref').value.length > 0 ) FCKInsertLink.Add( txtHref.value, txtCaption.value ) ;
return true ; } /script> /head>
body scroll="no" style="OVERFLOW: hidden"> table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> tr> td> table cellSpacing="0" cellPadding="0" align="center" border="0"> tr> td> Type the URL for the linkbr> input id="txtHref" type="text">br> Type the caption for the linkbr> input id="txtCaption" type="text"> /td> /tr> /table> /td> /tr> /table> /body> /html>