FCKeditor的Flv插件
这是一个国外牛人开发的强大FLV视频播放器插件,可以自定义播放器界面颜色,可设置播放器默认图片,支持单文件和XML文档列表调用。
1、先下载FLV的插件,下载地址:
解压缩到FCKeditor/editor/plugins
2、使用方法:
# vim FCKeditor/fckconfig.js
Configure the editor to see the plugin. In your editor configuration file, add the line below:
FCKConfig.Plugins.Add( 'flvPlayer','en') ;
Add the toolbar button to your preferred menu.
FCKConfig.ToolbarSets[ "Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates','flvPlayer'],
3、修改上传浏览不支持FLV格式BUG
vi flvPlayer/flvPlayer.js
Change:
OpenServerBrowser(
'flv',
oEditor.FCKConfig.MediaBrowserURL,
oEditor.FCKConfig.MediaBrowserWindowWidth,
oEditor.FCKConfig.MediaBrowserWindowHeight ) ;
by:
OpenServerBrowser(
'flv',
oEditor.FCKConfig.FlashBrowserURL,
oEditor.FCKConfig.FlashBrowserWindowWidth,
oEditor.FCKConfig.FlashBrowserWindowHeight ) ;
Now, IMCE will be opened, but when you select a file, IMCE can't send back
the path.
To solve it:
vi flvPlayer/flvPlayer.html
Change all ocurrencies of "txtURL" by "txtUrl"
vi flvPlayer/flvPlayer.js
Change all ocurrencies of "txtURL" by "txtUrl"
详细的资料:
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/qingflyer/archive/2009/03/29/4033965.aspx
阅读(1175) | 评论(0) | 转发(0) |