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

  • Resolved Travis Ballard


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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;
    			return false;
    		return $bool;
    Plugin Author Stephen Harris


    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.