Priority: Normal
Current State: Closed
Released In: 1.1.3
Target Release: patch
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="http://365847.689093.cn/pub/Tasks/Item10048/dell1.jpg" />
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="http://foswiki.mysite.com/pub/Sandbox/TestTopic0/dell1.jpg" 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