In Adobe Flex 3, this causes problems.
textArea.setSelection( textArea.htmlText.indexOf( 'testString' ), textArea.htmlText.indexOf( 'testString' ) + 10 );
This puts the cursor in the wrong place, because indexOf takes into account the HTML tags, but setSelection does not.
Anyone know how to do this? A simple way is a /<[^>]*>/g regular expression, but this doesn't do the job every time.
Help please!
Andrew