added support for setting attributedText directly