Is there a way to get Gutenberg interface on a Custom Post Type without supporting block editor?

admin2025-01-07  6

I have registered a Custom Post Type (let's call it "Book"). On this Custom Post Type, following the developer ressources, I have these parameters :

'show_in_rest'  => true,
'supports'      => array('title','editor')

Everything is working like a charm : I have all the Gutenberg interface. But when I remove the editor from… :

'supports' => array('title','editor')

…I come back to the old classic editor interface. Is there a way to avoid this ? I know this behaviour is fully intended by the WordPress team, but it doesn't suit my needs.

As I need UX consistency between the Posts interface and my Book interface, I would like to get the modern interface (see first screenshot on the top versus classic interface on the bottom) without the Gutenberg editor, which I won't use on this Custom Post Type.

Is there a hacky way to achieve this ?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736253676a143.html

最新回复(0)