Commit 43d5c171 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_core: we now have an editor for PDF too

parent 810ce6ca
......@@ -15,5 +15,9 @@ if not content_type:
if content_type == 'text/html':
return context.portal_preferences.getPreferredTextEditor() or 'text_area'
# If this is a PDF, use the default PDF renderer
if content_type == 'application/pdf':
return 'pdf'
# Else use preferred source code editor or fallback to Textarea
return context.portal_preferences.getPreferredSourceCodeEditor() or 'text_area'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment