Thread:Project:Support desk/showEditForm:initial hook and specifying the preloaded content in the edit box

Here is my setup:


 * mw 1.23
 * php/mysql
 * apache web server

I'm writing an event handler for the showEditForm:initial hook. The event handler takes two arguments: $editPage and $outputPage.

I would like to modify the preloaded content that goes in the edit box. For instance, if someone tries to edit a section then whatever is currently in that section will appear in the edit box. Now I want to modify what is preloaded in that edit box. How do I do it?

I tried a few things and nothing seems to work. As an example, I tried $editPage->setPreloadedContent=$content with $content some content object and that doesn't do anything at all.

Any ideas?