I'm using Infragistics WebHTMLEditor 7.3. I want the cursor to move down in the next line whenever the number of character in the line exceeds a specific limit.
I tried to look into TextWindow member of the editor and tried to change the width, but still the cursor is not going down in the next line.
In short I want to wrap the text, the way it happens in Notepad application in any windows OS.
Could you please let me know how can achieve that? Is there any built in method provided for that?
As of now I didn't get any luck.. so I'm trying to handle this in the lost focus event of the editor.
If I understand what you're asking, this is built-in functionality of WebHtmlEditor. After the input text reaches a certain width, which depends on the width of the control, the text and input focus wraps to the next line.
Please test this using the WebHtmlEditor - General Properties sample on our website. Using this sample, when I type enough text to reach the width of the editor, the text wraps to the next line as I'd expect. Is this the functionality you're talking about?
What browser are you using? My test was performed using Internet Explorer 7.
Is this issue fixed? I am having the same issue. I am sending email using the code
Email.Body = WebHtmlEditor1.Text
The text in the email(after I receive it) is not wrapped at the position as was shown in the TextWindow before sending the email.
Runtime Version : v2.0.50727
Version:7.3.20073.1041
IE 8
That's very odd, and definitely doesn't sound like correct behavior. The text should wrap automatically, as it did in my test. WebHtmlEditor should be compatible with IE 6 - I've seen it work with IE 6 in the past but I no longer have easy access to it for additional testing. I wonder if IE 6 is treating the width of the editor's editable area differently than the width of the editor itself, and whether the issue is caused by the control or by the implementation.
The best suggestion I have is for you to submit a support request. A Developer Support Engineer will investigate this behavior more in-depth than I am able to perform at this time. You may want to provide a link to this forum thread, and you'll certainly want to mention what browsers you've tested in (particularly if you test with any other browsers and see the wrapping functionality in WebHtmlEdtior that you expect to see).
Dhananjay Kathar