on(event, callback)

Name Type Description
event Event string Event string. Currently only the event update is supported.
callback Function Event handler function to be attached to the event

Usage:

   
   // if the field is updated externally, keep the editor in sync
    field.on('update', function(value) {
      inputField.value = value ? value : '';
    });