Persisting text content and annotations