fckplugin.js

来自「对fckeditor做的插件支持」· JavaScript 代码 · 共 13 行

JS
13
字号
// Register the related command. 
// RegisterCommand takes the following arguments: CommandName, DialogCommand 
// FCKDialogCommand takes the following arguments: CommandName, Dialog Title, Path to HTML file, Width, Height 
 
FCKCommands.RegisterCommand( 'OpenWord', new FCKDialogCommand( 'OpenWord', FCKLang.OpenWordDlgTitle,  
FCKPlugins.Items['OpenWord'].Path + 'openword.html', 340, 250 ) ) ; 

// Create the toolbar button. 
// FCKToolbarButton takes the following arguments: CommandName, Button Caption 
var oOpenWordItem = new FCKToolbarButton( 'OpenWord', FCKLang.OpenWord ) ;
oOpenWordItem.IconPath = FCKPlugins.Items['OpenWord'].Path + 'word.gif' ;
FCKToolbarItems.RegisterItem( 'OpenWord', oOpenWordItem ) ;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?