Automattic / Automattic/blocks-everywhere

enabling image upload

Open
#177 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
94
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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 ?

```php

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](https://github.com/Automattic/blocks-everywhere/assets/1686324/cee011d8-270f-4db9-8d70-a551fd819baf)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the blocks_everywhere_editor_settings filter and its allowBlocks entries, then determine how comment users, image and gallery blocks, and uploads are configured. Done means identifying the required settings and documenting or implementing a supported configuration, with the available settings listed clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.