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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
a5291ef8
Commit
a5291ef8
authored
Feb 22, 2016
by
iv
Committed by
Romain Courteaud
Feb 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OfficeJS drive: Add some options to Codemirror gadget.
parent
7bec2c3d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
19 deletions
+29
-19
bt5/erp5_officejs_drive/PathTemplateItem/web_page_module/codemirror_rjs_gadget_html.xml
...mplateItem/web_page_module/codemirror_rjs_gadget_html.xml
+17
-16
bt5/erp5_officejs_drive/PathTemplateItem/web_page_module/codemirror_rjs_gadget_js.xml
...TemplateItem/web_page_module/codemirror_rjs_gadget_js.xml
+12
-3
No files found.
bt5/erp5_officejs_drive/PathTemplateItem/web_page_module/codemirror_rjs_gadget_html.xml
View file @
a5291ef8
...
...
@@ -124,14 +124,15 @@
<script
src=
"codemirror_mode_javascript.js"
></script>
\n
<script
src=
"codemirror_addon_edit_matchbrackets.js"
></script>
\n
<script
src=
"codemirror_keymap_vim.js"
></script>
\n
\n
<script
src=
"codemirror_addon_display_fullscreen.js"
></script>
\n
<script
src=
"codemirror_addon_dialog.js"
></script>
\n
<script
src=
"gadget_codemirror.js"
type=
"text/javascript"
></script>
\n
\n
<script
src=
"gadget_codemirror.js"
type=
"text/javascript"
></script>
\n
</head>
\n
<body>
\n
\n
<div
class=
"codemirror_gadget"
><textarea
name=
"code"
></textarea></div>
\n
<div
class=
"codemirror_gadget"
><textarea
name=
"code"
></textarea></div>
\n
\n
</body>
\n
</html>
\n
...
...
@@ -272,7 +273,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
948.
27247.18522.58589
</string>
</value>
<value>
<string>
948.
62232.11308.64477
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -290,7 +291,7 @@
</tuple>
<state>
<tuple>
<float>
145
3133547.21
</float>
<float>
145
4939427.73
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_drive/PathTemplateItem/web_page_module/codemirror_rjs_gadget_js.xml
View file @
a5291ef8
...
...
@@ -122,7 +122,14 @@
keyMap: \'vim\',\n
matchBrackets: true,\n
showCursorWhenSelecting: true,\n
autofocus: false\n
tabSize: 4,\n
indentUnit: 4,\n
indentWithTabs: false,\n
extraKeys: {\n
"Alt-;": function (cm) {\n
cm.setOption("fullScreen", !cm.getOption("fullScreen"));\n
}\n
}\n
}\n
);\n
});\n
...
...
@@ -133,6 +140,8 @@
CodeMirror.commands.save = function () {\n
gadget.submitData();\n
};\n
//console.log(gadget.props.element.querySelector(\'.editor\'));\n
\n
})\n
.declareMethod(\'getData\', function () {\n
return this.editor.getValue();\n
...
...
@@ -276,7 +285,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
948.
29057.44332.28194
</string>
</value>
<value>
<string>
948.
62231.37965.8123
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -294,7 +303,7 @@
</tuple>
<state>
<tuple>
<float>
145
3133523.32
</float>
<float>
145
4939611.03
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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