Rewrite StyledTextAreaContent as StyledTextDocument.