• Resolved WPabmm

    (@aboutm2)


    I use the Jetpack plugin to set Markdown. It works well with bbPress but not with BuddyPress Docs or BuddyPress.

    I guess this is bevause of the Docs use of the TinyMCE front-end doc editing?

    Is there a way to make this amenable to Markdown integration or if not replace the Docs TinyMCR with the wordpress editor that integrates with Jetpack’s Markdown settings?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Cavins

    (@dcavins)

    This is an interesting question. We use wp_editor() to create the editor, so I’m not sure what the difference would be. I can take a look at bbPress, but I wouldn’t change the editor implementation lightly, so don’t be waiting on an imminent change.

    Thread Starter WPabmm

    (@aboutm2)

    Thank you for looking into this, I appreciate that would be a big change so not expecting something imminently. Great plugin though

    Antor Sheikh

    (@seoantor123)

    Replace TinyMCE with the WordPress Editor: If you want to use Jetpack’s Markdown feature, the easiest solution might be to replace the TinyMCE editor with the standard WordPress editor for BuddyPress Docs. This can be done by using a custom plugin or snippet that disables TinyMCE and forces BuddyPress Docs to use the default editor (which would be compatible with Markdown).

    Here’s an example of how to replace the editor in BuddyPress Docs with the WordPress editor:

    function replace_buddypress_docs_editor($editor) {
    if (is_user_logged_in() && bp_is_docs()) {
    remove_filter('bp_docs_template_part', 'bp_docs_get_editor');
    add_filter('bp_docs_template_part', 'wp_editor');
    }
    }
    add_action('bp_template_redirect', 'replace_buddypress_docs_editor');

    This code is just a simple idea of replacing the TinyMCE editor with the default WordPress editor.

    Thread Starter WPabmm

    (@aboutm2)

    Thank you this is much appreciated 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.