Hi, I just wanted to know ir there's a way on how to get index of selected content. Reason why I need it coz I have to know the index range where changes where made.
I have to 2 rad editor with same content. 1 is to be edited and the other 1 remains unchanged. Though the text color of the changed editor will reflect the other one..
Scenario.. I have several custom tool that will check for errors on paragraphs, one is convert lowercase to propercase or converts the 1st character to uppercase. Tool automatically change the color, text, etc once the word is highlighted and tool has been clicked. User cannot enter in any text at all. Only tools are enabled and can be used.
Sample:
The word to correct is "i" so I used my custom tool to convert that to uppercase. the 1st editor will reflect the changes and it will color it red. 2nd editor will remain in smallcase but will have a color red as well. This only shows that it was changed or corrected..
The problem is when there are lots of "i" on the paragraph the 2nd editor will have a color red on those character. for my code is just replace all instance... But if I have a index range it will just be contained on that instance...
So with that I really need to get the index...
I hope somebody could give some input or if they have other suggestion that would fit my requirements that would be very much appreciated.
Thanks in advance,
RJ
I have to 2 rad editor with same content. 1 is to be edited and the other 1 remains unchanged. Though the text color of the changed editor will reflect the other one..
Scenario.. I have several custom tool that will check for errors on paragraphs, one is convert lowercase to propercase or converts the 1st character to uppercase. Tool automatically change the color, text, etc once the word is highlighted and tool has been clicked. User cannot enter in any text at all. Only tools are enabled and can be used.
Sample:
The word to correct is "i" so I used my custom tool to convert that to uppercase. the 1st editor will reflect the changes and it will color it red. 2nd editor will remain in smallcase but will have a color red as well. This only shows that it was changed or corrected..
The problem is when there are lots of "i" on the paragraph the 2nd editor will have a color red on those character. for my code is just replace all instance... But if I have a index range it will just be contained on that instance...
So with that I really need to get the index...
I hope somebody could give some input or if they have other suggestion that would fit my requirements that would be very much appreciated.
Thanks in advance,
RJ