Getting the value of a dijit.Editor in IE in 'onKeyUp'
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?
Thanks,
Tim E.
Change History (4)
Component: |
General →
Editor
|
Owner: |
changed from anonymous to liucougar
|
Milestone: |
tbd →
future
|
Owner: |
liucougar deleted
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
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.