📄 editor.php
字号:
<?php
// +-------------------------------------------------------------+
// | DeskPRO v [2.0.1 Production]
// | Copyright (C) 2001 - 2004 Headstart Solutions Limited
// | Supplied by WTN-WDYL
// | Nullified by WTN-WDYL
// | Distribution via WebForum, ForumRU and associated file dumps
// +-------------------------------------------------------------+
// | DESKPRO IS NOT FREE SOFTWARE
// +-------------------------------------------------------------+
// | License ID : Full Enterprise License =) ...
// | License Owner : WTN-WDYL Team
// +-------------------------------------------------------------+
// | $RCSfile: editor.php,v $
// | $Date: 2004/02/10 01:34:28 $
// | $Revision: 1.10 $
// +-------------------------------------------------------------+
// | File Details:
// | - Invoke the WYSIWYG editor.
// +-------------------------------------------------------------+
error_reporting(E_ALL ^ E_NOTICE);
include "./../global.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html XMLNS:ACE>
<head>
<?php // problem with the <? otherwise starting of php.
echo " <?import namespace=\"ACE\" implementation=\"./../../includes/javascript/wysiwyg/ace.htc\" />";
?>
<script language="JavaScript">
function Init() {
//specify the dimension
idContent.editorWidth = "603";
idContent.editorHeight = "355";
idContent.useSave = true;
idContent.useBtnInsertText = true;
idContent.useBtnStyle = true;
idContent.useBtnParagraph = true;
idContent.useBtnFontName = true;
idContent.useBtnFontSize = true;
idContent.useBtnCut = true;
idContent.useBtnCopy = true;
idContent.useBtnPaste = true;
idContent.useBtnUndo = true;
idContent.useBtnRedo = true;
idContent.useBtnWord = true;
idContent.putBtnBreak(); //line break
idContent.useBtnBold = true;
idContent.useBtnItalic = true;
idContent.useBtnUnderline = true;
idContent.useBtnStrikethrough = true;
idContent.useBtnSuperscript = true;
idContent.useBtnSubscript = true;
idContent.useBtnJustifyLeft = true;
idContent.useBtnJustifyCenter = true;
idContent.useBtnJustifyRight = true;
idContent.useBtnJustifyFull = true;
idContent.useBtnInsertOrderedList = true;
idContent.useBtnInsertUnorderedList = true;
idContent.useBtnIndent = true;
idContent.useBtnOutdent = true;
idContent.useBtnHorizontalLine = true;
idContent.useBtnTable = true;
idContent.useBtnExternalLink = true;
idContent.useBtnInternalLink = false;
idContent.useBtnUnlink = true;
idContent.useBtnInternalImage = true;
idContent.useBtnForeground = true;
idContent.useBtnBackground = true;
idContent.useBtnAbsolute = true;
idContent.useBtnRemoveFormat = true;
idContent.useBtnInsertSymbol = true;
idContent.useBtnDocumentBackground = true;
//Apply buttons
idContent.applyButtons()
//fill editor with content
<?
echo "idContent.content=window.opener.document.$_REQUEST[form].$_REQUEST[element].value;";
?>
}
</script>
</head>
<body onload="Init()" leftmargin="0" rightmargin="0" topmargin="0">
<table align="center"><tr><td>
<?php
echo "<ACE:AdvContentEditor id=\"idContent\"
onSave=\"window.opener.document.$_REQUEST[form].$_REQUEST[element].value=this.content; self.close();\"
onImgLookupOpen=\"\" />";
?>
</td></tr></table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -