DHTMLX Docs & Samples Explorer

onAccess

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxeditor.js

fires when the specified native event fires

  • eventName - the event name. Possible values: 'focus', 'blur', 'click', 'keydown', 'keypress', 'keyup'.
  • e - a native event object.
editor.attachEvent("onAccess",function(eventName,e){
     if(eventName == "blur"){
           alert("The editor is left!")
     }
})