1.Toolbar的配置
在fckconfig.js中添加
FCKConfig.ToolbarSets["style"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
]
自定义的工具集。
使用:
<script type="text/javascript">
//第一种方法
var oFCKeditor = new FCKeditor('FCKeditor1');
oFCKeditor.BasePath = "<%=request.getContextPath()%>/fckeditor/";
oFCKeditor.Width = "70%";
oFCKeditor.Height = "150";
oFCKeditor.Value = "default"
oFCKeditor.Config["CustomConfigurationsPath"] = "<%=request.getContextPath()%>/myconfig.js" ;
oFCKeditor.ToolbarSet = "style";
oFCKeditor.Create();
</script
2.添加常用字体
在fckconfig.js中的
FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
修改为
FCKConfig.FontNames = '宋体;楷体_GB2312;黑体;隶书;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
3.修改Enter和shift + Enter的换行行为
在fckconfig.js中的
FCKConfig.EnterMode = 'p' ; // p | div | br
FCKConfig.ShiftEnterMode = 'br' ; // p | div | br
改为:
FCKConfig.EnterMode = 'br' ; // p | div | br
FCKConfig.ShiftEnterMode = 'p' ; // p | div | br
此时效果:Enter换行,Shift + Enter新段落
fckeditor-java-2.5给上传图片添加水印文章分类:Web前端
net.fckeditor.connector.Dispatcher类的
方法UploadResponse doPost(final HttpServletRequest request) {
logger.debug("Entering Dispatcher#doPost");
添加加水印的操作便可
if ("image".equals(type.getName().toLowerCase())) {
String tempName = fileName;
if (newName != null) {
tempName = newName;
}
String targetPath = PropertiesUtils.getCmsProperty("path");
ImageUtils.pressImage(targetPath
+ PropertiesUtils.getCmsProperty("waterMarker"),
targetPath
+ PropertiesUtils
.getCmsProperty("upload_file_path")
+ tempName, Integer
.parseInt(PropertiesUtils
.getCmsProperty("warterMarkerX")),
Integer.parseInt(PropertiesUtils
.getCmsProperty("warterMarkerY")));
}
相关推荐
FCKEditor使用帮助文档。FCKEditor使用帮助文档。FCKEditor使用帮助文档。FCKEditor使用帮助文档。
fckeditor使用手册 fckeditor使用手册
fckeditor和使用方法,可以上传图片,flash
html编辑器FCKeditor使用详解,手把手教你如何使用FCKeditor.
asp.net文本编辑器FCKeditor使用方法详解
网络上有很多FCKeditor的用法,大多数是互相抄袭,或者...但是这个FCKeditor使用方法详解--图文详解讲解的非常清楚,关键还是附带图片,让人一看就一目了然,很容易看懂。另外还收录了fckeditor的瘦身。很全面的哦--
FCKeditor2.6.4使用说明 使用FCKeditor的人可以下来看看噢~
7 使用FCKeditor的API 26 7.1 获得FCKeditor的实例 26 7.1.1 获得当前页FCKeditor实例 26 7.1.2 从FCKeditor的弹出窗口中获得FCKeditor实例 26 7.1.3 从框架页面的子框架中获得其它子框架的FCKeditor实例 26 7.1.4 ...
FCKeditor 2.4.3详细使用方法
cuteEditor Fckeditor破解 使用示例 cuteEditor Fckeditor破解 使用示例
FCKEditor使用范例希望对你有所帮助
FCKeditor使用方法技术详解。 FCKeditor是目前最优秀的可见即可得网页编辑器,本文详细介绍其安装,使用FCKEditor的各项功能,常用设置,配置方法; 另外还提供了FCKEditor API,精简FCKEditor文件控件大小的方法。
FCKeditor中文使用手册,本手册由建站三人行站长(www.zengl.com)提供的翻译。帮助程序员能够快速掌握fckeditor在线编辑器的使用。
FCKeditor使用方法详解.doc
FCKeditor使用详解
FCKeditor是目前最优秀的可见即可得网页编辑器之一用于文本编辑的工具,支持多种方法调用
NULL 博文链接:https://1035054540-qq-com.iteye.com/blog/1547593
FCKEditor使用说明英文 java字体编辑器的英文配置说明