[Dojo-interest] dijit.InlineEditBox line-breaks issue in Chrome
percy
prashant.acharekar at gmail.com
Sun Aug 14 02:30:12 EDT 2011
I am trying to use "dijit.InlineEditBox" on a page to allow user to change a
field on the page. The issue I am facing here is it's behavior in Chrome and
Firefox is different. I am using the following code.
new dijit.InlineEditBox ({
editor: "dijit.form.Textarea",
autoSave: false ,
editorParams: { maxLength : editorMaxLength },
noValueIndicator: noValueIndicatorText
},
nodeId);
In Firefox after the page-load, if the div that I am converting to inline
edit box, has line-breaks it converts them into html "br" tag and renders
the text, which I think is the correct behavior. But in chrome this fails.
The text is shown without the line-breaks in Chrome. When I tried to debug,
I found that input text to "_setValueAttr" method in Firefox is with
line-breaks ( text inside the div of HTML source of the page as is) and in
Chrome is without line-breaks. In Chrome, if I change the value after the
page load, i.e. if I put line-breaks in the value in the editor, it renders
properly after saving ( adds line-break in the display). But again after te
page load it fails to show the line-breaks. Am I missing something here ? Or
is this the Chrome issue ? Or do I have to have the text inside a 'pre' tag
?
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dijit-InlineEditBox-line-breaks-issue-in-Chrome-tp3253093p3253093.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20110813/6346f53d/attachment.htm
More information about the Dojo-interest
mailing list