refinerycms-codemirror 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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
|