Last active
August 29, 2015 13:55
-
-
Save niao70/8702574 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//functions.php | |
//編集画面用スタイルシート | |
add_editor_style('./css/my_editors_styles.css'); | |
//initArrayを編集 | |
function my_editor_settings( $initArray ) { | |
$initArray['body_class'] = 'editor_mystyle';//編集画面に独自のクラスをつける | |
$initArray['theme_advanced_buttons3'] = 'hr'; | |
//<hr>を挿入するボタンを表示、などということもできます。 | |
return $initArray; | |
} | |
//tiny_mce_before_initに加える | |
add_filter( 'tiny_mce_before_init', 'my_editor_settings' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://blog.factory70.com/make-websites/wp-visual-editor-style