refinerycms-codemirror 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,8 +16,8 @@ $.extend skin,
|
|
16
16
|
|
17
17
|
# build the codemirror textarea
|
18
18
|
codemirror = CodeMirror.fromTextArea(textarea,
|
19
|
-
lineNumbers: true
|
20
19
|
matchBrackets: true
|
20
|
+
lineNumbers: true
|
21
21
|
mode: "text/html"
|
22
22
|
enterMode: "keep"
|
23
23
|
tabMode: "shift"
|
@@ -37,4 +37,5 @@ $.extend skin,
|
|
37
37
|
# click handler for the html button
|
38
38
|
$(".wym_tools_html a").click ->
|
39
39
|
$(".wym_iframe, .wym_codemirror", container).toggle()
|
40
|
+
codemirror.setValue wym.html()
|
40
41
|
codemirror.refresh() # codemirror must be refreshed if it was hidden
|