プロジェクト

全般

プロフィール

Vote #78511

完了

Generate markup for uploaded image dropped into wiki-edit textarea

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
119
issue_org_id:
26071
author_id:
121548
assigned_to_id:
1
comments:
15
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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 @@ (if formatting is set to markdown) at the current cursor position.

!9We0m7yICa.gif!

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.


journals

Very nice improvement!
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
A small update: This updated patch sanitizes filenames correctly.

--------------------------------------------------------------------------------
Worked for me at <<link removed>>

Edited by _Mischa The Evil_.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Great, could this patch support file names with spaces too? #10189
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Nice improvement indeed. LGTM.
--------------------------------------------------------------------------------
Nice, thanks!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,10189,Inline image does not work with spaces in file name
relates,Closed,17438,Support embedding images/files in issue description
relates,Closed,26682,URL-escape the ! character in generated markup for dropped uploads
relates,Closed,7979,Automatically show attached images in-line
relates,Closed,31169,Wiki syntax help for document image pasting and drag/drop embedding
duplicates,Closed,4491,Direct Image Upload in Forum

Admin Redmine さんが約4年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン3.4.0_119 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0