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

Allow Ctrl+V to paste new images into Wiki #17231

Closed
mappu opened this issue Oct 5, 2021 · 5 comments
Closed

Allow Ctrl+V to paste new images into Wiki #17231

mappu opened this issue Oct 5, 2021 · 5 comments
Labels
topic/ui-interaction Change the process how users use Gitea instead of the visual appearance topic/wiki

Comments

@mappu
Copy link
Contributor

mappu commented Oct 5, 2021

Feature Description

When editing an issue comment, you can paste in new image attachments. It's a great low-friction way to make an issue more understandable, especially for screenshots.

It would be great to have this same capability to add images to Wiki documents.

Right now, you can only either (A) clone the git repo and add them manually, which is difficult for non-developer staff; or (B) create a dummy-issue for image uploads and copy the links into the wiki, which is a strange workaround

Screenshots

No response

@noerw
Copy link
Member

noerw commented Oct 8, 2021

The underlying issue is, that images on issues and comments are stored in an attachment storage backend (local filesystem, s3, ...), and the data model for attachments currently does not support linking an attachment to a wiki page, so the logic of simple file uploads can not be trivially ported to the wiki.

This should be easy to extend, though we should consider whether it is good design to have images of the wiki stored externally to the wiki git repo, as it won't be selfcontained anymore.

@wupei1024
Copy link

wupei1024 commented Apr 21, 2022

The underlying issue is, that images on issues and comments are stored in an attachment storage backend (local filesystem, s3, ...), and the data model for attachments currently does not support linking an attachment to a wiki page, so the logic of simple file uploads can not be trivially ported to the wiki.

This should be easy to extend, though we should consider whether it is good design to have images of the wiki stored externally to the wiki git repo, as it won't be selfcontained anymore.

to upload attachments with md file to same reposistory is useful.
pull all file to localhost and compile .md & images to html website

@KiaraGrouwstra
Copy link
Contributor

the wikis are just git repos, right? couldn't they store image files?

@ivptr
Copy link

ivptr commented Dec 22, 2022

Yes, wikis are Git repos: #1426 (comment)

The whole idea is to allow non-tech staff to edit documentation in Wiki, add screenshots, other attachments etc.

Currently this is not possible because images need to be committed to main repository first and then its path referenced in Wiki.

This is related to #574.

@wxiaoguang
Copy link
Contributor

It's duplicate of #574, as long as #574 could be done, there is no problem for Ctrl+V

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2023
@delvh delvh added topic/ui-interaction Change the process how users use Gitea instead of the visual appearance and removed kind/usability labels Oct 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui-interaction Change the process how users use Gitea instead of the visual appearance topic/wiki
Projects
None yet
Development

No branches or pull requests

8 participants