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

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

    @spinningplays

    Participant

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

    sorry for late answer

    @robin-w

    Moderator

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

    @spinningplays

    Participant

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

    @robin-w

    Moderator

    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

    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

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

    Functions files and child themes – explained !

    @spinningplays

    Participant

    Same problem as explained before :/

    @robin-w

    Moderator

    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

    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

    @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