REMARK: below post is for FCKEditor version 2.4.3. and does not work in 2.6! Here is the updated code (thanks to Yves Venken):
GWinternalLink for fckeditor 2.6.x
Remark: Don’t forget this in your fckeditor config file:
FCKConfig.Plugins.Add(‘gwinternallink’, ‘nl’);
for more info, just ask: us
ORIGINAL TEXT:
A client is using the FCK Editor as a RTEditor for a CMS system we created, but FCK lacks the ability to insert ‘internal’ website links.
Idea is that we present them with a list of the available pages with prebuilt links, so they can simply insert it as a normal link.
What you need to do to use it:
1. Download the FCK Internal Link Plugin
2. Drop the plugin in the ‘plugins’ folder of your FCK folder
3. Add a button in your FCK config file:
…['Link','Unlink','Anchor'],
['gwinternallink'],
[‘Image’,'Flash’,'Ta…
4. Put following function on the page where you embed the editor
function getGwInternalLinks() {
var linkArray = new Array(new Array(“title1″, “url1″),new Array(“title2″, “url2″),new Array(“title3″, “url3″));
return linkArray;
}
Off course you need to fill this array with appropriate values (you should have some sort of server script generate it).
5. Test it!
Generated links should work well with the default FCK link buttons. Hope it works. This is what it should look like:







