• Bogdan

    (@bogdanguenther)


    Hi, it seems to me thet Disallow full site editing (FSE) option does not work anymore. Could you please check?

    Thank you,
    Bogdan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author room34

    (@room34)

    Hmm… I just tested it on a site running WP 6.4.3 and it does still appear to be working properly. Can you be more specific about what’s happening? There are several things that this setting does:

    1. Removes the “Edit Site” link from the admin bar at the top.
    2. Removes the “Site Editor” submenu page in the admin menu (sidebar).
    3. If the user attempts to go directly to the Site Editor URL, it kicks them to the Dashboard.
    4. Uses CSS to hide a notice in the Customizer about the Site Editor.

    Which of these things isn’t working for you?

    Thread Starter Bogdan

    (@bogdanguenther)

    Now that I took a second look I have to admit, that I confused Disallow full site editing (FSE) with Fullscreen mode. ??

    Any chance that you add a setting to disable the Fullscreen mode too?

    Thanks,
    Bogdan

    Plugin Author room34

    (@room34)

    @bogdanguenther Ha! No worries, I’m glad we got that sorted out.

    I’m not sure how feasible it would be to add the ability to disable fullscreen mode but I can look into it.

    Since that’s an interface element I could always take the blunt force approach and just hide it with some CSS, but I’m generally (but not always) trying to avoid mucking up the plugin with those kinds of workarounds.

    Thread Starter Bogdan

    (@bogdanguenther)

    I understand your hesitation. A bummer the Blockeditor has no hook for that. Here is what I am using on some of my sites, maybe it helps you to decide:

    function mn_disable_editor_fullscreen_by_default()
    {
    	$script = "window.onload = function() {
    		const isFullscreenMode = wp.data.select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' );
    		if ( isFullscreenMode ) { wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'fullscreenMode' ); } 
    	}";
    	wp_add_inline_script( 'wp-blocks', $script );
    }
    add_action( 'enqueue_block_editor_assets', 'mn_disable_editor_fullscreen_by_default' );
    
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disallow full site editing (FSE) not working anymore?’ is closed to new replies.