Skip to content

enabling image upload #177

@sinanisler

Description

@sinanisler

I am trying to enable the image upload on comments. I will set the comments user only so there is no security issue.

I tried this but didn't work. what settings I need to enable for allowing image block, gallery block and uploading.
Is there a list I can see all available settings ?

add_filter( 'blocks_everywhere_editor_settings', function( $settings ) {
	$settings['iso']['blocks']['allowBlocks'][] = 'blocks-everywhere/support-content';
	$settings['iso']['blocks']['allowBlocks'][] = ['**/imagecard'];

	return $settings;
} );


add_filter( 'blocks_everywhere_admin', '__return_true' );
add_filter( 'blocks_everywhere_admin_cap', '__return_empty_string' );

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions