Opened 15 years ago
Closed 15 years ago
#302 closed defect (invalid)
onload prop in body tag prevents Dojo Editor buttons from showing in textarea
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.2 |
Keywords: | editor onload body | Cc: | |
Blocked By: | Blocking: |
Description
I did a brief text search and did not find this error posted, but please accept my apologies if I missed it.
When I have anything set in the onload property inside the HTML body tag, the Dojo Editor buttons do not show up. See the code below:
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="GENERATOR" content="IBM Software Development Platform" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link href="theme/Master.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="dojo/dojo.js"></script> <script type="text/javascript"> dojo.require("dojo.widget.Editor"); </script> <script type="text/javascript"> function doSomething() { alert('something'); } </script> </head> <body onload="doSomething()"> <P>stuff</P> <textarea name="blah" dojoType="Editor" items="textGroup;|;colorGroup;|;listGroup;|;linkGroup">Initial content</textarea> <P>stuff</P> </body> </html>
On my browser (Firefox 1.5/Windows), this comes up as a normal textarea. If I remove the the onload property (i.e. change <body onload="doSomething()"> to <body>), then the Dojo Editor comes up as expected.
The project I am working on requires the use of the onload property in the body tag. Please let me know if this is a defect or if I have missed something in the configuration, etc.
Thanks,
Andy [email protected]…
Change History (3)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Thanks for the quick reply. That seems to work.
Thanks again, Andy
comment:3 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Can you get away with doing the following instead: