文章为转载以备用,请严格按要求修改, 特别是pageheader.htm这个文件
================================================================
1、下载uediter编辑器,解压上传目录uediter到根目录/includes/下
2、修改admin/includes/lib_main.php
/**
* 生成编辑器
* @param string input_name 输入框名称
* @param string input_value 输入框值
*/
function create_html_editor($input_name, $input_value = '')
{
global $smarty;
$editor = new FCKeditor($input_name);
$editor->BasePath = '../includes/fckeditor/';
$editor->ToolbarSet = 'Normal';
$editor->Width = '100%';
$editor->Height = '320';
$editor->Value = $input_value;
$FCKeditor = $editor->CreateHtml();
$smarty->assign('FCKeditor', $FCKeditor);
}
修改为:
/**
* 生成编辑器
* @param string input_name 输入框名称
* @param string input_value 输入框值
*/
function create_html_editor($input_name, $input_value = '')
{
global $smarty;
//www.zuimoban.com
$kindeditor="
$input_value
var ue = UE.getEditor('editor');
UE.getEditor('editor').focus();
"; //zuimoban
$smarty->assign('FCKeditor', $kindeditor);
}
3、修改admin/templates/pageheader.htm
将:
{insert_scripts files="../js/transport.js,common.js,../js/utils.js"}
替换为: