nevermind, figured it out. I just had to check the
PostBackCommand event of the texteditor to see if e.CommandName =
"Save". I know this is a standard way of handling button events,
but it would be nice to have documentation somewhere which says
that. Would have saved me about 2 hours of research.