3
var noLink = /^(?:H1|H2|H3|H4|H5|H6|PRE|TT|IMG)$/i;
5
if (1 || !FCKBrowserInfo.IsIE){
9
if (FCKSelection.CheckForNodeNames(noLink))
11
return FCK_TRISTATE_DISABLED;
13
return (FCK.GetNamedCommandState('CreateAttachment')==FCK_TRISTATE_ON) ?
14
FCK_TRISTATE_ON : FCK_TRISTATE_OFF;
17
// Register the related command.
18
FCKCommands.RegisterCommand('Attachment', new FCKDialogCommand( 'Attachment', FCKLang.DlgLnkWindowTitle, FCKConfig.WikiBasePath + FCKConfig.WikiPage + '?action=fckdialog&dialog=attachment', 400, 330, LinkState, 'CreateAttachment')) ;
20
oAttachmentItem = new FCKToolbarButton('Attachment', FCKLang.AttachmentBtn, null, null, false, true);
24
FCKCommands.RegisterCommand('Attachment', new FCKDialogCommand( 'Attachment', FCKLang.DlgLnkWindowTitle, FCKConfig.WikiBasePath + FCKConfig.WikiPage + '?action=fckdialog&dialog=attachment', 400, 330, FCK.GetNamedCommandState, 'CreateAttachment')) ;
26
oAttachmentItem = new FCKToolbarButton('Attachment', FCKLang.AttachmentBtn, null, null, false, false);
29
// Create the "Attachment" toolbar button.
30
oAttachmentItem.IconPath = FCKPlugins.Items['moinattachment'].Path + 'attachment.gif';
31
FCKToolbarItems.RegisterItem('Attachment', oAttachmentItem);