📄 fckplugin.js
字号:
// Register the related command.
FCKCommands.RegisterCommand( 'Attachment', new FCKDialogCommand( 'Attachment', FCKLang.AttachmentDlgTitle, FCKPlugins.Items['attachment'].Path + 'fck_attachment.html', 340, 160 ) ) ;
// Create the "Attachment" toolbar button.
var oAttachmentItem = new FCKToolbarButton( 'Attachment', FCKLang.AttachmentBtn ) ;
oAttachmentItem.IconPath = FCKPlugins.Items['attachment'].Path + 'attachment.gif' ;
FCKToolbarItems.RegisterItem( 'Attachment', oAttachmentItem ) ;
// The object used for all Attachment operations.
var FCKAttachment = new Object() ;
// Add a new attachment at the actual selection.
FCKAttachment.Add = function( link, name )
{
if(!name) {
name=link;
}
FCK.InsertHtml("<a href='"+link+"'>"+name+"</a>") ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -