Lost Focus Event For Editor

Hello, I’m trying to trap the lost focus event for the editor, but with no success.
Leaving the editor does not fire the event.
My goal is to get the current selection when the editor loses focus as this would be a possible solution to my previous post.
viewtopic.php?f=7&t=18138

Here’s my code.

dhxWins = new dhtmlXWindows();
w1 = dhxWins.createWindow(“w1”, 20, 30, 800, 350);
_editor = w1.attachEditor();
_editor.edWin.attachEvent(“onBlur”, editorLostFocus);

function editorLostFocus() {
var cRange = _editor.edDoc.selection.createRange();
alert(cRange.html);
}

Thanks