WordPressで記事を作成・編集する際に fckeditor-for-wordpress-plugin を最近使っている。
デフォルトでスタイルがいくつか用意されているが、もっとスタイルを追加したかったので調べてみました。
編集するファイルは、
/plugins/fckeditor-for-wordpress-plugin/ckeditor/plugins/stylescombo/styles/default.js
たとえば、スタイルシートで使う clear: both; を追加したい場合、下記のコードを適当な場所に入れてやります。
{name:'Clear both',element:'p',styles:{'clear':'both'}}
こんな感じです。
fckeditor-for-wordpress-plugin のバージョンは 3.1.1。
WordPress 2.8.6 で確認。
- Newer: TinyMCE AdvancedとPS Disable Auto Formatting
- Older: Googleカレンダーを入れてみる
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://www.wiz.gr.jp/wordpress/171/trackback
- Listed below are links to weblogs that reference
- fckeditor-for-wordpress-pluginのcssをカスタマイズ from WIZ-WORDPRESS│EC-CUBE-LABO
