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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
6405d53e
Commit
6405d53e
authored
Feb 07, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_code_mirror] Active syntax highlighting. Add cache manifest
parent
c39b2f6a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
93 additions
and
9 deletions
+93
-9
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/codemirror.gadget.appcache.appcache
...kins/erp5_code_mirror/codemirror.gadget.appcache.appcache
+40
-0
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/codemirror.gadget.appcache.xml
...tal_skins/erp5_code_mirror/codemirror.gadget.appcache.xml
+28
-0
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/codemirror.gadget.html.html
...portal_skins/erp5_code_mirror/codemirror.gadget.html.html
+12
-8
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/codemirror.gadget.js.js
...tem/portal_skins/erp5_code_mirror/codemirror.gadget.js.js
+13
-1
No files found.
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/codemirror.gadget.appcache.appcache
0 → 100644
View file @
6405d53e
CACHE MANIFEST
# generated on Thu, 07 Feb 2017 15:00:00 GMT
CACHE:
favicon.ico
renderjs.js
rsvp.js
codemirror/lib/codemirror.js
codemirror/lib/codemirror.css
codemirror/addon/cm_edit/matchbrackets.js
codemirror/addon/cm_edit/trailingspace.js
codemirror/addon/dialog/dialog.css
codemirror/addon/dialog/dialog.js
codemirror/addon/search/searchcursor.js
codemirror/addon/search/search.js
codemirror/addon/search/jump-to-line.js
codemirror/addon/selection/active-line.js
codemirror/addon/hint/show-hint.css
codemirror/addon/hint/show-hint.js
codemirror/addon/hint/anyword-hint.js
codemirror/addon/fold/foldgutter.css
codemirror/addon/fold/foldcode.js
codemirror/addon/fold/foldgutter.js
codemirror/addon/fold/indent-fold.js
codemirror/addon/fold/comment-fold.js
codemirror/addon/merge/merge.css
diff_match_patch/javascript/diff_match_patch_uncompressed.js
codemirror/addon/merge/merge.js
codemirror/addon/lint/lint.css
codemirror/addon/lint/lint.js
jshint.js
codemirror/addon/lint/javascript-lint.js
csslint.js
codemirror/addon/lint/css-lint.js
codemirror/mode/xml/xml.js
codemirror/mode/javascript/javascript.js
codemirror/mode/css/css.js
codemirror/mode/htmlmixed/htmlmixed.js
codemirror.gadget.js
NETWORK:
*
\ No newline at end of file
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/codemirror.gadget.appcache.xml
0 → 100644
View file @
6405d53e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
codemirror.gadget.appcache
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/cache-manifest
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/codemirror.gadget.html.html
View file @
6405d53e
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html
manifest=
codemirror.gadget.appcache
>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
...
@@ -59,15 +59,19 @@
...
@@ -59,15 +59,19 @@
<link
rel=
"stylesheet"
href=
"codemirror/addon/lint/lint.css"
/>
<link
rel=
"stylesheet"
href=
"codemirror/addon/lint/lint.css"
/>
<script
src=
"codemirror/addon/lint/lint.js"
></script>
<script
src=
"codemirror/addon/lint/lint.js"
></script>
<!--link rel="stylesheet" href="codemirror/lib/codemirror.css" />
<script
type=
"text/javascript"
src=
"jshint.js"
></script>
<link rel="stylesheet" href="codemirror/addon/display/fullscreen.css" /-->
<script
type=
"text/javascript"
src=
"codemirror/addon/lint/javascript-lint.js"
></script>
<!-- link rel="stylesheet" href="addon/dialog/dialog.css" / -->
<!-- script src="addon/search/searchcursor.js"></script>
<script
type=
"text/javascript"
src=
"csslint.js"
></script>
<script src="addon/cm_edit/matchbrackets.js"></script -->
<script
type=
"text/javascript"
src=
"codemirror/addon/lint/css-lint.js"
></script>
<script
type=
"text/javascript"
src=
"codemirror/mode/xml/xml.js"
></script>
<script
type=
"text/javascript"
src=
"codemirror/mode/javascript/javascript.js"
></script>
<script
type=
"text/javascript"
src=
"codemirror/mode/css/css.js"
></script>
<script
type=
"text/javascript"
src=
"codemirror/mode/htmlmixed/htmlmixed.js"
></script>
<!--link rel="stylesheet" href="codemirror/addon/display/fullscreen.css" /-->
<!--script src="codemirror/addon/display/fullscreen.js"></script-->
<!--script src="codemirror/addon/display/fullscreen.js"></script-->
<!-- script src="addon/dialog/dialog.js"></script>
<script src="mode/javascript/javascript.js"></script -->
<script
src=
"codemirror.gadget.js"
></script>
<script
src=
"codemirror.gadget.js"
></script>
</head>
</head>
...
...
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/codemirror.gadget.js.js
View file @
6405d53e
...
@@ -45,10 +45,19 @@
...
@@ -45,10 +45,19 @@
})
})
.
declareMethod
(
'
render
'
,
function
(
options
)
{
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
mode
;
if
(
options
.
portal_type
===
'
Web Page
'
)
{
mode
=
'
htmlmixed
'
;
}
else
if
(
options
.
portal_type
===
'
Web Script
'
)
{
mode
=
'
javascript
'
;
}
else
if
(
options
.
portal_type
===
'
Web Style
'
)
{
mode
=
'
css
'
;
}
return
this
.
changeState
({
return
this
.
changeState
({
key
:
options
.
key
,
key
:
options
.
key
,
value
:
options
.
value
||
""
,
value
:
options
.
value
||
""
,
editable
:
options
.
editable
===
undefined
?
true
:
options
.
editable
editable
:
options
.
editable
===
undefined
?
true
:
options
.
editable
,
mode
:
mode
});
});
})
})
...
@@ -56,6 +65,9 @@
...
@@ -56,6 +65,9 @@
if
(
modification_dict
.
hasOwnProperty
(
'
value
'
))
{
if
(
modification_dict
.
hasOwnProperty
(
'
value
'
))
{
this
.
editor
.
setValue
(
this
.
state
.
value
);
this
.
editor
.
setValue
(
this
.
state
.
value
);
}
}
if
(
modification_dict
.
hasOwnProperty
(
'
mode
'
))
{
this
.
editor
.
setOption
(
"
mode
"
,
this
.
state
.
mode
);
}
})
})
.
declareMethod
(
'
getContent
'
,
function
()
{
.
declareMethod
(
'
getContent
'
,
function
()
{
...
...
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