Manual:Hooks/EditPageGetDiffContent

Details

 * $editPage: The EditPage object
 * &$newtext: wikitext that will be used as "your version"