Opened 13 years ago

Last modified 13 years ago

#821 closed New Feature

use references, not URLs — at Initial Version

Reported by: Martin Kou Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF Cc: macadames@…

Description

When I insert a link or image with the 'Browse Server' option, FCKeditor inserts a URL relative to the server root. For instance, if my site is rooted at http://mysite/path/to/plone, and I insert a link to http://mysite/path/to/plone/image.png into a document, the generated tag will be

<img src="/path/to/plone/image.png" />

This is bad for two reasons:

  1. should the plone site ever move, then *all* internal

links will become invalid.

  1. should image.png ever move or be renamed, then all

links refering to it will become invalid.

As of late, Plone uses Archetypes for its content types. Archetypes gives every object a unique ID, and a catalog to search these IDs quickly. A better idea would be to insert a link to the reference ID and let it be resolved at runtime. Please check the Kupu editor for an example of how this works.

If you need help with the implementation of this important feature, please let me know!

Thanks,


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1214810&group_id=75348&atid=543656

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy