Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#11960 closed defect (invalid)

IE7: Editor in Dialog cannot receive focus

Reported by: Douglas Hays Owned by:
Priority: high Milestone: future
Component: Editor Version: 1.5
Keywords: Cc:
Blocked By: Blocking:

Description

Run this in IE7 (IE6 and IE8 and non-IE browsers seem to work OK):

var newDlg = new dijit.Dialog({
        title: "test",
        content: new dijit.Editor({})
});
newDlg.show();

The Editor displays but you cannot focus it. Substituting other widgets like TextBox? into the Dialog content works OK.
IBM #158908

Change History (10)

comment:1 Changed 9 years ago by Douglas Hays

Owner: set to Jared Jurkiewicz

comment:2 Changed 9 years ago by Jared Jurkiewicz

I think you need to give it a default value. Like:

var newDlg = new dijit.Dialog({

title: "test", content: new dijit.Editor({value: " "})

}); newDlg.show();

comment:3 Changed 9 years ago by Douglas Hays

I added value:"abc" and the Editor is still blank on IE7 but it shows up on all other browsers. This appears to be an even bigger problem.

comment:4 Changed 9 years ago by Jared Jurkiewicz

Doesn't make a difference. It has something to do with having a width of 0. The CSS is set to 100%, and its parent has a width. How odd.

If I go in and manually set the iframe width to some px, it works.

comment:5 Changed 9 years ago by Douglas Hays

Thanks, I added { style:'width:"500px"' } as a workaround.

comment:6 Changed 9 years ago by Jared Jurkiewicz

Milestone: tbdfuture
Owner: Jared Jurkiewicz deleted

comment:7 Changed 9 years ago by bill

But, editors programatically created editors without a srcNodeRefdon't work at all, right? I can't find a ticket for that strangely.

Also, isn't this is a dup of #4771?

comment:8 Changed 9 years ago by Jared Jurkiewicz

Resolution: invalid
Status: newclosed

Creating editors on hidden elements is questionable at best and is documented as a known limitation. Plus, you need to set a source element to attach/wrap or odd things happen.

comment:9 Changed 8 years ago by DJ Mountney

I have run into this problem on a declaritive editor in a dialog where the dialog is definately before the content/editor is added. Is only happening in IE7. If I give the iframeContainer or the iframe itself a pixel width it will appear, but setting a width any higher up doesn't appear to do anything.

comment:10 Changed 8 years ago by Karl Tiedt

Unless the dialog is already "open" when the editor is added to it, you are still running into the same limitation of creating an editor in a non visible element...

Note: See TracTickets for help on using tickets.