Opened 11 years ago

Closed 11 years ago

#7099 closed defect (fixed)

Dialog: RichText doesn't work in a dialog in IE7 Standards Mode

Reported by: guest Owned by: liucougar
Priority: high Milestone: 1.2
Component: Editor Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

In IE 7 in standards mode (page with correct DOCTYPE header) then the rich text editor component does not work in dialogs. The attached HTML exhibits different behaviours in IE 7 when the DOCTYPE header is removed.

Because some javascript doesn't work in quirks mode it is essential for my application to have standards mode enabled, meaning this is high priority.

It works in IE 6 in both standards and quirks modes.

Attachments (2)

EditorTest.htm (1.4 KB) - added by guest 11 years ago.
Simple example illustrating the problem
EditorTest-trunk.htm (1.7 KB) - added by dante 11 years ago.
using a <div> over <textarea>

Download all attachments as: .zip

Change History (9)

Changed 11 years ago by guest

Attachment: EditorTest.htm added

Simple example illustrating the problem

comment:1 Changed 11 years ago by bill

Component: DijitEditor
Owner: set to liucougar
Priority: highnormal
severity: criticalnormal

comment:2 Changed 11 years ago by bill

Milestone: tbd

mark all (open) tickets w/blank milestones to be "tbd"; their milestones need to be set to a version number or to "future"

comment:3 Changed 11 years ago by cdot

I've just encountered this same problem, and have the same constraints as liucougar. Also tested the same code in FF2, FF3, IE6 and Safari 3 and it's fine in all. Urgent for me too.

Changed 11 years ago by dante

Attachment: EditorTest-trunk.htm added

using a <div> over <textarea>

comment:4 Changed 11 years ago by cdot

I still get the same problem with 1.2.0b2 (using a div), so I examined the editor using DebugBar?, and it emerges that the IFRAME is zero-width, despite all the attributes appearing correct. By setting

if (dojo.isIE > 7) dojo.byId("text_iframe").style.width = '200px';

just after the dlg.show() I was able to edit. Don't know if this still affects IE8.

comment:5 Changed 11 years ago by bill

Hmm, I tried EditorTest?-trunk.htm attached above on IE7, against beta2. Except for a problem of two scroll bars it seems OK.

comment:6 Changed 11 years ago by dante

sorry - I uploaded the testcase but forgot to comment -- I tried this in trunk and it appears to be working. I got some kind of error when using a <textarea> with no rows="" and cols="", but when changed to <div> + style="width:n em;" it seemed to work just fine in both standards and quirks mode.

comment:7 Changed 11 years ago by bill

Milestone: tbd1.2
Resolution: fixed
Status: newclosed
Summary: RichText doesn't work in a dialog in IE7 Standards ModeDialog: RichText doesn't work in a dialog in IE7 Standards Mode

OK, yeah, then as I suspected this is due to / fixed by #5669.

Note: See TracTickets for help on using tickets.