Opened 9 years ago

Closed 6 years ago

#10534 closed defect (fixed)

Dynamically Loading Editor.js/RichText.js Fails Without useXDomain

Reported by: David Alan Hjelle Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.7
Component: Editor Version: 1.4.0
Keywords: editor dynamic afteronload usexdomain richtext Cc:
Blocked By: Blocking:

Description

"Could not load 'dijit.Editor'; last tried '../dijit/Editor.js' http://www.domain.com/dojo-release-1.4.0/dojo/dojo.js Line 28" occurs in the attached .html file unless I specify "useXDomain: true" in djConfig. I have not specified allowXdRichTextSave.

It appears that the require is failing in RichText.js in the initialization portion, lines 13-34.

The comments here point out that dojo.doc.write won't work unless RichText.js is included in dojo.js, but the conditionals don't seem to reflect this. Only dojo._postLoad is checked, and it seems as if afterOnLoad ought to be checked as well.

Possibly related to ticket 7000 and Ticket 9638.

Attachments (1)

test4.html (978 bytes) - added by David Alan Hjelle 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by David Alan Hjelle

Attachment: test4.html added

comment:1 Changed 9 years ago by Douglas Hays

Owner: set to Jared Jurkiewicz

comment:2 Changed 8 years ago by Jared Jurkiewicz

Milestone: tbdfuture

comment:3 Changed 6 years ago by bill

Milestone: future1.7
Resolution: fixed
Status: newclosed

That dojo.doc.write() code was removed in [24328], so this is presumably no longer an issue.

Note: See TracTickets for help on using tickets.