As you all know when adding links that point to the URL from the same domain novice users will often go to their address bar and copy the address and then paste it into the URL field in FCK. The problem with this is that they are using absolute addresses and during implementation of the Intranet that might be an IP address or a machine name. When live this causes problems such as users being asked to log in again or worse, the IP has changed and they get 'site not found' errors.
I saw that when we paste full URL (include http://) into URL field in "/editor/fckdialog.html".
it automaticaly rewrite the URL by removing http:// from the URL and select http:// Protocol.
Is it possible to tweak these behaviour, for instance when user pasting
http://www.company.com/contact/aboutus.html
it automaticaly rewrite it into
<other> /contact/aboutus.html
Re: Link URL rewrite
It is posible for sure...
but it requires some knowledge of regex strings,
it the file: "\editor\dialog\fck_link\fck_link.js"
you'll find:
this is the part where it get configurated where to check on after the user puts there url in de editbox, so with some tweaking you should be able to change it into your needs. Futher you should know that the dialog opened is not "/editor/fckdialog.html" but is replaced for: "\editor\dialog\fck_link.html" i here you will also be able to specify more options besides http,https,ftp,news and other...
hope this helps...
Daan