fix RichText visit issue
Merge pull request #7574 from andyque/fixRichTextVisitIssue

fix RichText visit issue