Problem with images in Compose Web page Resource

Problem with images in Compose Web page Resource

by Joseph Rézeau -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
ADD a resource / compose a web page
1- In the HTML editor, insert an image (from files in course files) into text. In view code mode the img URL is : <img src="http://localhost/moodle/file.php/2/fish01.gif" />
2- Then, drag and drop this image to a different position. The URL has changed to : <img src="../file.php/2/fish01.gif" />. The image is still visible in the HTML editor.
3- Save and view... The image has disappeared!
4- Edit the resource: the image is still there.

This bug only occurs when using the HTML editor in an add resource/compose web page activity. All the others activities (Glossary, Forum, etc.) are OK.

Diagnostic.
When an image has been dragged and dropped in the HTML editor and its URL has been consequently been changed from absolute to relative:
case #1 in compose web page activity, glossary, etc. the image address in the browser is something liike : http://localhost/moodle/mod/file.php/2/fish01.gif which is WRONG!
case #2 in all other activities, the image address in the browser is something like: http://localhost/moodle/file.php/2/fish01.gif which is CORRECT

If you are interested or think you may be affected by this bug, please vote for bug report MDL-13144.

Joseph
Average of ratings: -