Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
selection issue in the ultraformatted text editor
posted

I am using UltraFormattedTextEditor that internally stores the formats in HTML.

the normal text editor has function like Select(start index, length) but there is no similar function in Formatted text editor. Hence, I am using following.

txtEditor.EditInfo.SelectionStart = index;

txtEditor.EditInfo.SelectionLength = find.Length;

Actually I am implementing find and replace feature. So when user finds a word, it needs to highlight (select) that word. So, I should be finding withing .Text property and not .Value property. Because .value property may find something within the html formatting text as well. So, once we find a word within .Text property and use its index/length for the EditInfo - it does not display it correctly (may be because the EditInfo is trying to select within the Value property).

So, I am not clear as to what should be the right approach here.

Parents Reply Children
No Data