Calling visual editor via the_editor() from a custom page doesn’t work
-
Hey all,
I have been having problems getting this to work. I am using WP 2.6.2. I have added a theme page in order to create a page to manage a static table on my website. The theme page addition works fine. What I’m having problems with is getting the WYSIWYG editor to appear — only the HTML editor will come up. When I click on “Visual” nothing happens. Here is the code I’m using:
wp_enqueue_script('post'); if ( user_can_richedit() ) { wp_enqueue_script('editor'); } add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('word-count'); ?> <div class="wrap"> <div id="postdivrich" class="postarea"> <h2>Front Content Settings</h2> <form method="post"> <h3><label for="content">Edit Front Content</label></h3> <?php the_editor($updated_value, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2); ?> <p><div class="submit"><input type="submit" name="save_front_content_options" value="<?php _e('Save Options', 'save_youtuber_options') ?>" style="font-weight:bold;" /></div></p> </form> </div>
The function user_can_richedit() returns true.
Can anybody see what I need to do in order to get the “Visual” editor working correctly?
Thanks,
Ryan
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Calling visual editor via the_editor() from a custom page doesn’t work’ is closed to new replies.