This commit is contained in:
Kovid Goyal 2014-08-01 18:31:47 +05:30
parent 1f49df62fa
commit aa2728e71d

View File

@ -23,6 +23,8 @@ def syntax_from_mime(name, mime):
if mime.startswith('image/') and mime.partition('/')[-1].lower() in {
'jpeg', 'jpg', 'gif', 'png'}:
return 'raster_image'
if mime.endswith('+xml'):
return 'xml'
def editor_from_syntax(syntax, parent=None):
if syntax in {'text', 'html', 'css', 'xml'}: