zbq
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: Using TinyMCE inside tmplatesHi 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
In reply to: How to integrate the tinymce editor in the public pages?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
In reply to: tinyMCE / the_editor() in a pageHi 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)