• Resolved Melusine29

    (@melusine29)


    Hello

    For my current project, I allow only a few blocks of the Gutenberg editor with this function :

    function function_allowed_block_types( $allowed_block_types, $post ) {
    	return array(
    		'core/paragraph',
    		'core/image',
    		'core/heading',
    		'core/gallery',
    		'core/list',
    		'core-embed/twitter',
    	);
    }
    add_filter( 'allowed_block_types', 'function_allowed_block_types', 10, 2 );

    The TinyMCE plugin is now enabled and configured to override the classic paragraph block, but it no longer displays. I would need the name of the block in order to add it to the permissions.

    I tried adding tinymce/classic-paragraph but it doesn’t work.

    Have you already done this manipulation and do you have the name of the block?

    Thank you in advance
    Have a nice day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    The Classic Paragraph block’s “name” is tadv/classic-paragraph. The block names can be seen when you switch to Code editor from the top/right dotdotdot menu.

    Thread Starter Melusine29

    (@melusine29)

    Hi

    Thank’s for the name of the block and the trick to know its names ??

    Have a nice day

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘tinyMCE paragraph block name’ is closed to new replies.