Question
getTextSelection() not returning the selected range
- March 6, 2012
- 4 replies
- 3499 views
Hello Adepters,
We have an empty element "endReusableBlock" that only has one attribute "id". It is styled as a block, with its text hidden and we add some gentext after it.
[cid:image002.png@01CCFB81.BB0260F0]
If we select a block that ends with the hidden element:
[cid:image003.png@01CCFB81.BB0260F0]
And use Application.ActiveDocument.getTextSelection() to get the selected text, the function doesn't return the hidden element in the range. If I change the styling of the element and make it non hidden. The function "getTextSelection()" returns is in the range.
Does anybody have an idea how to solve this?
Thanks,
-Samah
We have an empty element "endReusableBlock" that only has one attribute "id". It is styled as a block, with its text hidden and we add some gentext after it.
[cid:image002.png@01CCFB81.BB0260F0]
If we select a block that ends with the hidden element:
[cid:image003.png@01CCFB81.BB0260F0]
And use Application.ActiveDocument.getTextSelection() to get the selected text, the function doesn't return the hidden element in the range. If I change the styling of the element and make it non hidden. The function "getTextSelection()" returns is in the range.
Does anybody have an idea how to solve this?
Thanks,
-Samah

