📄 ewebeditor_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import net.fiyu.edit.EditWebhelper;
import net.fiyu.edit.EditBean;
public final class eWebEditor_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
/** 名称:eWebEditor在线文本编辑器--飞鱼修改版
* 作者:飞鱼
* 日期:2004.11.30
* 网址:http://www.fiyu.net
*/
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
String sContentID,
sStyleID,
sFullScreen,
sStyleName,
sStyleDir,
sStyleCSS,
sStyleUploadDir,
nStateFlag,
sDetectFromWord,
sInitMode,
sBaseUrl,
sVersion,
sReleaseDate,
sAutoRemote,
sToolBar;
EditWebhelper web = new EditWebhelper();
//初始化处理bean
web.filename = config.getServletContext().getRealPath("/")+"WEB-INF/style.xml";
web.filename2 = config.getServletContext().getRealPath("/")+"WEB-INF/button.xml";
web.getInstance();
//初始化输出bean
EditBean bean = web.InitPara();
sVersion = bean.getSVersion();
sReleaseDate = bean.getSReleaseDate();
sStyleName = bean.getSStyleName();
sStyleDir = bean.getSStyleDir();
sStyleUploadDir = bean.getSStyleUploadDir();
sInitMode = bean.getSInitMode();
sDetectFromWord = bean.getSDetectFromWord();
sBaseUrl = bean.getSBaseUrl();
sAutoRemote = bean.getSAutoRemote();
sToolBar = bean.getSToolBar();
nStateFlag = bean.getNStateFlag();
//设置颜色样式
sStyleCSS = request.getParameter("color");
if (sStyleCSS == null)
sStyleCSS = "blue";
else
sStyleCSS = request.getParameter("color").trim();
//设置全屏幕选项
sFullScreen = request.getParameter("fullscreen");
if (sFullScreen == null)
sFullScreen = "0";
else
sFullScreen = request.getParameter("fullscreen").trim();
//设置内容选项
sContentID = request.getParameter("id");
if (sContentID == null)
sContentID = "newstext";
else
sContentID = request.getParameter("id").trim();
//设置样式
sStyleName = request.getParameter("style");
if (sStyleName == null)
sStyleName = "standard";
else
sStyleName = request.getParameter("style").trim();
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>eWebEditor - eWebSoft在线文本编辑器</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\r\n");
out.write("<link href=\"css/");
out.print(sStyleCSS);
out.write("/Editor.css\" type=\"text/css\" rel=\"stylesheet\">\r\n");
out.write("\r\n");
out.write("<Script Language=Javascript>\r\n");
out.write("var sPath = document.location.pathname;\r\n");
out.write("sPath = sPath.substr(0, sPath.length-14);\r\n");
out.write("\r\n");
out.write("var sLinkFieldName = \"");
out.print(sContentID);
out.write("\" ;\r\n");
out.write("\r\n");
out.write("// 全局设置对象\r\n");
out.write("var config = new Object() ;\r\n");
out.write("config.Version = \"");
out.print(sVersion);
out.write("\" ;\r\n");
out.write("config.ReleaseDate = \"");
out.print(sReleaseDate);
out.write("\" ;\r\n");
out.write("config.StyleName = \"");
out.print(sStyleName);
out.write("\";\r\n");
out.write("config.StyleEditorHeader = \"<head><link href=\\\"\"+sPath+\"css/");
out.print(sStyleCSS);
out.write("/EditorArea.css\\\" type=\\\"text/css\\\" rel=\\\"stylesheet\\\"></head><body MONOSPACE>\" ;\r\n");
out.write("config.StyleMenuHeader = \"<head><link href=\\\"\"+sPath+\"css/");
out.print(sStyleCSS);
out.write("/MenuArea.css\\\" type=\\\"text/css\\\" rel=\\\"stylesheet\\\"></head><body scroll=\\\"no\\\" onConTextMenu=\\\"event.returnValue=false;\\\">\";\r\n");
out.write("config.StyleDir = \"");
out.print(sStyleDir);
out.write("\";\r\n");
out.write("config.StyleUploadDir = \"");
out.print(sStyleUploadDir);
out.write("\";\r\n");
out.write("config.InitMode = \"");
out.print(sInitMode);
out.write("\";\r\n");
out.write("config.AutoDetectPasteFromWord = ");
out.print(sDetectFromWord);
out.write(";\r\n");
out.write("config.BaseUrl = ");
out.print(sBaseUrl);
out.write(";\r\n");
out.write("config.AutoRemote = ");
out.print(sAutoRemote);
out.write(";\r\n");
out.write("</Script>\r\n");
out.write("<Script Language=Javascript src=\"include/editor.js\"></Script>\r\n");
out.write("<Script Language=Javascript src=\"include/table.js\"></Script>\r\n");
out.write("<Script Language=Javascript src=\"include/menu.js\"></Script>\r\n");
out.write("\r\n");
out.write("<script language=\"javascript\" event=\"onerror(msg, url, line)\" for=\"window\">\r\n");
out.write("//return true ;\t // 隐藏错误\r\n");
out.write("</script>\r\n");
out.write("\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body SCROLLING=no onConTextMenu=\"event.returnValue=false;\" onfocus=\"VerifyFocus()\">\r\n");
out.write("\r\n");
out.write("<table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>\r\n");
out.write("<tr><td>\r\n");
out.write("\r\n");
out.write("\t");
out.print(sToolBar);
out.write("\r\n");
out.write("\r\n");
out.write("</td></tr>\r\n");
out.write("<tr><td height='100%'>\r\n");
out.write("\r\n");
out.write("\t<table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>\r\n");
out.write("\t<tr><td height='100%'>\r\n");
out.write("\t<input type=\"hidden\" ID=\"ContentEdit\" value=\"\">\r\n");
out.write("\t<input type=\"hidden\" ID=\"ContentLoad\" value=\"\">\r\n");
out.write("\t<input type=\"hidden\" ID=\"ContentFlag\" value=\"0\">\r\n");
out.write("\t<iframe class=\"Composition\" ID=\"eWebEditor\" MARGINHEIGHT=\"1\" MARGINWIDTH=\"1\" width=\"100%\" height=\"100%\" scrolling=\"yes\">\r\n");
out.write("\t</iframe>\r\n");
out.write("\t</td></tr>\r\n");
out.write("\t</table>\r\n");
out.write("\r\n");
out.write("</td></tr>\r\n");
out.write("\r\n");
if(nStateFlag.equals("1")){
out.write("\r\n");
out.write("<tr><td height=25>\r\n");
out.write("\r\n");
out.write("\t<TABLE border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" width=\"100%\" class=StatusBar height=25>\r\n");
out.write("\t<TR valign=middle>\r\n");
out.write("\t<td>\r\n");
out.write("\t\t\r\n");
out.write("\t</td>\r\n");
out.write("\t<td align=right>\r\n");
out.write("\t\t<table border=0 cellpadding=0 cellspacing=0 height=20>\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t<td style=\"cursor:pointer;\" onclick=\"sizeChange(300)\"><img border=0 SRC=\"buttonimage/");
out.print(sStyleDir);
out.write("/sizeplus.gif\" width=20 height=20 alt=\"增高编辑区\"></td>\r\n");
out.write("\t\t<td width=5></td>\r\n");
out.write("\t\t<td style=\"cursor:pointer;\" onclick=\"sizeChange(-300)\"><img border=0 SRC=\"buttonimage/");
out.print(sStyleDir);
out.write("/sizeminus.gif\" width=20 height=20 alt=\"减小编辑区\"></td>\r\n");
out.write("\t\t<td width=40></td>\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t\t</table>\r\n");
out.write("\t</td>\r\n");
out.write("\t</TR>\r\n");
out.write("\t</Table>\r\n");
out.write("\r\n");
out.write("</td></tr>\r\n");
}
out.write("\r\n");
out.write("\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write("<div id=\"eWebEditor_Temp_HTML\" style=\"VISIBILITY: hidden; OVERFLOW: hidden; POSITION: absolute; WIDTH: 1px; HEIGHT: 1px\"></div>\r\n");
out.write("\r\n");
out.write("<form id=\"eWebEditor_UploadForm\" action=\"upload.jsp?action=remote&type=remote&style=");
out.print(sStyleName);
out.write("\" method=\"post\" target=\"eWebEditor_UploadTarget\">\r\n");
out.write("<input type=\"hidden\" name=\"eWebEditor_UploadText\">\r\n");
out.write("</form>\r\n");
out.write("<iframe name=\"eWebEditor_UploadTarget\" width=0 height=0></iframe>\r\n");
out.write("<div id=divProcessing style=\"width:200px;height:30px;position:absolute;display:none\">\r\n");
out.write("<table border=0 cellpadding=0 cellspacing=1 bgcolor=\"#000000\" width=\"100%\" height=\"100%\"><tr><td bgcolor=#3A6EA5><marquee align=\"middle\" behavior=\"alternate\" scrollamount=\"5\" style=\"font-size:9pt\"><font color=#FFFFFF>...远程文件收集中...请等待...</font></marquee></td></tr></table>\r\n");
out.write("</div>\r\n");
out.write("\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -