Skip to main content
Known Participant
March 29, 2010
Question

Text under selection

  • March 29, 2010
  • 1 reply
  • 407 views

How can I get the text under the selection.

for example I write:- Text layout framework and I select only the word layout from the whole sentence.now how can I get this selected text.

I have worked with following way but it returns me the whole sentence(span element) rather the selected range.

if(editManager.activePosition != editManager.anchorPosition)

{

     var Range:ElementRange =  ElementRange.createElementRange(textFlow,editManager.anchorPosition, editManager.activePosition);

}

This topic has been closed for replies.

1 reply

Known Participant
March 29, 2010

Guess it can be something like this , just right click to see the source.
http://www.rafique-gilani.com/Dump/instacoll/wordBellowCursor/WordBellowCursor.html