cakephp下整合kindeditor和ckplayer

來源:互聯網
上載者:User

標籤:des   style   tar   ext   c   int   

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
這個檔案可以找我要,電子郵箱聯絡我[email protected]

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‘);
?>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.