Home > エディタ > TinyMCE Advancedの日本語フォントの追加

TinyMCE Advancedの日本語フォントの追加

http://stand-by-ready.net/20100214081528 TinyMCE Init Setting プラグインをダウンロードphpファイルに
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[code]
$usefonts = array(
'MS Pゴシック'  => 'MS Pゴシック',
'MS P明朝'      => 'MS P明朝',
'MS UI Gothic'     => 'MS UI Gothic',
'MS ゴシック'    => 'MS ゴシック',
'MS 明朝'        => 'MS 明朝',
'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'
);
[/code]
を追加 編集したら/wp-content/pluginsに適当なフォルダ(ab_tinymce_init_settingなど)を作ってアップロードします。 プラグイン>インストール済み のリストに挙がってくるので有効化します。 次に、CSS編集ボタンを押したときに出てくるダイアログのフォントを追加しましょう。/wp-content/plugins/tinymce-advanced/mce/style/js/props.jsを編集します。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[code]
var defaultFonts = "" +
"MS Pゴシック;" +
"MS P明朝;" +
"MS UI Gothic;" +
"MS ゴシック;" +
"MS 明朝;" +
"Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" +
"Times New Roman, Times, serif=Times New Roman, Times, serif;" +
"Courier New, Courier, mono=Courier New, Courier, mono;" +
"Times New Roman, Times, serif=Times New Roman, Times, serif;" +
"Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" +
"Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" +
"Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif";
[/code]
例によって日本語フォントを上に追加しました。 以上で上部とCSS編集ボタンのフォント選択に日本語フォントが追加されます。反映されない場合は一度TinyMCE Advancedを無効にしてテキストエリアを表示、再度TinyMCE Advancedを有効にするなどしてみてください。 参考URL: TinyMCE Advanced+日本語フォント追加 | WordPressでホームページ制作 TinyMCE Init Setting プラグイン « Just Another WPMU weblog

Comments:0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://chiko.moo.jp/wordpress/tips/2011/06/16/tinymce-advanced%e3%81%ae%e6%97%a5%e6%9c%ac%e8%aa%9e%e3%83%95%e3%82%a9%e3%83%b3%e3%83%88%e3%81%ae%e8%bf%bd%e5%8a%a0/trackback/
Listed below are links to weblogs that reference
TinyMCE Advancedの日本語フォントの追加 from wordpressのまとめ

Home > エディタ > TinyMCE Advancedの日本語フォントの追加

Search
Feeds
Meta

Return to page top