1 Reply Latest reply on Jan 10, 2013 12:42 AM by dasimonx

    delete tab character in textframe

    dasimonx Level 1

      hi

      i develop an indesign extension with flash builder and cs extension builder 2.

      i try to delete the first character of a textframe if it's a tabulation but i don't find tab in SpecialCharacters class... and i don't know how to do the test..

      any idea ?

      thanks

      Simon

        • 1. Re: delete tab character in textframe
          dasimonx Level 1

          i've tryed:

          while(te.characters.item(0).contents==SpecialCharacters.INDENT_HERE_TAB || te.characters.item(0).contents==SpecialCharacters.RIGHT_INDENT_TAB || te.characters.item(0).contents==" "  || te.characters.item(0).contents=="     "  || te.characters.item(0).contents=="^t"){
          te.characters.item(0).remove();
          }

          where te is the textframe that i browse with a foreach....but it doesn't work...