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] Drag and drop image in comment #14291

Closed
meaz opened this issue Jan 10, 2021 · 6 comments
Closed

[Feature Request] Drag and drop image in comment #14291

meaz opened this issue Jan 10, 2021 · 6 comments
Labels
topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality

Comments

@meaz
Copy link

meaz commented Jan 10, 2021

Description

It would be awesome if a user could directly drag and drop an image from his computer into a comment.
At the moment, the only way to embed an image in a comment is to upload the image somwhere on the web, then add its link into the comment.

@noerw
Copy link
Member

noerw commented Jan 11, 2021

This is not correct, each comment has an attachment form, where images can be dragged into. This image can then be referenced in the markdown. Do you mean to simplify this process?

@meaz
Copy link
Author

meaz commented Jan 12, 2021

Yes I have this attachment form, but it would be nice to be able to embed the image directly into the post, for example when we explain something.

@noerw noerw added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Jan 17, 2021
@moqmar
Copy link
Contributor

moqmar commented May 14, 2021

We had this in https://codeberg.org/Codeberg/Community/issues/9 as well - how shall attachments be referenced if the issue/comment hasn't been created yet? AFAIK, the URL is unknown then - would it be a possible solution to drag images from the attachment section into the text area? That would make it a lot easier & more intuitive.

@tyroneyeh
Copy link
Contributor

tyroneyeh commented Jul 6, 2022

This #20263 edit should fix the issue
Demo

Screen.Recording.2022-06-29.at.23.13.18.mov

@meaz
Copy link
Author

meaz commented Jul 6, 2022

that is perfect!

@wxiaoguang
Copy link
Contributor

Great thanks to tyroneyeh, and after many refactoring PRs, it is implemented in main branch and will be available in next release (1.23). You could also use main-nightly build to test the enhancement.

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

5 participants