网站首页 > 开源技术 正文
下载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
效果图:
- 上一篇: springboot整合百度富文本 UEditor
- 下一篇: 日系最强在售大街车——川崎Z H2浅析
猜你喜欢
- 2024-09-28 springboot整合百度富文本 UEditor
- 2024-09-28 漫谈ueditor编辑器漏洞实战中利用
- 2024-09-28 前端视角漫谈百度ueditor编辑器前后端分离配置
- 2024-09-28 Ueditor二次编辑word(doc和docx格式),SpringBoot后端
- 2024-09-28 部署到服务器UEditor乱码,layUI乱码,layer乱码「非编码造成」
- 2024-09-28 百度编辑器ueditor,如何在源码模式与富文本模式相互切换
- 2024-09-25 Python项目中用富文本编辑器展示精美网页
- 2024-09-25 UEditor二次开发之为行内代码添加code标签
- 2024-09-25 百度编辑器ueditor从word粘贴图片重复分析
- 2024-09-25 利用百度编辑器ueditor实现代码高亮
欢迎 你 发表评论:
- 11-22管理开机启动项(开机启动项管理win10)
- 11-222025动态壁纸图片(2020动态手机壁纸)
- 11-22电脑的设备管理器在哪里打开
- 11-22windows查看设备序列号(查询设备序列号win7)
- 11-22nod32 激活码(nod32 激活码 3用户)
- 11-22联想m7400打印机驱动安装教程
- 11-22插上系统盘怎么装系统(插了系统u盘怎么用)
- 11-22lenovo电脑官方(lenovo电脑官方网报价)
- 最近发表
- 标签列表
-
- jdk (81)
- putty (66)
- rufus (78)
- 内网穿透 (89)
- okhttp (70)
- powertoys (74)
- windowsterminal (81)
- netcat (65)
- ghostscript (65)
- veracrypt (65)
- asp.netcore (70)
- wrk (67)
- aspose.words (80)
- itk (80)
- ajaxfileupload.js (66)
- sqlhelper (67)
- express.js (67)
- phpmailer (67)
- xjar (70)
- redisclient (78)
- wakeonlan (66)
- tinygo (85)
- startbbs (72)
- webftp (82)
- vsvim (79)

本文暂时没有评论,来添加一个吧(●'◡'●)