FCKeditorでツールバーをカスタマイズする方法

FCKConfig.ToolbarSets["MyToolbar"] = [
['Cut','Copy','Paste','PasteText','PasteWord'],
['Undo','Redo','-','Bold','Italic','Underline','StrikeThrough'],
'/',
['OrderedList','UnorderedList','-','Outdent','Indent'],
['Link','Unlink','Anchor'],
'/',
['Style'],
['Table','Image','Flash','Rule','SpecialChar'],
['About']
] ;

というのをmyconfig.jsに書いて、

var oFCKeditor = new FCKeditor( "FCKeditor1" ) ;
oFCKeditor.Config["CustomConfigurationsPath"] = "/myconfig.js"  ;
oFCKeditor.Create() ;

っていう感じで、設定する。これで表示されるアイコンが指定できる。

http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Toolbar

http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_File

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です