Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#9232 closed defect (fixed)

Getting the value of a dijit.Editor in IE in 'onKeyUp'

Reported by: timeichner Owned by:
Priority: high Milestone: 1.6
Component: Editor Version: 1.3.0
Keywords: Cc:
Blocked By: Blocking:


When attaching behavior to the 'onKeyUp' event of a dijit.Editor instance, we had an unusual problem with IE in that trying to access the editor's value using editor.attr('value') or editor.getValue() would automatically remove line breaks we typed in. When I look at the source code in RichText?.js, I see that getValue takes a 'nonDestructive' argument that is set to false by default. Using editor.getValue(true) corrected the problem for us. Is the "destructive" default intentional?


Tim E.

Change History (4)

comment:1 Changed 13 years ago by Adam Peller

Component: GeneralEditor
Owner: changed from anonymous to liucougar

comment:2 Changed 13 years ago by bill

Milestone: tbdfuture
Owner: liucougar deleted

comment:3 Changed 12 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

This has to do with the EnterKeyHandling? plugin, I believe, which has since been heavily fixed up and I believe corrects this issue now. Closing it for now. Please reopen if it still occurs.

comment:4 Changed 12 years ago by Jared Jurkiewicz

Milestone: future1.6
Note: See TracTickets for help on using tickets.