Skip to:
Content
Pages
Categories
Search
Top
Bottom

Empty Text toolbar?


  • Chuckie
    Participant

    @ajtruckle

    I am using latest bbPress and WordPress.

    I have just noticed when I create a forum topic that whilst my tinymce toolbar is fine, when I click the Text tab I get an empty toolbar.

    Why would that be? Is there no longer a text toolbar in WordPress?

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

  • Robin W
    Moderator

    @robin-w

    text isn’t standard on bbpress – how are you achieving this?


    Chuckie
    Participant

    @ajtruckle

    Thats a long story @robin-w.

    I use “Advanced Editor Tools” to the main TinyMCE tool bar.
    I have my own plugin that adds a couple of tweaks to the toolbar.
    I have TinyMCE Config but that is for the TinyMCE behaviour.
    I think I have some custom hooks too.

    
    // ==============================================================
    // Tweak MCE Toolbars (bbPress Editor)
    function ajt_enable_visual_editor( $args = array() ) {
      global $bsp_style_settings_form ;
      $args['tinymce'] = true;
      $args['teeny'] = false;
      if ($bsp_style_settings_form['Show_editorsactivate'] == 1)  $args['quicktags'] = false;
      return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'ajt_enable_visual_editor' );
    // ==============================================================

    Chuckie
    Participant

    @ajtruckle

    In bsp 9. Show editors is set to text only radio. Because my own / advanced editor tools kicks in to show the tinymce toolbar. But that normal one (like in your screen shot) is now empty. Never was before.


    Robin W
    Moderator

    @robin-w

    sorry, my brain was being fried – Visual is not standard but text is.

    bbpress 2.6.7 and after has a bug

    try and add this fix to your functions file

    if( !function_exists( 'bbpress_browser_supports_js' ) ){
    	function bbpress_browser_supports_js() {
    		echo '<script>document.body.classList.remove("no-js");</script>';
    	}
    	add_action( 'wp_footer', 'bbpress_browser_supports_js' );
    }

    Chuckie
    Participant

    @ajtruckle

    Thanks. I added it underneath the existing code and purged my cache but no difference. So I took the code out again.

    Any other thoughts?


    Chuckie
    Participant

    @ajtruckle

    Could it be related to Autoptimize?


    Robin W
    Moderator

    @robin-w

    I can only suggest standard fault finding viz

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    My site with wordpress 5.9, bbpress 2.6.9 and style pack 4.9.1 (which has the bug fix automatically in it) with the visual editor turned on – all works fine


    Chuckie
    Participant

    @ajtruckle


    Robin W
    Moderator

    @robin-w

    great 🙂

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