summernote-rails 0.5.10.1 → 0.5.10.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22f73fdd4a959e30b2da1fbdf147fbe386d984dc
4
- data.tar.gz: 2b372af113c1c14f4f58c28155ed83b4963b44ab
3
+ metadata.gz: d0389860d8ad77ca2201ce25aca995ea4d4fe882
4
+ data.tar.gz: 696d8c7b9ff461094bd2127de625c67add6a7780
5
5
  SHA512:
6
- metadata.gz: f96d49f128851e3f9dafbf2d3e7a7df031249b78fca666b05c91441a6e987c847b236ffac3d652c8480d8238ab87d83127da71d51766f8cdf0542dc1aee00e6b
7
- data.tar.gz: be77c38ecb802e096b2db30bae0b10a4440411806abd3907569c6a0544ae927cb46723d08bd8e0881af1ec2c24e989d0cc8e6ea1e4d108b205f12b2f1fa36651
6
+ metadata.gz: 16e021f19dd9e4271dc5ec895055b0ccdb4ecb8db64e5f59c5e750b102739ff7045594cf7fc832da00d1b6e84231a0f18d694f68cf71b1bb88f15ea6721569c2
7
+ data.tar.gz: 9b57d849ba47408b2076829b582ca01e138b2b39f884633b618ad16fcbce0ebfd52fbc882a1f66e78940ee1948271cb952b9dbc0034267b611911fd1b841bc1d
data/README.md CHANGED
@@ -14,21 +14,26 @@ The version of summernote-rails is matched with that of summernote editor.
14
14
 
15
15
  Add the following gems to your application's Gemfile:
16
16
 
17
- gem 'simple_form'
17
+ ```ruby
18
+ gem 'simple_form'
18
19
 
19
- # You'll need to include the following dependencies of Summernote
20
- gem 'bootstrap-sass'
21
- gem "font-awesome-rails"
20
+ # You'll need to include the following dependencies of Summernote
21
+ gem 'bootstrap-sass'
22
+ gem "font-awesome-rails"
22
23
 
23
- # This is the right gem to use summernote editor in Rails projects.
24
- gem 'summernote-rails'
24
+ # This is the right gem to use summernote editor in Rails projects.
25
+ gem 'summernote-rails'
26
+ gem 'codemirror-rails'
25
27
 
26
- # To solve the problems on the turbolinks
27
- gem 'jquery-turbolinks'
28
+ # To solve the problems on the turbolinks
29
+ gem 'jquery-turbolinks'
30
+ ```
28
31
 
29
32
  And then execute:
30
33
 
31
- $ bundle install
34
+ ```bash
35
+ $ bundle install
36
+ ```
32
37
 
33
38
  ## Usage
34
39
 
@@ -37,22 +42,42 @@ First of all, the summernote editor works on Bootstrap and so it is assumed that
37
42
 
38
43
  In app/assets/stylesheets/application.css.scss,
39
44
 
40
- ```
45
+ ```css
41
46
  // Bootstrap 3
42
47
  @import "bootstrap";
43
48
  @import "font-awesome";
44
49
  @import "summernote";
50
+ @import "codemirror";
51
+ @import "codemirror/themes/solarized";
52
+ @import "posts";
45
53
  body {padding-top:3em;}
46
54
  ```
47
55
 
48
56
  In app/assets/javascripts/application.js, you should add the following:
49
57
 
50
- ```
58
+ ```js
51
59
  //= require jquery
52
60
  //= require jquery.turbolinks
53
61
  //= require jquery_ujs
54
62
  //= require bootstrap
55
- //= require summernote.min
63
+ //= require codemirror
64
+ //= require codemirror/modes/ruby
65
+ //= require codemirror/modes/sass
66
+ //= require codemirror/modes/shell
67
+ //= require codemirror/modes/sql
68
+ //= require codemirror/modes/slim
69
+ //= require codemirror/modes/nginx
70
+ //= require codemirror/modes/markdown
71
+ //= require codemirror/modes/javascript
72
+ //= require codemirror/modes/http
73
+ //= require codemirror/modes/htmlmixed
74
+ //= require codemirror/modes/haml
75
+ //= require codemirror/modes/xml
76
+ //= require codemirror/modes/css
77
+ //= require codemirror/modes/yaml
78
+ //= require codemirror/modes/slim
79
+ //= require codemirror/modes/php
80
+ //= require summernote
56
81
  //= require lang/summernote-ko-KR
57
82
  //= require_tree .
58
83
  //= require turbolinks
@@ -62,7 +87,7 @@ For example, if you made a `Post` model using `scaffold generator` of Rails, you
62
87
 
63
88
  In that template file, you should add `summernote` class to the textarea input as the following:
64
89
 
65
- ```
90
+ ```html
66
91
  <%= simple_form_for(@post) do |f| %>
67
92
  <%= f.error_notification %>
68
93
 
@@ -81,7 +106,7 @@ In that template file, you should add `summernote` class to the textarea input a
81
106
 
82
107
  And then, in `post`-dedicated coffeescript file, app/assets/javascripts/posts.js.coffee, you should add the following:
83
108
 
84
- ```
109
+ ```js
85
110
  $ ->
86
111
 
87
112
  # to set summernote object
@@ -91,19 +116,12 @@ $ ->
91
116
  # to call summernote editor
92
117
  summer_note.summernote
93
118
  # to set options
94
- height:300
119
+ height:500
95
120
  lang: 'ko-KR'
96
- # toolbar: [
97
- # ['insert', ['picture', 'link']], // no insert buttons
98
- # ["table", ["table"]],
99
- # ["style", ["style"]],
100
- # ["fontsize", ["fontsize"]],
101
- # ["color", ["color"]],
102
- # ["style", ["bold", "italic", "underline", "clear"]],
103
- # ["para", ["ul", "ol", "paragraph"]],
104
- # ["height", ["height"]],
105
- # ["help", ["help"]]
106
- #]
121
+ codemirror:
122
+ lineNumbers: true
123
+ tabSize: 2
124
+ theme: "solarized light"
107
125
 
108
126
  # to set code for summernote
109
127
  summer_note.code summer_note.val()
@@ -120,11 +138,14 @@ That's it.
120
138
 
121
139
  ## Sample projects
122
140
 
123
- - Rails 3.2.16 : http://github.com/rorlab/summernote-test-r3
124
- - Rails 4.0.2 : http://github.com/rorlab/summernote-test
141
+ - Rails 3.2.16 : https://github.com/rorlab/summernote-test-r3
142
+ - Rails 4.1.6 : https://github.com/rorlab/summernote-rails-sample
125
143
 
126
144
  ## Changelogs
127
145
 
146
+ - v0.5.10.2
147
+ * Updated README.md
148
+
128
149
  - v0.5.10.0
129
150
  * Updated with `v0.5.10 Summernote, 2014-10-3`
130
151
 
@@ -1,5 +1,5 @@
1
1
  module Summernote
2
2
  module Rails
3
- VERSION = "0.5.10.1"
3
+ VERSION = "0.5.10.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: summernote-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10.1
4
+ version: 0.5.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hyo Seong Choi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-03 00:00:00.000000000 Z
11
+ date: 2014-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties