首页 | 新闻 | 交流 | 问吧 | 文档 | 手册 | 下载 | 博客

  • 虚拟主机

FCKeditor flv插件

作者:  时间: 2009-08-20
FCKeditor的Flv插件

这是一个国外牛人开发的强大FLV视频播放器插件,可以自定义播放器界面颜色,可设置播放器默认图片,支持单文件和XML文档列表调用。

1、先下载FLV的插件,下载地址:http://sourceforge.net/tracker/download.php?group_id=75348&atid=737639&file_id=278897&aid=1856051

解压缩到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
38.107.179.219 CCBot/1.0 (+http://www.commoncrawl.org/bot.html)