Replacing a Style or Paragraph Tag with Another
Hi,
I am trying to find the API to set the style in RoboHelp Script. In the Clean Project Example (as in the following code snippet), it shows how to find a undefined style and remove that style. In this case, instead of token.removeAttribute("style"), is it possible to set a style, for example, a paragraph tag, say "body". Also, is it possible to find a paragraph tag, say "Normal", and replace it with "body" paragraph tag.
| if(token.tokenType == RoboHelp.TokenType.TOKENTAG) | ||||||
| { | ||||||
| //Does this token have style attribute? | ||||||
| if(token.getAttribute("style") != "") | ||||||
| { | ||||||
| //This token has a style attribute. Now remove the style attribute. | ||||||
| token.removeAttribute("style"); | ||||||
| } | ||||||
| } |
Thanks.
