2 Replies Latest reply on Feb 15, 2008 12:02 AM by tobias.wantzen

    [AS, CS2] From Insertion Point to Paragraph

    tobias.wantzen Level 1
      Hi,

      1.
      My cursor blinks in the middle of paragraph 3 of the text flow, no character selected.
      2.
      I've selected some characters.

      How can I get the no. of the paragraph via scripting? If I use »selection« I always get the insertion point (1) or a »character x to character y« (2), but I can't figure out, how to get the paragraph number out of this.

      Can anybody give me a hint?
      Thanks.
      Tobias