Hi,
I created a custom plugin for my editor. When I use "view source" the command gets blurred like the rest of the commands but when i click "view source" again the command doesnt get highlighted like the rest of commands. Any idea what i might be doing wrong. My custom plugin javascript is below.
Thank you
FCKCommands.RegisterCommand( 'Cancel', new FCKDialogCommand( 'Cancel', FCKLang.CancelDlgTitle, null, true, true, 1 ) ) ;
// Create the "Plaholder" toolbar button.
var oCancelItem = new FCKToolbarButton( 'Cancel', FCKLang.CancelBtn ) ;
oCancelItem.IconPath = FCKPlugins.Items['cancel'].Path + 'cancel.gif' ;
oCancelItem.Execute = function()
{
new_id = FCK.Name.replace(/_field/i, "");
window.parent.deGenerateHTMLEditor(new_id,FCK.Name,window.parent.editing_content);
changing = false;
}
oCancelItem.GetState = function()
{
// Let's make it always enabled.
return FCK_TRISTATE_OFF ;
}
FCKCommands.RegisterCommand( 'Cancel', oCancelItem ) ;
I created a custom plugin for my editor. When I use "view source" the command gets blurred like the rest of the commands but when i click "view source" again the command doesnt get highlighted like the rest of commands. Any idea what i might be doing wrong. My custom plugin javascript is below.
Thank you
FCKCommands.RegisterCommand( 'Cancel', new FCKDialogCommand( 'Cancel', FCKLang.CancelDlgTitle, null, true, true, 1 ) ) ;
// Create the "Plaholder" toolbar button.
var oCancelItem = new FCKToolbarButton( 'Cancel', FCKLang.CancelBtn ) ;
oCancelItem.IconPath = FCKPlugins.Items['cancel'].Path + 'cancel.gif' ;
oCancelItem.Execute = function()
{
new_id = FCK.Name.replace(/_field/i, "");
window.parent.deGenerateHTMLEditor(new_id,FCK.Name,window.parent.editing_content);
changing = false;
}
oCancelItem.GetState = function()
{
// Let's make it always enabled.
return FCK_TRISTATE_OFF ;
}
FCKCommands.RegisterCommand( 'Cancel', oCancelItem ) ;

Re: view source toggle doesnt turn the plugin back on