Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Klaus Wölfel
erp5
Commits
3d7289b9
Commit
3d7289b9
authored
9 years ago
by
Jérome Perrin
Browse files
Options
Download
Email Patches
Plain Diff
codemirror: support html files in ZMI
parent
387c6b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
product/ERP5Type/patches/AceEditorZMI.py
product/ERP5Type/patches/AceEditorZMI.py
+5
-0
No files found.
product/ERP5Type/patches/AceEditorZMI.py
View file @
3d7289b9
...
...
@@ -51,6 +51,11 @@ def manage_page_footer(self):
mode
=
'javascript'
elif
'css'
in
document
.
getContentType
():
mode
=
'css'
elif
'html'
in
document
.
getContentType
():
if
editor
==
'codemirror'
:
mode
=
'htmlmixed'
else
:
mode
=
'html'
textarea_selector
=
'textarea[name="filedata:text"]'
elif
document
.
meta_type
in
(
'Script (Python)'
,
):
mode
=
'python'
...
...
This diff is collapsed.
Click to expand it.
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