4 Replies Latest reply on Dec 7, 2014 9:22 PM by Sudha K

    Line number of selected text from footnote

    Sudha K Level 1



        I can get the line number of selected text from document but throwing the error for footnote.  How can i get the line number for text from footnote.


      Can anyone guide me...


      function getLineNumber(myText)



              var myTF = myText.parentTextFrames[0];


              line_number = myTF.characters.itemByRange(myTF.characters[0], myText).lines.length;

              line_number = line_number-1;

              return line_number;

          }catch(e){return null;}



      Thanks in advance,

      Sudha K