Opened 14 years ago

Last modified 12 years ago

#3495 closed defect

Editor Fails to Render in Content Pane after Form Bind — at Version 5

Reported by: guest Owned by: liucougar
Priority: high Milestone: future
Component: Editor Version: 0.4.2
Keywords: Editor, fails, bug, render Cc:
Blocked By: Blocking:

Description (last modified by bill)

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 (5)

comment:1 Changed 14 years ago by guest

Also, code to create editor is incorrectly pasted. An include of the dojo.js and the require for the editor are present.

comment:2 Changed 14 years ago by guest

Also, Editor fails to render with and without formBind() being called from the form containing the Editor.

comment:3 Changed 14 years ago by bill

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:4 Changed 14 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:5 Changed 13 years ago by bill

Description: modified (diff)
Milestone: 1.31.5
Note: See TracTickets for help on using tickets.