Add support to attributed text