Skip to:
Content
Pages
Categories
Search
Top
Bottom

Only Visual editor?


  • steilenhang
    Participant

    @steilenhang

    I am using WP’s “fancy editor”, and I would like to only display the Visual editor to my users, and not HTML. I want to hide the HTML tab. Can that be done?

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

  • steilenhang
    Participant

    @steilenhang

    Does anyone have any input on this?


    Debra
    Participant

    @notebookingpages

    I’m no expert, so take this for what it’s worth and research further …
    Here’s the code I found that seems to work. Have not fully tested. Would appreciate any feedback from someone with more experience.

    In form-reply.php
    Find bbp_the_content( array( ‘context’ => ‘reply’ … and change line to
    ` ‘reply’, ‘quicktags’ => false ) ); ?>`

    In form-topic.php
    Find bbp_the_content( array( ‘context’ => ‘topic’ … and change line to
    ` ‘topic’, ‘quicktags’ => false ) ); ?>`


    Jared Atchison
    Moderator

    @jaredatch

    Use a filter instead of hacking bbPress core, that way you don’t lose your work when a new update comes out.

    In this case look at the `bbp_get_the_content()` function in `includes/common/template-tags.php`. You can use `bbp_parse_args()` to filter all the default values :)

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

You must be logged in to reply to this topic.