Tech Volta

Recent college grad, .NET developer, and web enthusiast

Tech Volta header image 2

FLVPlayer Plug-in Fix for FCKEditor 2.6.3

October 8th, 2008 · No Comments

I absolutely love the plug-in FLVPlayer for FCKEditor.  Inserting FLV into page or posts with the standard FCKEditor just doesn’t work.  This nice little plug-in is a champ.  Unfortunately, it has compatiblity issues with the new FCKEditor 2.6.3, so here is how to make this little plug-in work on FCKEditor 2.6.3

The problem I ran into was going to browse for media it would display a Page Not Found.  I’m guessing the method it was previously calling got depreciated.

Here’s where the error occurs:

flvplayer.js

function BrowseServer()
{
OpenServerBrowser(
‘flv’,
oEditor.FCKConfig.MediaBrowserURL,
oEditor.FCKConfig.MediaBrowserWindowWidth,
oEditor.FCKConfig.MediaBrowserWindowHeight ) ;
}

Replace that with the following:

flvplayer.js

function BrowseServer()
{
OpenServerBrowser(
‘flv’,
oEditor.FCKConfig.FlashBrowserURL,
oEditor.FCKConfig.FlashBrowserWindowWidth,
oEditor.FCKConfig.FlashBrowserWindowHeight ) ;
}

Voila!  This cleared everything up for me and I was off and running… :)

—update—

I see this update has already been add to the comments of the project on sourceforge, but it has not made it into the source code.  I wonder if the developer has abandoned it.

—end—

Another change that isn’t a bug that I made was automatically setting the width/height of the videos instead of having to enter that with every FLV file.

add the following:

new

flvplayer.js

// set default video height/width

var vWidth = 350;
var vHeight = 250;

replace the following:

old

flvplayer.html

<body scroll=”no”>

add the following:

new

flvplayer.html

<body scroll=”no” onLoad=”txtWidth.value=vWidth;txtHeight.value=vHeight;”>

Now the width and height will automatically be populated with the setting in the config file.  Just a quick change that I thought was cool.

Tags: coding

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment