WYSYWYG editor looses images, files and links URL's?

Permalink
Hi all! :-)

I'm running version 5.4.1.1 and the following happens at apparently all browsers.

When you add an image, a file or a link using the C5 bar in the WYSIWYG editor, the content saved is saved with a format like this: href="{CCM:CID_188}". This is brilliant because it allows you to edit in one server and post to another the same DB and the file sources will be found *even* with the relative path different.

Now, if I open again the WYSIWYG editor to edit the same content, change some text but do nothing to the images, files and links and afterwards update the content, all references will become standard URL's...

How can I ensure they revert back to the format: href="{CCM:CID_xxx}"?

I'm an experienced programmer and pretty comfortable already with C5.

Thank you,
Luís Nunes

 
Remo replied on at Permalink Reply
Remo
I always thought the translate method you can find in "concrete/blocks/content/controller.php" make sure this works...

You might find the code you're looking for in it..
lscn replied on at Permalink Reply
Hi Remo! :-)

Thank you for finding the time to reply.

I'm pretty sure that part of the code works as well. Until now, I've made a small progress in finding the issue, but it seems that the following applies:

1 - The "c5 format" for the image/file/link hyperlink seems to be *always* lost if you edit in IE7 or IE8.

2 - In other browsers the hyperlink if update for *one* image/file/link, then needs to be updated for all or it will be lost for the remaining.

Since it seems to be browser dependant, I'm thinking this is actually Javascript, but so far I haven't been able to go any further.

If I come up with a solution, I'll let you know. If someone else has gone through this before, please let me know the magic steps! ;-)

Thank you,