2 Replies Latest reply on Jul 25, 2017 8:52 AM by Saeedfs

    How to apply paragraph style and clear character styles

    Saeedfs Level 1

      Hi for every one,

      I've a paragraph called myParagraph . I would like to apply the paragraph style which called N with the option which is similar to

      Apply "N" , Clear Character Styles

       

      the code i used is

      myDoc = app.activeDocument;
      myParagraph=myDoc.spreads[2].pages[0].textFrames[0].paragraphs[1];
      myParagraphStyle=myDoc.paragraphStyles.itemByName("N");
      myParagraph.applyParagraphStyle(myParagraphStyle,true);
      

      the reslut it applyed the paragraph style N but

      the font size of the original paragraph remain . does not change to the new one

       

      Where is it going wrong?

      Please suggest

      Thank you