fckeditor定制及上传中文文件问题

一,//修改工具栏菜单
FCKConfig.ToolbarSets["cuttb"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],

['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.
] ;
//修改字体

FCKConfig.FontNames = '宋体;黑体;幼圆;楷体_GB2312;仿宋_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
//修改回车换行
FCKConfig.EnterMode = 'br' ; // p | div | br
FCKConfig.ShiftEnterMode = 'p' ; // p | div | br

二,上传中文文件问题见附件
doPost方法下面加:request.setCharacterEncoding("UTF-8");

//使用UUID来替换文件名 
                                        filename = UUID.randomUUID().toString() + "." + extension; 

你可能感兴趣的:(fckeditor,Flash)