6 Replies Latest reply on Jul 27, 2015 1:22 AM by Sudha K

    Applied character styles

    Sudha K Level 1

      Hi,

       

           Selection of text contains more than one character styles. I can get that styles by the below code.

       

      var aCStyles = app.selection[0].textStyleRanges.everyItem().appliedCharacterStyle;

      for(var i=0; i < aCStyles.length; i++)

      {

          alert(aCStyles[i].name);

      }

       

      How can i get that all character styles using single line like the below.

       

      alert(app.selection[0].textStyleRanges.everyItem().fontStyle);