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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
affd0574
Commit
affd0574
authored
May 17, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SourceCodeEditorZMI: support less (the CSS preprocessor)
This is only supported in monaco editor
parent
6f536bf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5Type/patches/SourceCodeEditorZMI.py
product/ERP5Type/patches/SourceCodeEditorZMI.py
+4
-0
No files found.
product/ERP5Type/patches/SourceCodeEditorZMI.py
View file @
affd0574
...
@@ -81,6 +81,10 @@ def manage_page_footer(self):
...
@@ -81,6 +81,10 @@ def manage_page_footer(self):
mode
=
'xml'
mode
=
'xml'
textarea_selector
=
'textarea[name="text:text"]'
textarea_selector
=
'textarea[name="text:text"]'
if
mode
==
'plain_text'
:
if
document
.
getId
().
endswith
(
'.less'
):
mode
=
'less'
if
not
textarea_selector
:
if
not
textarea_selector
:
return
default
return
default
...
...
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