Hi,
i've a requirement to open a popup on click of a button in FCK editor's toolbar. Based on the values that are entered in that popup, i've to submit to the server and bring back the response which will be painted at the current cursor position of the editor as a static text or new button.
With out the actual submit of the form to the server where i've the editor, i can achieve it. But as i dont 've any type of control on the buttons in the popup that has got opened. i want to know the cursor position so that i'll store it some where on the page (either as a JS variable value or hidden fields' value) and i'll collect it when the whole page is getting rendered again.
Can anybody throw some ideas on how to achieve this. please. it's a immeadiate requirement for me.
Thanks in advance.
i've a requirement to open a popup on click of a button in FCK editor's toolbar. Based on the values that are entered in that popup, i've to submit to the server and bring back the response which will be painted at the current cursor position of the editor as a static text or new button.
With out the actual submit of the form to the server where i've the editor, i can achieve it. But as i dont 've any type of control on the buttons in the popup that has got opened. i want to know the cursor position so that i'll store it some where on the page (either as a JS variable value or hidden fields' value) and i'll collect it when the whole page is getting rendered again.
Can anybody throw some ideas on how to achieve this. please. it's a immeadiate requirement for me.
Thanks in advance.

Re: Finding the cursor position in FCK editor
You have to inject an empty element in the contents (like a span) with a special id. Then, on reload you have to use DOM manipulation to move the selection at that span position, removing it from the contents.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: Finding the cursor position in FCK editor