Sun_china

交流更多,收获更多?

博客园 首页 新随笔 联系 订阅 管理
 1<script language="javascript">
 2  // 创建相当于<textarea name="editor" style="width:100%;"></textarea>的对象
 3  // 参数'editor'是产生的textarea的name值
 4  var oFCKeditor = new FCKeditor('editor') ;
 5  oFCKeditor.BasePath = "/SightSpots/JavaScripts/FCKeditor/" ; // 必须指定
 6  oFCKeditor.Config["BaseHref"]=""// 保证相对路径相对于上下文
 7  oFCKeditor.Config["DefaultLanguage"]="zh-cn"// 默认语言
 8  oFCKeditor.Width = "100%"// 编辑器宽度
 9  oFCKeditor.Height = "300"// 编辑器高度
10  oFCKeditor.Create() ;
11                        </script>
1<script language="javascript" src="/JavaScripts/FCKeditor/fckeditor.js"></script>
2
3src="" 是该js的路径
posted on 2007-04-19 12:51  Sun_china  阅读(834)  评论(0编辑  收藏  举报