返信遅れてすいません。
ファイルではなく、データベースに保存されています。
[管理画面] - [システムと設定] - [記事ブロックエディター設定]
というところでできます。
プリセットが3つ用意されていますが、最後の「カスタム」で、自分の好きなような設定ができます。ちょっとヘルプが少ないのですが
・ツールバーを1〜3行設定
・使えるタグの設定
・使えるフォントの設定
・使えるボタンの設定(太字、フォント色からテーブルの挿入まで)
などの設定ができます。
参考までに、当 concrete5-japan.org サイトで設定しているファイルの例はこちら
theme : "concrete",
plugins: "inlinepopups,spellchecker,safari,advlink",
editor_selector : "ccm-advanced-editor",
spellchecker_languages : "+English=en",
theme_concrete_buttons1 : "undo,redo,pastetext,pasteword,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect",
theme_concrete_buttons2 : "formatselect,bullist,numlist,|,outdent,indent,|,hr,charmap,|,forecolor,backcolor,|,link,unlink,anchor",
theme_concrete_buttons3 : "image,cleanup,code",
theme_concrete_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite",
theme_concrete_toolbar_align : "left",
theme_concrete_styles: "Note=ccm-note",
spellchecker_languages : "+English=en"
こちらは、シンプルな設定の例です。ボタンを最小限に制限しています。
theme : "concrete",
plugins: "inlinepopups,spellchecker,safari,advlink",
editor_selector : "ccm-advanced-editor",
spellchecker_languages : "+English=en",
theme_concrete_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,styleselect",
theme_concrete_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,forecolor",
theme_concrete_blockformats : "p,h2,h3",
theme_concrete_toolbar_align : "left",
theme_concrete_styles: "Note=ccm-note"
下記は、concrete5 がカスタム設定のサンプルコードです。
ひと通りの設定コードが含まれています。
theme : "concrete",
plugins: "inlinepopups,spellchecker,safari,advlink",
editor_selector : "ccm-advanced-editor",
theme_concrete_buttons1 : "undo,redo,pastetext,pasteword,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect",
theme_concrete_buttons2 : "formatselect,bullist,numlist,|,outdent,indent,|,hr,charmap,|,forecolor,backcolor,|,link,unlink,anchor",
theme_concrete_buttons3 : "image,cleanup,code",
theme_concrete_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite",
theme_concrete_toolbar_align : "left",
theme_concrete_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
theme_concrete_font_sizes : "1,2,3,4,5,6,7",
theme_concrete_styles: "Note=ccm-note",
spellchecker_languages : "+English=en"
これらの意味は、英語で申し訳ないですが、下記から参照できます。
http://www.tinymce.com/wiki.php/Configuration3x
また、テーマファイルに typography.css を記述すると、その CSS ファイルを TinyMCE が自動的に読みこむようになります。
そこにカスタムクラスを生成すると、自動的に style の選択メニューに出てこさせることも可能です。
Posted on 6月 09, 2014 at 11:24 午前
|