FCKeditor and relative img urls

View: New views
2 Messages — Rating Filter:   Alert me  

FCKeditor and relative img urls

by Ron de Ridder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Good afternoon,

 

I am wondering if somebody on the list has experience with FCKeditor in Combination with magnolia. I am encountering problems with a changing URL.

 

If I input an image tag with the following URL <img src="comics/resources/comics/images/vis_psp.jpg " alt="" /> The FckEditor displays the image correctly and if I save I can still see the image. I verified the URL with the JCR browser and the correct relative URL is stored. I am using a virtualURIMapping to resolve my image paths so relative paths should work everywhere.

 

If I edit the content again and I look in HTML source in the FCKeditor the url has been transformed to <img alt="" src="/magnoliaAuthor/comics-teaser/DowloadReader/resources/comics/images/vis_psp.jpg" />. If I press save and I open the content again the URL has been transformed into <img alt="" src="/comics-teaser/DowloadReader/resources/comics/images/vis_psp.jpg" />

 

This causes problems because there is nothing running on /comics-teaser. I also don’t want to link to /magnoliaAuthor for obvious reasons. How do I configure FCKeditor to not touch the relative paths of the content I am inputting ? Or is there another way to easily use images with FCKeditor ?

 

Thanks,

 

Ron




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------

Re: FCKeditor and relative img urls

by Zdenek Skodik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Ron,

it would be that your virtualURImapping for images is override
with some generic reference of used template/paragraph
or its own mapping. This could explain that the path is
changed only if the image is already stored at the page and
you would like to edit it and not if the image is added
for the first time. But it's just a hint if I don't know
your custom implementation (btw you can create the support
issue [1] for that and attach the related configuration
for better investigation of your problem).
There is a way to easily use images with fckEditor if you
extend its bar [2] to show up the image button.

[1] http://jira.magnolia-cms.com/secure/CreateIssue!default.jspa
[2] http://wiki.magnolia-cms.com/display/WIKI/How+to+configure+fckEditor
     

-  
Best regards,

Zdenek Skodik
Magnolia International Ltd.

Magnolia®  - Simple Open-Source Content Management


On Út, 2009-11-03 at 15:58 +0100, Ron de Ridder wrote:

> Good afternoon,
>
>  
>
> I am wondering if somebody on the list has experience with FCKeditor
> in Combination with magnolia. I am encountering problems with a
> changing URL.
>
>  
>
> If I input an image tag with the following URL <img
> src="comics/resources/comics/images/vis_psp.jpg " alt="" /> The
> FckEditor displays the image correctly and if I save I can still see
> the image. I verified the URL with the JCR browser and the correct
> relative URL is stored. I am using a virtualURIMapping to resolve my
> image paths so relative paths should work everywhere.
>
>  
>
> If I edit the content again and I look in HTML source in the FCKeditor
> the url has been transformed to <img alt=""
> src="/magnoliaAuthor/comics-teaser/DowloadReader/resources/comics/images/vis_psp.jpg" />. If I press save and I open the content again the URL has been transformed into <img alt="" src="/comics-teaser/DowloadReader/resources/comics/images/vis_psp.jpg" />
>
>  
>
> This causes problems because there is nothing running
> on /comics-teaser. I also don’t want to link to /magnoliaAuthor for
> obvious reasons. How do I configure FCKeditor to not touch the
> relative paths of the content I am inputting ? Or is there another way
> to easily use images with FCKeditor ?
>
>  
>
> Thanks,
>
>  
>
> Ron
>
>
>
>
>
> ______________________________________________________________________
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------