[TextEditor] TextEditorData now removes document from memory on
dispose.