Page 1 of 1

how can I get the left string at caret pos?

Posted: Tue Aug 29, 2006 6:12 am
by looker
I want to get the left string at current caret , like this :

>This is a test

If caret is at begin of "test",I want to get the string between ">" and "test",the result is "This is a ".
How can I do?
:)

Posted: Tue Aug 29, 2006 12:39 pm
by Sergey Tkachenko
Do you need text from the beginning of the screen line, of from the beginning of the paragraph? If there are some nontext items (pictures) there, should they be ignored, or in this case you need text from the picture to the caret?