Added checking if RichText is enabled.