NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item10048: WYSIWYG image tool inserts incorrect links with short URLs.
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Extension |
WysiwygPlugin |
|
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://foswiki.org/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