2 Replies Latest reply on Aug 27, 2012 2:24 AM by Vamitul

    how tho check if selection is any kind of text:

    Vamitul Level 4

      ok.. another question:

      how tho check if selection is any kind of text:

          if (app.documents.length != 0 && app.selection.length != 0 &&

           (app.selection[0].constructor.name=="Text"||app.selection[0].constructor.name=="Paragraph"))

       

      but sometimes selection is "textStyleRange", sometimes is "character" etc. is there any shortcut to check everything at once?