diff --git a/product/ERP5/Document/TextDocument.py b/product/ERP5/Document/TextDocument.py
index 67a0b0aedd9897dff656a5994157b96b8e222742..ca566cae2b66948ff9b9c6c5895b44d1faacbfe6 100644
--- a/product/ERP5/Document/TextDocument.py
+++ b/product/ERP5/Document/TextDocument.py
@@ -291,6 +291,15 @@ class TextDocument(Document, TextContent):
       """
       return self.hasTextContent()
 
+    security.declareProtected(Permissions.AccessContentsInformation, 'getData')
+    def getData(self):
+      """
+        A TextDocument store its data in the "text_content" property. Since
+        there is no such thing as data in TextDocument, getting data
+        is equivalent to getting some text_content.
+      """
+      return self.getTextContent()
+
     security.declareProtected(Permissions.AccessContentsInformation, 'getMimeTypeAndContent')
     def getMimeTypeAndContent(self):
       """This method returns a tuple which contains mimetype and content."""