function black_studio_tinymce_footer_scripts()
{
    // Setup for WP 3.1 and previous versions
    if (get_bloginfo('version') < "3.2") {
        if (function_exists('wp_tiny_mce')) {
            wp_tiny_mce(false, array());
        }
        if (function_exists('wp_tiny_mce_preload_dialogs')) {
            wp_tiny_mce_preload_dialogs();
        }
    } else {
        if (get_bloginfo('version') < "3.3") {
            if (function_exists('wp_tiny_mce')) {
                wp_tiny_mce(false, array());
            }
            if (function_exists('wp_preload_dialogs')) {
                wp_preload_dialogs(array('plugins' => 'wpdialogs,wplink,wpfullscreen'));
            }
        } else {
            wp_editor('', 'black-studio-tinymce-widget');
        }
    }
}
Esempio n. 2
0
function wp_quicktags()
{
    global $tinymce_version;
    wp_preload_dialogs(array('plugins' => 'wpdialogs,wplink,wpfullscreen'));
    if (!user_can_richedit()) {
        wp_enqueue_style('tinymce-buttons', includes_url('js/tinymce/themes/advanced/skins/wp_theme/ui.css'), array(), $tinymce_version);
        wp_print_styles('tinymce-buttons');
    }
}
 /**
  * Enqueue footer scripts for WordPress prior to 3.3
  *
  * @uses wp_tiny_mce()
  * @uses wp_preload_dialog()
  *
  * @return void
  * @since 2.0.0
  */
 public function wp_pre_33_admin_print_footer_scripts()
 {
     if (function_exists('wp_tiny_mce')) {
         wp_tiny_mce(false, array());
     }
     if (function_exists('wp_preload_dialogs')) {
         wp_preload_dialogs(array('plugins' => 'wpdialogs,wplink,wpfullscreen'));
     }
 }
 function admin_footer()
 {
     wp_preload_dialogs(array('plugins' => 'safari,inlinepopups,spellchecker,paste,wordpress,media,fullscreen,wpeditimage,wpgallery,tabfocus'));
 }