1. Determine the location of the text within the string that you want to 
replace.
2. Determine the end location.
3. Create a SelectionState with those values as anchor and active positions.
4. Use EditManager.insertText() and supply the new text string and selection 
state.

Harbs

On Jan 6, 2015, at 12:28 AM, Carlos Cruz <[email protected]> wrote:

> I'm trying to create  search and replace  a string logic for  TextFlow text.
> Can anyone offer some input / advice on finding the start and end position
> of a string in the TextFlow elements and replace it .
> 
> 
> 
> I am able to convert the TextFlow contents into a string and use string
> methods and Regex patterns.
> 
> 
> 
> Thanks!!
> 
> Carlos
> 
> 
> 
> 
> 

Reply via email to