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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
d5c0a0c1
Commit
d5c0a0c1
authored
Mar 09, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monaco_editor: improve ZMI view
- make the editor bigger - use monospace font for params
parent
dd820377
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
bt5/erp5_monaco_editor/SkinTemplateItem/portal_skins/erp5_monaco_editor/monaco_editor_support.zpt
...portal_skins/erp5_monaco_editor/monaco_editor_support.zpt
+10
-0
No files found.
bt5/erp5_monaco_editor/SkinTemplateItem/portal_skins/erp5_monaco_editor/monaco_editor_support.zpt
View file @
d5c0a0c1
...
@@ -44,6 +44,10 @@
...
@@ -44,6 +44,10 @@
/* This says "press F10 for full screen but our monaco patch does not support this" */
/* This says "press F10 for full screen but our monaco patch does not support this" */
content: "" !important;
content: "" !important;
}
}
#editor_container {
height: 100% !important;
min-height: 30rem;
}
.ace_editor {
.ace_editor {
display: none;
display: none;
}
}
...
@@ -71,6 +75,12 @@ $script.src =
...
@@ -71,6 +75,12 @@ $script.src =
window.monacoEditorWebPackResourceBaseUrl + "/monaco-editor/app.bundle.min.js";
window.monacoEditorWebPackResourceBaseUrl + "/monaco-editor/app.bundle.min.js";
document.head.appendChild($script);
document.head.appendChild($script);
/* make "Parameter List" input on python scripts use a monospace font */
var $params = document.getElementById("params");
if ($params) {
$params.classList.add("code");
}
$script.onload = function() {
$script.onload = function() {
var $textarea =
var $textarea =
document.querySelector(textarea_selector) ||
document.querySelector(textarea_selector) ||
...
...
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