Fix documentation issues in TextItem.