This is my first post, so hello all. I'm learning Flex and getting excited about using it in a project.
I'm creating a text editor component that allows comments. I'd like it to be similar to the comment feature in the wonderful Buzzword. I've immediately run into difficulty but I hope this says more about my ambition than ability . Any help or advice would be much appreciated.
Location the text range
Next I need to know the location of this portion of text. I have tried:
1. to find the XY coordinates of the text range in the editor
2. to find the line number of the text range in the editor.
I have not been able to find a way to do either of these. Am I missing something obvious?
Identifying a text range
I need the comments to be adjacent to the line that is being commented. I need to identify the text range in the editor that is associated with the comment. For this I have looked into:
1. wrapping the text being commented in a span with an ID
2. add an id to the TEXTFORMAT for identification
Again, I have not been able to do either of these. I need some kind of anchor in the text.
Can anyone help me out here, or suggest another way? Thanks a lot.