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

Feature Request: Show preview image in file block #207

Open
wpfangirl opened this issue Dec 12, 2019 · 2 comments
Open

Feature Request: Show preview image in file block #207

wpfangirl opened this issue Dec 12, 2019 · 2 comments

Comments

@wpfangirl
Copy link

I wrote this up in detail over at WordPress/gutenberg#19077. WordPress can show icons (for other file types) or preview images (for PDFs on sites with Imagick) using wp_get_attachment_image( $attachment_id, $size, $icon, $attr) and it would be great to be able to do this with the file block.

I would envision this as a vertically stacked layout:

Image or Icon
Text Link
Download Button

And you'd probably want it to have alignment (does it now?) so you could float it next to a block of text or another file. (Ideally I'd like to be able to create a document gallery, but that's presumably outside the scope of enhancing the file block.)

@wpfangirl wpfangirl changed the title Feature Request: Show previw image in file block Feature Request: Show preview image in file block Dec 12, 2019
@phpbits
Copy link
Collaborator

phpbits commented Dec 20, 2019

@wpfangirl Seems like core devs will be working on this feature. I'm following the discussion and if ever core devs decided to not include this feature then I'll add it on EditorsKit. Thanks a lot!

@wpfangirl
Copy link
Author

I saw that. Thanks so much for being willing to jump in!

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

No branches or pull requests

2 participants