WebHtmlEditor replace content in entire html body of the page, but it should be particular WebHtmlEditor control range only.
Please give a direction to fixes the issue in Version 8.1.20081.1000
Hello ananth_pillai,
The NetAdvantage version you are using is no longer supported. I would suggest that you upgrade your products to the latest version available.
Please let me know if you have any other questions.
Issue : WebHtmlEditor Replace and Replace All functionality not working properly
Solution detail
File : ig_htmleditor_ie.js
Find code : if(fr.findText(txt,this._findLen,flag))try{fr.select();this._findNum++;return true;}catch(s){}
To Replace code :
if(fr.findText(txt,this._findLen,flag))try { s=fr.parentElement(); while(s) { if(s==this._elem){fr.select();this._findNum++;return true;} s=s.parentNode; } }catch(s){}
Hi ananth_pillai,
Thank you for sharing your solution with the community!
Nikolay,
I was advised not to touch Infragistics javascripts as it may cause other issues to occur.
Having said that, I notice that the innerText property of WebHtmlEditor in version 12.1.20121.2119 is containing other text aside from the user input text. For example, when the user typed in "test", the innerText property contains the whole string below. This is causing an issue for us because we relied on using the innerText for other displays on the page in version 7.2.
innerText property: "Find/Replace Find what:Replace with: Match case Match whole word test"
-Calvin