refinerycms-codemirror 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ $.extend skin,
|
|
15
15
|
section = $("<div/>").addClass("wym_codemirror wym_section").appendTo(mainPanel)
|
16
16
|
|
17
17
|
# build the codemirror textarea
|
18
|
-
codemirror = CodeMirror.fromTextArea
|
18
|
+
codemirror = CodeMirror.fromTextArea textarea,
|
19
19
|
matchBrackets: true
|
20
20
|
lineNumbers: true
|
21
21
|
mode: "text/html"
|
@@ -26,7 +26,6 @@ $.extend skin,
|
|
26
26
|
onChange: -> # keep wym updated
|
27
27
|
html = codemirror.getValue()
|
28
28
|
wym.html(html)
|
29
|
-
)
|
30
29
|
|
31
30
|
# move the editor into the proper place
|
32
31
|
$(".CodeMirror", container).detach().appendTo(section)
|
@@ -38,4 +37,8 @@ $.extend skin,
|
|
38
37
|
$(".wym_tools_html a").click ->
|
39
38
|
$(".wym_iframe, .wym_codemirror", container).toggle()
|
40
39
|
codemirror.setValue wym.html()
|
41
|
-
codemirror.refresh() # codemirror must be refreshed if it was hidden
|
40
|
+
codemirror.refresh() # codemirror must be refreshed if it was hidden
|
41
|
+
|
42
|
+
$("input.wymupdate").click ->
|
43
|
+
codemirror.setValue wym.html()
|
44
|
+
codemirror.refresh()
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-codemirror
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: refinerycms-core
|