I'd really appreciate some help with something I'm trying to achieve.
Here's what I'm trying:
I display list of pages from my website
User selects something in the fckeditor
When a page from the list is clicked on the selection in fck is wrapped in a link to the page of my site
I can't seem to find a way to wrap the selection in a link.
What I have been able to do is when a user selects a page I enter a new link into the editor, with the following.
oEditor = FCKeditorAPI.GetInstance('fckArticle') ;
oEditor.InsertHtml(LinkToPage);
I don't think this needs to be a plugin as the list of pages is external to the editor, but I may be wrong.
Any help would be appreciated.
Thanks,
Joe
Here's what I'm trying:
I display list of pages from my website
User selects something in the fckeditor
When a page from the list is clicked on the selection in fck is wrapped in a link to the page of my site
I can't seem to find a way to wrap the selection in a link.
What I have been able to do is when a user selects a page I enter a new link into the editor, with the following.
oEditor = FCKeditorAPI.GetInstance('fckArticle') ;
oEditor.InsertHtml(LinkToPage);
I don't think this needs to be a plugin as the list of pages is external to the editor, but I may be wrong.
Any help would be appreciated.
Thanks,
Joe
Re: Wrap selection in a link
Thanks
Re: Wrap selection in a link
Maybe I wasn't clear
I've managed to sort if...
get the selection, if there is any
Then wrap the selection with the link