FCK如何实现只读功能啊?

我在jsp文件中引入了fck控件,但是现在我想让这个textarea呈现灰色不可编辑状态,我在textarea里面加入了disabled属性没有反应,照样可以编辑,是什么错误呢?麻烦帮忙解决一下,谢谢,呵呵~~
下面是我的代码:

window.onload=function(){ var oFCKeditor=new FCKeditor("Fckeditor1"); oFCKeditor.BasePath="fckeditor/"; oFCKeditor.Width="75%"; oFCKeditor.Height="400"; oFCKeditor.ReplaceTextarea(); document.getElementById('newsContent').disabled=true; }

编辑 \fckeditor\ 目录下的 fckconfig.js ,加一个toolbar:

FCKConfig.ToolbarSets["Readonly"] = [
['Preview','Print']
] ;

在使用fckeditor的页面中,加入如下js代码

<br> window.onload = function()<br> {<br> var oFCKeditor = new FCKeditor(&#39;{=i_name}&#39;) ;<br> oFCKeditor.BasePath = &#39;{=dirFCK}FCKeditor/&#39;;<br> oFCKeditor.ToolbarSet = &#39;Readonly&#39;;<br> oFCKeditor.Height = 500;<br> oFCKeditor.ReplaceTextarea();<br> };</p> <pre><code> function FCKeditor_OnComplete( editor ) { editor.EditorDocument.body.contentEditable = false; editor.EditMode=FCK_EDITMODE_SOURCE; editor.ToolbarSet.RefreshModeState(); editor.EditMode=FCK_EDITMODE_WYSIWYG; editor.ToolbarSet.RefreshModeState(); } </code></pre> <p>

不能自己这么搞的
最好去查看一下fck的api,也许有直接调用就可以禁用编辑的方法啊

朋友,问题要自动关闭啦,结分哦