Created
May 9, 2011 04:56
-
-
Save miya0001/962076 to your computer and use it in GitHub Desktop.
ビジュアルエディターに必要なJavaScriptやCSSをロードする
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
<?php | |
function admin_head_editor() | |
{ | |
wp_enqueue_script('common'); | |
wp_enqueue_script('jquery-color'); | |
wp_print_scripts('editor'); | |
if (function_exists('add_thickbox')) add_thickbox(); | |
wp_print_scripts('media-upload'); | |
if (function_exists('wp_tiny_mce')) wp_tiny_mce(); | |
wp_admin_css(); | |
wp_enqueue_script('utils'); | |
do_action("admin_print_styles-post-php"); | |
do_action('admin_print_styles'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment