我在用到fck时,要去掉一些功能,但是不管我怎么改都没变,不知道为什么?
我是这样写的:
<textarea rows="10" cols="80" name="docinfo.contents"></textarea>
<script type="text/javascript">
window.onload = function(){
var oFCKeditor = new FCKeditor('docinfo.contents');//传入参数为表单元素(由FCKeditor生成的input或textarea)的name
oFCKeditor.BasePath="<%=path%>/fckeditor/";//指定FCKeditor根路径,也就是fckeditor.js所在的路径
oFCKeditor.Height="100%";
oFCKeditor.ToolbarSets="Basic";//指定工具栏,注意是ToolbarSets
oFCKeditor.ReplaceTextarea();
}
</script>
并且在我自己新建的js文件用FCKConfig.CustomConfigurationsPath = '/DwrPaperManagement/js/myfckeditor.js' ;
也调用得到,但是不管我指定oFCKeditor.ToolbarSets是什么,它总是显示的是一样的界面可能我给的分数有点少,我是个新手。刚来没什么分。
我是这样写的:
<textarea rows="10" cols="80" name="docinfo.contents"></textarea>
<script type="text/javascript">
window.onload = function(){
var oFCKeditor = new FCKeditor('docinfo.contents');//传入参数为表单元素(由FCKeditor生成的input或textarea)的name
oFCKeditor.BasePath="<%=path%>/fckeditor/";//指定FCKeditor根路径,也就是fckeditor.js所在的路径
oFCKeditor.Height="100%";
oFCKeditor.ToolbarSets="Basic";//指定工具栏,注意是ToolbarSets
oFCKeditor.ReplaceTextarea();
}
</script>
并且在我自己新建的js文件用FCKConfig.CustomConfigurationsPath = '/DwrPaperManagement/js/myfckeditor.js' ;
也调用得到,但是不管我指定oFCKeditor.ToolbarSets是什么,它总是显示的是一样的界面可能我给的分数有点少,我是个新手。刚来没什么分。
解决方案 »
- xwiki superadmin问题
- 公用密钥与 keystore 不符
- xtree 如何根据id获取节点
- 100 分 大家帮我看看着个 spring AOP 应用出现问题!
- JSP函数声明中不能写输出语句吗?
- ····· 因项目需要,需购买JAVA报表(B/S)组件,请大家推荐几个!
- 如何封装一个流程
- Tomcat中webapps下新建目录存放jsp文件,浏览器找不到?在线等!谢谢
- 熟悉resin的网友进来看一下!
- Weblogic JSP Programming文档中的一句话,不知道如何翻译,高手帮忙
- <form:form modelAttribute="inMain"/>中对象修改,表单中没有的属性为空。怎么解决。
- 关于移动互联网
形式如下,例如:frontColor,backColor,font|image,flash
找到这个文件修改菜单配置
具体手头上无代码无法具体指出
我改成Default。
两个都是显示同样的界面,然后我自己定义界面,把不要的删了,引入后还是没变,我真不知道错在哪里了~
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
] ;然后在fckcofig.js中引入:FCKConfig.CustomConfigurationsPath = '/DwrPaperManagement/js/myfckeditor.js' ;页面上就这样写:oFCKeditor.ToolbarSets="Myfck";
可是它不会变化啊