Opened 14 years ago
Closed 11 years ago
#3495 closed defect (worksforme)
Editor Fails to Render in Content Pane after Form Bind
Reported by: | guest | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | Editor | Version: | 0.4.2 |
Keywords: | Editor, fails, bug, render | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
The code to create the contentpane is:
<div dojoType="LayoutContainer?" layoutChildPriority='top-bottom' sizeMin="80" sizeShare="80" style="width: 100%; height: 100%;">
<div id="contentPane" dojoType="ContentPane?" href="schedule/index.php" executeScripts="true" refreshOnShow="true" scriptSeparation="false" style="padding: 5px;"></div>
</div>
The code to call form containing editor into contentPane is: function bindForm() {
x = new dojo.io.FormBind?({
formNode: document.forms.theForm, load: function(type, data, e) {
target = dojo.widget.getWidgetById("contentPane"); target.setContent(data); }
});
}
Code to create Editor: <script type="text/javascript">
var djConfig = {
isDebug: true, parseWidgets: true
};
</script> <textarea class="dojo-Editor" rows="50" cols="100" name="bar"></textarea>
Note that other widgets on this page render fine. It is just Editor OR Editor2 that fail.
Change History (7)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Also, Editor fails to render with and without formBind() being called from the form containing the Editor.
comment:3 Changed 13 years ago by
Milestone: | → 2.0 |
---|
Basically ContentPane?.setContent(data) where data contains an Editor isn't working? The FormBind? thing sounds like a red herring. Might have something to do with special processing for the <textarea> node to save data on the back button.
comment:5 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Milestone: | 1.3 → 1.5 |
comment:6 Changed 11 years ago by
Milestone: | 1.5 → future |
---|---|
Owner: | liucougar deleted |
comment:7 Changed 11 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Closing this as 'worksforme'. Haven't seen any reports/complains of this in 1.0+
Also, code to create editor is incorrectly pasted. An include of the dojo.js and the require for the editor are present.