Title: zbq's Replies | WordPress.org

---

# zbq

  [  ](https://wordpress.org/support/users/zbq/)

 *   [Profile](https://wordpress.org/support/users/zbq/)
 *   [Topics Started](https://wordpress.org/support/users/zbq/topics/)
 *   [Replies Created](https://wordpress.org/support/users/zbq/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/zbq/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/zbq/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/zbq/engagements/)
 *   [Favorites](https://wordpress.org/support/users/zbq/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Using TinyMCE inside tmplates](https://wordpress.org/support/topic/using-tinymce-inside-tmplates/)
 *  [zbq](https://wordpress.org/support/users/zbq/)
 * (@zbq)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/using-tinymce-inside-tmplates/#post-989611)
 * Hi apljdi,
    It seems not work in my plugin, when I want to switch the editor 
   from HTML to VISUAL, there is an error. And I’m sure I have invoked the functions
   as:
 *     ```
       add_action('admin_head',array(&$this, 'enqueue_editor_head'));
       add_action('admin_menu',array(&$this, 'the_editor_enqueu'));
       ```
   
 * And my another question is how to invoke the WP editor in a template (or public
   pages not admin page)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [How to integrate the tinymce editor in the public pages?](https://wordpress.org/support/topic/how-to-integrate-the-tinymce-editor-in-the-public-pages/)
 *  Thread Starter [zbq](https://wordpress.org/support/users/zbq/)
 * (@zbq)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/how-to-integrate-the-tinymce-editor-in-the-public-pages/#post-1175195)
 * I think I have used the incorrect hook, then I changed it as following:
 *     ```
       add_filter('wp_head','zd_multilang_tinymce');
       function zd_multilang_tinymce() {
       	wp_admin_css('thickbox');
       	wp_print_scripts('jquery-ui-core');
       	wp_print_scripts('jquery-ui-tabs');
       	wp_print_scripts('post');
       	wp_print_scripts('editor');
       	add_thickbox();
       	wp_print_scripts('media-upload');
       	if (function_exists('wp_tiny_mce')) wp_tiny_mce();
       // use the if condition because this function doesn't exist in version prior to 2.7
       }
       ```
   
 * But it still not work, I found the css file has been invoked, but the editor 
   was not romanced, it was still a normal textarea.
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [tinyMCE / the_editor() in a page](https://wordpress.org/support/topic/tinymce-the_editor-in-a-page/)
 *  [zbq](https://wordpress.org/support/users/zbq/)
 * (@zbq)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/tinymce-the_editor-in-a-page/#post-1060187)
 * Hi d.busby
 * I have the similar problem with you. It give me an error as “switchEditors not
   defined”
 * And the css seems not work.
    Have you solved it yet?

Viewing 3 replies - 1 through 3 (of 3 total)