Hiii...
I have been using Web Text Editor to post a Comment in a web form. As Soon as i post the comment the record is being added as below in the relevant Comment feild of the relevant table.
<body bgcolor='White' style='font-family:sans-serif;font-size:10pt;'></body>
The Text should be the one which is entered by the user without the above tag.
Highly appreciable if i can have a reply as soon as possible.
Many Thanks in advance..
(PLS NOTE : This happens only in Google Chrome)
Hi,
I was also facing this issue. There is one workaround for this.
1. Write following javascript in the head tag of your HTML.
document.forms[0].onsubmit = FixWebEditorTextIssue;
function FixWebEditorTextIssue() {
var oEditor = iged_getById('<%= YourHTMLEditorID.ClientID %>');
if(oEditor) { var text = oEditor.getText();oEditor.setText(text); } }
2. Add the event for "OnTextChanged" in your editor.
3. Add following code in your code behind under the event that is created in step 2.
protected void tbJrnllblNotes_TextChanged(object sender, Infragistics.WebUI.WebHtmlEditor.TextChangedEventArgs e)
{ YourHTMLEditorID.Text = e.NewText; }
Hope this will help to fix your issue.
Thanks,
--Virag
I am having a similar issue. When I update the WebHtmlEditor in Chrome browser(HTML area), I do not see the updates in the postback. This is happening only with Google Chrome. I tried the above solution by Virag, but still no luck. Any suggestions? I am using 'Infragistics35.WebUI.WebHtmlEditor.v8.3'.
Thanks,Bhargavan
Hi Bhargavan,
That is possible, that old versions of WebHtmlEditor have problems with latest implementations of browsers. There are no updates for dlls which have versions prior to v11.2 (2011 version 2).I suggest to upgrade NetAdvantage for latest versions.