Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enabling image upload #177

Open
sinanisler opened this issue May 25, 2023 · 3 comments
Open

enabling image upload #177

sinanisler opened this issue May 25, 2023 · 3 comments

Comments

@sinanisler
Copy link

sinanisler commented May 25, 2023

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

@sinanisler
Copy link
Author

is this possible ?

can I make the image upload possible for logged user comments ?

@sinanisler
Copy link
Author

sinanisler commented Dec 3, 2023

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;
} );

image

@sinanisler
Copy link
Author

sinanisler commented Dec 3, 2023

will roll with this for now attachment plugin :)

not great not terrible.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant