Item11214: can't create link to image

pencil
Priority: Urgent
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Component: TinyMCEPlugin, WysiwygPlugin
Branches:
Reported By: JayenAshar
Waiting For:
Last Change By: OliverKrueger
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. wink

-- OliverKrueger - 14 Mar 2014

Closing. It's a feature, not a bug. wink

-- OliverKrueger - 15 Mar 2014
 

ItemTemplate edit

Summary can't create link to image
ReportedBy JayenAshar
Codebase 1.1.4, 1.1.4 RC2, 1.1.4 RC1, 1.1.4 beta2, 1.1.4 beta1, 1.1.3, trunk
SVN Range
AppliesTo Engine
Component TinyMCEPlugin, WysiwygPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins
TargetRelease minor
ReleasedIn 1.2.0
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r6 - 15 Mar 2014, OliverKrueger
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy