Manual:Hooks/APIEditBeforeSave

Details
the EditPage object the new text of the article (has yet to be saved) data in this array will be added to the API result
 * $editPage:
 * $text:
 * $resultArr: