CKEditor And Links

I’m using the CKEditor, extending the toolbar to use the Link menu option. I’m trying to add a relative link, but when I click OK on the dialog it gets prefixed with “http://”. The same happens when I add a mailto link.

I’ve tried modifying files in \Domino\html\ckeditor subfolders, but nothing seems to change this behaviour. The files I have tried are plugins\link\dialogs\link.js and plugins\urllink\dialogs\urllink.js. I would expect particularly the latter to change the functionality, because that has an onOk function, which I presume relates to the functionality when the Ok button is clicked on the dialog. I’ve also tried changing the files in the _source folder, although I do not expect them to work.

Can anyone point me to the correct javascript file to amend to override “http://” being prefixed onto the URL? I am sure the functionality must be in javascript files on the server. Alternatively, can anyone advise if it’s feasible to add files into my nsf to use a new button and override the default CKEditor functionality?

Although the current functionality may appear preferable for some user’s applications, clearly it’s bad practice to hardcode full URLs when, for example, server names can change. If I cannot find a solution, as good as the CKEditor looks, I will have to roll back to using the original rich text editor, which is lacking in functionality but at least much more configurable.

UPDATE: Using MenuLink instead of Link picks up the urllink javascript file, allowing the onOk event to be overriden. That’s a drop-down menu where the main button has the tooltip “Link” and the sub-menu option is “URL Link”. That may give me the information to extend it with a new menu option within the nsf, but it would be nice to override the Link toolbar option (which is just a button with the tooltip “Link”).

Subject: This is an issue with the internal CKEditor shipped with ND…

Hi Paul,This is an issue with the internal CKEditor shipped with Domino and it’s something we’re seeking to address in 853.

In the meantime, it should be possible to workaround this by editing the link in the html source - though this would mean enabling that feature for the CKeditor on your configuration - but this is a messy workaround and won’t suite everyone.

Hope this helps.

p.

Subject: CKEditor

Hi - is this issue connected in any way with problems when uploading images to CKEditor?