Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1167 closed defect (fixed)

Problem with dojo.require after onload and RichText

Reported by: [email protected] Owned by: liucougar
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: Cc: [email protected]
Blocked By: Blocking:


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 src='dojo.js'></script>


function create() {

dojo.debug( "FOOO START" );


It will not get here, and I know some of the params below are wrong


{ 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 15 years ago by guest

Cc: [email protected] added

comment:2 Changed 15 years ago by dylan

Milestone: 0.5
Owner: changed from bill to liucougar

comment:3 Changed 15 years ago by liucougar

Milestone: 0.50.4
Resolution: fixed
Status: newclosed

should be fixed in svn r4960

if not please reopen this bug

comment:4 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.