We need to update external information either as the user changes an HTML
document, or when they save the document. It would be preferred if we could
keep up-to-date as they edit the doc, but requiring saving would be OK.

Is there a way to go about capturing one or both of these events?