Suppose I want to insert some TypoScript for the RTE such that I check where each link is going and possibly add an onclick property? I'm sure that I would need to use a PHP function to do this but I'm not quite sure how to go about it.