Title: [Plugin: WP-Markdown] Breaks visual editor for pages/posts
Last modified: August 20, 2016

---

# [Plugin: WP-Markdown] Breaks visual editor for pages/posts

 *  Resolved [Travis Ballard](https://wordpress.org/support/users/ansimation/)
 * (@ansimation)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-markdown-breaks-visual-editor-for-pagesposts/)
 * I am using WP-Markdown mainly for my bbPress forum, but when I go into the settings
   and enable it for posts and pages, it does the job well until I go to edit a 
   post. Then my visual editor is MIA and I’m left with only the HTML editor. I’ve
   disabled all plugins but WP-Markdown and switched to the TwentyEleven theme and
   the issue still persists. If I go back into the settings and disable it for posts/
   pages, my visual editor returns.
 * [http://wordpress.org/extend/plugins/wp-markdown/](http://wordpress.org/extend/plugins/wp-markdown/)

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

 *  Thread Starter [Travis Ballard](https://wordpress.org/support/users/ansimation/)
 * (@ansimation)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-markdown-breaks-visual-editor-for-pagesposts/#post-2894116)
 * Isolated it to WordPress_Markdown::can_richedit()
 * If I return true there instead of fetching the current screen it gives me my 
   rich editor back for ‘posts’ and ‘pages’ when WP-Markdown is enabled on those
   post types.
 *     ```
       public function can_richedit($bool){
               return true;
       		$screen = get_current_screen();
       		$post_type = $screen->post_type;
       		if($this->is_Markdownable($post_type))
       			return false;
   
       		return $bool;
       	}
       ```
   
 *  Plugin Author [Stephen Harris](https://wordpress.org/support/users/stephenh1988/)
 * (@stephenh1988)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-markdown-breaks-visual-editor-for-pagesposts/#post-2894130)
 * This is disabled on purpose since switching between HTML and Visual modes, from
   memory, breaks the Markdown code.
 * As you can see above – if you don’t select Markdown for posts/pages then you’ll
   still able to use the visual editor.

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

The topic ‘[Plugin: WP-Markdown] Breaks visual editor for pages/posts’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-markdown_d5ecec.svg)
 * [WP-Markdown](https://wordpress.org/plugins/wp-markdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-markdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-markdown/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-markdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-markdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-markdown/reviews/)

## Tags

 * [visual editor](https://wordpress.org/support/topic-tag/visual-editor/)

 * 2 replies
 * 2 participants
 * Last reply from: [Stephen Harris](https://wordpress.org/support/users/stephenh1988/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-markdown-breaks-visual-editor-for-pagesposts/#post-2894130)
 * Status: resolved