Insert TE tags into expanded view.