fckplugin.js
来自「jeecms网站管理系统,jeecms网站管理系统,jeecms网站管理系统」· JavaScript 代码 · 共 23 行
JS
23 行
// 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 + =
减小字号Ctrl + -
显示快捷键?