RichTextField constructor updated.