没必要用fck封装的控件,fck封装后的不论是 php,asp.net,java其实都只做了一件事,
Response.Write(" <iframe src..... ");
fck本质上是js,实际上只要页面中包含
<script type="text/javascript" src="/Include/FCKeditor/fckeditor.js"> </script>
<script type="text/javascript">
<!--
var oFCKeditor = new FCKeditor( ' <%=PostEditor.ClientID %>' ) ;
oFCKeditor.BasePath = ' <%=fck目录地址%>/include/fckeditor/';
oFCKeditor.Height = 360 ;
oFCKeditor.Width = '99%' ;
oFCKeditor.Config['CustomConfigurationsPath'] =' <%=FCK配置文件目录地址%>/FCKeditor/bbsfckconfig.js';
oFCKeditor.ReplaceTextarea() ;
//-->
</script>
就行了,你可以看看页面源,以上地址是不是有误,或者被重写向了,
URL重写后大部分问题是层层目录下文件定位问题,最好写个公用静态方法定位根目录,从根目录开始
如果不考虑虚拟目录 那更简单了
FCK的静态调用
最新推荐文章于 2010-12-21 07:48:00 发布