Project

General

Profile

1
// Register the related commands.
2
var dialogPath = FCKConfig.PluginsPath + 'flvPlayer/flvPlayer.html';
3
var flvPlayerDialogCmd = new FCKDialogCommand( FCKLang["DlgFLVPlayerTitle"], FCKLang["DlgFLVPlayerTitle"], dialogPath, 600, 520 );
4
FCKCommands.RegisterCommand( 'flvPlayer', flvPlayerDialogCmd ) ;
5

    
6
// Create the Flash toolbar button.
7
var oFlvPlayerItem		= new FCKToolbarButton( 'flvPlayer', FCKLang["DlgFLVPlayerTitle"]) ;
8
oFlvPlayerItem.IconPath	= FCKPlugins.Items['flvPlayer'].Path + 'flvPlayer.gif' ;
9

    
10
FCKToolbarItems.RegisterItem( 'flvPlayer', oFlvPlayerItem ) ;			
11
// 'Flash' is the name used in the Toolbar config.
12

    
(2-2/13)