修改一:
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" οnchange="format('FormatBlock',this[this.selectedIndex].value);this.selectedIndex=0"><option selected>段落样式</option> <option value="<P>">普通</option> <option value="<H1>">标题一</option> <option value="<H2>">标题二</option> <option value="<H3>">标题三</option> <option value="<H4>">标题四</option> <option value="<H5>">标题五</option> <option value="<H6>">标题六</option> <option value="<p>">段落</option> <option value="<dd>">定义</option> <option value="<dt>">术语定义</option> <option value="<dir>">目录列表</option> <option value="<menu>">菜单列表</option> <option value="<PRE>">已编排格式</option></SELECT><SELECT CLASS="TBGen" οnchange="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" οnchange="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" οnchange="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="粗体" οnclick="format('bold')"><IMG CLASS="Ico" SRC="buttonimage/standard/bold.gif"></DIV><DIV CLASS="Btn" TITLE="斜体" οnclick="format('italic')"><IMG CLASS="Ico" SRC="buttonimage/standard/italic.gif"></DIV><DIV CLASS="Btn" TITLE="下划线" οnclick="format('underline')"><IMG CLASS="Ico" SRC="buttonimage/standard/underline.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="左对齐" οnclick="format('justifyleft')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyleft.gif"></DIV><DIV CLASS="Btn" TITLE="居中对齐" οnclick="format('justifycenter')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifycenter.gif"></DIV><DIV CLASS="Btn" TITLE="右对齐" οnclick="format('justifyright')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyright.gif"></DIV><DIV CLASS="Btn" TITLE="两端对齐" οnclick="format('JustifyFull')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyfull.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="删除文字格式" οnclick="format('RemoveFormat')"><IMG CLASS="Ico" SRC="buttonimage/standard/removeformat.gif"></DIV><DIV CLASS="Btn" TITLE="中划线" οnclick="format('StrikeThrough')"><IMG CLASS="Ico" SRC="buttonimage/standard/strikethrough.gif"></DIV><DIV CLASS="Btn" TITLE="上标" οnclick="format('superscript')"><IMG CLASS="Ico" SRC="buttonimage/standard/superscript.gif"></DIV><DIV CLASS="Btn" TITLE="下标" οnclick="format('subscript')"><IMG CLASS="Ico" SRC="buttonimage/standard/subscript.gif"></DIV><DIV CLASS="Btn" TITLE="全部选中" οnclick="format('SelectAll')"><IMG CLASS="Ico" SRC="buttonimage/standard/selectall.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="取消选择" οnclick="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="插入或修改图片" οnclick="ShowDialog('dialog/img.htm', 350, 315, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/img.gif"></DIV><DIV CLASS="Btn" TITLE="插入Flash动画" οnclick="ShowDialog('dialog/flash.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/flash.gif"></DIV><DIV CLASS="Btn" TITLE="插入自动播放的媒体文件" οnclick="ShowDialog('dialog/media.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/media.gif"></DIV><DIV CLASS="Btn" TITLE="插入其他文件" οnclick="ShowDialog('dialog/file.htm', 350, 150, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/file.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="表格菜单" οnclick="showToolMenu('table')"><IMG CLASS="Ico" SRC="buttonimage/standard/tablemenu.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入或修改栏目框" οnclick="ShowDialog('dialog/fieldset.htm', 350, 170, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/fieldset.gif"></DIV><DIV CLASS="Btn" TITLE="插入或修改网页帧" οnclick="ShowDialog('dialog/iframe.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/iframe.gif"></DIV><DIV CLASS="Btn" TITLE="插入水平尺" οnclick="format('InsertHorizontalRule')"><IMG CLASS="Ico" SRC="buttonimage/standard/inserthorizontalrule.gif"></DIV><DIV CLASS="Btn" TITLE="插入或修改字幕" οnclick="ShowDialog('dialog/marquee.htm', 395, 150, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/marquee.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="撤消" οnclick="format('undo')"><IMG CLASS="Ico" SRC="buttonimage/standard/undo.gif"></DIV><DIV CLASS="Btn" TITLE="恢复" οnclick="format('redo')"><IMG CLASS="Ico" SRC="buttonimage/standard/redo.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入或修改超级链接" οnclick="format('CreateLink')"><IMG CLASS="Ico" SRC="buttonimage/standard/createlink.gif"></DIV><DIV CLASS="Btn" TITLE="取消超级链接或标签" οnclick="format('UnLink')"><IMG CLASS="Ico" SRC="buttonimage/standard/unlink.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入特殊字符" οnclick="ShowDialog('dialog/symbol.htm', 350, 220, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/symbol.gif"></DIV><DIV CLASS="Btn" TITLE="插入表情图标" οnclick="ShowDialog('dialog/emot.htm', 300, 180, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/emot.gif"></DIV><DIV CLASS="Btn" TITLE="插入当前日期" οnclick="insert('nowdate')"><IMG CLASS="Ico" SRC="buttonimage/standard/date.gif"></DIV><DIV CLASS="Btn" TITLE="插入当前时间" οnclick="insert('nowtime')"><IMG CLASS="Ico" SRC="buttonimage/standard/time.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="引用样式" οnclick="insert('quote')"><IMG CLASS="Ico" SRC="buttonimage/standard/quote.gif"></DIV><DIV CLASS="Btn" TITLE="代码样式" οnclick="insert('code')"><IMG CLASS="Ico" SRC="buttonimage/standard/code.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="全屏返回" οnclick="parent.Minimize()"><IMG CLASS="Ico" SRC="buttonimage/standard/minimize.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="编号" οnclick="format('insertorderedlist')"><IMG CLASS="Ico" SRC="buttonimage/standard/insertorderedlist.gif"></DIV><DIV CLASS="Btn" TITLE="项目符号" οnclick="format('insertunorderedlist')"><IMG CLASS="Ico" SRC="buttonimage/standard/insertunorderedlist.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="字体颜色" οnclick="ShowDialog('dialog/selcolor.htm?action=forecolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/forecolor.gif"></DIV><DIV CLASS="Btn" TITLE="对象背景颜色" οnclick="ShowDialog('dialog/selcolor.htm?action=bgcolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/bgcolor.gif"></DIV><DIV CLASS="Btn" TITLE="字体背景颜色" οnclick="ShowDialog('dialog/selcolor.htm?action=backcolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/backcolor.gif"></DIV><DIV CLASS="Btn" TITLE="背景图片" οnclick="ShowDialog('dialog/backimage.htm', 350, 210, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/bgpic.gif"></DIV></div></td></tr></table>
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" οnchange="format('FormatBlock',this[this.selectedIndex].value);this.selectedIndex=0"><option selected>段落样式</option> <option value="<P>">普通</option> <option value="<H1>">标题一</option> <option value="<H2>">标题二</option> <option value="<H3>">标题三</option> <option value="<H4>">标题四</option> <option value="<H5>">标题五</option> <option value="<H6>">标题六</option> <option value="<p>">段落</option> <option value="<dd>">定义</option> <option value="<dt>">术语定义</option> <option value="<dir>">目录列表</option> <option value="<menu>">菜单列表</option> <option value="<PRE>">已编排格式</option></SELECT><SELECT CLASS="TBGen" οnchange="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" οnchange="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" οnchange="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="粗体" οnclick="format('bold')"><IMG CLASS="Ico" SRC="buttonimage/standard/bold.gif"></DIV><DIV CLASS="Btn" TITLE="斜体" οnclick="format('italic')"><IMG CLASS="Ico" SRC="buttonimage/standard/italic.gif"></DIV><DIV CLASS="Btn" TITLE="下划线" οnclick="format('underline')"><IMG CLASS="Ico" SRC="buttonimage/standard/underline.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="左对齐" οnclick="format('justifyleft')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyleft.gif"></DIV><DIV CLASS="Btn" TITLE="居中对齐" οnclick="format('justifycenter')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifycenter.gif"></DIV><DIV CLASS="Btn" TITLE="右对齐" οnclick="format('justifyright')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyright.gif"></DIV><DIV CLASS="Btn" TITLE="两端对齐" οnclick="format('JustifyFull')"><IMG CLASS="Ico" SRC="buttonimage/standard/justifyfull.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="删除文字格式" οnclick="format('RemoveFormat')"><IMG CLASS="Ico" SRC="buttonimage/standard/removeformat.gif"></DIV><DIV CLASS="Btn" TITLE="中划线" οnclick="format('StrikeThrough')"><IMG CLASS="Ico" SRC="buttonimage/standard/strikethrough.gif"></DIV><DIV CLASS="Btn" TITLE="上标" οnclick="format('superscript')"><IMG CLASS="Ico" SRC="buttonimage/standard/superscript.gif"></DIV><DIV CLASS="Btn" TITLE="下标" οnclick="format('subscript')"><IMG CLASS="Ico" SRC="buttonimage/standard/subscript.gif"></DIV><DIV CLASS="Btn" TITLE="全部选中" οnclick="format('SelectAll')"><IMG CLASS="Ico" SRC="buttonimage/standard/selectall.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="取消选择" οnclick="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="插入或修改图片" οnclick="ShowDialog('dialog/img.htm', 350, 315, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/img.gif"></DIV><DIV CLASS="Btn" TITLE="插入Flash动画" οnclick="ShowDialog('dialog/flash.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/flash.gif"></DIV><DIV CLASS="Btn" TITLE="插入自动播放的媒体文件" οnclick="ShowDialog('dialog/media.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/media.gif"></DIV><DIV CLASS="Btn" TITLE="插入其他文件" οnclick="ShowDialog('dialog/file.htm', 350, 150, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/file.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="表格菜单" οnclick="showToolMenu('table')"><IMG CLASS="Ico" SRC="buttonimage/standard/tablemenu.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入或修改栏目框" οnclick="ShowDialog('dialog/fieldset.htm', 350, 170, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/fieldset.gif"></DIV><DIV CLASS="Btn" TITLE="插入或修改网页帧" οnclick="ShowDialog('dialog/iframe.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/iframe.gif"></DIV><DIV CLASS="Btn" TITLE="插入水平尺" οnclick="format('InsertHorizontalRule')"><IMG CLASS="Ico" SRC="buttonimage/standard/inserthorizontalrule.gif"></DIV><DIV CLASS="Btn" TITLE="插入或修改字幕" οnclick="ShowDialog('dialog/marquee.htm', 395, 150, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/marquee.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="撤消" οnclick="format('undo')"><IMG CLASS="Ico" SRC="buttonimage/standard/undo.gif"></DIV><DIV CLASS="Btn" TITLE="恢复" οnclick="format('redo')"><IMG CLASS="Ico" SRC="buttonimage/standard/redo.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入或修改超级链接" οnclick="format('CreateLink')"><IMG CLASS="Ico" SRC="buttonimage/standard/createlink.gif"></DIV><DIV CLASS="Btn" TITLE="取消超级链接或标签" οnclick="format('UnLink')"><IMG CLASS="Ico" SRC="buttonimage/standard/unlink.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入特殊字符" οnclick="ShowDialog('dialog/symbol.htm', 350, 220, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/symbol.gif"></DIV><DIV CLASS="Btn" TITLE="插入表情图标" οnclick="ShowDialog('dialog/emot.htm', 300, 180, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/emot.gif"></DIV><DIV CLASS="Btn" TITLE="插入当前日期" οnclick="insert('nowdate')"><IMG CLASS="Ico" SRC="buttonimage/standard/date.gif"></DIV><DIV CLASS="Btn" TITLE="插入当前时间" οnclick="insert('nowtime')"><IMG CLASS="Ico" SRC="buttonimage/standard/time.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="引用样式" οnclick="insert('quote')"><IMG CLASS="Ico" SRC="buttonimage/standard/quote.gif"></DIV><DIV CLASS="Btn" TITLE="代码样式" οnclick="insert('code')"><IMG CLASS="Ico" SRC="buttonimage/standard/code.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="全屏返回" οnclick="parent.Minimize()"><IMG CLASS="Ico" SRC="buttonimage/standard/minimize.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="编号" οnclick="format('insertorderedlist')"><IMG CLASS="Ico" SRC="buttonimage/standard/insertorderedlist.gif"></DIV><DIV CLASS="Btn" TITLE="项目符号" οnclick="format('insertunorderedlist')"><IMG CLASS="Ico" SRC="buttonimage/standard/insertunorderedlist.gif"></DIV><DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="字体颜色" οnclick="ShowDialog('dialog/selcolor.htm?action=forecolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/forecolor.gif"></DIV><DIV CLASS="Btn" TITLE="对象背景颜色" οnclick="ShowDialog('dialog/selcolor.htm?action=bgcolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/bgcolor.gif"></DIV><DIV CLASS="Btn" TITLE="字体背景颜色" οnclick="ShowDialog('dialog/selcolor.htm?action=backcolor', 280, 250, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/backcolor.gif"></DIV><DIV CLASS="Btn" TITLE="背景图片" οnclick="ShowDialog('dialog/backimage.htm', 350, 210, true)"><IMG CLASS="Ico" SRC="buttonimage/standard/bgpic.gif"></DIV></div></td></tr></table>