• Resolved oolleegg55

    (@oolleegg55)


    Hello everybody!
    Did somebody check compatibility of this plugin with bbPress? To be honest, I have problems with it))

    If WP deferred javaScript is activated, editor buttons are absent.
    https://yadi.sk/i/FVkbxcFNvHhko
    I made the screenshot with console because I turned on “SCRIPT_DEBUG” to true but didn’t receive errors at all.

    If I deactivate plugin, editor buttons appears.
    https://yadi.sk/i/6oKAijKkvHhAn

    Did somebody get the same problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Willy Bahuaud

    (@willybahuaud)

    Hello, bbPress print inline JavaScript requiring tinymce, jquery.ui, quicktags and more…
    It test if tinymce is undefined (this is why you don’t get any error). I don’t know why buddyPress did this inline (and not in an external file…) :

    <script>tinyMCEPreInit = {
    			baseURL: "",
    			suffix: "",
    						mceInit: {},
    			qtInit: {'bbp_reply_content':{id:"bbp_reply_content",buttons:"strong,em,link,block,del,img,ul,ol,li,code,close"}},
    			ref: {plugins:"",theme:"modern",language:""},
    			load_ext: function(url,lang){var sl=tinymce.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.js');sl.markDone(url+'/langs/'+lang+'_dlg.js');}
    		};</script>
    <script>
    var ajaxurl = "/wp-admin/admin-ajax.php";
    		( function() {
    			var init, id, $wrap;
    
    			if ( typeof tinymce !== 'undefined' ) {
    				// Fix RTL
    				tinymce.on( 'addeditor', function( event ) {
    					event.editor.rtl = event.editor.settings.rtl_ui ||
    						( event.editor.editorManager &&
    						event.editor.editorManager.i18n &&
    						event.editor.editorManager.i18n.rtl );
    				}, true );
    
    				for ( id in tinyMCEPreInit.mceInit ) {
    					init = tinyMCEPreInit.mceInit[id];
    					$wrap = tinymce.$( '#wp-' + id + '-wrap' );
    
    					if ( ( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) && ! init.wp_skip_init ) {
    						tinymce.init( init );
    
    						if ( ! window.wpActiveEditor ) {
    							window.wpActiveEditor = id;
    						}
    					}
    				}
    			}
    
    			if ( typeof quicktags !== 'undefined' ) {
    				for ( id in tinyMCEPreInit.qtInit ) {
    					quicktags( tinyMCEPreInit.qtInit[id] );
    
    					if ( ! window.wpActiveEditor ) {
    						window.wpActiveEditor = id;
    					}
    				}
    			}
    		}());</script>

    So, WP Deferred JavaScript is not natively compatible with this plugin. You can try to exclude tinymce from the defer process (using the plugin setting panel).

    Thread Starter oolleegg55

    (@oolleegg55)

    Hello!
    Thanks for answer!
    I think in this case better idea is to disable plugin for forum at all. Because crazy inline scripts can make some gotchas for me))

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bbPress compatibility’ is closed to new replies.