Movable Type Open Souce, WordPress, MODx, NucleusCMS, ZenCart, MediaWiki等様々なネットシステムで多くの利用者のいる Javascript HTML WYSIWYG editor『FCKeditor』の後継である『CKEditor』を単に日本語ローカライズするだけではなく、コアハックや独自プラグイン開発までも含め、各CMSでのCKEditorを利用した開発者が集い、成果を集約していくためのプロジェクトです。
■概要
CKEditor3.0.1の"ckeditor/ckeditor.js"を日本語ローカライズしたものです。
1.0では、"ckeditor.js"に加えましたが、config.jsに書いた方が開発者の意図に沿っており、
バージョンアップしてもそのまま使えということで、1.1以降は"config.js"に修正を加えることにしました。
■修正点
下記3カ所
▼フォントサイズを絶対から相対への変更
フォントサイズを"px"から、"%"に変更しました。
◇元ソース
i.fontSize_sizes='8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px';
◇修正ソース
i.fontSize_sizes='80%/80%;90%/90%;100%/100%;110%/110%;120%/120%;130%/130%;140%/140%;150%/150%;160%/160%;170%/170%;180%/180%;190%/190%;200%/200%';
▼日本語書体の追加
日本語環境で主に使われる下記の書体を追加しました。
* MS UI Gothic/MS UI Gothic, Meiryo, Meiryo UI, Osaka
* MS ゴシック/MS Gothic, Osaka-Mono
* MS Pゴシック/MS PGothic, Osaka
* MS P明朝/MS PMincho, Saimincho
◇元ソース
i.font_names='Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif';
◇修正ソース
i.font_names='MSゴシック/MS Gothic, Osaka-Mono, monospace; MS Pゴシック/MS PGothic, Osaka, sans-serif; MS UI Gothic/MS UI Gothic, Meiryo, Meiryo UI, Osaka, sans-serif; MS P明朝/MS PMincho, Saimincho, serif; Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif';
▼非推奨要素を推奨要素に変更
strike→del
u→ins
■修正方法
元ソースは触らず、config.jsの末尾に下記ソースを加えて、視認性、カスタマイズ性を高めてあります。
■使い方
解凍したできたフォルダー内の"config.js"をCKEditor3.0.1の"ckeditor/config.js"と入れ替えてください。それだけです。
利用者各自の責任においてお使いください。
PS:ファイルをまとめていただいたpedrokentaさん、ありがとうございました。
2009年11月15日(日)06:36 CKEditor3.01ja1.1をリリースしました。