Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#404 closed defect (worksforme)

Rich Text Editor Not Rendering

Reported by: timl@… Owned by: anonymous
Priority: high Milestone:
Component: Widgets Version: 0.2
Keywords: Cc:
Blocked By: Blocking:

Description

Got error..

FATAL: Could not load 'dojo.widget.Editor'; last tried 'package.js'

With textarea based editor.

Change History (12)

comment:1 Changed 14 years ago by anonymous

Milestone: 0.3release

Gonna need more than that to go on. Url? attached test case?

comment:2 Changed 14 years ago by kees@…

Same problem happening for me, both in Firefox 1.5 and IE 6

comment:3 Changed 14 years ago by anonymous

Priority: normalhighest
severity: normalcritical

I as well. I'm on a 3.4 GHz Laptop. This was running a sample... I, too couldn't get the editor to appear.

comment:4 Changed 14 years ago by bill

Resolution: worksforme
Status: newclosed

OK, I tried the link below in Firefox 1.5 an IE6. Working fine.

http://archive.dojotoolkit.org/dojo-2006-02-16/tests/widget/test_Editor.html

comment:5 Changed 14 years ago by Sean Aitken

Resolution: worksforme
Status: closedreopened

I think it has something to do with Tomcat 5.5 (Bundled with Netbeans 5) and local development. On my same machine, things work fine with an IIS based web site. As much of a stretch as this seems, I can't think of any other difference.. I also ensured that there aren't any Java tag libraries or other libs in the project that could possibly interfere..

comment:6 Changed 14 years ago by anonymous

On more observation tonight. Attempting a simple edit box demo, i got this with Eclipse: .. FATAL: Could not load 'dojo.widget.Editor'; last tried 'package.js' ... The local URL wss: "http://localhost:8080/Javascript%20Test/"

comment:7 Changed 14 years ago by anonymous

Trying the same thing in Netbeans, I get this:

DEBUG: DEPRECATED: dojo.xml.domUtil is deprecated, use dojo.dom instead DEBUG: DEPRECATED: dojo.xml.htmlUtil is deprecated, use dojo.html instead DEBUG: DEPRECATED: dojo.graphics.htmlEffects is deprecated, use dojo.fx.html instead DEBUG: no tag handler registed for type: dojo:editor

Perhaps something very fishy with Tomcat? Messing up the /js files? Im' digging..

comment:8 Changed 14 years ago by Sea Aitken

Summary: Firefox 1.0.7 Rich Text Editor Not RenderingRich Text Editor Not Rendering

Some more info: The following is a more elaborate trace. I this case, I included the kitchen sink version of dojo.js. The trace looks like: DEBUG: DEPRECATED: dojo.xml.domUtil is deprecated, use dojo.dom instead DEBUG: DEPRECATED: dojo.xml.htmlUtil is deprecated, use dojo.html instead DEBUG: DEPRECATED: dojo.graphics.htmlEffects is deprecated, use dojo.fx.html instead DEBUG: failed loading /DojoTest2/_js/src/widget/Editor.js with error: [SyntaxError: XML tag name mismatch, file: http://localhost:8084/DojoTest2/_js/dojo.js, line: 200] DEBUG: failed loading /DojoTest2/_js/src/widget.js with error: [SyntaxError: XML tag name mismatch, file: http://localhost:8084/DojoTest2/_js/dojo.js, line: 200] DEBUG: failed loading /DojoTest2/_js/src/package.js with error: [SyntaxError: XML tag name mismatch, file: http://localhost:8084/DojoTest2/_js/dojo.js, line: 200] DEBUG: failed loading /DojoTest2/_js/src.js with error: [SyntaxError: XML tag name mismatch, file: http://localhost:8084/DojoTest2/_js/dojo.js, line: 200] DEBUG: failed loading /DojoTest2/_js/package.js with error: [SyntaxError: XML tag name mismatch, file: http://localhost:8084/DojoTest2/_js/dojo.js, line: 200] FATAL: Could not load 'dojo.widget.Editor'; last tried 'package.js' DEBUG: no tag handler registed for type: dojo:editor

The Page source looks like: <html>

<head>

<!-- Turn on debuggin in Dojo --> <script type="text/javascript">

var djConfig = {

isDebug: true, debugAtAllCosts: true,

};

</script> <!-- Main dojo include --> <script src="<%=request.getContextPath()%>/_js/dojo.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title>

<script type="text/javascript">

dojo.require("dojo.widget.Editor");

</script>

</head> <body>

<div class="dojo-Editor"> some content </div>

</body>

</html>

comment:9 Changed 14 years ago by Sean Aitken

Priority: highesthigh

Okay. Think I found the issue. I had ONLY included the dojo.js file in my project (Thinking it had all the packages needed for what I doing).. I DID use the kitchen sink version. Seing that it was looking for missing packages, I copied the entire 'src' folder to my "_js" folder where dojo.js sat. This solved my problem.

So does this mean that the ajax or kitchen sink dojo.js files don't contain everything they should?? Perhaps I read the docos wrong.. Please advise! (Hope this helps others!) I may dig a bit into the build process and see just why things were missing.

Cheers! -Sean

comment:10 Changed 14 years ago by bill

Hi Sean,

Thanks for the info. Kitchen-sink dojo.js doesn't contain the widgets (nor does the dojo.js in the widgets release). It's a bit confusing. The reasoning is that there are too many widgets to throw into dojo.js, most of which will never be used. You can include widgets into dojo.js by making a custom build.

But, like you said, you should always have the src/ directory in your project.

comment:11 Changed 13 years ago by anonymous

Resolution: worksforme
Status: reopenedclosed

comment:12 Changed 12 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.