Thanks Brion,
Slight problem: I can't find any reference to "initial_textarea" nor "initial textarea" where exactly should I be looking?
I'm running 1.4beta4 could it have been renamed or am I just being dim? (it's friday, it's late, I'm tired - so it's probably me)
On Jan 14, 2005, at 12:21 PM, paul@immediart.com wrote:
Is it possible to put headings into the edit window of a new page?
Sure, just hack the code to populate the initial textarea.
-- brion vibber (brion @ pobox.com)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jan 14, 2005, at 3:05 PM, paul@immediart.com wrote:
Slight problem: I can't find any reference to "initial_textarea" nor "initial textarea" where exactly should I be looking?
I'm running 1.4beta4 could it have been renamed or am I just being dim? (it's friday, it's late, I'm tired - so it's probably me)
You won't find the words "initial textarea" in the source, sorry. EditPage.php includes the code which produces the HTML of the edit form, which includes a <textarea> element in which the text of the article goes.
You'll need to find a way to set the initial state of that textarea when someone starts editing a page that doesn't exist; normally it is filled with an empty string, but you would want it to contain some other text.
- -- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org