I'd like to create a drop down of links above the editor that, when changed, immediately links the selected text to the chosen link. We were able to accomplish this fairly simply with FCKEditor using the internal CreateLink command, but I'm having trouble locating its counterpart in the CKEditor API docs.
old way: FCK.ExecuteNamedCommand( 'CreateLink', theUrl ) ;
Can anyone suggest a way to do this with CKEditor?
Many thanks,
Ryan
old way: FCK.ExecuteNamedCommand( 'CreateLink', theUrl ) ;
Can anyone suggest a way to do this with CKEditor?
Many thanks,
Ryan

Re: CreateLink alternative in CKEditor / CMS Integration
Re: CreateLink alternative in CKEditor / CMS Integration
Re: CreateLink alternative in CKEditor / CMS Integration
The code by rchuber works good in Firefox, but not in IE.
We've been trying to implement such function based on FCK CreateLink source, but there are some differences between 2 and 3 API versions.
For example, how we can get selection object and then remove it from DOM (if current selection type is CKEDITOR.SELECTION_TEXT)?