注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

★柳暗花明★

似水年华,诠释着无力的永恒······

 
 
 

日志

 
 

ewebeditor飞鱼修改版在linux下运行错误解决办法  

2011-02-18 14:49:44|  分类: JAVA&&JSP经典 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

修改一:
WEB-INF/style.xml -> WEB-INF/Style.xml (注意upload.jsp也有一处)
WEB-INF/button.xml -> WEB-INF/Button.xml
修改二:
sVersion = bean.getSVersion();
sReleaseDate = bean.getSReleaseDate();
改为
sVersion = "网络下载版";
sReleaseDate = "2008-10-19";
修改三:
sToolBar = bean.getSToolBar();
直接给sToolBar 等于以下HTML:
<table border=0 cellpadding=0 cellspacing=0 width='100%' class='Toolbar' id='eWebEditor_Toolbar'><tr><td><div class='yToolbar'><DIV CLASS="TBHandle"></DIV><SELECT CLASS="TBGen" onchange="format('FormatBlock',this[this.selectedIndex].value);this.selectedIndex=0"><option selected>段落样式</option> <option value="&lt;P&gt;">普通</option> <option value="&lt;H1&gt;">标题一</option> <option value="&lt;H2&gt;">标题二</option> <option value="&lt;H3&gt;">标题三</option> <option value="&lt;H4&gt;">标题四</option> <option value="&lt;H5&gt;">标题五</option> <option value="&lt;H6&gt;">标题六</option> <option value="&lt;p&gt;">段落</option> <option value="&lt;dd&gt;">定义</option> <option value="&lt;dt&gt;">术语定义</option> <option value="&lt;dir&gt;">目录列表</option> <option value="&lt;menu&gt;">菜单列表</option> <option value="&lt;PRE&gt;">已编排格式</option></SELECT><SELECT CLASS="TBGen" onchange="format('fontname',this[this.selectedIndex].value);this.selectedIndex=0"><option selected>字体</option> <option value="宋体">宋体</option> <option value="黑体">黑体</option> <option value="楷体_GB2312">楷体</option> <option value="仿宋_GB2312">仿宋</option> <option value="隶书">隶书</option> <option value="幼圆">幼圆</option> <option value="Arial">Arial</option> <option value="Arial Black">Arial Black</option> <option value="Arial Narrow">Arial Narrow</option> <option value="Brush Script MT">Brush Script MT</option> <option value="Century Gothic">Century Gothic</option> <option value="Comic Sans MS">Comic Sans MS</option> <option value="Courier">Courier</option> <option value="Courier New">Courier New</option> <option value="MS Sans Serif">MS Sans Serif</option> <option value="Script">Script</option> <option value="System">System</option> <option value="Times New Roman">Times New Roman</option> <option value="Verdana">Verdana</option> <option value="Wide Latin">Wide Latin</option> <option value="Wingdings">Wingdings</option></SELECT><SELECT CLASS="TBGen" onchange="format('fontsize',this[this.selectedIndex].value);this.selectedIndex=0"><option selected>字号</option> <option value="7">一号</option> <option value="6">二号</option> <option value="5">三号</option> <option value="4">四号</option> <option value="3">五号</option> <option value="2">六号</option> <option value="1">七号</option></SELECT><SELECT CLASS="TBGen" onchange="doZoom(this[this.selectedIndex].value)"><option value="10">10%</option> <option value="25">25%</option> <option value="50">50%</option> <option value="75">75%</option> <option value="100" selected>100%</option> <option value="150">150%</option> <option value="200">200%</option> <option value="500">500%</option></SELECT><DIV CLASS="Btn" TITLE="粗体" onclick="format('bold')"><IMG CLASS="Ico" SRC="buttonimage/standard/bold.gif"></DIV><DIV CLASS="Btn" TITLE="斜体" onclick="format('italic')"><IMG CLASS="Ico" SRC="buttonimage/standard/italic.gif"></DIV><DIV CLASS="Btn" TITLE="下划线" onclick="format('underline')"><IMG CLASS="Ico" SRC="buttonimage/standard/underline.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="左对齐" onclick="format('justifyleft')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyleft.gif"></DIV><DIV CLASS="Btn" TITLE="居中对齐" onclick="format('justifycenter')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifycenter.gif"></DIV><DIV CLASS="Btn" TITLE="右对齐" onclick="format('justifyright')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyright.gif"></DIV><DIV CLASS="Btn" TITLE="两端对齐" onclick="format('JustifyFull')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyfull.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="删除文字格式" onclick="format('RemoveFormat')"><IMG CLASS="Ico" SRC="buttonimage/standard/removeformat.gif"></DIV><DIV CLASS="Btn" TITLE="中划线" onclick="format('StrikeThrough')"><IMG CLASS="Ico" SRC="buttonimage/standard/strikethrough.gif"></DIV><DIV CLASS="Btn" TITLE="上标" onclick="format('superscript')"><IMG CLASS="Ico" SRC="buttonimage/standard/superscript.gif"></DIV><DIV CLASS="Btn" TITLE="下标" onclick="format('subscript')"><IMG CLASS="Ico" SRC="buttonimage/standard/subscript.gif"></DIV><DIV CLASS="Btn" TITLE="全部选中" onclick="format('SelectAll')"><IMG CLASS="Ico" SRC="buttonimage/standard/selectall.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="取消选择" onclick="format('Unselect')"><IMG CLASS="Ico" SRC="buttonimage/standard/unselect.gif"></DIV></div></td></tr><tr><td><div class='yToolbar'><DIV CLASS="TBHandle"></DIV><DIV CLASS="Btn" TITLE="插入或修改图片" onclick="ShowDialog('dialog/img.htm', 350, 315, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/img.gif"></DIV><DIV CLASS="Btn" TITLE="插入Flash动画" onclick="ShowDialog('dialog/flash.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/flash.gif"></DIV><DIV CLASS="Btn" TITLE="插入自动播放的媒体文件" onclick="ShowDialog('dialog/media.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/media.gif"></DIV><DIV CLASS="Btn" TITLE="插入其他文件" onclick="ShowDialog('dialog/file.htm', 350, 150, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/file.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="表格菜单" onclick="showToolMenu('table')"><IMG CLASS="Ico" SRC="buttonimage/standard/tablemenu.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入或修改栏目框" onclick="ShowDialog('dialog/fieldset.htm', 350, 170, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/fieldset.gif"></DIV><DIV CLASS="Btn" TITLE="插入或修改网页帧" onclick="ShowDialog('dialog/iframe.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/iframe.gif"></DIV><DIV CLASS="Btn" TITLE="插入水平尺" onclick="format('InsertHorizontalRule')"><IMG CLASS="Ico" SRC="buttonimage/standard/inserthorizontalrule.gif"></DIV><DIV CLASS="Btn" TITLE="插入或修改字幕" onclick="ShowDialog('dialog/marquee.htm', 395, 150, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/marquee.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="撤消" onclick="format('undo')"><IMG CLASS="Ico" SRC="buttonimage/standard/undo.gif"></DIV><DIV CLASS="Btn" TITLE="恢复" onclick="format('redo')"><IMG CLASS="Ico" SRC="buttonimage/standard/redo.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入或修改超级链接" onclick="format('CreateLink')"><IMG CLASS="Ico" SRC="buttonimage/standard/createlink.gif"></DIV><DIV CLASS="Btn" TITLE="取消超级链接或标签" onclick="format('UnLink')"><IMG CLASS="Ico" SRC="buttonimage/standard/unlink.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入特殊字符" onclick="ShowDialog('dialog/symbol.htm', 350, 220, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/symbol.gif"></DIV><DIV CLASS="Btn" TITLE="插入表情图标" onclick="ShowDialog('dialog/emot.htm', 300, 180, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/emot.gif"></DIV><DIV CLASS="Btn" TITLE="插入当前日期" onclick="insert('nowdate')"><IMG CLASS="Ico" SRC="buttonimage/standard/date.gif"></DIV><DIV CLASS="Btn" TITLE="插入当前时间" onclick="insert('nowtime')"><IMG CLASS="Ico" SRC="buttonimage/standard/time.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="引用样式" onclick="insert('quote')"><IMG CLASS="Ico" SRC="buttonimage/standard/quote.gif"></DIV><DIV CLASS="Btn" TITLE="代码样式" onclick="insert('code')"><IMG CLASS="Ico" SRC="buttonimage/standard/code.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="全屏返回" onclick="parent.Minimize()"><IMG CLASS="Ico" SRC="buttonimage/standard/minimize.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="编号" onclick="format('insertorderedlist')"><IMG CLASS="Ico" SRC="buttonimage/standard/insertorderedlist.gif"></DIV><DIV CLASS="Btn" TITLE="项目符号" onclick="format('insertunorderedlist')"><IMG CLASS="Ico" SRC="buttonimage/standard/insertunorderedlist.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="字体颜色" onclick="ShowDialog('dialog/selcolor.htm?action=forecolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/forecolor.gif"></DIV><DIV CLASS="Btn" TITLE="对象背景颜色" onclick="ShowDialog('dialog/selcolor.htm?action=bgcolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/bgcolor.gif"></DIV><DIV CLASS="Btn" TITLE="字体背景颜色" onclick="ShowDialog('dialog/selcolor.htm?action=backcolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/backcolor.gif"></DIV><DIV CLASS="Btn" TITLE="背景图片" onclick="ShowDialog('dialog/backimage.htm', 350, 210, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/bgpic.gif"></DIV></div></td></tr></table>

  评论这张
 
阅读(533)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017