Patch for moin/ie6 textarea problem
"Andrew Premdas" <[email protected]> Wed, 1 Sep 2004 15:30:55 +0100
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Message-ID | <[email protected]> |
Moin has a problem with its textarea under IE6. Any theme that uses
sidebars, i.e. rightsidebar will show the symptom that when you edit a page,
the textarea will resize itself as soon as you enter some text into it. This
means that the text area will extend under the side bar and you can't see
what your editing.
This can be fixed by putting a fieldset tag immediately after the form tag
(which contains the textarea).
So in PageEdit.py
replace on line 293
# send form
self.request.write('<form method="post" action="%s/%s#preview">' % (
self.request.getScriptname(),
wikiutil.quoteWikiname(self.page_name),
))
with
# send form
self.request.write('<form method="post" action="%s/%s#preview">' % (
self.request.getScriptname(),
wikiutil.quoteWikiname(self.page_name),
))
# patch to fix ie6 bug with textarea
self.request.write('<fieldset style="border:none;padding:0;">')
replace on line 392
self.request.write("</form>")
with
# patch to fix ie6 bug with textarea
self.request.write("</fieldset>")
self.request.write("</form>")
Further info about this issue can be found at
http://fplanque.net/2003/Articles/iecsstextarea/. I've tested this with
rightsidebar and my own theme on ie6 and firefox.
All best
Andrew
Andrew Premdas
Student Systems Developer
Manchester University
-------------------------
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click