fck使用方法

fck的使用方法
   fck的使用有很多的方法,此处介绍用JavaScript来实现。
   1.下载附件 fckdeitor.rar  将文件解压放进 你新建的web项目的webroot的目录下。
    2.在你想要添加fck的页面上添加引用  ;<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
    3.在你想要添加fck的页面上添加一个  textarea   ;   <textarea rows="5" cols="135" name="myText" id="myText"></textarea>
   4.添加JavaScript代码  <script type="text/javascript">
  window.onload=function (){
    var oFCKeditor = new FCKeditor("myText");
    oFCKeditor.BasePath="fckeditor/";
    oFCKeditor.ReplaceTextarea();
  }
</script>
   5. 将项目发布运行。

你可能感兴趣的:(JavaScript,Web,fckeditor)