3 Replies Latest reply on May 25, 2015 6:08 AM by Senthilvel S

    How to Replace "Right Indent Tab" character?

    Senthilvel S

      Hi All,

       

      I want to replace "Tab" and "Right Indent Tab" to "<TAB>" text. "Tab" replace is working fine. How to replace "Right Indent Tab"? Below is my Code.

       

       

      var myParaContents=app.selection[0].paragraphs[0].contents;

      myParaContents=myParaContents.replace("\t","<TAB>");     //This code replace "\t" to "<TAB>". Like this I want to change Right Indent Tab character.

      alert(myParaContents);

       

      Thanks & Regards,

      Senthilvel S