BUG. beforesubmitform should be triggered before saving data.

beforesubmitform should be triggered before saving data.
Othervise hidden input related to HtmlEditorField wouldn't be updated.