论坛首页 入门技术论坛

FCKeditor学习

浏览 1735 次
锁定老帖子 主题:FCKeditor学习
该帖已经被评为新手帖
作者 正文
   发表时间:2007-03-23  

<pre>

<script type="text/javascript" src="$jsServer/FCKeditor/fckeditor.js"></script>

<script type="text/javascript">

window.onload = function(){
 var sBasePath = '$jsServer/FCKeditor/';
 
 var oFCKeditor1 = new FCKeditor('content1','550','400','Taobao','$!{sendHistory.content}$!{template.content}');
 oFCKeditor1.BasePath = sBasePath;
 oFCKeditor1.ReplaceTextarea();

var oEditor = FCKeditorAPI.GetInstance('content') ;
oEditor.SetHTML(value) ;
}

 

</pre>

fckconfig.js中可以定制你的工具栏

FCKConfig.ToolbarSets["Default"]   默认为Default

论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics