I need some more details related to a topic I previously posted, please visit the link below for the details:
Just to recap I have a textarea field used as part of a Content management System. I want the user to be able to highlight a piece of text, then click on a button, after which a popup window with a list of external files is rendered. Clicking on a file name in the popup closes the popup and surrounds the selected text from the parent window with a link to the external file.
Now all of this I have working thanks to John Bricci’s help. I only have one problem.
If a user enters the following example code:
If I highlight the second instance of “Report” and try to generate a link, the code places the link around the first instance of “Report”. How do I isolate specific instances of words?