Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
7f21834d
Commit
7f21834d
authored
Feb 17, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: use preferred source code editor for non html documents
parent
eca32661
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getEditorFieldPreferredTextEditor.xml
...kins/erp5_core/Base_getEditorFieldPreferredTextEditor.xml
+5
-5
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getEditorFieldPreferredTextEditor.xml
View file @
7f21834d
...
@@ -63,12 +63,12 @@ if not content_type:\n
...
@@ -63,12 +63,12 @@ if not content_type:\n
if getattr(context, \'getContentType\', None) is not None:\n
if getattr(context, \'getContentType\', None) is not None:\n
content_type = context.getContentType() or \'text/html\'\n
content_type = context.getContentType() or \'text/html\'\n
\n
\n
# If this is
not HTML, fallback to TextA
rea\n
# If this is
HTML, use preferred HTML editor or fallback to Texta
rea\n
if content_type
!
= \'text/html\':\n
if content_type
=
= \'text/html\':\n
return \'text_area\'\n
return
context.portal_preferences.getPreferredTextEditor() or
\'text_area\'\n
\n
\n
# Else
return preferred value or TextArea if nothing defined
\n
# Else
use preferred source code editor or fallback to Textarea
\n
return context.portal_preferences.getPreferred
Text
Editor() or \'text_area\'\n
return context.portal_preferences.getPreferred
SourceCode
Editor() or \'text_area\'\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment