Added templates for TextItems.