I spent a while searching for a way to add support to CKEditor's 'link' dialog so that other pages in my site are presented as options for my end users to select.
I couldn't find a solution so I ended up reading the documentation and adding thesupport myself which I wrote up in a 'How To' :
http://blog.xoundboy.com/?p=393
I hope some people find this useful
Wed, 11/24/2010 - 11:26
#1
Re: Adding a ‘Link to local page from site’ field - HOW TO
Absolutely awesome. I've been trying to do pretty much the same thing. I hope this will save me a lot of time figuring things out. Tnx

Edit:
I don't want to edit the source files! haha
Can anyone point me in the right direction to make the edits inline? I can't seem to figure out how to select various elements in the CKEditor code..
Edit 2:
Also check out this thread, which isn't pretty much on the same subject, but without altering source files: http://cksource.com/forums/viewtopic.php?f=11&t=20800
Re: Adding a ‘Link to local page from site’ field - HOW TO
This customised link.js dialog dialog definition will most likely survive any update of the CKE core. Any changes made to the plugin definition framework in future updates of CKE core would then require all exisitng plugins to be re-worked, which I think very unlikely. It would just be a case of performing the update and then replacing the newly updated version of link.js with the customised version. Future enhancements to the exisitng link.js could be merged with this customisation fairly easily. In fact in that event I will be doing those merges for myself and can post them here.
Re: Adding a ‘Link to local page from site’ field - HOW TO
Only downside seems to be controlling visibility of items as mentioned above. Instead of a button I just added my custom URL type option to the "Link Type" drop down and it worked. I would definitely recommend avoiding replacing the compressed files with source files if at all possible keeping future upgrades in mind.
working version with ckeditor 4.2.2
Hi,
I created a plugin based on xoundboy's work. This version works with ckeditor 4.2.2.
it gives CKEditor4 the ability to link to local (CMS) pages. Rely on jQuery for ajax calls. Internationalization ready (at realase time, only available in english and french, see readme file for more information).
You will be be able to download and fork it from : https://github.com/simogeo/ckeditor-adv_link
Install instructions are in readme file.