📄 editor.jsp
字号:
<%@ page contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
<%
String editorRootPath = request.getContextPath();
%>
<link rel="STYLESHEET" type="text/css" href="<%=editorRootPath%>/editor_full/edit.css">
<Script src="<%=editorRootPath%>/editor_full/editor_js.jsp"></Script>
<input type="hidden" id="edit" name="edit" value="" />
<div id="cws_edit">
<ul id="ExtToolbar0">
<li >
<select id="cws_formatSelect" onchange="cws_doSelectClick('FormatBlock',this)">
<option><lt:Label res="res.label.editor_full.editor" key="p_format"/></option>
<option value="<P>"><lt:Label res="res.label.editor_full.editor" key="normal_format"/>
<option value="<H1>"><lt:Label res="res.label.editor_full.editor" key="title1"/>
<option value="<H2>"><lt:Label res="res.label.editor_full.editor" key="title2"/>
<option value="<H3>"><lt:Label res="res.label.editor_full.editor" key="title3"/>
<option value="<H4>"><lt:Label res="res.label.editor_full.editor" key="title4"/>
<option value="<H5>"><lt:Label res="res.label.editor_full.editor" key="title5"/>
<option value="<H6>"><lt:Label res="res.label.editor_full.editor" key="title6"/>
<option value="<H7>"><lt:Label res="res.label.editor_full.editor" key="title7"/>
<option value="<PRE>"><lt:Label res="res.label.editor_full.editor" key="format_already"/>
<option value="<ADDRESS>"><lt:Label res="res.label.editor_full.editor" key="address"/>
</select>
<select language="javascript" class="cws_TBGen" id="FontName" onChange="FormatText ('fontname',this[this.selectedIndex].value);">
<option class="heading" selected><lt:Label res="res.label.editor_full.editor" key="font"/>
<option value="宋体"><lt:Label res="res.label.editor_full.editor" key="songti"/>
<option value="黑体"><lt:Label res="res.label.editor_full.editor" key="heiti"/>
<option value="楷体_GB2312"><lt:Label res="res.label.editor_full.editor" key="kaiti"/>
<option value="仿宋_GB2312"><lt:Label res="res.label.editor_full.editor" key="fangsong"/>
<option value="隶书"><lt:Label res="res.label.editor_full.editor" key="lishu"/>
<option value="幼圆"><lt:Label res="res.label.editor_full.editor" key="youyuan"/>
<option value="新宋体"><lt:Label res="res.label.editor_full.editor" key="xinsongti"/>
<option value="细明体"><lt:Label res="res.label.editor_full.editor" key="ximinti"/>
<option value="Arial">Arial
<option value="Arial Black">Arial Black
<option value="Arial Narrow">Arial Narrow
<option value="Bradley Hand ITC">Bradley Hand ITC
<option value="Brush Script MT">Brush Script MT
<option value="Century Gothic">Century Gothic
<option value="Comic Sans MS">Comic Sans MS
<option value="Courier">Courier
<option value="Courier New">Courier New
<option value="MS Sans Serif">MS Sans Serif
<option value="Script">Script
<option value="System">System
<option value="Times New Roman">Times New Roman
<option value="Viner Hand ITC">Viner Hand ITC
<option value="Verdana">Verdana
<option value="Wide Latin">Wide Latin
<option value="Wingdings">Wingdings</option>
</select>
<select language="javascript" class="cws_TBGen" id="FontSize" onChange="FormatText('fontsize',this[this.selectedIndex].value);">
<option class="heading" selected><lt:Label res="res.label.editor_full.editor" key="font_size"/>
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7</option>
</select>
</li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="font_color"/>" language="javascript" onClick="cws_foreColor();" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/fgcolor.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="font_bg_color"/>" language="javascript" onClick="cws_backColor();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn';>
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/fbcolor.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="symbole"/>" language="javascript" onClick="insertSpecialChar();" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn';>
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/specialchar.gif" /></li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="replace"/>" language="javascript" onClick="cws_replace();" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn';>
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/replace.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="clear_code"/>" language="javascript" onClick="cws_CleanCode();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn';>
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/cleancode.gif" /></li>
<li>
<select ID="Zoom" class="cws_TBGen" onChange="doZoom(this)" >
<option value="100">100%
<option value="50">50%
<option value="75">75%
<option value="100">100%
<option value="125">125%
<option value="150">150%
<option value="175">175%
<option value="200">200%</option>
</select>
</li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="help"/>" language="javascript" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn';> <a href="#"><img src="<%=editorRootPath%>/editor_full/images/help.gif" class="cws_Ico" border="0"></a> </li>
</ul>
<ul id="ExtToolbar1">
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="select_all"/>" language="javascript" onClick="FormatText('selectAll');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn' >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/selectAll.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="cut"/>" language="javascript" onClick="FormatText('cut');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/cut.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="copy"/>" language="javascript" onClick="FormatText('copy');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/copy.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="paste"/>" language="javascript" onClick="FormatText('paste');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/paste.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="undo"/>" language="javascript" onClick="FormatText('undo');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/undo.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="redo"/>" language="javascript" onClick="FormatText('redo');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/redo.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="link"/>" language="javascript" onClick="cws_forlink();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/wlink.gif" > </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="clear_link"/>" language="javascript" onClick="FormatText('Unlink');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/unlink.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="image"/>" language="javascript" onClick="cws_forimg();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/img.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="hr"/>" language="javascript" onClick="FormatText('InsertHorizontalRule', '');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/hr.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="table"/>" language="javascript" onClick="cws_fortable();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/table.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="row"/>" language="javascript" onClick="cws_InsertRow();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/insertrow.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="del_row"/>" language="javascript" onClick="cws_DeleteRow();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/deleterow.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="col"/>" language="javascript" onClick="cws_InsertColumn();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/insertcolumn.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="del_col"/>" language="javascript" onClick="cws_DeleteColumn();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/deletecolumn.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="flash"/>" language="javascript" onClick="cws_forswf();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
<img class="cws_Ico" src="<%=editorRootPath%>/editor_full/images/swf.gif" /> </li>
<li class="cws_Btn" title="<lt:Label res="res.label.editor_full.editor" key="media"/>" language="javascript" onClick="cws_forwmv();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; >
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -