FCKeditor的Flv插件
这是一个国外牛人开发的强大FLV视频播放器插件,可以自定义播放器界面颜色,可设置播放器默认图片,支持单文件和XML文档列表调用。
1、先下载FLV的插件,下载地址:http://sourceforge.net/tracker/download.php?group_id=75348&atid=737639&file_id=278897&aid=1856051
2、使用方法:
- Unzip the files into the plugins folder.
- 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"
详细的资料:
http://sourceforge.net/tracker/index.php?func=detail&aid=1856051&group_id=75348&atid=737639