https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-11-27T10:57:52ZRedmineRedmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=124892009-11-27T10:57:52ZStuart Mathews
<ul></ul><p>I think that you are absolutly right Alexey, I run a team where we get bugs each day and we are always coming short when it comes to having good descriptions of the bugs - especially if they are on a specific screen or page - we need a way to copy/past screenshots!</p>
<p>Anyone else with me on this?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=124912009-11-27T12:38:36ZKamil .
<ul></ul><p>+1</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=125062009-11-28T10:58:13ZJames Bernard
<ul></ul><p>+1</p>
<p>This would be awesome.<br />I run a team where we like using screenshots for better understanding between us and the current way for doing that in Redmine is too heavy.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=125652009-11-28T16:55:27ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Here is a quickly written plugin that let users paste one screenshot on the issue form.<br />The screenshot is saved as a png file (screenshot.png) attached to the issue.</p>
<p>It uses an applet from <a class="external" href="http://www.redmountainsw.com/wordpress/archives/applet-for-submitting-screenshot">http://www.redmountainsw.com/wordpress/archives/applet-for-submitting-screenshot</a>.</p>
<p>Tested with Firefox 3 (OK), Safari 3 (OK), IE6 (doesn't seem to work).</p>
<p>Requires latest trunk (tested with <a class="changeset" title="Adds 2 buttons to easily reorder selected columns (#4272)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3106">r3106</a>). Just unzip in <code>vendor/plugins</code> and restart.<br />Feedback is welcome.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=125662009-11-28T16:55:45ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>File</strong> <a href="/attachments/2846">redmine_screenshot_paste.zip</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2846/redmine_screenshot_paste.zip">redmine_screenshot_paste.zip</a> added</li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=125712009-11-29T10:06:42ZAndrew Chaika
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>Here is a quickly written plugin that let users paste one screenshot on the issue form.<br />...<br />Feedback is welcome.</p>
</blockquote>
<p>I have tested this plugin on IE8 and Chrome 3, it works well. But one remark - attachment name is always 'screenshot.png', when I add a second screenshot (in comment) I get 2 attachments with same names. It will be better to use unique names, for example 'screenshot_<num>.png'. And maybe plugin could automatically add <img src="screenshot_&lt;num&gt;.png" alt="" /> to issue description/comment body.<br />A drag and drop functionality when uploading existing images or documents will be useful too and this can be done with java applet too.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=125722009-11-29T11:12:56ZAndrew Chaika
<ul><li><strong>File</strong> <a href="/attachments/2847">simageuploadapplet.jar</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2847/simageuploadapplet.jar">simageuploadapplet.jar</a> added</li></ul><p>I have modified (s)imageuploadapplet, now it support drag and drop, paste on click, and can paste clipboard content by javascript command (you can call "imageuploadapplet.getImageFromClipboad();" when showing div with applet and if screenshot already exist in clipboard it will be pasted - one click saved :)).</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=125772009-11-29T21:20:05ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>File</strong> <a href="/attachments/2854">redmine_screenshot_paste-2.zip</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2854/redmine_screenshot_paste-2.zip">redmine_screenshot_paste-2.zip</a> added</li></ul><p>Nice work!</p>
<p>Here is a new version of the plugin that includes your modified applet.<br />Clipboard is pasted when showing the applet, and name+description can now be entered.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=134612010-01-08T20:02:59ZAlex Last
<ul></ul><p>is it possible to integrate this feature into standard Redmine build?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=134962010-01-11T05:53:20ZJack Kurzecki
<ul></ul><p>If you are serving Redmine in SubURI, this plugin won't load.</p>
<p>The fix is to change line 3 of <strong>"path/to/redmine/vendor/plugins/redmine_screenshot_paste/app/views/issues/_screenshot.rhtml"</strong> to:<pre>
<applet archive="<%= Redmine::Utils.relative_url_root %>/plugin_assets/redmine_screenshot_paste/simageuploadapplet.jar"
</pre></p>
<p>(This assumes you added prefix to <strong>"path/to/redmine/config/environment.rb"</strong> as per <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI">HowTo_Install_Redmine_in_a_sub-URI</a>)</p>
<p>This is a great plugin. Thanks Jean-Philippe and Andrew for making this available.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=134992010-01-11T10:49:32ZJack Kurzecki
<ul><li><strong>File</strong> <a href="/attachments/3012">_screenshot.rhtml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3012/_screenshot.rhtml">_screenshot.rhtml</a> added</li></ul><p>The attached file is a modification to load the Java applet on demand rather than every time a new issue page is opened, which was giving a warning about unverified digital signature.</p>
<p>It also checks for Redmine::Utils.relative_url_root and availability of Java.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=138692010-01-28T11:44:32ZAmil Waduwawara
<ul></ul><p>I'm running Redmine v0.9.0 RC and installed the plug-in (just unzipped <a href="http://www.redmine.org/attachments/2854/redmine_screenshot_paste-2.zip" class="external">redmine_screenshot_paste-2.zip</a>)</p>
<p>Restarting Redmine gives "Drag or paste from clipboard" link upon pressing update button and applet gets the clipboard content pasted. But nothing special happens when pressing Submit button after entering "Name" and "Description".</p>
<p>I suspect <code>... "uploaded_screenshot"=>{"name"=>"screenshot", "content"=>"", "description"=>"error page"}, ...</code> from below log extract. Do you see any clue?</p>
<p>Rest of the Redmine stuff works fine.</p>
<p>Log extract:<br /><pre>
Processing IssuesController#edit (for www.xxx.yyy.zzz at 2010-01-28 17:09:47) [POST]
Parameters: {"time_entry"=>{"comments"=>"",
"activity_id"=>"",
"hours"=>""},
"commit"=>"Submit",
"notes"=>"",
"action"=>"edit",
"authenticity_token"=>"lSC6zELEOP8qIg5fw/y+oAjlmsM2BhJNkmB6JquyEks=",
"id"=>"1478",
"issue"=>{"start_date"=>"",
"estimated_hours"=>"",
"priority_id"=>"4",
"lock_version"=>"2",
"fixed_version_id"=>"33",
"done_ratio"=>"0",
"assigned_to_id"=>"3",
"subject"=>"Redmine improvements",
"tracker_id"=>"4",
"due_date"=>"",
"status_id"=>"1",
"description"=>"This tracks improvements to Redmine"},
"controller"=>"issues",
"uploaded_screenshot"=>{"name"=>"screenshot",
"content"=>"",
"description"=>"error page"},
"attachments"=>{"1"=>{"description"=>""}}}
Redirected to http://mysite/issues/1478
Completed in 157ms (DB: 85) | 302 Found [http://mysite/issues/1478/edit]
</pre></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=147912010-03-01T16:09:41ZEvgeny Mukhin
<ul></ul><p>I'm using BitNami virtual machine image. I unzipped the plugin to redmine/vendor/plugins/ folder, changed "_screenshot.rhtml" as described above and added line 'Redmine::Utils::relative_url_root = "/redmine"' to the bottom of "redmine/config/environment.rb"</p>
<p>I get next error:</p>
<p>load: class imageuploadapplet.Main not found.<br />java.lang.ClassNotFoundException: imageuploadapplet.Main<br /> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br /> at java.lang.Thread.run(Unknown Source)<br />Caused by: java.io.IOException: open HTTP connection failed:http://192.168.111.129/redmine/projects/thepacker/issues/imageuploadapplet/Main.class<br /> at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> ... 7 more<br />Exception: java.lang.ClassNotFoundException: imageuploadapplet.Main<br />load: class imageuploadapplet.Main not found.<br />java.lang.ClassNotFoundException: imageuploadapplet.Main<br /> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br /> at java.lang.Thread.run(Unknown Source)<br />Caused by: java.io.IOException: open HTTP connection failed:http://192.168.111.129/redmine/projects/thepacker/issues/imageuploadapplet/Main.class<br /> at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> ... 7 more<br />Exception: java.lang.ClassNotFoundException: imageuploadapplet.Main<br />load: class imageuploadapplet.Main not found.<br />java.lang.ClassNotFoundException: imageuploadapplet.Main<br /> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br /> at java.lang.Thread.run(Unknown Source)<br />Caused by: java.io.IOException: open HTTP connection failed:http://192.168.111.129/redmine/projects/thepacker/issues/imageuploadapplet/Main.class<br /> at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> ... 7 more<br />Exception: java.lang.ClassNotFoundException: imageuploadapplet.Main<br />load: class imageuploadapplet.Main not found.<br />java.lang.ClassNotFoundException: imageuploadapplet.Main<br /> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br /> at java.lang.Thread.run(Unknown Source)<br />Caused by: java.io.IOException: open HTTP connection failed:http://192.168.111.129/redmine/projects/thepacker/issues/imageuploadapplet/Main.class<br /> at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> ... 7 more<br />Exception: java.lang.ClassNotFoundException: imageuploadapplet.Main<br />load: class imageuploadapplet.Main not found.<br />java.lang.ClassNotFoundException: imageuploadapplet.Main<br /> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br /> at java.lang.Thread.run(Unknown Source)<br />Caused by: java.io.IOException: open HTTP connection failed:http://192.168.111.129/redmine/projects/thepacker/issues/imageuploadapplet/Main.class<br /> at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> ... 7 more<br />Exception: java.lang.ClassNotFoundException: imageuploadapplet.Main</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=148562010-03-03T00:21:46ZJack Kurzecki
<ul></ul><p>Evgeny Mukhin wrote:</p>
<blockquote>
<p>I'm using BitNami virtual machine image. I unzipped the plugin to redmine/vendor/plugins/ folder, changed "_screenshot.rhtml" as described above and added line 'Redmine::Utils::relative_url_root = "/redmine"' to the bottom of "redmine/config/environment.rb"</p>
<p>I get next error:</p>
<p>load: class imageuploadapplet.Main not found.<br />java.lang.ClassNotFoundException: imageuploadapplet.Main<br />at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br />at java.lang.ClassLoader.loadClass(Unknown Source)<br />at java.lang.ClassLoader.loadClass(Unknown Source)<br />at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br />at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br />at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br />at java.lang.Thread.run(Unknown Source)<br />Caused by: java.io.IOException: open HTTP connection failed:http://192.168.111.129/redmine/projects/thepacker/issues/imageuploadapplet/Main.class<br />at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br />at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br />at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br />at java.security.AccessController.doPrivileged(Native Method)<br />... 7 more</p>
</blockquote>
<p>This is the error I was getting when the .jar file was not found before I updated <strong>_screenshot.rhtml</strong></p>
<p>I'm not sure about the BitNami stack, but you do not need to modify <strong>redmine/config/environment.rb</strong> if you are serving Redmine in something like <a class="external" href="http://redmine.yourhost.com">http://redmine.yourhost.com</a><br />This is only required if you are serving Redmine in something like <a class="external" href="http://yourhost.com/redmine">http://yourhost.com/redmine</a> (as I am) and it must match your path.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=148602010-03-03T07:38:28ZEvgeny Mukhin
<ul></ul><p>Jack Kurzecki wrote:</p>
<blockquote>
<p>This is the error I was getting when the .jar file was not found before I updated <strong>_screenshot.rhtml</strong></p>
<p>I'm not sure about the BitNami stack, but you do not need to modify <strong>redmine/config/environment.rb</strong> if you are serving Redmine in something like <a class="external" href="http://redmine.yourhost.com">http://redmine.yourhost.com</a><br />This is only required if you are serving Redmine in something like <a class="external" href="http://yourhost.com/redmine">http://yourhost.com/redmine</a> (as I am) and it must match your path.</p>
</blockquote>
<p>As like you I access Redmine by <a class="external" href="http://192.168.111.129/redmine/">http://192.168.111.129/redmine/</a> so i guess i have to modify named file.<br />Interesting part of this file looks like<br /><code><applet archive="<%= Redmine::Utils.relative_url_root %>/plugin_assets/redmine_screenshot_paste/simageuploadapplet.jar"'</code></p>
<p>I found simageuploadapplet.jar file there: redmine/public/plugin_assets/redmine_screenshot_paste/simageuploadapplet.jar</p>
<p>I dont have a foggest idea why it is trying to find Main.class in the path <a class="external" href="http://192.168.111.129/redmine/projects/thepacker/issues/imageuploadapplet/">http://192.168.111.129/redmine/projects/thepacker/issues/imageuploadapplet/</a><br />there's no such path in the project.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=149192010-03-05T02:47:29ZJack Kurzecki
<ul><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li></ul><p>After a recent update to "Redmine 0.9.3.devel.3525" this <strong>pluggin stopped working</strong>. I'm getting the same "nothing is happening" issue as <a href="http://www.redmine.org/issues/3816#note-12" class="external">note-12</a> above.</p>
<hr />
<p>This is log after creating a new issue with screenshot added using this plugin:<pre>
Processing IssuesController#new (for 192.168.1.100 at 2010-03-04 17:46:07) [POST]
Parameters: {
"commit"=>"Create",
"project_id"=>"pr1",
"action"=>"new",
"authenticity_token"=>"gvY0GfE...CROPPED...=",
"issue"=>{
"start_date"=>"2010-03-04",
"estimated_hours"=>"",
"priority_id"=>"4",
"done_ratio"=>"0",
"assigned_to_id"=>"3",
"subject"=>"test screenshot copy",
"category_id"=>"6",
"tracker_id"=>"3",
"due_date"=>"",
"status_id"=>"2",
"description"=>"test screenshot copy"
},
"controller"=>"issues",
"attachments"=>{
"1"=>{
"description"=>""
}
},
"uploaded_screenshot"=>{
"name"=>"screenshot",
"content"=>"iVBORw0KG...CROPPED...",
"description"=>""
}
}
Sending email notification to: me@myhost
Redirected to http://myhost/redmine/issues/123
Completed in 109ms (DB: 61) | 302 Found [http://myhost/projects/pr1/issues/new]
Processing IssuesController#show (for 192.168.1.100 at 2010-03-04 17:46:08) [GET]
Parameters: {
"action"=>"show",
"id"=>"123",
"controller"=>"issues"
}
Rendering template within layouts/base
Rendering issues/show.rhtml
Completed in 172ms (View: 141,
DB: 0) | 200 OK [http://myhost/issues/123]
</pre></p>
<hr />
<p>This is after I try to update the issue with another screenshot (again the picture is showing on the form, but doesn't get stored):<pre>
Processing IssuesController#update (for 192.168.1.100 at 2010-03-04 17:46:28) [PUT]
Parameters: {
"time_entry"=>{
"comments"=>"",
"activity_id"=>"10",
"hours"=>""
},
"commit"=>"Submit",
"notes"=>"",
"action"=>"update",
"_method"=>"put",
"authenticity_token"=>"gvY0GfE...CROPPED...",
"id"=>"123",
"issue"=>{
"start_date"=>"2010-03-04",
"estimated_hours"=>"",
"priority_id"=>"4",
"lock_version"=>"0",
"done_ratio"=>"0",
"assigned_to_id"=>"3",
"subject"=>"test screenshot copy",
"category_id"=>"6",
"tracker_id"=>"3",
"due_date"=>"",
"status_id"=>"2",
"description"=>"test screenshot copy"
},
"controller"=>"issues",
"uploaded_screenshot"=>{
"name"=>"screenshot",
"content"=>"iVBORw0KGgoAAAANSUhEUgAABa...CROPPED...=",
"description"=>"test"
},
"attachments"=>{
"1"=>{
"description"=>""
}
}
}
Redirected to http://myhost/redmine/issues/123
Completed in 218ms (DB: 31) | 302 Found [http://myhost/issues/123/edit]
Processing IssuesController#show (for 192.168.1.100 at 2010-03-04 17:46:28) [GET]
Parameters: {
"action"=>"show",
"id"=>"123",
"controller"=>"issues"
}
Rendering template within layouts/base
Rendering issues/show.rhtml
Completed in 313ms (View: 281,
DB: 0) | 200 OK [http://myhost/issues/123]
</pre></p>
<hr />
<p>I looked at the production logs from when the screenshot attaching worked (Jan, Feb) and nothing has changed in the request.</p>
<p><strong>Jean-Philippe,</strong><br />is there any chance you could take a look at an update to this plugin?<br />It is extremely useful in my organization. It would be great if it made it into core.<br />I'm running Redmine as a mongrel cluster proxied by Apache on Windows 2003.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=149212010-03-05T06:30:29ZAndrew Chaika
<ul></ul><p>This plugin will no longer work after <a class="changeset" title="Refactor: Moved ApplicationController#attach_files to the Attachment model" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3523">r3523</a> changes.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=149232010-03-05T08:45:45ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>You can get the new version here: <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/PluginScreenshotPaste">PluginScreenshotPaste</a>.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=149252010-03-05T09:48:15ZJack Kurzecki
<ul><li><strong>File</strong> <a href="/attachments/3306">_screenshot.rhtml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3306/_screenshot.rhtml">_screenshot.rhtml</a> added</li></ul><p>Thank you Jean-Philippe!</p>
<p>I was just in the middle of reverting back to <a class="changeset" title="Fixes failing tests from r3521" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3522">r3522</a> when you posted the updated version and the original plugin worked as Andrew suggested.</p>
<p>Now I again went back to <a class="changeset" title="Allow multiple selected projects in #project_tree_options_for_select" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3525">r3525</a> and using your updated plugin I was getting the error about .jar file not being found. I'm hosting Redmine in <a class="external" href="http://myhost/redmine">http://myhost/redmine</a> and adding <%= Redmine::Utils.relative_url_root %> in front of the path fixed the issue. (I know that this is not the appropriate way of doing this, but its a quick fix).</p>
<p>If anyone is interested, I modified <strong>_screenshot.rhtml</strong> to load the applet on demand and to work when Redmine is not at the root of the webserver.</p>
<p>Thanks again Jean-Philippe and Andrew!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=150262010-03-10T09:02:47ZEvgeny Mukhin
<ul></ul><p>alexey skor wrote:</p>
<blockquote>
<p>is it possible to integrate this feature into standard Redmine build?</p>
</blockquote>
<p>I'd be brilliant. I cant make it work and I'm not sure it costs my time. Is there any chance the plugin will be incuded in say demo ?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=153342010-03-21T21:36:09Zpa riera
<ul></ul><p>For production reasons I cannot migrate to the new version of redmine, so the plugin do not work (I^m using redmine 0.8.x)<br />Possible to make it work for this old version ???</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=154782010-03-26T16:32:27ZRafi Greenberg
<ul></ul><p>I am unable to get this plugin working properly with 0.9.3. I have tried every combination. It is accepting the paste from the clipboard, but then nothing is actually attached to the ticket.</p>
<p>Any help?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=156992010-04-08T14:19:19ZAlexander Zhovnuvaty
<ul></ul><p>Rafi Greenberg wrote:</p>
<blockquote>
<p>I am unable to get this plugin working properly with 0.9.3. I have tried every combination. It is accepting the paste from the clipboard, but then nothing is actually attached to the ticket.</p>
<p>Any help?</p>
</blockquote>
<p>Neither am I. I tried 1.0.2 plugin version with Redmine 0.9.3.stable (PostgreSQL). Was not able to paste screenshot from clipboard via IE7, IE8 and FireFox 3.6.3.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=160452010-04-21T12:15:03ZMax Meier
<ul></ul><p>I tried this plugin with Redmine 0.9.3.stable.3625. When I restart Redmine, I get an error and redmine doesn't start:</p>
<pre>
** Starting Mongrel listening at 0.0.0.0:3010
** Starting Rails with production environment...
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method': undefined method `attach_files' for class `Class' (NameError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'
from /var/lib/redmine.stable/vendor/plugins/redmine_screenshot_paste/init.rb:42:in `included'
from /var/lib/redmine.stable/vendor/plugins/redmine_screenshot_paste/init.rb:40:in `class_eval'
from /var/lib/redmine.stable/vendor/plugins/redmine_screenshot_paste/init.rb:40:in `included'
from /var/lib/redmine.stable/vendor/plugins/redmine_screenshot_paste/init.rb:66:in `include'
from /var/lib/redmine.stable/vendor/plugins/redmine_screenshot_paste/init.rb:66:in `send'
from /var/lib/redmine.stable/vendor/plugins/redmine_screenshot_paste/init.rb:66
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:182:in `call'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:182:in `evaluate_method'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:166:in `call'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:90:in `run'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:90:in `each'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:90:in `send'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:90:in `run'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:276:in `run_callbacks'
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51:in `send'
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:631:in `prepare_dispatcher'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:185:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
from /var/lib/redmine/config/environment.rb:20
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
from /usr/bin/mongrel_rails:19:in `load'
from /usr/bin/mongrel_rails:19
</pre> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=161182010-04-23T13:19:40ZEraldo Girardi
<ul></ul><p>Hello,<br />I'm running the 0.9.trunk and have the same log as <a class="external" href="http://www.redmine.org/issues/3816#note-16">http://www.redmine.org/issues/3816#note-16</a><br />I'm trying to debug in NetBeans and I found this on line 49 in the init.rb plugin file:<br /><pre>screenshot = attachments['screenshot']</pre><br />The result of that statement is nil, so the screenshot save always fail.<br />I hope anyone can understand this as I'm really new to ruby.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=165422010-05-07T10:16:55ZVictor Dulepov
<ul><li><strong>File</strong> <a href="/attachments/3707">redmine_attach_screenshot_v.0.0.3.zip</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3707/redmine_attach_screenshot_v.0.0.3.zip">redmine_attach_screenshot_v.0.0.3.zip</a> added</li></ul><p>Some time ago we did a similar job internally for our tracker, but allowing more than one screenshot at a time and showing thumbnails (it's a bit technically different from the original solution by Jean-Philippe).<br />Now it is cleared for public domain, so feel free to try (attached). Should work on the 0.9.x family (verified up to 0.9.4). Requires <a href="http://rmagick.rubyforge.org/" class="external">RMagick</a> to show screenshot thumbnails when adding/editing an issue. Known to conflict with <a href="http://www.redmine.org/boards/3/topics/5365" class="external">Local Avatars</a> .</p>
<p><ins>Credits:</ins><br />Authors: <a href="mailto:kos@axmor.com">Konstantin Zaitcev</a> (<a href="https://redmine.axmor.com/users/3" class="external">also at Redmine</a>), <a href="mailto:vsv@axmor.com">Sergei Vasilyev</a>, <a href="mailto:poplavsky@axmor.com">Alexandr Poplavsky</a><br />Work sponsored by <a href="http://www.axmor.com" class="external">Axmor Software</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=165462010-05-07T12:43:15ZEraldo Girardi
<ul></ul><p>Victor Doulepov wrote:</p>
<blockquote>
<p>Some time ago we did a similar job internally for our tracker, but allowing more than one screenshot at a time and showing thumbnails (it's a bit technically different from the original solution by Jean-Philippe).<br />Now it is cleared for public domain, so feel free to try (attached). Should work on the 0.9.x family (verified up to 0.9.4). Requires <a href="http://rmagick.rubyforge.org/" class="external">RMagick</a> to show screenshot thumbnails when adding/editing an issue. Known to conflict with <a href="http://www.redmine.org/boards/3/topics/5365" class="external">Local Avatars</a> .</p>
<p><ins>Credits:</ins><br />Authors: <a href="mailto:kos@axmor.com">Konstantin Zaitcev</a> (<a href="https://redmine.axmor.com/users/3" class="external">also at Redmine</a>), <a href="mailto:vsv@axmor.com">Sergei Vasilyev</a>, <a href="mailto:poplavsky@axmor.com">Alexandr Poplavsky</a><br />Work sponsored by <a href="http://www.axmor.com" class="external">Axmor Software</a></p>
</blockquote>
<p>I tried it but I get this in my log:<br /><pre>
7-mag-2010 12.35.34 org.apache.catalina.core.ApplicationContext log
GRAVE: unable to create shared application instance
org.jruby.rack.RackInitializationException: undefined method `attach_files' for class `ApplicationController'
from C:/Programmi/Apache Software Foundation/Tomcat 5.5/webapps/redmine/WEB-INF/vendor/plugins/redmine_attach_screenshot/lib/application_patch.rb:9:in `included'
from C:/Programmi/Apache Software Foundation/Tomcat 5.5/webapps/redmine/WEB-INF/vendor/plugins/redmine_attach_screenshot/lib/application_patch.rb:8:in `class_eval'
......
</pre></p>
<p>Maybe this can be useful: <a class="external" href="http://www.redmine.org/boards/3/topics/11643?r=12986#message-12986">http://www.redmine.org/boards/3/topics/11643?r=12986#message-12986</a><br />I hope you can fix. This is very useful for me (my users..).<br />Thank you</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=165472010-05-07T12:43:29ZEraldo Girardi
<ul></ul><p>Victor Doulepov wrote:</p>
<blockquote>
<p>Some time ago we did a similar job internally for our tracker, but allowing more than one screenshot at a time and showing thumbnails (it's a bit technically different from the original solution by Jean-Philippe).<br />Now it is cleared for public domain, so feel free to try (attached). Should work on the 0.9.x family (verified up to 0.9.4). Requires <a href="http://rmagick.rubyforge.org/" class="external">RMagick</a> to show screenshot thumbnails when adding/editing an issue. Known to conflict with <a href="http://www.redmine.org/boards/3/topics/5365" class="external">Local Avatars</a> .</p>
<p><ins>Credits:</ins><br />Authors: <a href="mailto:kos@axmor.com">Konstantin Zaitcev</a> (<a href="https://redmine.axmor.com/users/3" class="external">also at Redmine</a>), <a href="mailto:vsv@axmor.com">Sergei Vasilyev</a>, <a href="mailto:poplavsky@axmor.com">Alexandr Poplavsky</a><br />Work sponsored by <a href="http://www.axmor.com" class="external">Axmor Software</a></p>
</blockquote>
<p>I tried it but I get this in my log:<br /><pre>
7-mag-2010 12.35.34 org.apache.catalina.core.ApplicationContext log
GRAVE: unable to create shared application instance
org.jruby.rack.RackInitializationException: undefined method `attach_files' for class `ApplicationController'
from C:/Programmi/Apache Software Foundation/Tomcat 5.5/webapps/redmine/WEB-INF/vendor/plugins/redmine_attach_screenshot/lib/application_patch.rb:9:in `included'
from C:/Programmi/Apache Software Foundation/Tomcat 5.5/webapps/redmine/WEB-INF/vendor/plugins/redmine_attach_screenshot/lib/application_patch.rb:8:in `class_eval'
......
</pre></p>
<p>Maybe this can help: <a class="external" href="http://www.redmine.org/boards/3/topics/11643?r=12986#message-12986">http://www.redmine.org/boards/3/topics/11643?r=12986#message-12986</a><br />I hope you can fix. This is very useful for me (my users..).<br />Thank you</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=166622010-05-12T05:24:26ZVictor Dulepov
<ul></ul><p>Eraldo Girardi wrote:</p>
<blockquote>
<p>I tried it but I get this in my log:<br />[...]</p>
<p>Maybe this can help: <a class="external" href="http://www.redmine.org/boards/3/topics/11643?r=12986#message-12986">http://www.redmine.org/boards/3/topics/11643?r=12986#message-12986</a><br />I hope you can fix. This is very useful for me (my users..).<br />Thank you</p>
</blockquote>
<p>You're using 0.9.trunk, right? Looks like the attachment methods there are different from what's in 0.9.4. I think we'll be able to provide an update with the next stable release (we do live on them, not on trunk).</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=166642010-05-12T06:52:30ZEraldo Girardi
<ul></ul><p>Victor Doulepov wrote:</p>
<blockquote>
<p>You're using 0.9.trunk, right? Looks like the attachment methods there are different from what's in 0.9.4. I think we'll be able to provide an update with the next stable release (we do live on them, not on trunk).</p>
</blockquote>
<p>Hi Victor,<br />I'm sorry for double post and for to miss my redmine version..<br />You are right, I'm using the latest 3735 trunk.<br />So I'll wait for the next stable release.</p>
<p>Thank you!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=166662010-05-12T07:19:31ZMax Meier
<ul></ul><p>Hi,</p>
<p>I tried attaching a screenshot via Alt+Print and the button "Copy from clipboard". The image is visible in the applrt window, but when I attach it to the issue, I get the following in my log:<br /><pre>
Processing AttachScreenshotController#index (for 10.10.10.41 at 2010-05-12 10:18:47) [POST]
Parameters: {"action"=>"index", "controller"=>"attach_screenshot", "key"=>"f8757dd4a026656989181eaea2626f5e5ed3e3bc", "attachments"=>#<File:/tmp/RackMultipart20100512-25166-1uylxzl-0>}
Magick::ImageMagickError (no decode delegate for this image format `/var/lib/redmine.stable/tmp/4_101847screenshot.png' @ constitute.c/ReadImage/531):
vendor/plugins/redmine_attach_screenshot/app/controllers/attach_screenshot_controller.rb:18:in `read'
vendor/plugins/redmine_attach_screenshot/app/controllers/attach_screenshot_controller.rb:18:in `index'
Rendering /var/lib/redmine.stable/public/500.html (500 Internal Server Error)
</pre></p>
<p>I am using redmine 0.9.3.stable-3625 and imagemagick-6.5.8.8</p>
<p>Any help would be appreciated.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=166682010-05-12T07:51:27ZVictor Dulepov
<ul></ul><p>Max Meier wrote:</p>
<blockquote>
<p>Hi,</p>
<p>I tried attaching a screenshot via Alt+Print and the button "Copy from clipboard". The image is visible in the applrt window, but when I attach it to the issue, I get the following in my log:<br />[...]</p>
<p>I am using redmine 0.9.3.stable-3625 and imagemagick-6.5.8.8</p>
<p>Any help would be appreciated.</p>
</blockquote>
<p>Hi Max,<br />try following the instructions <a href="http://rmagick.rubyforge.org/install-faq.html#delegate" class="external">here</a> ... <br />PNG support is essential for the plugin - I'm sorry that was missed in the original posting.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=167232010-05-14T15:28:37ZPremysl Vohnout
<ul></ul><p>When I try to attach screenshot I get 500 internal server error and in production log is</p>
<pre>
/!\ FAILSAFE /!\ Fri May 14 17:28:30 +0200 2010
Status: 500 Internal Server Error
bad content body
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:698:in `read_multipart'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:667:in `loop'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:667:in `read_multipart'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:590:in `parse_multipart_form_parameters'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:520:in `parse_formatted_request_parameters'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:450:in `request_parameters'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:401:in `parameters'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:30:in `_unmemoized_request_method'
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/memoizable.rb:57:in `request_method'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/request.rb:40:in `method'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in `extract_request_environment'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:390:in `recognize'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in `handle_request'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:112:in `dispatch_unlocked'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:124:in `synchronize'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:124:in `dispatch'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:134:in `dispatch_cgi'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:41:in `dispatch'
/usr/lib/ruby/1.8/phusion_passenger/railz/request_handler.rb:50:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61
</pre>
<p>Using redmine-0.9.3-3~bpo50+1</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=168502010-05-18T20:51:46ZMarkus Peter
<ul></ul><p>Hello,</p>
<p>I had the same error<br /><pre>
load: class imageuploadapplet.Main not found
</pre><br />with plugin version 1.1.0 on FireFox, with redmine as default site (not in subdirectory).</p>
<p>Adding a codebase attribute to the applet tag like this:<br /><pre>
codebase="/plugin_assets/redmine_screenshot_paste/"
</pre></p>
<p>fixed the problem, and the applet loaded correctly.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=169332010-05-24T06:44:46ZSheng Wang
<ul></ul><p>I test this plugin in Windows XP, IE6 and Firefox both work well.<br />But in Linux, Firefox can't display the applet. <br />Who can tell me why?<br />Thanks.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=172872010-06-11T13:08:11ZArne De Herdt
<ul></ul><p>I've installed the plugin on our redmine installation, and the new entry appears in the issue's view, but the applet itself is causing problems.</p>
<p>The applet is installed in the vendor folder as instructed, but it's producing errors. When looking in the production log, I'm getting the following:<br /><pre>
Processing ApplicationController#index (for 192.168.112.108 at 2010-06-11 17:08:46) [GET]
ActionController::RoutingError (No route matches "/projects/misc/issues/imageuploadapplet/Main.class" with {:method=>:get}):
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
Rendering /opt/redmine/public/404.html (404 Not Found)
</pre></p>
<p>Would it be solved if i just add the following to routes.rb:</p>
<p>map.connect '/projects/misc/issues/imageuploadapplet/Main.class', :controller => 'index', :action => 'index'</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=173992010-06-17T21:05:47ZEzequiel Naftali
<ul></ul><p>Hi, Where is the codebase located?</p>
<p>codebase="/plugin_assets/redmine_screenshot_paste/"</p>
<p>Thanks</p>
<p>Markus Peter wrote:</p>
<blockquote>
<p>Hello,</p>
<p>I had the same error<br />[...]<br />with plugin version 1.1.0 on FireFox, with redmine as default site (not in subdirectory).</p>
<p>Adding a codebase attribute to the applet tag like this:<br />[...]</p>
<p>fixed the problem, and the applet loaded correctly.</p>
</blockquote> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=174002010-06-17T21:49:30ZMarkus Peter
<ul></ul><p>Ezequiel Naftali wrote:</p>
<blockquote>
<p>Hi, Where is the codebase located?</p>
<p>codebase="/plugin_assets/redmine_screenshot_paste/"</p>
</blockquote>
<p>in <code>/app/views/issues/_screenshot.rhtml</code> you can add it as a attribute to the applet tag.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=174022010-06-17T23:25:27ZCarlo Hamalainen
<ul></ul><p>I have Redmine 0.9.3 running under the BitNami stack on a legacy Windows Server 2003 system.</p>
<p>I tried redmine_attach_screenshot_v.0.0.3.zip. I couldn't save the image and got a 500 internal server error. In the production log I saw this:</p>
<pre>
Processing AttachScreenshotController#index (for 192.168.100.1 at 2010-06-18 09:03:58) [POST]
Parameters: {"action"=>"index", "controller"=>"attach_screenshot", "key"=>"0bf909de2d6c9c88f49883f202df6f45976d6455", "attachments"=>#<File:C:/WINDOWS/Temp/RackMultipart20100618-8172-1coq76s-0>}
ArgumentError (invalid value for Integer: "090358"):
vendor/plugins/redmine_attach_screenshot_v.0.0.3/redmine_attach_screenshot/app/controllers/attach_screenshot_controller.rb:36:in `sprintf'
vendor/plugins/redmine_attach_screenshot_v.0.0.3/redmine_attach_screenshot/app/controllers/attach_screenshot_controller.rb:36:in `make_tmpname'
vendor/plugins/redmine_attach_screenshot_v.0.0.3/redmine_attach_screenshot/app/controllers/attach_screenshot_controller.rb:13:in `index'
Rendering C:/Program Files/BitNami Redmine Stack/apps/redmine/public/500.html (500 Internal Server Error)
</pre>
<p>So the fix isn't too hard. Change line 36 of attach_screenshot_controller.rb from</p>
<pre>
sprintf('%d_%d%s', User.current.id, date, name)
</pre>
<p>to this:</p>
<pre>
sprintf('%d_%s%s', User.current.id, date, name)
</pre>
<p>Great plugin! Thanks for making it public.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=175802010-06-21T11:50:10ZSteven Meiracker
<ul></ul><p>Hi All,<br />I am using the Turnkey Redmine which I have updated to 0.9.4<br />I have tried to install the screenshot plugin but get same error as above:<br />load: class imageuploadapplet.Main not found.<br />java.lang.ClassNotFoundException: imageuploadapplet.Main<br /> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br /> at java.lang.Thread.run(Unknown Source)<br />Caused by: java.io.IOException: open HTTP connection failed:http://10.1.1.22/projects/surpass/issues/imageuploadapplet/Main.class<br /> at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br /> at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> ... 7 more<br />Exception: java.lang.ClassNotFoundException: imageuploadapplet.Main</p>
<p>I am running the website as / so it shouldn't be a path issue but I have had no luck getting it working.<br />I am new linux so I apologise if I have missed something simple.<br />Thanks :)</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=186132010-07-22T19:44:45ZAniruddha Shankar
<ul></ul><p>Problem still persists in version 0.9.6. I think the one common thread between me and the poster just above me is that both our redmine installs are hosted at <a class="external" href="http://base.domain/&lt;somename">http://base.domain/&lt;somename</a>></p>
<pre>Java Plug-in 1.6.0_15
Using JRE version 1.6.0_15-b03 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Sirji.SATORI
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
load: class imageuploadapplet.Main not found.
java.lang.ClassNotFoundException: imageuploadapplet.Main
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://dev.XXXXXX.com/pm/projects/launch/issues/imageuploadapplet/Main.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: imageuploadapplet.Main
</pre> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=190912010-08-07T00:25:41ZJack Kurzecki
<ul></ul><p>I just tested a version of <strong>redmine_attach_screenshot_v.0.0.3.zip</strong> from <strong>Victor Doulepov</strong> updated by <strong>Jens Alfke</strong>:<br /><a class="external" href="http://www.redmine.org/boards/3/topics/16088">http://www.redmine.org/boards/3/topics/16088</a></p>
<p>It works great with Redmine 1.0.0.devel.3919</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=191532010-08-09T10:41:26ZSepp _
<ul></ul><p>Confirmed.<br />Verion 1.1.0 from the original Plugin also works! See<br /><a class="external" href="http://www.redmine.org/wiki/redmine/PluginScreenshotPaste">http://www.redmine.org/wiki/redmine/PluginScreenshotPaste</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=192262010-08-11T08:22:42ZAmil Waduwawara
<ul></ul><p>Sheng Wang wrote:</p>
<blockquote>
<p>I test this plugin in Windows XP, IE6 and Firefox both work well.<br />But in Linux, Firefox can't display the applet. <br />Who can tell me why?<br />Thanks.</p>
</blockquote>
<p>You need to install/configure Java plugins.</p>
I'm using Ubuntu Lucid Lynx with Firefox 3.6.8 (latest updates) and I too had the same issue. Then I fixed it as follows:
<ol>
<li>Install Java plugin (sudo apt-get install sun-java6-plugin)</li>
<li>restart browser (worked for Firefox 3.6.8, Google Chrome v5.0.375.125 beta)</li>
</ol>
<p>Ref: <a href="http://kiddingthecity.org/blog/?p=1131" class="external">kiddingthecity</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=199012010-09-02T04:06:14ZMark Linn
<ul></ul><p>1.1.0 in Redmine 1.0 seems to work for me (with small codebase change to account for sub-URI config) if I'm using IE, however, on Ubuntu 10.04 (in Firefox or Chromium) I'm seeing the applet and able to see it attach a screenshot to the applet, but, on the server-side it isn't getting the content included when I click submit. The content = "" if I use Firefox or Chromium in Linux instead of the long base64 data I see in the logs if I submit from a Windows box with IE. Any thoughts on why it's only IE friendly?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=199412010-09-03T05:45:51ZAnthony Meugui
<ul></ul><p>The screenshot-past plugin in version 1.1.0 works almost well with Redmine 1.0.1 (stable) (Internet Explorer/Google Chrome on windows Seven/Vista and XP). I have an annoying side effect.<br />The plugin works except for one thing, when the plugin is installed, I can't update the "Status" issue WITH the pop-up menu (But ALL other update (from pop-up or not) still working) . When I remove the plugin I can update the status from the pop-up menu again.</p>
<p>Redmine is installed on 2 computers and I've got exactly the same thing on both of them.<br />Thanks for this usefull plugin, it saves a lot of time.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=200282010-09-06T07:19:50ZAmil Waduwawara
<ul></ul><p>Ab MCGUI wrote:</p>
<blockquote>
<p>The screenshot-past plugin in version 1.1.0 works almost well with Redmine 1.0.1 (stable) (Internet Explorer/Google Chrome on windows Seven/Vista and XP). I have an annoying side effect.<br />The plugin works except for one thing, when the plugin is installed, I can't update the "Status" issue WITH the pop-up menu (But ALL other update (from pop-up or not) still working) . When I remove the plugin I can update the status from the pop-up menu again.</p>
</blockquote>
<p>The said issue is not there with Redmine v1.0.0RC. But it's there with Redmine v1.0.1.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=203092010-09-15T11:41:34ZSlava Karg
<ul></ul><p>Confirm that 1.1.0 screenshot-past plugin and redmine 1.0.1(stable) have issue with changing status of issue through context_menu.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=210972010-10-07T11:56:10ZValerio Bonfatti
<ul></ul><p>There is a syntax error that can be fixed: getImageFromClipboad() shoudl be getImageFromClipboard().<br />Then the applet should remove all the System.out.println().</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=210982010-10-07T12:07:30ZSlava Karg
<ul></ul><p>Could you possibly describe this fix in more details? It is not obvious where to make these changes.. o_O<br />Thanks!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=211002010-10-07T12:15:47ZSlava Karg
<ul><li><strong>Assignee</strong> deleted (<del><i>Jean-Philippe Lang</i></del>)</li></ul><p>I guess You mean to modify this file in plugin directory: app/views/issues/_screenshot.rhtml</p>
<p>Correct?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=211012010-10-07T12:29:54ZSlava Karg
<ul></ul><p>Nevertheless this fix doesn't resolve issue with changing status via context menu ;\</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=211022010-10-07T12:45:41ZAndrew Chaika
<ul></ul><p>Valerio Bonfatti wrote:</p>
<blockquote>
<p>There is a syntax error that can be fixed: getImageFromClipboad() shoudl be getImageFromClipboard().<br />Then the applet should remove all the System.out.println().</p>
</blockquote>
<p>It's just my grammatical error in java code.<br /><pre><code class="javascript syntaxhl"> <span class="kr">public</span> <span class="k">void</span> <span class="nx">getImageFromClipboad</span><span class="p">()</span>
<span class="p">{</span>
<span class="nx">image</span> <span class="o">=</span> <span class="p">(</span><span class="nx">BufferedImage</span><span class="p">)</span> <span class="nx">AccessController</span><span class="p">.</span><span class="nx">doPrivileged</span><span class="p">(</span>
<span class="k">new</span> <span class="nx">PrivilegedAction</span><span class="o"><</span><span class="nx">BufferedImage</span><span class="o">></span><span class="p">()</span> <span class="p">{</span>
<span class="kr">public</span> <span class="nx">BufferedImage</span> <span class="nx">run</span><span class="p">()</span> <span class="p">{</span>
<span class="nx">BufferedImage</span> <span class="nx">image</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
<span class="k">try</span> <span class="p">{</span>
<span class="nx">image</span> <span class="o">=</span> <span class="p">(</span><span class="nx">BufferedImage</span><span class="p">)</span> <span class="nx">getToolkit</span><span class="p">().</span><span class="nx">getSystemClipboard</span><span class="p">().</span><span class="nx">getData</span><span class="p">(</span><span class="nx">DataFlavor</span><span class="p">.</span><span class="nx">imageFlavor</span><span class="p">);</span>
<span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">UnsupportedFlavorException</span> <span class="nx">ex</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">Logger</span><span class="p">.</span><span class="nx">getLogger</span><span class="p">(</span><span class="nx">Main</span><span class="p">.</span><span class="kd">class</span><span class="p">.</span><span class="nx">getName</span><span class="p">()).</span><span class="nx">log</span><span class="p">(</span><span class="nx">Level</span><span class="p">.</span><span class="nx">SEVERE</span><span class="p">,</span> <span class="kc">null</span><span class="p">,</span> <span class="nx">ex</span><span class="p">);</span>
<span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">IOException</span> <span class="nx">ex</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">Logger</span><span class="p">.</span><span class="nx">getLogger</span><span class="p">(</span><span class="nx">Main</span><span class="p">.</span><span class="kd">class</span><span class="p">.</span><span class="nx">getName</span><span class="p">()).</span><span class="nx">log</span><span class="p">(</span><span class="nx">Level</span><span class="p">.</span><span class="nx">SEVERE</span><span class="p">,</span> <span class="kc">null</span><span class="p">,</span> <span class="nx">ex</span><span class="p">);</span>
<span class="p">}</span>
<span class="k">return</span> <span class="nx">image</span><span class="p">;</span>
<span class="p">}</span>
<span class="p">},</span>
<span class="nx">context</span><span class="p">);</span>
</code></pre></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=212482010-10-11T18:58:16ZBarry McCall
<ul></ul><p>I encounter issues even after correcting the grammatical error. I've removed and reinstalled the plugin (also re corrected getImageFromClipboad)<br />I've tried adding</p>
<pre>
<applet archive="<%= Redmine::Utils.relative_url_root %>/plugin_assets/redmine_screenshot_paste/simageuploadapplet.jar"
</pre>
<p>Still the same problem (I am not running in a SubURI.. but tried anyhow)</p>
<p>This is the code that firefox sees.</p>
<pre>
<p><label>Screenshot</label>
<small><a href="#" onclick="Element.show('imageuploadapplet'); Element.show('uploaded_screenshot_fields'); document.imageuploadapplet.getImageFromClipboard(); return false;">
Drag or paste from clipboard</a></small><br />
<applet archive="/plugin_assets/redmine_screenshot_paste/simageuploadapplet.jar"
code="imageuploadapplet.Main"
name="imageuploadapplet"
id="imageuploadapplet"
hspace="0" vspace="0" width="400" height="200" align="middle"
style="display:none;">
</applet>
<br />
<span id="uploaded_screenshot_fields" style="display:none;">
<small>Name / Description:</small><br />
<input type="text" name="uploaded_screenshot[name]" value="screenshot" />
<input type="text" name="uploaded_screenshot[description]" size="60" />
</span>
</p>
<input type="hidden" name="uploaded_screenshot[content]" id="image" />
</pre>
<p>document.imageuploadapplet.getImageFromClipboard is not a function</p>
<pre>
Processing ApplicationController#index (for 10.9.2.12 at 2010-10-11 14:40:57) [GET]
ActionController::RoutingError (No route matches "/issues/imageuploadapplet.Main" with {:method=>:get}):
passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in `spawn_application'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
</pre>
<p>Redmine 0.9.4<br />Rails 2.3.5<br />Ruby 1.8.7<br />Rack 1.0.1<br />Passenger 2.2.15<br />Apache22<br />FreeBSD 8.0-Release</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=231622010-12-14T04:03:34ZAlex Last
<ul></ul><p>I see there's some other "paste screenshot" plugin available: <a class="external" href="http://www.redmine.org/wiki/redmine/PluginScreenshotPaste">http://www.redmine.org/wiki/redmine/PluginScreenshotPaste</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=231852010-12-14T22:48:47ZTerence Mill
<ul></ul><p>and here another thread about this plugin <a class="external" href="http://www.redmine.org/boards/3/topics/14026">http://www.redmine.org/boards/3/topics/14026</a></p>
<p>An here another similar plugin <a class="external" href="https://github.com/blondak/redmine_attach_screenshot">https://github.com/blondak/redmine_attach_screenshot</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=231862010-12-14T22:51:18ZTerence Mill
<ul></ul><p>Very helpful! <a class="external" href="http://www.redmine.org/boards/3/topics/17980">http://www.redmine.org/boards/3/topics/17980</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=233072010-12-19T07:22:00ZJack Kurzecki
<ul></ul><p>It would be great if those two plugins could be merged together.<br /><strong><a href="https://github.com/blondak/redmine_attach_screenshot" class="external">redmine_attach_screenshot</a></strong><br />(forked from <a class="external" href="https://github.com/snej/redmine_attach_screenshot">https://github.com/snej/redmine_attach_screenshot</a> which was forked from <a class="external" href="https://github.com/merpati09/redmine_attach_screenshot">https://github.com/merpati09/redmine_attach_screenshot</a>)</p>
<p>and JPL's <strong><a href="http://www.redmine.org/wiki/redmine/PluginScreenshotPaste" class="external">PluginScreenshotPaste</a></strong></p>
<p>I like the <strong>redmine_attach_screenshot</strong> because of the way it loads the java applet and the thumbnails, but it has a few bugs:<br />- one is fixed here: <a class="external" href="http://www.redmine.org/boards/3/topics/16088?r=16407#message-16407">http://www.redmine.org/boards/3/topics/16088?r=16407#message-16407</a><br />- the plugin breaks "Add another file" link<br />- it doesn't have an option to rename screenshots from default "screenshot.png"</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=233082010-12-19T08:21:27ZTerence Mill
<ul></ul><p>+1</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=233092010-12-19T09:45:34ZSepp _
<ul></ul><p>Same here, that's why I'm also using PluginScreenshotPaste.<br />One minor Featurerequest: Please also let me directly include the Filename as <pre>!FILENAME!</pre><br />into the comments.</p>
<p>+1</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=240072011-01-13T11:39:51ZBrad Rushworth
<ul></ul><p>I'm running Screenshot Paste 1.1.0 on Redmine 1.1.0.stable.4702 and it works nicely. I did have to change the Windows line endings over to Unix in the code to get it working properly though.</p>
<p>Sepp _ wrote:</p>
<blockquote>
<p>Same here, that's why I'm also using PluginScreenshotPaste.<br />One minor Featurerequest: Please also let me directly include the Filename as [...]<br />into the comments.</p>
</blockquote>
<p>It does do that, I just tried it then. If you enter the name of the screenshot as say <code>TestFileName</code>, then you just enter <code>!TestFileName.png!</code> into the comments.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=240122011-01-13T13:04:48ZSepp _
<ul></ul><p>Brad Rushworth wrote:</p>
<blockquote>
<p>It does do that, I just tried it then. If you enter the name of the screenshot as say <code>TestFileName</code>, then you just enter <code>!TestFileName.png!</code> into the comments.</p>
</blockquote>
<p>I know this feature, but I'd like that the string <code>!TestFileName.png!</code> automatically appears in the textbox... just a minor wish ;-)</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=250732011-02-10T11:07:00ZTerence Mill
<ul></ul><p>There is a bug raising errors from JPL screenshotpaste plugin when creating new task from eclipse via redmine_mylyn_connector.</p>
<p>Very sadly on screenshotpaste plugin isn't any bug fix release for over one year!</p>
<p><a href="https://sourceforge.net/tracker/index.php?func=detail&aid=3177244&group_id=228995&atid=1075435" class="external">SF.NEt Ticket 3177244</a><br /><pre>
When creating new task from Eclipse (on clicking submit) i get an error in eclipse "Submit failed: Server error" and find following entry in my logs.
We are using (as many others) Screenshot Paste Plugin 1.1.0 von Jean-Philippe Lang and it seems that there could be a conflict (maybe is something else)
The Plugin can bew donwloaded here: http://www.redmine.org/issues/3816
Here the log error message:
NoMethodError (undefined method `[]' for nil:NilClass):
vendor/plugins/redmine_screenshot_paste/init.rb:49:in `attach_files'
app/controllers/issues_controller.rb:130:in `create'
passenger (2.2.14) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.14) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
passenger (2.2.14) lib/phusion_passenger/utils.rb:252:in `safe_fork'
passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
</pre></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=250752011-02-10T13:21:43ZTerence Mill
<ul></ul><p>Terence Mill wrote:</p>
<blockquote>
<p>There is a bug raising errors from JPL screenshotpaste plugin when creating new task from eclipse via redmine_mylyn_connector.</p>
<p>Very sadly on screenshotpaste plugin isn't any bug fix release for over one year!</p>
<p><a href="https://sourceforge.net/tracker/index.php?func=detail&aid=3177244&group_id=228995&atid=1075435" class="external">SF.NEt Ticket 3177244</a><br />[...]</p>
</blockquote>
<p>It's a bug of screenshot_paste. The plugin is reading a nonexistent variable.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=252982011-02-18T11:59:35ZVictor Dulepov
<ul><li><strong>File</strong> <a href="/attachments/5419">redmine_attach_screenshot-0.1.0.zip</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5419/redmine_attach_screenshot-0.1.0.zip">redmine_attach_screenshot-0.1.0.zip</a> added</li></ul>Hello, <br />we finally managed to make an update of <em>redmine_attach_screenshot</em>. <br />Changes:
<ul>
<li>works with Redmine 1.1.0</li>
<li>fixed issues with <em>Add another file</em>, </li>
<li>original functionality plus some extras introduced in the fork at <a class="external" href="https://github.com/blondak/redmine_attach_screenshot">https://github.com/blondak/redmine_attach_screenshot</a> .</li>
</ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=253152011-02-18T14:18:11ZSepp _
<ul></ul><p>Nice work, thanks! Works!!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=253792011-02-21T09:07:27ZDmitriy Belokurov
<ul></ul><p>Hello. Does it works in wiki edition page? If not, how can I modify plugin for it? Thanks.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=253912011-02-21T10:50:39ZTerence Mill
<ul></ul><p>I get an error message for the execution of the applet after clicking on "Attach"</p>
<pre>
Loading: Class com.axmor.redmine.uploader.Uploader.class not found
java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:https://repo.gruppe.de/httpauth-loginplugin_assets/redmine_attach_screenshot/javascripts/com/axmor/redmine/uploader/Uploader/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 9 more
Ausnahme: java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class
</pre> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=257582011-02-28T23:31:11ZJames Moore
<ul></ul><p>In development mode I'm getting the following exception when loading redmine if I'm not already logged in via a cookie:</p>
<p>A copy of ApplicationController has been removed from the module tree but is still active!</p>
<p>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:414:in `load_missing_constant'<br />/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:96:in `const_missing'<br />/Library/WebServer/Documents/hive-stable/app/controllers/application_controller.rb:55:in `user_setup'</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=271752011-03-27T00:53:06ZJaromir Dvoracek
<ul><li><strong>File</strong> <a href="/attachments/5678">cs.yml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5678/cs.yml">cs.yml</a> added</li></ul><p>Hello,</p>
<p>can you please attach Czech translation to redmine_attach_screenshot plugin?</p>
<p>Thanks a lot.</p>
<p>J. Dvoracek</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=272282011-03-28T19:01:02ZMarco Descher
<ul></ul><p>Hey,</p>
<p>great tool, I created a german translation, if you want to include it:</p>
<pre>
de:
label_screenshots: Screenshots
label_add_another_screenshot: Screenshot hinzufügen
label_button_paste: Bild von der Zwischenablage einfügen
label_image: Screenshot
button_attach: Hinzufügen
error_close_msg: Kann applet, {0} nicht schliessen
error_close_title: Fehler
error_attach_msg: Fehler, {0}
error_attach_title: Fehler beim Hinzufügen
</pre>
<p>I have 2 remarks:</p>
<ul>
<li>It would be great, if the view presented when including a screenshot from clipboard, adapts to the size of the screen. Currently on my MB 13" I dont' see the buttons at the end, without switching to fullscreen mode :)</li>
<li>Please put the label field for the just added image near the image itself, and add a label on what this label field is all about :)</li>
</ul>
<p>Big it up for you! :)<br />Marco</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=272412011-03-28T22:57:25ZToshi MARUYAMA
<ul><li><strong>Category</strong> set to <i>UI</i></li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=274532011-04-01T14:39:38ZIl'ya Shakitko
<ul><li><strong>File</strong> <a href="/attachments/5740">CP.JPG</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5740/CP.JPG">CP.JPG</a> added</li></ul><p>Hi Alex!</p>
<p>Can you migrate this feature to Skype-similar style? In skype i can press Ctrl + V and image from clipboard past into message.</p>
<p>Could be better if you can realize it and include in config to enable this feature. Ctrl+V when focused on textarea, and image from CP inserted like a small thumb. (screenshot included)</p>
<p><img src="https://www.redmine.org/attachments/download/5740/CP.JPG" title="How the Skype realize paste an image into textarea" alt="How the Skype realize paste an image into textarea" /></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=274652011-04-01T17:47:58ZAlex Last
<ul></ul><p>I think this is a great idea: intercepting "paste from clipboard" event in the text area and automatically start the image import process if the clipboard contains an image.</p>
<p>I'm not the one who implemented this feature. I hope the feature developers can add this.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=276932011-04-08T03:07:46Z功磊 马
<ul><li><strong>File</strong> <a href="/attachments/5774">zh.yml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5774/zh.yml">zh.yml</a> added</li></ul><p>It works well for me in Chrome10,but not other browsers like IE9 64bit,Firfox 3.6 32bit and other Chinese special browser like Sougou.<br />My OS Win7 64bit.</p>
<p>And I add a Simplified Chinese translation:</p>
<p>zh:<br /> label_screenshots: 从剪贴板里添加截图<br /> label_add_another_screenshot: 添加另一张截图<br /> label_button_paste: 从剪贴板里添加截图<br /> label_image: 截图<br /> button_attach: 添加<br /> error_close_msg: 无法关闭 applet, {0}<br /> error_close_title: 错误<br /> error_attach_msg: 错误, {0}<br /> error_attach_title: 添加错误</p>
<p>Any thanks very much for your work.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=277202011-04-08T11:10:38ZRuben Kruiswijk
<ul><li><strong>File</strong> <a href="/attachments/5782">nl.yml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5782/nl.yml">nl.yml</a> added</li></ul><p>Added dutch translation</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=279592011-04-15T14:48:08ZJason M
<ul></ul><p>While trying to run redmine_attach_screenshot-0.1.0.zip on redmine 1.1.2 I get the following error after clicking the Add button:</p>
<pre>
load: class com.axmor.redmine.uploader.Uploader.class not found.
java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class
</pre>
<p>Any idea how to get around this?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=284622011-04-29T11:37:07ZEduardo Ramos
<ul></ul><p>Jason M wrote:</p>
<blockquote>
<p>While trying to run redmine_attach_screenshot-0.1.0.zip on redmine 1.1.2 I get the following error after clicking the Add button:</p>
<p>[...]</p>
<p>Any idea how to get around this?</p>
</blockquote>
<p>I have the same problem, any idea ?<br />Regards,</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=289072011-05-16T09:58:22Zvincent cache
<ul></ul><p>Hello,</p>
<p>When i try to use redmine_attach_screenshot-0.1.0.zip with Redmine 1.0.4 on IE6, it doesn't work.<br />I've no problem on mozilla or IE8, but my users are on IE6.</p>
<p>Someone can help me please?</p>
<p>Regards</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=289082011-05-16T10:02:50ZSepp _
<ul></ul><p>I get an error between 8am and 10am, every day. after 10am the applet works perfect!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=289092011-05-16T10:30:42ZTerence Mill
<ul></ul><p>There must be a redmine_attach_screenshot\assets\javascripts\uploader_applet.jar file which keeps the hava class Uploader.class in a subfolder "com/axmor/redmine/uploader" of the jar file.<br />You can check that if you open it e.g with winrar or winzip, which will work if renaming the file to zip before. The jar file itself shall be unpacked in "{redmine assets folder}\redmine_attach_screenshot\assets\javascripts\com\axmor\redmine\uploader \Uploader.class" after the plugin is installed and the redmine server is restarted. Check also the plugins folder in in the redmine/assets folder has read and execute rights.</p>
<p>Cleaning up this assets folder from the plugin folder after updates on the plugins is a good idea also.</p>
<p>Jason M wrote:</p>
<blockquote>
<p>While trying to run redmine_attach_screenshot-0.1.0.zip on redmine 1.1.2 I get the following error after clicking the Add button:</p>
<p>[...]</p>
<p>Any idea how to get around this?</p>
</blockquote> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=291732011-05-24T22:47:19ZJack Kurzecki
<ul></ul><p>Sepp _ wrote:</p>
<blockquote>
<p>I get an error between 8am and 10am, every day. after 10am the applet works perfect!</p>
</blockquote>
<p>try changing line 36 of <code>vendor\plugins\redmine_attach_screenshot\app\controllers\attach_screenshot_controller.rb</code> from:<br /><pre>
<code class="ruby syntaxhl"> <span class="nb">sprintf</span><span class="p">(</span><span class="s1">'%d_%d%s'</span><span class="p">,</span> <span class="no">User</span><span class="p">.</span><span class="nf">current</span><span class="p">.</span><span class="nf">id</span><span class="p">,</span> <span class="n">date</span><span class="p">,</span> <span class="nb">name</span><span class="p">)</span>
</code><br /></pre><br />to:<br /><pre>
<code class="ruby syntaxhl"> <span class="nb">sprintf</span><span class="p">(</span><span class="s1">'%d_%s%s'</span><span class="p">,</span> <span class="no">User</span><span class="p">.</span><span class="nf">current</span><span class="p">.</span><span class="nf">id</span><span class="p">,</span> <span class="n">date</span><span class="p">,</span> <span class="nb">name</span><span class="p">)</span>
</code><br /></pre></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=291742011-05-25T02:06:13ZKi Won Kim
<ul><li><strong>File</strong> <a href="/attachments/6046">ko.yml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6046/ko.yml">ko.yml</a> added</li></ul><p>Thank you!! then I was working well in 1.1.3<br />and attach korean language file.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=291752011-05-25T06:39:29ZSepp _
<ul></ul><p>Jack Kurzecki wrote:</p>
<blockquote>
<p>try changing line 36 of <code>vendor\plugins\redmine_attach_screenshot\app\controllers\attach_screenshot_controller.rb</code> from:</p>
</blockquote>
<p>Thanks, yes, that works!!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=297092011-06-09T09:29:57ZManu Dragon
<ul><li><strong>File</strong> <a href="/attachments/6126">fr.yml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6126/fr.yml">fr.yml</a> added</li></ul><p>thanks for that work too !<br />here is the french translation</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=303242011-06-27T21:06:20ZTerence Mill
<ul></ul><p>Can someone add some screenshots? Tx!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=306892011-07-13T09:40:33ZSteven Wong
<ul><li><strong>File</strong> <a href="/attachments/6277">未命名.PNG</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6277/%E6%9C%AA%E5%91%BD%E5%90%8D.PNG">未命名.PNG</a> added</li></ul><p>As you say ,it's a problem to how to use it in Internet Explorer and FrieFox.<br />Could anyone modify it for IE and Firefox? Very Thanks.</p>
<p>attachmen is the problem about IE.</p>
<p>功磊 马 wrote:</p>
<blockquote>
<p>It works well for me in Chrome10,but not other browsers like IE9 64bit,Firfox 3.6 32bit and other Chinese special browser like Sougou.<br />My OS Win7 64bit.</p>
<p>And I add a Simplified Chinese translation:</p>
<p>zh:<br />label_screenshots: 从剪贴板里添加截图<br />label_add_another_screenshot: 添加另一张截图<br />label_button_paste: 从剪贴板里添加截图<br />label_image: 截图<br />button_attach: 添加<br />error_close_msg: 无法关闭 applet, {0}<br />error_close_title: 错误<br />error_attach_msg: 错误, {0}<br />error_attach_title: 添加错误</p>
<p>Any thanks very much for your work.</p>
</blockquote> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=308792011-07-19T17:34:02ZJamie Gruener
<ul></ul><p>Without the plugin installed, hitting Enter while on the edit/update page will click the Submit button (unless in a text control that allows returns, of course). With the plugin installed, hitting Enter causes the plugin's Add button to be clicked.</p>
<p>Could we change the action for the button from "submit" to "button"? My quick tests in Firefox via Firebug suggest that this change had no ill effects and also allows Enter to Submit the issue form without triggering the Add.</p>
<p>I tried creating an issue for this (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Screenshot Paste Plugin "Add" button action change (Closed)" href="https://www.redmine.org/issues/8852">#8852</a>), but that was closed because "this tracker is for Redmine core issues only, you should contact the Mylyn plugin author." Funny!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=312562011-08-04T11:34:13ZManu Dragon
<ul></ul><p>when I want to add a screenshot with this plugin, my new issue is directly created with no screenshot<br />I was ok with the older redmine version but no more working with Redmine 1.2.0.stable</p>
<p>any idea ? ^^</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=316012011-08-19T03:57:30ZJamie Gruener
<ul></ul><p>I answered my own question.</p>
<p>If you add <code>:type => 'button',</code> to line 27 of <code>redmine_attach_screenshot/app/views/attachments/_form.rhtml</code>, viola!</p>
<p>Old<br /><pre><code class="ruby syntaxhl"><span class="o"><</span><span class="sx">%= submit_tag l(:button_add), :onclick =</span><span class="o">></span> <span class="s1">'showAttachScreen(); return false;'</span><span class="o">%></span>
</code></pre></p>
<p>New<br /><pre><code class="ruby syntaxhl"><span class="o"><</span><span class="sx">%= submit_tag l(:button_add), type =</span><span class="o">></span> <span class="s1">'button'</span><span class="p">,</span> <span class="ss">:onclick</span> <span class="o">=></span> <span class="s1">'showAttachScreen(); return false;'</span><span class="o">%></span>
</code></pre></p>
<p>Now the Add button isn't triggered when you hit Enter.</p>
<p>Redmine 1.2.0 stable, Ubuntu 10.04.2 LTS running on Rackspace.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=327932011-10-10T22:01:48ZTom Ka
<ul></ul><p>Thanks for the plugin. I get it to load, but a click on "attach" or "close" gets me an error message: "unknown protocol: javascript". Any idea on this? I'm running an nginx server, maybe there needs to be some configuration for this to work?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=328592011-10-13T19:04:17ZTom Ka
<ul></ul><p>I've soled my problem and it seems it was only problem with OpenJDK. The change had to be made in the Uploader class in the uploader_applet.jar file. If it is okay with axmor (I'll write them an email) I release the change on <a href="https://github.com/tomka/redmine_attach_screenshot" class="external">my github repo</a>. If not, than you need to follow <a href="http://stackoverflow.com/questions/173617/calling-js-from-applet-malformedurlexception-unknown-protocol-javascript" class="external">this thread</a> on stackoverflow for all the URL constructors except the one in the <em>sendContentToServer()</em> method. And be aware that you need to (self-)sign the resulting jar file if you want access to the claiboard :-).</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=329682011-10-20T18:06:08ZRich Sagendorf
<ul></ul><p>Max Meier wrote:</p>
<blockquote>
<p>Hi,</p>
<p>I tried attaching a screenshot via Alt+Print and the button "Copy from clipboard". The image is visible in the applrt window, but when I attach it to the issue, I get the following in my log:<br />[...]</p>
<p>I am using redmine 0.9.3.stable-3625 and imagemagick-6.5.8.8</p>
<p>Any help would be appreciated.</p>
</blockquote>
<p>I'm having the same issue, but I'm using the BitNami Stack on Windows, and it looks like ImageMagick already has the correct delegate configuration. Hopefully someone has an idea, because I'm fairly stumped! Thanks!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=334892011-11-04T02:24:36ZAkiko Takano
<ul></ul><p>Nice plugin!<br />It would be nice for me to be able to trim the image on the applet :)</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=343242011-11-30T09:52:23ZThibaut Tropardy
<ul></ul><p>Same thing, it'll great if Redmine use thumbmail.<br />Screenshot overflow on the right.</p>
<p>Auto-incremente name "screenshow-<INCREMENT>" and automatically insert image in the text box</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=344032011-12-04T21:47:38ZJohn Pataki
<ul></ul><p>First I'd like to say I really like this plugin and use it often.<br />I've recently updated to latest release of JAVA on my Macbook Pro and now when I use this plugin, it doesn't seem to be capturing the clipboard correctly or at all.<br />The preview during image capture doesn't show the clipboard contents and while images appear to be saved, they are blank / transparent nothingness.</p>
<p>Has anyone else noticed this? <br />Will there be an update to accommodate the most recent JAVA for OSX (Snow Leopard) update?</p>
<p>java version "1.6.0_29" <br />Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527)<br />Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=353912012-01-16T15:56:46ZMatthias Neubert
<ul></ul><p>Plugin seems not to work with Redmine 1.3.0</p>
<p>Problem: While the preview of the inserted screenshot is shown good, the resulting image file produced is empty (but has about 1.5 KBytes)</p>
<p>Rmagick is installed</p>
<p>Someone knows something about that?</p>
<p>regards<br />matthias</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=355072012-01-23T09:24:42ZRenzo Meister
<ul><li><strong>File</strong> <a href="/attachments/7072">redmine_attach_screenshot.zip</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7072/redmine_attach_screenshot.zip">redmine_attach_screenshot.zip</a> added</li></ul><p>I've made a small patch for this plugin because of number overflow in Redmine 1.3.0.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=355992012-01-29T00:43:32ZStephen Curran
<ul></ul><p>Renzo, what was the symptom you were addressing because of the "number overflow in Redmine 1.3.0", and what did you change in the plugin?</p>
<p>We are seeing a problem in our Redmine 1.3 installation that had been a problem with a previous version of the plugin - we can't add multiple file attachments to an Issue with this plugin installed. We have been running 1.2.2 and recently updated this plugin to the latest version and finally had multiple file attachments working. Upgraded to Redmine 1.3 and that feature is again gone. Has anyone else encountered that and any idea what the issue is?</p>
<p>Note - we haven't tried Redmine 1.3 without this plugin, so perhaps something else is the problem.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=359392012-02-09T15:27:51ZWilliam Roush
<ul></ul><p>Having the same issue as Stephen, I <em>removed</em> the plugin and multiple uploads works again. Get contacted the next day because I removed the plugin, "I need screenshots more than I need multiple uploads" (your plugin is great!).</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=359402012-02-09T15:47:29ZWilliam Roush
<ul><li><strong>File</strong> <a href="/attachments/7186">_form.rhtml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7186/_form.rhtml">_form.rhtml</a> added</li></ul><p><a class="user active" href="https://www.redmine.org/users/7944">Stephen Pearce</a>: I've attached a fix to this post, drop this in {redmine}/vendors/plugins/redmine_attach_screenshot/app/views/attachments/</p>
<p>Back up the original in case you find any bugs, but from what I've tested, both multiple-upload and screenshots still work.</p>
<p>This is because Redmine changed the form, but this plugin doesn't use the new one. I may fork this if the creator has lost all interest in upkeeping this and drop it on Bitbucket or something.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=360672012-02-14T19:55:36ZYuri Krichevsky
<ul></ul><p>I'm having the same issue as John - confirmed on 2 different Mac's with latest Java 1.6.0_29 update 1.<br />The preview during image capture doesn't show the clipboard contents and while images appear to be saved, they are blank / transparent nothingness.<br />Tested in Chrome / Firefox / Safari.</p>
<p>From Window PC everything works fine.</p>
<p>Is there any solution to the issue ?</p>
<p>John Pataki wrote:</p>
<blockquote>
<p>java version "1.6.0_29" <br />Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527)<br />Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)</p>
</blockquote> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=361692012-02-19T01:09:14ZWilliam Roush
<ul></ul><p>Sadly the Java is packed and not open source, someone would have to rewrite that from the ground up, but I'm tempted to do it if no one else speaks up (I already have a fork with my fixes [Redmine 1.3.0 support + Ruby 1.9 support] and Renzo Meister's bug fix).</p>
<p>Edit:</p>
<p>And while I'm not a flash developer, I'm tempted to go with flash, because Java applets cause whining on various browsers due to security purposes, and I'd like to eliminate that. I'll debate a bit on this.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=361702012-02-19T03:46:16ZWilliam Roush
<ul></ul><p>Scratch the applet replacement, looks like fixing the Java app will be fairly trivial...</p>
<p>Can anyone confirm if the Mac bug happens on Linux? I don't have an OSX machine to debug the applet with. From what I see some debug information should end up in the Java console if you have access to that. Without additional information debugging this becomes nearly impossible and we get to twiddle our thumbs until someone that has access to an OSX machine wants to figure this one out.</p>
<p>Current repo here, includes java code under src/ on develop branch:</p>
<p><a class="external" href="https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/">https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/</a></p>
<p>Bug reported here if you happen to get a stack trace dump or something:</p>
<p><a class="external" href="https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/issue/1/cannot-attach-screenshots-in-osx">https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/issue/1/cannot-attach-screenshots-in-osx</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=363202012-02-24T15:25:18ZJoe Cullin
<ul></ul><p>Same thing on my mac: pasted image shows correctly in the browser, but after saving the issue it's just a blank png. The java console showed nothing by default. When I increased the log level to 5, I still barely got any console output:</p>
<pre>
Java Plug-in 1.6.0_29
Using JRE version 1.6.0_29-b11-402-11D50b Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/joecullinTrace level set to 5: all… completed.
network: Connecting http://...com/attach_screenshot with proxy=DIRECT
network: Connecting http://....com:80/ with proxy=DIRECT
basic: Starting applet teardown
basic: Finished applet teardown
</pre>
<p>Here's what the file looks like on the server. I'm guessing that most of this is a PNG header generated by RMagick, and little to none of it is actual image data.<br /><pre>
$ od -c 120224071433_6_71420.000000screenshot.png
0000000 211 P N G \r \n 032 \n \0 \0 \0 \r I H D R
0000020 \0 \0 004 250 \0 \0 002 276 \b 006 \0 \0 \0 206 202 &
0000040 231 \0 \0 \f 303 I D A T x 332 355 301 201 \0 \0
0000060 \0 \0 303 240 371 S 337 340 004 U 001 \0 \0 \0 \0 \0
0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0006340 \0 \0 \0 \0 \0 \0 < 003 030 { \0 001 370 360 254 F
0006360 \0 \0 \0 \0 I E N D 256 B ` 202
0006374
</pre></p>
<p>I noticed that the image sizes in the files directory seem to vary correctly -- that is, if I attach a bigger screenshot, I get a bigger white image. I don't have much time to play with this right now, and I'm no java person, but I'll poke around some more later at home where I also have a PC to compare against. I wonder if it's something such as a mac-style line ending breaking the stream of data read by the server.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=363302012-02-25T02:30:19ZJoe Cullin
<ul></ul><p>My last update doesn't seem to have taken. Maybe the forums thought I was posting malicious code. (I had posted in the entire post request to /attach_screenshot from my mac.</p>
<p>Anyway, it appears that the body of that request doesn't have very much data. The content length was only 1726 for a full-screen sized image. The headers & mime markers were bigger than the actual png data.</p>
<p>Googling for ImageIO on mac, I see some vague complaints about how mac java is not kept up to date. I have the latest available from Apple. Maybe there's a way to upgrade unofficially, but I'm not sure I want to risk breaking other things.</p>
<p>If you want me to try any other debugging on mac, let me know. I think this could be a popular plugin for our redmine users, but many of them use macs.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=364682012-03-04T00:34:58ZWilliam Roush
<ul></ul><p>As you either guessed or looked, ImageIO is being used:</p>
<p><a class="external" href="https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/src/58dac40e7002/src/java_applet/com/axmor/redmine/uploader/Uploader.java#cl-134">https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/src/58dac40e7002/src/java_applet/com/axmor/redmine/uploader/Uploader.java#cl-134</a></p>
<p>I'll dig around for what I can do to work around that, I'd like to get this working for Mac users too.</p>
<p>Thanks for the dumps, but they're pretty useless if it's ImageIO (which looking at the code and the output from you, it seems to definitely be that.</p>
<p>I may be able to get some kind of beta build going this week, and I'll verify if this has problems on Linux too.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=367582012-03-12T16:12:44ZNorbert Penel
<ul><li><strong>Assignee</strong> set to <i>Azamat Hackimov</i></li></ul><p>i get an error 500 on upload script<br />i spent 1 day for install rmagick + imagemagick and it does not works !!!<br />could you help me ?</p>
<blockquote>
<p>/!\ FAILSAFE /!\ Mon Mar 12 17:07:26 +0100 2012<br />Status: 500 Internal Server Error<br />bad content body<br />/usr/lib/ruby/vendor_ruby/rack/multipart/parser.rb:108:in `get_current_head_and_filename_and_content_type_and_name_and_body'<br />/usr/lib/ruby/vendor_ruby/rack/multipart/parser.rb:19:in `parse'<br />/usr/lib/ruby/vendor_ruby/rack/multipart/parser.rb:17:in `loop'<br />/usr/lib/ruby/vendor_ruby/rack/multipart/parser.rb:17:in `parse'<br />/usr/lib/ruby/vendor_ruby/rack/multipart.rb:25:in `parse_multipart'<br />/usr/lib/ruby/vendor_ruby/rack/request.rb:306:in `parse_multipart'<br />/usr/lib/ruby/vendor_ruby/rack/request.rb:182:in `POST'<br />/usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:15:in `call'<br />/usr/lib/ruby/vendor_ruby/action_controller/params_parser.rb:15:in `call'<br />/usr/lib/ruby/vendor_ruby/action_controller/session/cookie_store.rb:99:in `call'<br />/usr/lib/ruby/vendor_ruby/action_controller/failsafe.rb:26:in `call'<br />/usr/lib/ruby/vendor_ruby/rack/lock.rb:15:in `call'<br />/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:106:in `call'<br />/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:95:in `process_request'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'<br />/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler'<br />/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'<br />/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'<br />/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'<br />/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in `start'<br />/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'<br />/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'<br />/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'<br />/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'<br />/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'<br />/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'<br />/usr/lib/phusion_passenger/passenger-spawn-server:61</p>
</blockquote> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=370662012-03-26T19:01:12Zmarcin t
<ul></ul><p>Still seeing same issue with attach plugin:</p>
<p>Java Plug-in 1.6.0_31<br />Using JRE version 1.6.0_31-b05 Java HotSpot(TM) Client VM<br />User home directory = C:\Users\marcin.tauter<br />----------------------------------------------------<br />c: clear console window<br />f: finalize objects on finalization queue<br />g: garbage collect<br />h: display this help message<br />l: dump classloader list<br />m: print memory usage<br />o: trigger logging<br />q: hide console<br />r: reload policy configuration<br />s: dump system and deployment properties<br />t: dump thread list<br />v: dump thread stack<br />x: clear classloader cache<br />0-5: set trace level to <n><br />----------------------------------------------------</p>
<p>load: class com.axmor.redmine.uploader.Uploader.class not found.<br />java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class<br /> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)<br /> at java.lang.ClassLoader.loadClass(Unknown Source)<br /> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br /> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br /> at java.lang.Thread.run(Unknown Source)<br />Exception: java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=376412012-04-24T09:12:40ZNabil Faouzi
<ul><li><strong>Assignee</strong> deleted (<del><i>Azamat Hackimov</i></del>)</li></ul><p>Hi <br /><a class="user active" href="https://www.redmine.org/users/108873">Renzo Alhan Rabiço</a> Meister : I've tried to install your plugins but, it seem's don't work fine with my redmine 1.3.X</p>
<p>When i wan't to paste screenshot from a new issue, i' ve got this error (similar to marcinT error):</p>
<pre>
ActionController::RoutingError (No route matches "/plugin_assets/redmine_attach_screenshot/javascripts/com.axmor.redmine.uploader.Uploader.class" with {:method=>:get}):
passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
</pre><br />There is my /plugins_assets/redmine_attach_screenshot/ directory:
<pre>
plugin_assets/redmine_attach_screenshot/javascripts:
total 16
-rw-r--r-- 1 apache apache 480 24 avril 10:20 attach_screenshot.js
-rw-r--r-- 1 apache apache 9321 24 avril 10:20 uploader_applet.jar
plugin_assets/redmine_attach_screenshot/stylesheets:
total 4
-rw-r--r-- 1 apache apache 624 24 avril 10:20 attach_screenshot.css
</pre>
<p>My Seconds question, are they similar plugins this allows paste screenshot in other format than png (Jpeg) ?</p>
<p>Thanks for help,</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=377282012-04-27T06:57:33ZMarco Descher
<ul><li><strong>File</strong> <a href="/attachments/7541">interferes.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7541/interferes.png">interferes.png</a> added</li><li><strong>File</strong> <a href="/attachments/7542">noInterferes.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7542/noInterferes.png">noInterferes.png</a> added</li></ul><p>In Redmine-1.3.3 I face a new error, when using the redmine_attach_screenshot plugin:</p>
<p>It is not possible any more to use "Add another file". If the plugin is installed it does not work, if I remove it, however, it perfectly works again! Please see the enclosed screenshots <em>Redmine 1.3.3 and redmine_attach_screenshot interfere</em> and <em>Redmine 1.3.3 without redmine_attach_screenshot works</em> for examples.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=377902012-05-01T06:15:45ZWilliam Roush
<ul></ul><p>Can everyone that is having issues please pull the latest master branch from here:</p>
<p><a class="external" href="https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/overview">https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/overview</a></p>
<p>And make sure the plugin folder is named: "redmine-inline-attach-screenshot", it should resolve all of the above issues (outside of OSX compatibility fix, though the Java source is included now for anyone that wants to tweak that!).</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=378062012-05-01T18:24:51ZPaul Ohm
<ul></ul><p>Plugin is working for me on 1.4.1.stable.9526 although I did need to update my Java client for Windows.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=378102012-05-01T20:26:46ZMarco Descher
<ul></ul><p>Attachment problem solved with the newest redmine-inline-attach! Works for 1.3.3 :) Thanks!</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=386762012-06-03T18:17:39ZWilliam Roush
<ul></ul><p>In Redmine 2.0 they enforce folder names to match the plugin name, so the new folder name is "redmine_inline_attach_screenshot", you'll just have to pull into that folder and not just clone from Bitbucket.</p>
<p>Other than that, works in 2.0. :) We also maintain backwards compatibility with Redmine 1.x.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=389692012-06-13T06:39:16ZAngeline Lee
<ul><li><strong>File</strong> <a href="/attachments/7749">error.PNG</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7749/error.PNG">error.PNG</a> added</li></ul><p>I get the following error after clicking the Attach button on Redmine 1.4.3</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=390532012-06-15T15:17:14ZWilliam Roush
<ul></ul><p>Angeline Lee wrote:</p>
<blockquote>
<p>I get the following error after clicking the Attach button on Redmine 1.4.3</p>
</blockquote>
<p>Can you check logs/production.log and get me the relevant error?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=391152012-06-18T13:09:12ZAlbert Yates
<ul></ul><p>Many of our users are getting the error that Angeline posted about. They are not getting it all the time, just some of the time.</p>
<p><img src="http://www.redmine.org/attachments/download/7749/error.PNG" alt="" /></p>
<p>Here is error from our Production.log:</p>
<pre>
Processing AttachScreenshotController#index (for 10.179.205.32 at 2012-06-18 09:56:45) [POST]
Parameters: {"action"=>"index", "controller"=>"attach_screenshot", "key"=>"64d20a7957aba4d886ff47bdac32953ead08d127", "attachments"=>#<File:C:/Windows/Temp/RackMultipart20120618-5364-1itrzz6-0>}
ArgumentError (invalid value for Integer: "095645"):
vendor/plugins/redmine_attach_screenshot/app/controllers/attach_screenshot_controller.rb:36:in `sprintf'
vendor/plugins/redmine_attach_screenshot/app/controllers/attach_screenshot_controller.rb:36:in `make_tmpname'
vendor/plugins/redmine_attach_screenshot/app/controllers/attach_screenshot_controller.rb:13:in `index'
config/initializers/mongrel.rb:62:in `dispatch_cgi'
Rendering C:/redmine/public/500.html (500 Internal Server Error)
</pre> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=391232012-06-18T15:20:22ZJack Kurzecki
<ul></ul><p>Re: Albert and Angeline:<br />This is an old bug with an easy fix.<br />Take a look at <a href="http://www.redmine.org/issues/3816#note-82" class="external">note 82</a> above</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=391242012-06-18T15:52:50ZAlex Last
<ul></ul><p>I submitted this request 3 years ago and it's still not resolved. I totally lost interest in it now.<br />how can I unsubscribe from this?..</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=391262012-06-18T17:07:54ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>allow pasting screenshots like it's done in Jira</i> to <i>Allow pasting screenshots like it's done in Jira</i></li></ul><p>Please, open a topic about this plugin and continue the discussion in the <a href="/projects/redmine/boards/3">Plugins</a> forum.<br />We track issues about Redmine core in this issue tracker, thanks.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=391322012-06-19T01:46:56ZAngeline Lee
<ul></ul><p>Jack Kurzecki wrote:</p>
<blockquote>
<p>Re: Albert and Angeline:<br />This is an old bug with an easy fix.<br />Take a look at <a href="http://www.redmine.org/issues/3816#note-82" class="external">note 82</a> above</p>
</blockquote>
<p>Thanks.It works now.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=392302012-06-22T18:04:59ZWilliam Roush
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>Please, open a topic about this plugin and continue the discussion in the <a href="/projects/redmine/boards/3">Plugins</a> forum.<br />We track issues about Redmine core in this issue tracker, thanks.</p>
</blockquote>
<p>Actually let me back that up with post in the relevant plugin tracker (and <em>please</em> submit any fixes or improvements you have!):</p>
<p><a class="external" href="http://www.redmine.org/plugins/redmine_attach_screenshot_2">http://www.redmine.org/plugins/redmine_attach_screenshot_2</a></p>
<p><a class="external" href="https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/issues?status=new&status=open">https://bitbucket.org/StrangeWill/redmine-inline-attach-screenshot/issues?status=new&status=open</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=393762012-06-28T20:11:30ZWilliam Roush
<ul></ul><p>Update on this for possible Redmine patch:</p>
<p>Does anyone know how JIRA does it? HTML5? Java?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=498102013-06-03T14:54:05ZSandro Camarao
<ul></ul><p>+1</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=498302013-06-04T09:07:58ZDaniel Felix
<ul></ul><p>One idea could be to check (via JS) if the pasted data, or data that will be pasted, contains binary data. Only if the pasted data is plaintext, the text will be pasted inside the textfield. In all other cases, the text will be pasted to a hidden field in the background, which will be converted later on to a png (on the server).</p>
<p>Another idea is to convert the binary data to a .png on the client side, upload it with the ajax uploader and display it as usual.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=534632013-11-29T18:51:49Zdj jones
<ul></ul><p>This plugin we announced today - may do what is wanted - it will be released before end of December.</p>
<p><a class="external" href="http://www.redmine.org/plugins/not-known-yet">http://www.redmine.org/plugins/not-known-yet</a></p>
<p>It allows - without (java) in one issue to :</p>
<p>enter text<br />paste a screenshot direct from clipboard<br />enter more text<br />paste a screenshot<br />etc</p>
<p>and the images are visible in the issue and stay in that layout order (specifically -do NOT become attachments like any other file uploaded would).</p>
<p>I've mentioned it in the forum here:<br /><a class="external" href="http://www.redmine.org/boards/3/topics/40491">http://www.redmine.org/boards/3/topics/40491</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=594822014-10-30T02:48:01ZArturo Bruno
<ul></ul><p>I forked an extension and build this functionality, among other small fixes that my company (Enova.mx) needed. Hope you guys find it usefull.</p>
<p>Fork: <a class="external" href="https://github.com/sayar/send-to-redmine">https://github.com/sayar/send-to-redmine</a><br />My extension: <a class="external" href="https://github.com/lordn-n/enova-fs-send-to-redmine">https://github.com/lordn-n/enova-fs-send-to-redmine</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901282019-02-14T11:22:59ZTakenori TAKAKItakenory@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/22410">attach_clipboard_image.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22410/attach_clipboard_image.patch">attach_clipboard_image.patch</a> added</li></ul><p>I made a patch to attach image data from the clipboard, by adding a js code on attachment.js.<br />By applying this patch, user will be able to attach clipboard image on Issue, Wiki, Forum etc.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901292019-02-14T13:29:44ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/22411">pasted-image@2x.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22411/pasted-image@2x.png">pasted-image@2x.png</a> added</li><li><strong>Subject</strong> changed from <i>Allow pasting screenshots like it's done in Jira</i> to <i>Allow pasting screenshots from clipboard</i></li><li><strong>Category</strong> changed from <i>UI</i> to <i>Attachments</i></li><li><strong>Target version</strong> set to <i>4.1.0</i></li></ul><p>I have tried out the patch and it works really fine. This 15 lines of patch add a long-awaited feature and I am sure that it should greatly improve user experiences.</p>
<p>I am setting the target version to 4.1.0.</p>
<p><img src="https://www.redmine.org/attachments/download/22411/pasted-image@2x.png" srcset="https://www.redmine.org/attachments/download/22411/pasted-image@2x.png 2x" style="width: 491px;border: 1px solid #ccc;" alt="" /></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901302019-02-14T14:00:43ZAndreas Schnöppl
<ul></ul><p>Why not take the clipboard image paste plugin?<br /><a class="external" href="https://www.redmine.org/plugins/clipboard_image_paste">https://www.redmine.org/plugins/clipboard_image_paste</a></p>
<ul>
<li>Has short filenames</li>
<li>Has crop functionality</li>
</ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901422019-02-14T21:47:56ZGo MAEDA
<ul></ul><p>Andreas Schnöppl wrote:</p>
<blockquote>
<p>Why not take the clipboard image paste plugin?</p>
</blockquote>
<p>clipboard_image_paste is an excellent plugin but it will take a long time to merge to the Redmine core. The reasons are as follows:</p>
<ul>
<li>No one has made a patch for Redmine core</li>
<li>Since the plugin introduces big changes to the UI, it is not easy to achieve a consensus on integrating it with the core. On the other hand, merging the tiny patch written by Takenori Takaki is much easier because it does not change any appearance and has no influence on the existing features</li>
</ul>
<p>Although the patch does not have some features that clipboard_image_paste have, I think adding the simple image pasting feature would be a great improvement. Since the patch is ready, we can improve Redmine right now.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901452019-02-14T22:50:09ZKohei Nakamura
<ul></ul><p>+1</p>
<p>"clipboard image paste" plugin is very nice and <br />I installed it all my Redmine.</p>
<p>But I can not use it in environments <br />where plugins can not be installed freely, <br />such as using redmine elsewhere.</p>
<p>Redmine which can not use this function is very disappointing.</p>
<p>So this patch is very wonderful !</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901462019-02-15T05:36:29ZMarius BĂLTEANU
<ul></ul><p>Andreas Schnöppl wrote:</p>
<blockquote>
<p>Why not take the clipboard image paste plugin?<br /><a class="external" href="https://www.redmine.org/plugins/clipboard_image_paste">https://www.redmine.org/plugins/clipboard_image_paste</a></p>
<ul>
<li>Has short filenames</li>
</ul>
</blockquote>
<p>We can support this on the proposed patch.</p>
<blockquote>
<ul>
<li>Has crop functionality</li>
</ul>
</blockquote>
<p>Indeed, but I don't think that it is enough or it worth it to support this feature considering that are o lot of tools for screenshots available which do a better job. For example, I'm very happy with the default screenshots tool from OSx and as well, Windows has one (Snipping Tool). Besides crop, you will need most probably support for shapes, text, color and so on.</p>
<p>Go MAEDA wrote:</p>
<blockquote>
<p>I have tried out the patch and it works really fine. This 15 lines of patch add a long-awaited feature and I am sure that it should greatly improve user experiences.</p>
</blockquote>
<p>I think we should improve a little bit the patch before committing it. For example: <br />- we should check if clipboardData is available<br />- "wiki-edit" class doesn't mean automatically that a "files" input is available.</p>
<p>In conclusion, I'm in favour of adding a basic copy paste feature.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901472019-02-15T08:24:33ZGo MAEDA
<ul></ul><p>Marius BALTEANU wrote:</p>
<blockquote>
<p>- "wiki-edit" class doesn't mean automatically that a "files" input is available.</p>
</blockquote>
<p>You are right. For example, "textarea.wiki-edit" on /settings page don't accept attachments. Do you think that we can resolve that by replacing <code>$(".wiki-edit")</code> with <code>$(".filedroplistner .wiki-edit")</code>?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901702019-02-16T01:07:17ZTakenori TAKAKItakenory@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/22421">attach_clipboard_image_short_file_name.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22421/attach_clipboard_image_short_file_name.patch">attach_clipboard_image_short_file_name.patch</a> added</li><li><strong>File</strong> <a href="/attachments/22422">pasted-image-shor-file-name@2x.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22422/pasted-image-shor-file-name@2x.png">pasted-image-shor-file-name@2x.png</a> added</li></ul><p>Go MAEDA wrote:</p>
<blockquote>
<p>Marius BALTEANU wrote:</p>
<blockquote>
<p>- "wiki-edit" class doesn't mean automatically that a "files" input is available.</p>
</blockquote>
<p>You are right. For example, "textarea.wiki-edit" on /settings page don't accept attachments. Do you think that we can resolve that by replacing <code>$(".wiki-edit")</code> with <code>$(".filedroplistner .wiki-edit")</code>?</p>
</blockquote>
<p>Thank you for pointing out problems and suggesting solutions.<br />I changed the patch and attach it.</p>
The changes are as follows.
<ul>
<li>replaced $ (". wiki-edit") --> $ (". filedroplistner. wiki-edit")</li>
<li>shortened file name (clipboard-yyyymmddhhmmss-randam7.png).</li>
</ul>
<p><img src="https://www.redmine.org/attachments/download/22422/pasted-image-shor-file-name@2x.png" srcset="https://www.redmine.org/attachments/download/22422/pasted-image-shor-file-name@2x.png 2x" style="width: 491px;border: 1px solid #ccc;" alt="" /></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901892019-02-17T14:00:07ZMarius BĂLTEANU
<ul><li><strong>File</strong> <i>attach_clipboard_images_v2.patch</i> added</li></ul><p>I've made some small changes to the patch, the most important is the check for <code>e.clipboardData || e.originalEvent.clipboardData</code> in order to not throw errors in the console when the clipboardData doesn't exist (for example: IE11).</p>
<p>Another changes:<br />- simplified the filename generation<br />- attach event using the existing logic.</p>
<p>The patch will not work in IE or Edge.</p>
<p>Takenori, Go, please let me know if you need more details about my changes.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901922019-02-17T14:20:00ZMarius BĂLTEANU
<ul><li><strong>File</strong> deleted (<del><i>attach_clipboard_images_v2.patch</i></del>)</li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=901932019-02-17T14:20:14ZMarius BĂLTEANU
<ul><li><strong>File</strong> <a href="/attachments/22431">attach_clipboard_images_v2.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22431/attach_clipboard_images_v2.patch">attach_clipboard_images_v2.patch</a> added</li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=902002019-02-17T15:15:03ZGo MAEDA
<ul></ul><p>Marius, thank you for reviewing and improving the patch.</p>
<blockquote>
<p>- simplified the filename generation</p>
</blockquote>
<p>The previous patch generates a filename like 'clipboard-201902181323-a1b2c3d.png'. I prefer to include a date like '20190217' in the filename because we can use issues filter to find issues that have screenshots attached on a specific date or in a specific period.</p>
<p>If the filename with date and time is too long, how about 'clipboard-20190218-a1b2c.png'? It is only 1 character longer than the patch you improved.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=902012019-02-17T16:15:47ZMarius BĂLTEANU
<ul></ul><p>Go MAEDA wrote:</p>
<blockquote>
<p>Marius, thank you for reviewing and improving the patch.</p>
<blockquote>
<p>- simplified the filename generation</p>
</blockquote>
<p>The previous patch generates a filename like 'clipboard-201902181323-a1b2c3d.png'. I prefer to include a date like '20190217' in the filename because we can use issues filter to find issues that have screenshots attached on a specific date or in a specific period.</p>
<p>If the filename with date and time is too long, how about 'clipboard-20190218-a1b2c.png'? It is only 1 character longer than the patch you improved.</p>
</blockquote>
<p>I don't have any preference for the filename, I chose to change it only because I found it simpler to have 1 line of code instead of 4 lines. You can revert my change.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=902122019-02-17T22:26:06ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed the patch. Now you can paste images from clipboard if you use modern browsers except for Edge and IE11.</p>
<p>I modified the patch to generate a filename like 'clipboard-yyyymmddHHMM-a1b2c.png' that is a bit shorter than Takenori TAKAKI's patch.</p>
<p>Thank you for improving Redmine. I am closing this 9 years old issue.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=902222019-02-18T06:06:07ZGo MAEDA
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/331">Feature #331</a>: Allow to insert a screen shot easily</i> added</li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=902242019-02-18T06:07:57ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-8 priority-4 priority-default" href="/issues/23579">Feature #23579</a>: Screenshot Button</i> added</li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=904432019-02-27T00:46:51ZKohei Nakamura
<ul></ul><p>Thank you MAEDA-san .</p>
<p>I tested Redmine 4.0, but unfortunately the "clipboard image paste plugin" did not work.<br />It will be a great feature to many Redmine 4.x users!</p>
<p>I am also very grateful to the author of "clipboard image paste plugin".<br /><a class="external" href="https://github.com/peclik/clipboard_image_paste">https://github.com/peclik/clipboard_image_paste</a></p>
<p>Thank you for a wonderful idea.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=911542019-04-08T08:04:38ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/31169">Patch #31169</a>: Wiki syntax help for document image pasting and drag/drop embedding</i> added</li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=948922019-11-13T15:27:57ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/32469">Defect #32469</a>: Text copied from some applications such as MS Office and LibreOffice is pasted as an image in addition to plain text</i> added</li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=948992019-11-13T23:43:29ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>An issue when the clipboard has both text and image has been reported as <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Text copied from some applications such as MS Office and LibreOffice is pasted as an image in add... (Closed)" href="https://www.redmine.org/issues/32469">#32469</a>.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=949292019-11-16T10:34:48ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Text copied from some applications such as MS Office and LibreOffice is pasted as an image in add... (Closed)" href="https://www.redmine.org/issues/32469">#32469</a> assigned to 4.1.0, let's keep this one closed.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=952632019-12-11T08:13:30ZMarius BĂLTEANU
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/32596">Patch #32596</a>: fix image pasting for Edge</i> added</li></ul> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=958282020-01-23T00:29:46ZCharlie CQ
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Text copied from some applications such as MS Office and LibreOffice is pasted as an image in add... (Closed)" href="https://www.redmine.org/issues/32469">#32469</a> assigned to 4.1.0, let's keep this one closed.</p>
</blockquote>
<p>Just want to clear, is this function is only for default Markdown Redmine editor not Ckeditor?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=958302020-01-23T06:26:44ZMarius BĂLTEANU
<ul></ul><p>Charlie CQ wrote:</p>
<blockquote>
<p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Text copied from some applications such as MS Office and LibreOffice is pasted as an image in add... (Closed)" href="https://www.redmine.org/issues/32469">#32469</a> assigned to 4.1.0, let's keep this one closed.</p>
</blockquote>
<p>Just want to clear, is this function is only for default Markdown Redmine editor not Ckeditor?</p>
</blockquote>
<p>I don't think that you will find a response here because Ckeditor is not part of Redmine core. You should ask plugin maintainers.</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=1020682021-04-17T14:22:06Zdj jones
<ul></ul><p>This solution is fine - and it attaches as a file, with a file name.</p>
<p>If you wanted it NOT as an attachment, but to be visible in the body of the ticket -this plugin provides it:</p>
<p><a class="external" href="https://www.redmine.org/plugins/redmine_image_clipboard_paste">https://www.redmine.org/plugins/redmine_image_clipboard_paste</a></p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=1039552021-08-26T14:22:08ZIgor M
<ul></ul><p>Takenori TAKAKI wrote:</p>
<blockquote>
<p>Go MAEDA wrote:</p>
<blockquote>
<p>Marius BALTEANU wrote:</p>
<blockquote>
<p>- "wiki-edit" class doesn't mean automatically that a "files" input is available.</p>
</blockquote>
<p>You are right. For example, "textarea.wiki-edit" on /settings page don't accept attachments. Do you think that we can resolve that by replacing <code>$(".wiki-edit")</code> with <code>$(".filedroplistner .wiki-edit")</code>?</p>
</blockquote>
<p>Thank you for pointing out problems and suggesting solutions.<br />I changed the patch and attach it.</p>
The changes are as follows.
<ul>
<li>replaced $ (". wiki-edit") --> $ (". filedroplistner. wiki-edit")</li>
<li>shortened file name (clipboard-yyyymmddhhmmss-randam7.png).</li>
</ul>
<p><img src="https://www.redmine.org/attachments/download/22422/pasted-image-shor-file-name@2x.png" srcset="https://www.redmine.org/attachments/download/22422/pasted-image-shor-file-name@2x.png 2x" style="width: 491px;border: 1px solid #ccc;" alt="" /></p>
</blockquote>
<p>Tell me, where can I change it so that when ctrl+v is used, the image is inserted as <br /><pre>
{{thumbnail(image.png)}}
</pre> <br />and not<br /><pre>
!image. png!
</pre> <br />?</p> Redmine - Feature #3816: Allow pasting screenshots from clipboardhttps://www.redmine.org/issues/3816?journal_id=1039782021-08-29T03:44:29ZMischa The Evil
<ul></ul><p>Igor M wrote:</p>
<blockquote>
<p>[...]<br />Tell me, where can I change it so that when ctrl+v is used, the image is inserted as [...]?</p>
</blockquote>
<p>There doesn't exist such a setting. Please add a new feature request if you want to request such a feature as this issue has been implemented and closed already.</p>