htmlarea1.js
来自「Hippo CMS是一个以信息为中心的开源内容管理系统。Hippo CMS目标是」· JavaScript 代码 · 共 52 行
JS
52 行
/*
* Copyright 2001-2007 Hippo (www.hippo.nl)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
HTMLArea.loadPlugin("Expander");
HTMLArea.loadPlugin("HTMLAreaFocus");
HTMLArea.loadPlugin("Floater");
HTMLArea.loadPlugin("DisableParagraphs");
HTMLArea.loadPlugin("EnterParagraphs");
HTMLArea.loadPlugin("EnterBlock");
HTMLArea.loadPlugin("TableOperations");
function htmlArea1Init(id)
{
var editor = new HTMLArea(id);
var config = editor.config; // create new config object
config.height = "200px";
config.width = "600px";
/*
config.pageStyle = "@import url(/cforms/resources/htmlarea/hippohtmlarea.css);";
*/
config.fullPage=false;
config.pageStyle = "body { font-family:verdana,arial,helvetica,sans-serif; font-size: 0.8em; color:#000000; padding:0px; }"+
"a {color:#003399;} a:link { color:#003399; text-decoration:none ;font-weight:bold;} a:active { color:#CC0000; text-decoration:none } a:visited { color:#003399; text-decoration:none } a:hover { color:#FF6600; text-decoration:underline }";
config.toolbar = [
["bold","italic","underline","separator","insertorderedlist", "insertunorderedlist","createlink","inserttable","insertimage","separator","copy", "cut", "space", "undo", "redo"],
];
//editor.registerPlugin("Expander");
//editor.registerPlugin("HTMLAreaFocus");
//editor.registerPlugin("Floater");
//editor.registerPlugin("EnterParagraphs");
//editor.registerPlugin("TableOperations");
return editor;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?