Ticket #652 (closed defect: fixed)
Relative path mysteries
|Reported by:||silmarillion||Owned by:||gogo|
First of off I would like to say thanks for a wonderful, and very important, fast, WYSIWYG system. I'm working on integrating it into a CMS, and even rewriting a customized version of Linker-plugin so it provides internal links proved quite easy, thank you! But I'm having some trouble with relative paths... I'm not the first one I can see in the forums, but the solutions suggested have not helped me, so I'll try to describe my problem: When I insert a picture through the InsertImage?-plugin everything work great, the baseHref is removed as I have stripBaseHref turned on, so far so good and my image-tag have a src-value of "uploads/images/myimage.gif". The image is also shown as it should be in a great WYSIWYG-system like yours. But then the trouble starts:
- If I enter "show/edit html" mode I can se the link as I said above, but reentering wysiwyg-mode converts the link to an absolute "http://localhost/cms/uploads/images/myimage.gif". Why?? And the image is not shown in the editor-field anymore only a placeholder with the same dimensions.
- If I drag the image to another place in wysiwyg-mode, the image disappears leaving a placeholder, and the link is now converted to something like "../../uploads/images/myimage.gif" What??? I just dragged it, it shouldn't change the link at all!?
I hope someone can help me with a solution to this as it is one of the last issues I have with my integration-efforts.
I am using a quite new version from svn. And I should perhaps mention than ordinary links (<a href>) are not harmed by entering html-mode and returning.
Thank you for any help!
Best regards Morten/Silmarillion