I have been playing around with the new 3.3beta1 and tried the improved wp_editor() on the front end of my website.
Long story short, I am using bbPress and replaced the textarea with the editor. This works great when creating topics or replies but has a couple of issues I can't figure out.
If I create a post on the front end of my site using the editor in visual mode it does indeed work perfectly.
1. If I click edit on the front end, the editor visual mode ends up showing the code instead of the images.
2. Once I save the edited post, then the article ends up showing the code and not the images. (only happens on edit)
3. I have guest posting enabled on the forums. For some reason if the user is not logged in, the visual tab and upload buttons are not displayed. How do I enable visual mode + uploads for everyone including guests?
Here is the relevant snippet of code that I am using
$post = get_post($post_id, 'OBJECT'); $tabindex = bbp_get_tab_index(); $settings = array( 'wpautop' => true, 'media_buttons' => true, 'tabindex' => $tabindex ); wp_editor( esc_html($post->post_content), 'bbp_topic_content', $settings );
Any help would be greatly appreciated as this is so close to working right :)