首页 > 教程 >

dedecms更换百度编辑器

2023-03-29教程围观

简介下载百度ueditor编辑器源码搜索百度ueditor去官方下载编辑器源码安装百度ueditor编辑器在include目录下新建一个ueditor文件夹,讲刚才下载的文件解压后上传至此目录。修改配置文件找到include/inc/下的inc_func_funcAdmin.php文件,在判断编辑器部分,如下if($GLOBALS['cfg_html_editor']=='fck')在它后面大概367

  

下载百度ueditor编辑器源码

搜索“百度ueditor”去官方下载编辑器源码

安装百度ueditor编辑器

在include目录下新建一个“ueditor”文件夹,讲刚才下载的文件解压后上传至此目录。

修改配置文件

找到include/inc/下的inc_func_funcAdmin.php文件,在判断编辑器部分,如下

if($GLOBALS['cfg_html_editor']=='fck')

在它后面大概367行添加如下判断

else if($GLOBALS['cfg_html_editor']=='ueditor')	{	 	$fvalue = $fvalue=='' ? '<p></p>' : $fvalue;	$code = '<  type="text/ " charset="utf-8" src="/include/ueditor/ueditor.config.js"></ > 			<  type="text/ " charset="utf-8" src="/include/ueditor/ueditor.all.js"></ >			<  rel="stylesheet" type="text/css" href="/include/ueditor/themes/default/css/ueditor.css"/>			<textarea name="'.$fname.'" id="'.$fname.'" style="width:100%;">'.$fvalue.'</textarea>			<  type="text/ ">var ue = new baidu.editor.ui.Editor();ue.render("'.$fname.'");</ >';	if($gtype=="print")	{	  echo $code;	 }	else	{	 return $code;	}	}

修改网站后台系统配置

进入后台,在>系统>系统基本参数>核心设置>将“Html编辑器”改为“ueditor”,然后保存即可。

下载链接:网站源码/小程序源码/网站模板下载

Tags: 百度 编辑器 更换