Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Text Editor and use of HTML

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

  • Robin W
    Moderator

    @robin-w

    in which part of the site (front end/backend) and for which users (all/keymaster etc.)


    spinningplays
    Participant

    @spinningplays

    Part: front end
    User: everybody but not for the keymaster (administrator)

    sorry for late answer


    Robin W
    Moderator

    @robin-w

    do you know what you did to enable the visual editor – just changes how I give you the solution


    spinningplays
    Participant

    @spinningplays

    I installed TinyMCE Advanced and BuddyPress Forum Editor (BP Forum Editor enabled the visual tab I think)


    Robin W
    Moderator

    @robin-w

    This should work

    add_filter( 'bbp_after_get_the_content_parse_args', 'rew_disable_text_editor' );
    
    //editor bbpress
    function rew_disable_text_editor( $args = array() ) {
    	$args['tinymce'] = true;
    	$args['quicktags'] = false;
    	if( current_user_can('administrator')) $args['quicktags'] = true;
    	return $args;
    }

    add this to your functions file


    spinningplays
    Participant

    @spinningplays

    I’ve added it to bbpress/includes/core/functions.php, but it doesnt work. It only redirects me as admin to the homepage when I click on the tabs.


    Robin W
    Moderator

    @robin-w

    sorry – it needs to go in your theme’s functions file

    Functions files and child themes – explained !


    spinningplays
    Participant

    @spinningplays

    Same problem as explained before :/


    Robin W
    Moderator

    @robin-w

    ok, are you using my style pack

    bbp style pack

    if so the topic/reply form tab has options to do this.

    If not, consider installing it !


    alessio17pa
    Participant

    @alessio17pa

    Good morning, I have a similar problem. Keymasters can use tinymce advance instead all others can not. How should I do? Thank you


    theicebooky
    Participant

    @theicebooky

    @robin-w

    Thank you so much!!!!

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