I did as instructed here:
https://sourceforge.net/forum/forum.php ... _id=257180
IE has no probs.. but Firefox does not like it too much... here is my fckplugin.js file... can someone help me make it so that firefox likes it ? Thanks much
var FCKhr = function(name)
{
this.Name = name;
}
FCKhr.prototype.Execute = function()
{
if(document.all)
{
mySelection = FCK.EditorDocument.selection
}
FCK.InsertHtml( '<hr>' )
}
// manage the plugins' button behavior
FCKhr.prototype.GetState = function()
{
return FCK_TRISTATE_OFF;
}
FCKCommands.RegisterCommand( 'hr', new FCKhr('hr')) ;
// Create the toolbar button.
var ohrItem = new FCKToolbarButton( 'hr', "hr", null, null, false, true ) ;
ohrItem.IconPath = FCKConfig.PluginsPath + 'hr/hr.gif' ;
FCKToolbarItems.RegisterItem( 'hr', ohrItem ) ;
__________________________
Tue, 04/19/2005 - 13:28
#1