Great, thanks.
An additional thought: If, for instance, we add a button form-element (whose id we would control/know) into the editor and a user clicks that button, is there an on-click event-handler anywhere that is executed? If so, can we add our own validation javascript to that event-handler (instead of directly into the editor)?