[原创]JQuery的FckEditor插件使用教程

需要引用的js文件:
Content/jquery-1.2.6.js
fckeditor/fckeditor.js
jquery.FCKEditor.js

Javascript代码:

$(document).ready(function(){
//初始化FCKEditor
$.fck.config = {path: '../../FCKeditor/', height: 300 ,toolbar:'Basic'};
$('textarea#infoContent').fck();
});

HTML代码:
[html]
<textarea id="infoContent" name="infoContent" rows="22" ></textarea>
[/html]
读取FCKEditor的值代码:
[js]
$.fck.content(&#39;infoContent&#39;, &#39;&#39;); //注意‘infoContent’即为你绑定的textArea的Id或name,这样才能取得值
[/js]