Opened 10 years ago

Closed 10 years ago

#10672 closed defect (fixed)

[regression] this.editNode is undefined

Reported by: Ran Mory Owned by: Douglas Hays
Priority: high Milestone: 1.5
Component: Dijit Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:

Description

dojo version 1.4 I created a InlineEditBox? widget, whose parameter editor = "dijit.Editor" :

 var myInlineEditBox = new dijit.InlineEditBox ((
 editor: "dijit.Editor"
 AutoSave: true,
 renderAsHtml: true
 )
 item);

but when I click on the object it gives me this error

(this.editNode is undefined),

knowing that with version 1.3 it works well, so where does this error come from??

Change History (9)

comment:1 Changed 10 years ago by Douglas Hays

Resolution: worksforme
Status: newclosed

I could not recreate this defect. Please runhttp://download.dojotoolkit.org/release-1.4.0/dojo-release-1.4.0/dijit/tests/test_InlineEditBox.html to eliminate the chance for user errors. Near the bottom of the test file is an Editor section similar to yours. If it fails for you then please include the OS and browser + version that you are testing with.

comment:2 Changed 10 years ago by Ran Mory

in the example you give me, the same error displays. Operating system: Linux (kubuntu) Browser: Firefox version 3.5.7 Dojo: 1.4.0rc2 (20935)

comment:3 Changed 10 years ago by Douglas Hays

Milestone: tbd1.4.2
Resolution: worksforme
Status: closedreopened
Summary: this.editNode is undefined[regression] this.editNode is undefined

comment:4 Changed 10 years ago by Douglas Hays

Owner: set to Douglas Hays
Status: reopenednew

comment:5 Changed 10 years ago by Douglas Hays

Type: taskdefect

comment:6 Changed 10 years ago by Douglas Hays

Milestone: 1.4.21.5

This exception is inside a setTimeout during init and has no effect on Editor widgets and so isn't severe enough for 1.4.x.

comment:7 Changed 10 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [21260]) Fixes #10672. Editor initialization is more asynchronous in 1.4 with the introduction of onLoadDeferred so a null test has to be added when consulting editWidget attributes.

comment:8 Changed 10 years ago by Ran Mory

Resolution: fixed
Status: closedreopened

how i can do that? how i can redefine the two focus functions of RichText?.js & InlineEditBox?.js?

comment:9 Changed 10 years ago by Douglas Hays

Resolution: fixed
Status: reopenedclosed

This is fixed in the latest svn trunk. If you need to backport the fix to a previous build, then look at [21260] and manually make the corresponding change to your code.

Note: See TracTickets for help on using tickets.