Clean up richText element

Clean up richText element