Setting focus into FCKEditor

D

deneb

Hello everyone,

I know this isn't related to generic javascript but I didn't found a
group dedicated to the FCKEditor. I'm sorry for the inconvenience.

I'm desperately trying to set the focus into a FCKEditor component
(client side). I know that the FCK object exposes a "Focus()" method
(the capital F isn't a spelling mistake). The problem is I don't know
how to bind to this object from my container page (aspx). How can you
reference this object?

Thanks
François
 
D

deneb

Nevermind, I found the right way to do it. The key is the FCKeditorAPI.
Obviously, I haven't read the documentation enough. =)

For those of you who may be interested, here is how you access a
FCKEditor instance *client side*.

var oFCKeditor=FCKeditorAPI.GetInstance('my_fckeditor_instance') ;
oFCKeditor.Focus();

Goodbye
François
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top