Listen on input event

Most modern web browsers support the input event. This eliminates the risk of loosing all changes if the user forgets to blur the editor.