Focus event in Editor

Hi guys,

I’m trying to work with the focus (and blur) event in an Editor object.
I found how to force the focus on the object :

_editor = new dhtmlXEditor("editor_container"); _editor.edWin.focus();

But I can’t find how to trigger the “onFocus” or “onBlur” events. Any ideas ?

Thanks,

Hi
Try the next:

editor.attachEvent("onAccess",function(eventName,e){ if(eventName == "focus"){ console.log("focus event"); } if(eventName == "blur"){ console.log("blur event"); } });

Works perfectly, thanks a lot !

You are welcome!