15 Replies Latest reply on Dec 22, 2009 6:24 AM by Harbs.

    Adding paragraph in textFrame using Javascript

    enableDeepak

      Hi,

       

      I have a text frame which has 4 paragraphs.

      How can I add a 5th paragraph using Javascript and set some content into it?

       

      I tried:

       

      myTextFrame.contents += "\rNew Text"  \\Doesn't works

       

      Also I couldn't find any method available for adding a new paragraph as paragraph property of text frame seems readonly.

       

      Please help!