在kindeditor基础上添加了如下功能

1、qq客服快速添加
2、ckplayer播放器,支持本地flv,mp4
3、动态百度地图
kindeditor织梦版(gbk/utf8)打包下载
云盘下载:http://pan.baidu.com/s/1dF1WKJv 密码: vwea
该版本为4.1.10,需要4.1.4版本的请移步《织梦整合编辑器Kindeditor 4.1.4 GBK+UTF一键安装》
下载解压,选择对应的编码版本,把include文件夹上传到网站根目录
*后给dedecms添加kindeditor编辑器调用代码
dedecms utf8编码程序的
打开 include/inc/inc_fun_funAdmin.php 找到
else {
/*
// ------------------------------------------------------------------------
// 当前版本,暂时取消dedehtml编辑器的支持
在它的上面加入
else if($GLOBALS['cfg_html_editor']=='kindeditor')
{
$fvalue =htmlspecialchars($fvalue);
$uploadJson = $GLOBALS['cfg_cmspath']."/include/dialog/kindeditor_post.php";
$fileManagerJson = $GLOBALS['cfg_cmspath']."/include/dialog/kindeditor_manager.php";
$allowFileManager = 'true';
$extendconfig = '';
if($etype == 'Member' || $etype == 'MemberLit' || $etype == 'Diy' || $etype == 'Feedback')
{
$uploadJson = "";
$fileManagerJson = "";
$allowFileManager = 'false';
$extendconfig = 'allowImageUpload : false,';
$extendconfig .= 'allowFlashUpload : false,';
$extendconfig .= 'allowMediaUpload : false,';
$extendconfig .= 'allowFileUpload : false,';
}
$items['Member'] = "[
'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'map', 'pagebreak',
'link', 'unlink', '|', 'about']";
$items['Small'] = $items['MemberLit'] = $items['Diy'] = "[
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']";
$items['Feedback']= "[
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons']";
$itemconfig = '';
if(isset($items[$etype]))
{
$itemconfig = "items :{$items[$etype]},";
}
$session_id = session_id();
$code = <<<HTML
<link rel="stylesheet" href="{$GLOBALS['cfg_cmspath']}/include/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.css" />
<script src="{$GLOBALS['cfg_cmspath']}/include/kindeditor/kindeditor-min.js"></script>
<script src="{$GLOBALS['cfg_cmspath']}/include/kindeditor/lang/zh_CN.js"></script>
<script src="{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.js"></script>
<script type="text/javascript">
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="{$fname}"]', {
cssPath : '{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.css',
uploadJson : '$uploadJson',
fileManagerJson : '$fileManagerJson',
filterMode: false,//是否开启过滤模式
extraFileUploadParams: {
PHPSESSID : '{$session_id}'
},
$extendconfig
$itemconfig
allowFileManager : {$allowFileManager},
afterBlur: function(){this.sync();}
});
prettyPrint();
});
</script>
<textarea name="{$fname}" style="height:{$nheight}px;visibility:hidden;width: *;">{$fvalue}</textarea>
HTML;
if($gtype=="print")
{
echo $code;
}
else
{
return $code;
}
}dedecms gbk编码程序的
打开 include/inc/inc_fun_funAdmin.php 找到
else {
/*
// ------------------------------------------------------------------------
// 当前版本,暂时取消dedehtml编辑器的支持
在它的上面加入
else if($GLOBALS['cfg_html_editor']=='kindeditor')
{
$fvalue =htmlspecialchars($fvalue);
$uploadJson = $GLOBALS['cfg_cmspath']."/include/dialog/kindeditor_post.php";
$fileManagerJson = $GLOBALS['cfg_cmspath']."/include/dialog/kindeditor_manager.php";
$allowFileManager = 'true';
$extendconfig = '';
if($etype == 'Member' || $etype == 'MemberLit' || $etype == 'Diy' || $etype == 'Feedback')
{
$uploadJson = "";
$fileManagerJson = "";
$allowFileManager = 'false';
$extendconfig = 'allowImageUpload : false,';
$extendconfig .= 'allowFlashUpload : false,';
$extendconfig .= 'allowMediaUpload : false,';
$extendconfig .= 'allowFileUpload : false,';
}
$items['Member'] = "[
'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'map', 'pagebreak',
'link', 'unlink', '|', 'about']";
$items['Small'] = $items['MemberLit'] = $items['Diy'] = "[
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']";
$items['Feedback']= "[
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons']";
$itemconfig = '';
if(isset($items[$etype]))
{
$itemconfig = "items :{$items[$etype]},";
}
$session_id = session_id();
$code = <<<HTML
<link rel="stylesheet" href="{$GLOBALS['cfg_cmspath']}/include/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.css" />
<script src="{$GLOBALS['cfg_cmspath']}/include/kindeditor/kindeditor-min.js" charset="gb2312"></script>
<script src="{$GLOBALS['cfg_cmspath']}/include/kindeditor/lang/zh_CN.js" charset="gb2312"></script>
<script src="{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.js" charset="gb2312"></script>
<script type="text/javascript">
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="{$fname}"]', {
cssPath : '{$GLOBALS['cfg_cmspath']}/include/kindeditor/plugins/code/prettify.css',
uploadJson : '$uploadJson',
fileManagerJson : '$fileManagerJson',
filterMode: false,//是否开启过滤模式
extraFileUploadParams: {
PHPSESSID : '{$session_id}'
},
$extendconfig
$itemconfig
allowFileManager : {$allowFileManager},
afterBlur: function(){this.sync();}
});
prettyPrint();
});
</script>
<textarea name="{$fname}" style="height:{$nheight}px;visibility:hidden;width: *;">{$fvalue}</textarea>
HTML;
if($gtype=="print")
{
echo $code;
}
else
{
return $code;
}
}后台-系统-系统基本参数-核心设置-Html编辑器 ,填写kindeditor
要实现代码高亮需在前台模板页(比如我的是aricle_aritlce.htm)需引入以下几个文件:
<link type="text/css" rel="stylesheet" href="/include/kindeditor/plugins/code/prettify.css"/>
<script type="text/javascript" src="/include/kindeditor/plugins/code/prettify.js"></script>
然后,在你文章模板页的</body>前添加这一句:
<script>prettyPrint();</script>
注意,一定要放在body的结束符之前,如果在页面头部声明是没效果的。
# 吉林网站推广诚信推荐
# manager
# allowFileManager
# 宁夏seo优化费用
# 嘉兴网站建设网络推广
# 下载网站建设公司信息
# 苏州seo推广报价公司
# 极智seo
# 罗湖网站建设哪个好用
# 晋江营销推广
# 宝安附近网站建设哪个好
# seo0719
# extendconfig
# 广州建设手机网站
# 网站建设合同 法律
# 郑州营销推广费用多少*
# 海外站营销推广策略
# 四川seo培训
# 网站建设模块培训ppt
# 南宁网站推广设计哪个好
# 网站建设专业大学
# 呼家楼手机网站建设
# 推广图的营销设计方法是
# 基础上
# 织梦CMS教程
# 文本编辑器
# ckeditor
# kindeditor
# 编辑器
# 宋体
# 的是
# 几个
# 这一
# 放在
# 客服
# 织梦dedecms自带文本编辑器ckeditor更换为kindeditor编辑器带代码高亮
# 播放器
# 一键
# 打包下载
# post
# dialog
# cfg
# cmspath
# quot
# fileManagerJson
# true
相关栏目:
【
Google疑问12 】
【
Facebook疑问10 】
【
网络优化91478 】
【
技术知识72672 】
【
云计算0 】
【
GEO优化84317 】
【
优选文章0 】
【
营销推广36048 】
【
网络运营41350 】
【
案例网站102563 】
【
AI智能45237 】
相关推荐:
建站之星安装失败:服务器环境不兼容?
如何用西部建站助手快速创建专业网站?
织梦cms移动版伪静态实现与PC电脑版静态地址url一致教程_织梦插件
织梦网站SEO优化之标题过长被截断解决方法_SEO优化教程
全球各国上班时间表外贸邮件时间
织梦自定义表单用js控制必填选项_织梦CMS教程
织梦DedeCms如何做淘宝客链接跳转_织梦CMS教程
平台云上自主建站:模板化设计与智能工具打造高效网站
如何用已有域名快速搭建网站?
建站之星下载版如何获取与安装?
织梦自定义PHP页面让模板支持调用标签_织梦CMS教程
官网自助建站平台指南:在线制作、快速建站与模板选择全解析
织梦站内优化SEO之标题优化教程_SEO优化教程
如何用花生壳三步快速搭建专属网站?
织梦数据库实现调用*二级栏目及下三级栏目方法_织梦CMS教程
如何规划企业建站流程的关键步骤?
dedecms织梦获取栏目(分类)的文章数量的方法_织梦CMS教程
织梦dedecms列表页实现无限加载的教程_织梦CMS教程
php5.2.14无法开启curl扩展解决教程_织梦CMS教程
如何快速使用云服务器搭建个人网站?
如何配置WinSCP新建站点的密钥验证步骤?
DedeCMS系统SEO优化之URL目录化设置_SEO优化教程
建站之星更换空间及服务器迁移操作步骤解析
织梦dedecms副栏目名称和链接调用_织梦CMS教程
建站之星价格显示格式升级,你的预算足够吗?
家庭建站与云服务器建站,如何选择更优?
如何注册花生壳免费域名并搭建个人网站?
如何通过NAT技术实现内网高效建站?
如何通过免费商城建站系统源码自定义网站主题与功能?
安徽网站建设与外贸建站服务专业定制方案
建站助手共享版:智能模板一键生成与多端适配指南
如何自定义建站之星网站的导航菜单样式?
建站助手软件包:智能网站模板生成与SEO优化工具一键整合
织梦列表页调用TAG标签并带上链接的实现教程_织梦CMS教程
已有域名建站全流程解析:网站搭建步骤与建站工具选择
织梦kindeditor文本编辑器增加“查找替换”功能_织梦CMS教程
dedecms织梦采集相同标题文章跳过采集方法_织梦CMS教程
phpcms v9实现文章后面添加new图标_PHPCMS教程
织梦让模型里的图片字段支持本地快速上传方法_织梦CMS教程
黑客如何利用漏洞与弱口令入侵网站服务器?
织梦cms开启二级域名手机站(多站点)内容页图片无法显示_织梦CMS教程
香港服务器租用费用高吗?如何避免常见误区?
如何破解联通资金短缺导致的基站建设难题?
织梦添加一个函数,实现任意字段调用_织梦CMS教程
企业网站百度关键词排名下降的原因分析_SEO优化教程
如何确保FTP站点访问权限与数据传输安全?
建站之星代理如何获取技术支持?
dedecms织梦根据特定需要调用文章的标签代码_织梦CMS教程
织梦list列表页调用body内容的教程_织梦CMS教程
建站之星好吗?新手能否轻松上手建站?
2017-08-18
南京市珐之弘网络技术有限公司专注海外推广十年,是谷歌推广.Facebook广告全球合作伙伴,我们精英化的技术团队为企业提供谷歌海外推广+外贸网站建设+网站维护运营+Google SEO优化+社交营销为您提供一站式海外营销服务。