Opened 13 years ago
Closed 10 years ago
#4771 closed defect (fixed)
Editor: programmatically created Editors cannot be added to Dialogs
Reported by: | guest | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | Dijit | Version: | 0.9 |
Keywords: | Cc: | tk | |
Blocked By: | Blocking: |
Description (last modified by )
Firefox 2, Mac OS X
HOW TO REPRODUCE:
Go to http://82.230.65.68:31416/~fred/dojo/fred_samples/bug_014.html
Try to type text in the dijit.Editor
RESULT:
One cannot type text
EXPECTED RESULT:
Text can be typed, made bold, italic, etc
COMMENT:
The dijit is created in a div that is added to the dialog at later time
When removeChild is called to remove that div, the contentDocument of the iframe seems to loose its "designMode" property (in fact that contentDocument is null)
WORKAROUND:
tk gave the workaround of destroying/re-creating the toolbar, and manually calling postCreate after the dialog is shown. This causes flickers, and maybe additional issues.
The code is present in the HTML file, it just needs to be uncommented
Attachments (1)
Change History (7)
Changed 13 years ago by
Attachment: | bug_014.html added |
---|
comment:1 Changed 13 years ago by
Cc: | tk added |
---|
Just a tab more info on things tried... I've tried killing all the plugin buttons in Toolbar, manually recreating them to "reconnect" their functions since none of the toolbar buttons affect the editor if you toggle designMode by hand... this had no effect... (delete editor._plugins and editor.plugins then rebuilt from src)
I've tried calling editor.close/open() (oddly enough I think this found another bug) -- doing this destroys the toolbar... and it never creates it, even with subsequent .open() calls
tried calling editor.startup, editor.toolbar.startup() the only effective solution was what is covered in the opening of this ticket...
-Karl
comment:2 Changed 13 years ago by
Milestone: | → 2.0 |
---|
comment:4 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Milestone: | 1.3 → 1.5 |
Summary: | Programmatically created Editors cannot be added to Dialogs → Editor: programmatically created Editors cannot be added to Dialogs |
comment:5 Changed 11 years ago by
Milestone: | 1.5 → future |
---|
comment:6 Changed 10 years ago by
Milestone: | future → 1.5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Linked HTML file. Can be placed at the top a dojo hierarchy (ie: above the dijit directory) to locally reproduce the issue