Item11214: can't create link to image
Priority: Urgent
Current State: Closed
Released In: 1.2.0
Target Release: minor
I can't figure out how to create a link to an image attachment in the WYSIWYG or in wiki text. I could do it in HTML, but I don't think I should have to.
The ATTACHURL and ATTACHURLPATH macros seem to make "img src=" tags upon saving, and the WYSIWYG seems to make "img src=" tags even though I clicked the paperclip and not the image.
How can I insert "a href=" tags? Please add to
TextFormattingRules, System.Macros, and/or
FileAttachment, as appropriate.
--
JayenAshar - 29 Oct 2011
why didn't System.Macros get auto-linked...?
--
JayenAshar - 29 Oct 2011
ok, i managed to get an "a href" tag by using text with the reference. eg. \[\[image\]\[text\]\]. similar to what the paperclip does with non-image files.
--
JayenAshar - 29 Oct 2011
http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2011-10-29,Sat&sel=190#l186
--
JayenAshar - 29 Oct 2011
Confirmed. See also duplicate
Item11631, which was marked urgent (so raising this one to Urgent).
--
PaulHarvey - 10 Mar 2012
Ah ok so I am not alone with this bug.
--
MichaelDaum - 10 Mar 2012
Could this be related to the
ImagePlugin overriding Render::_externalLink ?
--
JayenAshar - 08 Apr 2012
I think this has nothing to do with the editor. It's the core rendering engine which rewrites a-tags refering to images into img-tags. Tested on t.f.o. where no
ImagePlugin is installed. The existence of
Render::_isImageLink
suggests that this is desired behaviour.
--
OliverKrueger - 14 Mar 2014
Closing. It's a feature, not a bug.
--
OliverKrueger - 15 Mar 2014