web/formfields.py
changeset 10012 8c2c6fdd8d56
parent 10006 8391bf718485
child 10612 84468b90e9c1
child 11118 0c645f09d96a
--- a/web/formfields.py	Thu Oct 23 14:57:02 2014 +0200
+++ b/web/formfields.py	Wed Apr 30 21:04:14 2014 +0200
@@ -779,11 +779,13 @@
     actually contains some text.
 
     If the stream format is one of text/plain, text/html, text/rest,
+    text/markdown
     then a :class:`~cubicweb.web.formwidgets.TextArea` will be additionaly
     displayed, allowing to directly the file's content when desired, instead
     of choosing a file from user's file system.
     """
-    editable_formats = ('text/plain', 'text/html', 'text/rest')
+    editable_formats = (
+        'text/plain', 'text/html', 'text/rest', 'text/markdown')
 
     def render(self, form, renderer):
         wdgs = [super(EditableFileField, self).render(form, renderer)]