blocks-everywhere
blocks-everywhere copied to clipboard
enabling image upload
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' );
is this possible ?
can I make the image upload possible for logged user comments ?
I made 50% work made iamge block available but how to make it upload possible. hmmmm
add_filter(` 'blocks_everywhere_editor_settings', function( $settings ) {
$settings['iso']['blocks']['allowBlocks'][] = 'blocks-everywhere/support-content';
$settings['iso']['blocks']['allowBlocks'][] = 'core/image';
return $settings;
} );
will roll with this for now attachment plugin :)
not great not terrible.