Inline image no longer points to original - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com2013-06-18T06:10:47Zhttp://fogbugz.stackexchange.com/feeds/question/10841http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://fogbugz.stackexchange.com/questions/10841/inline-image-no-longer-points-to-originalInline image no longer points to originalflipdoubt2012-10-02T15:36:57Z2012-10-02T18:04:21Z
<p>At one point, FogBugz scaled images displayed inline and linked to the original, but our in-house FogBugz installation no longer provides that link to the unscaled image. Is there any way to get that behavior back, as sometimes the scaled image is illegible because the original is too large?</p>
http://fogbugz.stackexchange.com/questions/10841/inline-image-no-longer-points-to-original/10842#10842Answer by db for Inline image no longer points to originaldb2012-10-02T18:04:21Z2012-10-02T18:04:21Z<p>I think you might be observing a subtle difference between case event attachments vs. inline image attachments in rich text case events.</p>
<p>When you attach a large image to a case event via the "Attach a file" link in the lower-right corner of the editor, you will see the "linkified image" behavior you've described in your question.</p>
<p>If, however, you include a large image in a rich text case event via the "Add Image" toolbar button you will <em>not</em> see the linkified image behavior.</p>
<p>The following <a href="http://fogbugz.stackexchange.com/questions/5520" rel="nofollow">BugMonkey customization</a> adds the "link to full-sized image" behavior to inline images in rich text case events:</p>
<pre><code>name: Link rich text case event images
description: Modifies inline rich text case event images to link to their full-sized image.
author: Dane Bertram
version: 1.0.0.0
js:
$('#BugEvents .body img')
.wrap(function() {
var img = $(this).addClass('dropShadow');
return $('<a>')
.attr('href', img.attr('src'))
.attr('target', 'altfilewindow')
.attr('title', 'Click for full-sized image');
});
</code></pre>