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
@@ -1,8 +1,8 @@
1
1
  .wym_skin_refinery .wym_codemirror {
2
2
  background-color: white;
3
3
  margin-bottom: 8px;
4
- width: 946px;
5
4
  display: none;
5
+ width: 100%;
6
6
  }
7
7
 
8
8
  .CodeMirror {
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
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: