Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • But beware, this plugin has crucial dependence from WordPress core scripts, and next time when WP team will change them, you might have to find another solution. Anyway, besides my gratitude to plugin’s developers i wonder why so simple solution still wasn’t implemented

    • This reply was modified 3 years, 4 months ago by mironezes.
    • This reply was modified 3 years, 4 months ago by mironezes.

    Hi everyone! Yes, i found the solution, but its requires make some changes in scripts.js file in plugin`s folder. So:

    CHANGE THIS:

    	$('<div />').attr('id', 'bbconv-editor').attr('style', 'display: none').appendTo('body');
    	wp.editPost.initializeEditor('bbconv-editor', 'post', 1, settings);

    WITH THIS:

    const settings = {
    		editorMode: 'visual',
    		panels: {
    			'post-status': {
    				opened: true
    			}
    		},
    		features: {
    			fixedToolbar: false,
    			welcomeGuide: true,
    			fullscreenMode: true,
    			showIconLabels: false,
    			themeStyles: true,
    			showBlockBreadcrumbs: true,
    			welcomeGuideTemplate: true
    		},
    		hiddenBlockTypes: [],
    		preferredStyleVariations: {},
    		localAutosaveInterval: 15
    	};
    
    	$('<div />').attr('id', 'bbconv-editor').attr('style', 'display: none').appendTo('body');
    	wp.editPost.initializeEditor('bbconv-editor', 'post', 1, settings);
    • This reply was modified 3 years, 4 months ago by mironezes.
    • This reply was modified 3 years, 4 months ago by mironezes.
Viewing 2 replies - 1 through 2 (of 2 total)