下载UEditor编辑器 http://ueditor.baidu.com/website/ 打开链接
选择 PHP 的 UTF8 版本
WIN2008 选择脚本权限 PHP5.2 ISAPI
第一步:把安装包命名为“ueditor”,复制到 “include” 包下,和 “ckeditor” 同级
第二步:找到 include\inc\inc_fun_funAdmin.php
第三步:打开inc_fun_funAdmin.php替换内容,在184行
替换内容为:
else if($GLOBALS['cfg_html_editor']=='ueditor')
{
$fvalue = $fvalue=='' ? '<p></p>' : $fvalue;
$code = '<script type="text/javascript" charset="utf-8" src="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/ueditor.config.js"></script>';
$code .= '<script type="text/javascript" charset="utf-8" src="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/ueditor.all.min.js"></script>';
$code .= '<link rel="stylesheet" type="text/css" href="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/themes/default/css/ueditor.css"/>';
//$code .= '<textarea name="'.$fname.'" id="'.$fname.'" style="width:100%;">'.$fvalue.'</textarea>';
$code .= '<script type="text/plain" name="'.$fname.'" id="'.$fname.'">'.$fvalue.'</script>';
if($bbcode)
{
$code .= '<script type="text/javascript">UE.getEditor("'.$fname.'",{toolbars:[["Source","|",
"bold", "italic", "underline","|","fontsize","forecolor","emotion","Undo", "Redo"]],initialFrameHeight:100});</script>';
}
else
{
$code .= '<script type="text/javascript">UE.getEditor("'.$fname.'",{initialFrameHeight:450});</script>';
}
if($gtype=="print")
{
echo $code;
}
else
{
return $code;
}
}
第四步:进入网站后台-->系统-->系统基本参数-->核心设置-->将 Html编辑器的值改为 ueditor
效果图: