Adds TagCollection when TextWindow is instantiated.