Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: Finding an element from a text location

$
0
0

Hi Tracey,

 

It turned out to be really simple: you can translate between text locations and element locations using two methods (one for each direction).

 

var oTRange = oDoc.TextSelection;

var oTLoc = oTRange.beg;                    /* beg and end are two TLoc objects, which will be the same

                                                                   if no text is selected */

 

var oELoc = oDoc.TextLocToElementLoc( TLoc );

 

Kind regards

 

Jang


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>