Opened 12 years ago

Closed 12 years ago

#2451 closed defect (duplicate)

RichText Editor fails to initialize in IE 7

Reported by: guest Owned by: bill
Priority: high Milestone: 0.9
Component: Editor Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

Hello! I have found a bug in RichText? Editor. Actually I tried to include Editor2 into my page that was pragmatically loaded into SplitPanel?. I included editor as textarea:

<textarea dojoType="editor2" name="someName">
 <c:out value="${someValue}"/>
</textarea>

This code worked fine in Firefox 2.0.0.1 but failed in IE7 with error: DEBUG: dojo.widget.Parse: error: [TypeError: Object doesn't support this property or method]

I found out that problem was in RichText?.js file. I guess loop statement on line 355 is wrong. Instead of

for(var i in formats){

it should be something like

for(var i=0; i<formats.length; i++){

With this fix my code works fine in IE as well. Could you please commit suggested modification into main code if it is correct?

Thanks, Andrey.

Change History (4)

comment:1 Changed 12 years ago by liucougar

Resolution: duplicate
Status: newclosed

dup of #2450

comment:2 Changed 12 years ago by liucougar

Milestone: 0.9

comment:3 Changed 12 years ago by liucougar

Resolution: duplicate
Status: closedreopened

comment:4 Changed 12 years ago by liucougar

Component: WidgetsEditor
Resolution: duplicate
Status: reopenedclosed
Note: See TracTickets for help on using tickets.