cakephp下整合kindeditor和ckplayer
1.放入图片
\cakephp\webroot\js\kindeditor\themes\
2.修改样式表
\cakephp\webroot\js\kindeditor\themes\default.css 443行
加
/*插入视频*/
.ke-icon-insertVideo
{
background:
url(ckplayer.png) 0px 0px;
width: 16px;
height: 16px;
}
3.修改文件
zh_CN.js 129行 加
insertVideo : ‘插入视频‘,
‘insertVideo.url‘ : ‘URL‘,
‘insertVideo.width‘ :
‘宽度‘,
‘insertVideo.height‘ : ‘高度‘,
‘insertVideo.autostart‘ :
‘自动播放‘,
‘insertVideo.upload‘ : ‘上传‘,
‘insertVideo.viewServer‘ :
‘文件空间‘,
4.修改上传大小限制
//最大文件大小
$max_size = 91000000;
5.
//拷贝插件至kindeditor目录
insertVideo
这个文件可以找我要,电子邮箱联系我gaijunbox@qq.com
6.//修改callvedio项目路径
7.页面调用
<?php
echo
$this->Html->script(‘kindeditor/plugins/insertVideo/ckplayer/ckplayer.js‘);
echo
$this->Html->script(‘kindeditor/plugins/insertVideo/callCkplayer.js‘);
//echo
$this->Html->script(‘kindeditor/plugins/insertVideo/jquery-1.9.1.min.js‘);
?>