Item10048: WYSIWYG image tool inserts incorrect links with short URLs.

Priority: Normal
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Extension
Component: WysiwygPlugin
Reported By: GeorgeClark
Waiting For:
Last Change By: KennethLavrsen
Site with maximum short URL enabled:
$Foswiki::cfg{ScriptUrlPath} = '';
$Foswiki::cfg{ScriptUrlPaths}{view} = '';

Wysiwyg provides two tools to insert Image links. The Link tool works:

  • Click paperclip (manage attachments)
  • Select an image from the dropdown
  • Click "Insert Link"
  • Save topic, then view wikitext
  • Link is inserted in form of <img alt="dell1.jpg" src="" />

The image tool fails:

  • Click Insert/Edit image icon
  • Select an existing image in the dropdown
  • Click insert
  • Save topic
  • Link is inserted in form of <img alt="dell1.jpg" height="634" src="" title="dell1.jpg" width="401" />

This results in absolute URLs left behind in topics and site changes, can result in broken images.

-- GeorgeClark - 18 Nov 2010

The image tool adds a title attribute, and so the img tag is protected by the (default value of the) WYSIWYGPLUGIN_STICKYBITS.

-- MichaelTempest - 18 Nov 2010


ItemTemplate edit

Summary WYSIWYG image tool inserts incorrect links with short URLs.
ReportedBy GeorgeClark
Codebase 1.1.2, trunk
SVN Range
AppliesTo Extension
Component WysiwygPlugin
Priority Normal
CurrentState Closed
Checkins distro:5cd8ccc98cb0 distro:3ab8adbf34b3 distro:6e3db2e66466 distro:81c9318c3d34
TargetRelease patch
ReleasedIn 1.1.3
Topic revision: r10 - 16 Apr 2011, KennethLavrsen - This page was cached on 14 Jan 2020 - 16:32.

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