editor onfocus

How can I detect when an Editor object got focus?

Need to specify: do you mean its buttons or content zone?
Editor content zone is a div.
There is a way to get it:

You can get content and add focus to some element of it…