Imce file / image insertion link is wrong
cybertron1 - October 24, 2007 - 11:47
| Project: | Whizzywig |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | sdecabooter |
| Status: | closed |
Jump to:
Description
well as the title says, it inserts/views the link as /myfolder/image.jpg which is correct, then when the page is saved and I return to the page and edits it it appears that the link becomes: http://mydomain/myfolder/image.jpg which is wrong in my point of view.
A link/image to ones own site should never be absolute or is this something that is xhtml standard?

#1
Hmm i cannot reproduce this...
This is what i did:
- added a new Page node (which shows the Whizzywig editor for the body field)
- added an image by clicking the image button, then 'Browse'.
- selected an image file in my /files folder with IMCE
- the URL field in Whizzywig gets filled with '/files/image.jpg'.
- i submit the node.
- i edit the node i just submitted
- when clicking the 'View HTML' button in Whizzywig, i see
- I see the same in the HTML sourcecode.
Did you also follow these steps roughly?
Can you confirm which url gets filled into the 'URL' field, right after you selected some file from IMCE? Is it the relative or absolute path?
Do you have any non-standard filters installed in your Drupal?
#2
My code got lost somehow..
So:
- when clicking the 'View HTML' button in Whizzywig, i see
<img style="border: 0px solid ; margin: 0px;" src="/files/ajax-loader.gif" alt="ajax-loader" />#3
hi,
I followed your steps as well, and right after I added the image the url is relative, it is not until after submission it has changed. Don't have any filters on at the moment.
#4
but it might have something do to with that I might not have the latest js file?
I can't download the latest since the whizzywig site is down
#5
Ok, updated the site with the newest JS file, still nogo,
another little problem is that if I inserts an image the url will be displayed in the "links" imce as well.
I will try and do more testing (i will also try updating my imce)
Edit: I have now updated my imce to the latest, still no go.
I insert a picture it shows: /mypic/pic.jpg
i "inserts the image" then I dubbelclick on it and it shows http://mysite/mypic/pic.jpg
same happens if I submit the node, samt thing happens to links to dokuments as well.
#6
anyone ever get this working?
#7
This bug has fixed in Whizzywig 6.x-1.0-ALPHA2. Whizzywig now has built-in Image Browser!
Please upgrade to Drupal 6 so you can use the new version of Whizzywig.