?? editors.asp
字號:
<!--#include file="../conn.asp"-->
<!--#include file="../inc/const.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
If Newasp.CheckPost = False Then
Call OutAlertScript("您提交的數據不合法,請不要從外部提交。")
End If
Dim ChannelID,AutoRemote
ChannelID = CInt(Request("ChannelID"))
AutoRemote = 0 '是否自動保存遠程圖片,1=是,0=否
%>
<html>
<head>
<title>newasp.net - 新云在線編輯器</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Editor.css" type="text/css" rel="stylesheet">
<Script Language=Javascript>
var sPath = document.location.pathname;
sPath = sPath.substr(0, sPath.length-14);
var sLinkFieldName = "content" ;
var sLinkOriginalFileName = "originalfilename" ;
var sLinkSaveFileName = "savefilename" ;
var sLinkSavePathFileName = "UploadFileList" ;
// 全局設置對象
var config = new Object() ;
config.License = "" ;
config.StyleName = "s_light";
config.StyleMenuHeader = "<head><link href=\"MenuArea.css\" type=\"text/css\" rel=\"stylesheet\"></head><body scroll=\"no\" onConTextMenu=\"event.returnValue=false;\">";
config.StyleDir = "";
config.StyleUploadDir = "UploadFile/";
config.InitMode = "EDIT";
config.AutoDetectPasteFromWord = true;
config.BaseUrl = "1";
config.BaseHref = "";
config.AutoRemote = "<%=AutoRemote%>";
config.ShowBorder = "0";
config.ChannelID = "<%=ChannelID%>";
var sBaseHref = "";
if(config.BaseHref!=""){
sBaseHref = "<base href=\"" + document.location.protocol + "//" + document.location.host + config.BaseHref + "\">";
}
config.StyleEditorHeader = "<head><link href=\"EditorArea.css\" type=\"text/css\" rel=\"stylesheet\">" + sBaseHref + "</head><body MONOSPACE>" ;
</Script>
<Script Language=Javascript src="editor.js"></Script>
<Script Language=Javascript src="table.js"></Script>
<Script Language=Javascript src="menu.js"></Script>
<script language="javascript" event="onerror(msg, url, line)" for="window">
return true ; // 隱藏錯誤
</script>
</head>
<body SCROLLING=no onConTextMenu="event.returnValue=false;">
<table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>
<tr><td>
<table border=0 cellpadding=0 cellspacing=0 width='100%' class='Toolbar' id='NewCloud_Toolbar'>
<tr>
<td><div class=yToolbar><DIV CLASS="TBHandle"></DIV><DIV CLASS="Btn" TITLE="剪切" onclick="format('cut')"><IMG CLASS="Ico" SRC="images/cut.gif"></DIV>
<DIV CLASS="Btn" TITLE="復制" onclick="format('copy')"><IMG CLASS="Ico" SRC="images/copy.gif"></DIV>
<DIV CLASS="Btn" TITLE="常規粘貼" onclick="format('paste')"><IMG CLASS="Ico" SRC="images/paste.gif"></DIV>
<DIV CLASS="Btn" TITLE="純文本粘貼" onclick="PasteText()"><IMG CLASS="Ico" SRC="images/pastetext.gif"></DIV>
<DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="查找替換" onclick="findReplace()"><IMG CLASS="Ico" SRC="images/findreplace.gif"></DIV>
<DIV CLASS="Btn" TITLE="刪除" onclick="format('delete')"><IMG CLASS="Ico" SRC="images/delete.gif"></DIV>
<DIV CLASS="Btn" TITLE="刪除文字格式" onclick="format('RemoveFormat')"><IMG CLASS="Ico" SRC="images/RemoveFormat.gif"></DIV>
<DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="撤消" onclick="goHistory(-1)"><IMG CLASS="Ico" SRC="images/undo.gif"></DIV>
<DIV CLASS="Btn" TITLE="恢復" onclick="goHistory(1)"><IMG CLASS="Ico" SRC="images/redo.gif"></DIV>
<DIV CLASS="TBSep"></DIV>
<DIV CLASS="Btn" TITLE="全部選中" onclick="format('SelectAll')"><IMG CLASS="Ico" SRC="images/selectAll.gif"></DIV>
<DIV CLASS="Btn" TITLE="取消選擇" onclick="format('Unselect')"><IMG CLASS="Ico" SRC="images/unselect.gif"></DIV>
<DIV CLASS="TBSep"></DIV>
<DIV CLASS="Btn" TITLE="插入或修改圖片" onclick="ShowDialog('dialog/img.htm', 350, 315, true)"><IMG CLASS="Ico" SRC="images/img.gif"></DIV>
<DIV CLASS="Btn" TITLE="插入Flash動畫" onclick="ShowDialog('dialog/flash.htm', 350, 200, true)"><IMG CLASS="Ico" SRC="images/flash.gif"></DIV>
<DIV CLASS="TBSep"></DIV>
<DIV CLASS="Btn" TITLE="表格菜單" onclick="showToolMenu('table')"><IMG CLASS="Ico" SRC="images/tablemenu.gif"></DIV>
<DIV CLASS="Btn" TITLE="插入水平尺" onclick="format('InsertHorizontalRule')"><IMG CLASS="Ico" SRC="images/InsertHorizontalRule.gif"></DIV>
<DIV CLASS="Btn" TITLE="插入或修改字幕" onclick="ShowDialog('dialog/marquee.htm', 395, 150, true)"><IMG CLASS="Ico" SRC="images/Marquee.gif"></DIV>
<DIV CLASS="TBSep"></DIV><DIV CLASS="Btn" TITLE="插入或修改超級鏈接" onclick="createLink()"><IMG CLASS="Ico" SRC="images/CreateLink.gif"></DIV>
<DIV CLASS="Btn" TITLE="取消超級鏈接或標簽" onclick="format('UnLink')"><IMG CLASS="Ico" SRC="images/Unlink.gif"></DIV>
<DIV CLASS="Btn" TITLE="插入特殊字符" onclick="ShowDialog('dialog/symbol.htm', 350, 220, true)"><IMG CLASS="Ico" SRC="images/symbol.gif"></DIV>
<DIV CLASS="TBSep"></DIV>
<DIV CLASS="Btn" TITLE="編號" onclick="format('insertorderedlist')"><IMG CLASS="Ico" SRC="images/insertorderedlist.gif"></DIV>
<DIV CLASS="Btn" TITLE="項目符號" onclick="format('insertunorderedlist')"><IMG CLASS="Ico" SRC="images/insertunorderedlist.gif"></DIV>
<DIV CLASS="Btn" TITLE="字體顏色" onclick="ShowDialog('dialog/selcolor.htm?action=forecolor', 280, 250, true)"><IMG CLASS="Ico" SRC="images/forecolor.gif"></DIV></div></td>
</tr>
<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="<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" 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="images/bold.gif"></DIV>
<DIV CLASS="Btn" TITLE="斜體" onclick="format('italic')"><IMG CLASS="Ico" SRC="images/italic.gif"></DIV>
<DIV CLASS="Btn" TITLE="下劃線" onclick="format('underline')"><IMG CLASS="Ico" SRC="images/underline.gif"></DIV>
<DIV CLASS="TBSep"></DIV>
<DIV CLASS="Btn" TITLE="左對齊" onclick="format('justifyleft')"><IMG CLASS="Ico" SRC="images/JustifyLeft.gif"></DIV>
<DIV CLASS="Btn" TITLE="居中對齊" onclick="format('justifycenter')"><IMG CLASS="Ico" SRC="images/JustifyCenter.gif"></DIV>
<DIV CLASS="Btn" TITLE="右對齊" onclick="format('justifyright')"><IMG CLASS="Ico" SRC="images/JustifyRight.gif"></DIV>
<DIV CLASS="Btn" TITLE="兩端對齊" onclick="format('JustifyFull')"><IMG CLASS="Ico" SRC="images/JustifyFull.gif"></DIV>
<DIV CLASS="TBSep"></DIV>
<DIV CLASS="Btn" TITLE="引用樣式" onclick="insert('quote')"><IMG CLASS="Ico" SRC="images/quote.gif"></DIV>
<DIV CLASS="Btn" TITLE="插入分頁符" onclick="insert('page')"><IMG CLASS="Ico" SRC="images/insertpage.gif"></DIV></div></td>
</tr>
</table>
</td></tr>
<tr><td height='100%'>
<table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>
<tr><td height='100%'>
<input type="hidden" ID="ContentEdit" value="">
<input type="hidden" ID="ModeEdit" value="">
<input type="hidden" ID="ContentLoad" value="">
<input type="hidden" ID="ContentFlag" value="0">
<input name="image" type='hidden' id="image">
<iframe class="Composition" ID="NewCloud" MARGINHEIGHT="1" MARGINWIDTH="1" width="100%" height="100%" scrolling="yes">
</iframe>
</td></tr>
</table>
</td></tr>
<tr><td height=25>
<TABLE border="0" cellPadding="0" cellSpacing="0" width="100%" class=StatusBar height=25>
<TR valign=middle>
<td>
<table border=0 cellpadding=0 cellspacing=0 height=20>
<tr>
<td width=10></td>
<td class=StatusBarBtnOff id=NewCloud_CODE onclick="setMode('CODE')"><img border=0 src="images/modecode.gif" width=50 height=15 align=absmiddle></td>
<td width=5></td>
<td class=StatusBarBtnOff id=NewCloud_EDIT onclick="setMode('EDIT')"><img border=0 src="images/modeedit.gif" width=50 height=15 align=absmiddle></td>
<td width=5></td>
<td class=StatusBarBtnOff id=NewCloud_TEXT onclick="setMode('TEXT')"><img border=0 src="images/modetext.gif" width=50 height=15 align=absmiddle></td>
<td width=5></td>
<td class=StatusBarBtnOff id=NewCloud_VIEW onclick="setMode('VIEW')"><img border=0 src="images/modepreview.gif" width=50 height=15 align=absmiddle></td>
</tr>
</table>
</td>
<td align=center></td>
<td align=right>
<table border=0 cellpadding=0 cellspacing=0 height=20>
<tr>
<td style="cursor:pointer;" onclick="sizeChange(300)"><img border=0 SRC="images/sizeplus.gif" width=20 height=20 alt="增高編輯區"></td>
<td width=5></td>
<td style="cursor:pointer;" onclick="sizeChange(-300)"><img border=0 SRC="images/sizeminus.gif" width=20 height=20 alt="減小編輯區"></td>
<td width=40></td>
</tr>
</table>
</td>
</TR>
</Table>
</td></tr>
</table>
<div id="NewCloud_Temp_HTML" style="VISIBILITY: hidden; OVERFLOW: hidden; POSITION: absolute; WIDTH: 1px; HEIGHT: 1px"></div>
<form id="NewCloud_UploadForm" action="upload.asp?action=remote&type=remote" method="post" target="NewCloud_UploadTarget">
<input type="hidden" name="NewCloud_UploadText">
</form>
<iframe name="NewCloud_UploadTarget" width=0 height=0></iframe>
<div id=divProcessing style="width:200px;height:30px;position:absolute;display:none">
<table border=0 cellpadding=0 cellspacing=1 bgcolor="#000000" width="100%" height="100%"><tr><td bgcolor=#0650D2><marquee align="middle" behavior="alternate" scrollamount="5" style="font-size:9pt"><font color=#FFFFFF>...正在保存數據...請等待...</font></marquee></td></tr></table>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -