#1167 closed defect (fixed)
Problem with dojo.require after onload and RichText
Reported by: | Owned by: | liucougar | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.3 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
We are trying to load the Editor2 after the onload and we narrowed the problem down to RichText?. This testcase as is will fail, reporting a "Could not load 'dojo.widget.RichText?'; last tried 'package.js'" but if you move the require to outside the function, it works. Feels like the provide of the RichText? is not working completely.
Here is a testcase:
<html> <head> <title>Insert title here</title>
<script type="text/javascript">
var djConfig = { isDebug: true};
</script>
<script src='dojo.js'></script>
<script>
function create() {
dojo.debug( "FOOO START" );
dojo.require("dojo.widget.RichText?");
It will not get here, and I know some of the params below are wrong
dojo.widget.createWidget("RichText?",
{ htmlEditing: true,
saveName: "testsave", saveUrl: "", closeOnSave: false, commandId: "foo", widgetId: "foo"
}, dojo.byId("foo"));
dojo.debug( "FOOO DONE" );
} </script> </head> <body>
<button onclick="create()">Click me</button>
<div id="foo">Test string</div> </body> </html>
Change History (4)
comment:1 Changed 14 years ago by
Cc: | [email protected]… added |
---|
comment:2 Changed 14 years ago by
Milestone: | → 0.5 |
---|---|
Owner: | changed from bill to liucougar |
comment:3 Changed 14 years ago by
Milestone: | 0.5 → 0.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
should be fixed in svn r4960
if not please reopen this bug