Manual:Hooks/EditPageGetDiffContent/en

Details

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