📄 editor_registry.php
字号:
<?php
/**
* Editor framework for XOOPS
*
* @copyright The XOOPS project http://www.xoops.org/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
* @author Taiwen Jiang (phppp or D.J.) <php_pp@hotmail.com>
* @since 1.00
* @version $Id$
* @package xoopseditor
*/
/**
* XOOPS editor registry
*
* @author phppp (D.J.)
* @copyright copyright (c) 2005 XOOPS.org
*
*/
global $xoopsConfig;
$current_path = __FILE__;
if ( DIRECTORY_SEPARATOR != "/" ) $current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
$root_path = dirname($current_path);
$xoopsConfig['language'] = preg_replace("/[^a-z0-9_\-]/i", "", $xoopsConfig['language']);
if(!@include_once($root_path."/language/".$xoopsConfig['language'].".php")){
include_once($root_path."/language/english.php");
}
return $config = array(
//"name" => "koivi",
"class" => "XoopsFormWysiwygTextArea",
"file" => $root_path."/formwysiwygtextarea.php",
"title" => _XOOPS_EDITOR_KOIVI,
"order" => 4
);
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -