如何使ckeditor的编辑区不可编辑? 编辑区其实就是个textfield。设置为只读不就成了? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试过了,这样不好用哦,只是textarea只读了,但加载在上面的控件还是可以写内容的 那就设置成disabled啊。设置编辑区无效。如果想要用户输入的时候就去掉这个属性。 http://blog.csdn.net/hailang43/archive/2009/06/20/4285847.aspx 各位所说的都是FCKeditor的,而我所说的是ckeditor,是FCKeditor的下一代了,仍然谢谢大家,但问题还是未解愁! 这问题还没解决?!我知道ck是fck的下一代。我给你提供链接有解决办法,你没看吗? //设置fckeditor为只读 function FCKeditor_OnComplete(editorInstance) { editorInstance.EditorDocument.body.disabled = true; editorInstance.EditorWindow.parent.document.getElementById('xExpanded').style.display = 'none'; editorInstance.EditorWindow.parent.document.getElementById('xCollapsed').style.display = 'none'; editorInstance.EditorWindow.blur(); }<body onload="FCKeditor_OnComplete(content);"><td colspan="4"> <FCK:editor instanceName="content" height="340px" value="${content}" ></FCK:editor></td> 楼上这们兄弟,你是咋引用和定义的?我怎么提示'content'未定义呢?而且也没有<FCK:editor ></FCK:editor>这个标签呢? 那个只是示例,你要用肯定的稍微改动下,你看你自己的value对应的是什么,并不一定是content,至于为什么没有fck标签是因为你没引入,在页头部分加上这句话:<%@ taglib prefix="FCK" uri="http://java.fckeditor.net"%> 学东西要灵活~ 仍然非常感谢楼上的哥们,我改用kindeditor了,kindeditor带只读属性!结了 添加在线用户列表有问题啊 我的表主索引字段为char型,请问在hibernate中如何插入数据 一个关于时间的问题 一个hibernate异常问题,请教大侠. 问大家关于hibernate的问题,分不多了,但是希望高手们帮我解答 练习过滤器和监听器时,tomcat报错? 如何遍历HashTable 如何在JSP中实现IE的检查所存网页的较新版本? 很简单的问题,在线等,大家都来看看! 【SSH框架问题】楼主不能淡定!求教了 题目一定要长 jsp+javabean+XML QQ商城购物车是怎么做的
function FCKeditor_OnComplete(editorInstance)
{
editorInstance.EditorDocument.body.disabled = true;
editorInstance.EditorWindow.parent.document.getElementById('xExpanded').style.display = 'none';
editorInstance.EditorWindow.parent.document.getElementById('xCollapsed').style.display = 'none';
editorInstance.EditorWindow.blur();
}<body onload="FCKeditor_OnComplete(content);"><td colspan="4">
<FCK:editor instanceName="content" height="340px" value="${content}" ></FCK:editor>
</td>
而且也没有<FCK:editor ></FCK:editor>这个标签呢?