Hi,
I am trying to get the "fckEmbedMovies" plugin to show up in the editor. I have edited fckconfig.js to add the plugin but in the guide I am not sure where to add the lines of code from the point where it says: "in the menu". Forgive me if this is a basic question but I am new to all this.
Many thanks,
Richard
for instal add this in fckconfig.js:
FCKConfig.Plugins.Add( 'fckEmbedMovies') ;
in the menu:
['EmbedMovies´]
modify fckplugin.js:
// Register the related commands.
FCKCommands.RegisterCommand(
'EmbedMovies',
new FCKDialogCommand(
'EmbedMovies',
FCKLang["EmbedMoviesDlgTitle"],
FCKPlugins.Items['fckEmbedMovies'].Path + 'fck_embedmovies.html',
450,
370
)
);
// Create the "EmbedMovies" toolbar button.
// FCKToolbarButton( commandName, label, tooltip, style, sourceView,
contextSensitive )
var oEmbedMoviesItem = new FCKToolbarButton( 'EmbedMovies',
FCKLang["EmbedMoviesBtn"], FCKLang["EmbedMoviesTooltip"], null, false, true
);
oEmbedMoviesItem.IconPath = FCKConfig.PluginsPath +
'fckEmbedMovies/embedmovies.gif';
// 'EmbedMovies' is the name that is used in the toolbar config.
FCKToolbarItems.RegisterItem( 'EmbedMovies', oEmbedMoviesItem );
I am trying to get the "fckEmbedMovies" plugin to show up in the editor. I have edited fckconfig.js to add the plugin but in the guide I am not sure where to add the lines of code from the point where it says: "in the menu". Forgive me if this is a basic question but I am new to all this.
Many thanks,
Richard
for instal add this in fckconfig.js:
FCKConfig.Plugins.Add( 'fckEmbedMovies') ;
in the menu:
['EmbedMovies´]
modify fckplugin.js:
// Register the related commands.
FCKCommands.RegisterCommand(
'EmbedMovies',
new FCKDialogCommand(
'EmbedMovies',
FCKLang["EmbedMoviesDlgTitle"],
FCKPlugins.Items['fckEmbedMovies'].Path + 'fck_embedmovies.html',
450,
370
)
);
// Create the "EmbedMovies" toolbar button.
// FCKToolbarButton( commandName, label, tooltip, style, sourceView,
contextSensitive )
var oEmbedMoviesItem = new FCKToolbarButton( 'EmbedMovies',
FCKLang["EmbedMoviesBtn"], FCKLang["EmbedMoviesTooltip"], null, false, true
);
oEmbedMoviesItem.IconPath = FCKConfig.PluginsPath +
'fckEmbedMovies/embedmovies.gif';
// 'EmbedMovies' is the name that is used in the toolbar config.
FCKToolbarItems.RegisterItem( 'EmbedMovies', oEmbedMoviesItem );
Re: EmbedMovies plugin help
for example,
There must be a part starting with FCKconfig.ToolbarSets["Default"] = [ ...
Those are the items in Tool bar, so add 'Embedmovies' there..(inside of the opening braket[ and the closing bracket ])
And don't forget to modify fckplugin.js in the fckEmbedMovies folder like the part you already know.
However,.........unfortunately.
even though I succeeded to install the plugin and see the icon in the tool bar, I don't think it has all necessary features to work.
Somebody needs to see the code again.