Add has content indicator to text items.
Remove debug code.
Toggle class when content is added/removed.