1.设置页面  

<div>
  <textarea name="itemDesc" id="itemDesc" ></textarea>

</div>

2.引用FCKeditor的js 文件

  value='/plugins/fckeditor/fckeditor.js'/> 

3.编写jQuery

  var fck = new FCKeditor("itemDesc");
  fck.BasePath = path+"/ecps/console/res/plugins/fckeditor/";
  fck.Config["ImageUploadURL"] = path+"/upload/uploadForFck.do";
  fck.Height = 400;
  fck.ReplaceTextarea();

 

posted on 2018-06-20 00:05  倔强的乐  阅读(136)  评论(0编辑  收藏  举报