Feature #26071
closedGenerate markup for uploaded image dropped into wiki-edit textarea
0%
Description
As it is already possible to upload files by using drag n drop, it'd be a great UI improvement to immediately generate the markup for an image when dragged into a textarea. We have seen this feature at github and think it would be a great UI improvement to redmine. For example, if you drag an image into an issue's description field you'll get !image.png!
(if formatting is set to textile) or ![](image.jpg)
(if formatting is set to markdown) at the current cursor position.
I am attaching a patch that introduces this feature into redmine. Allowed are all image file types that are listed in redmine's mime_types. The behavior remains the same for all other file types / non-image file types.
Files
Related issues
Updated by Go MAEDA over 7 years ago
- Target version set to 3.4.0
I have been wanting this feature for a long time. It is a great improvement.
I tried out the patch and works very fine. I think there is no reason not to deliver this feature in upcoming 3.4.0.
Updated by Felix Gliesche over 7 years ago
- File 0001-Generate-markup-for-uploaded-image-dropped-into-wiki.patch 0001-Generate-markup-for-uploaded-image-dropped-into-wiki.patch added
A small update: This updated patch sanitizes filenames correctly.
Updated by Vipama Lucyu over 7 years ago
Worked for me at <<link removed>>
Edited by Mischa The Evil.
Updated by Jan from Planio www.plan.io over 7 years ago
- File deleted (
0001-Generate-markup-for-uploaded-image-dropped-into-wiki.patch)
Updated by Fernando Hartmann over 7 years ago
Great, could this patch support file names with spaces too? #10189
Updated by Felix Gliesche over 7 years ago
Fernando Hartmann wrote:
Great, could this patch support file names with spaces too? #10189
Yes! This patch works for filename with spaces, because it encodes the filename accordingly before generating the markup.
Updated by Jean-Philippe Lang over 7 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
Nice, thanks!
Updated by Toshi MARUYAMA over 7 years ago
- Related to Defect #10189: Inline image does not work with spaces in file name added
Updated by Go MAEDA over 7 years ago
- Related to Feature #17438: Support embedding images/files in issue description added
Updated by Go MAEDA over 7 years ago
- Related to Patch #26682: URL-escape the ! character in generated markup for dropped uploads added
Updated by Go MAEDA over 6 years ago
- Related to Feature #7979: Automatically show attached images in-line added
Updated by Go MAEDA about 6 years ago
- Has duplicate Feature #4491: Direct Image Upload in Forum added
Updated by Go MAEDA over 5 years ago
- Related to Patch #31169: Wiki syntax help for document image pasting and drag/drop embedding added