summernote-rails 0.6.2.0 → 0.6.2.1

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: 64099f6b5bd1bf3e7ed7e5ff435f29c1d3f7ffdc
4
- data.tar.gz: 54b3eac5f749fd3b85506628f78d7c7bc54755cb
3
+ metadata.gz: 738b12c30c77848392d2ca4ab4087024fdbb7150
4
+ data.tar.gz: e87633ff25feec7bd1845621788ddcf3285acd37
5
5
  SHA512:
6
- metadata.gz: c8a8c07a2da17d9dbf86892155c76dcebe56f5d232526f921911e83cecad9b4f8f99f478d3747c3b9a7f0b351e0c7c3330ed4ec977e58fcb454e5556fe64ccd3
7
- data.tar.gz: 5de3f7be52653095338e381caf48cdc3eb20325f1ec5caba632bad436d82c9acae86cf1e14522ded908af37d47e48ad3ce96b19abfed15b5709ed26d5183a9c6
6
+ metadata.gz: 62a93be72db4549dbe625975a1c08b437aec153ff5588310fb61bddcf9db4116d4b6e71f47713c48e11a009c7a47d268a775dc17da11ce3ed33735285348e956
7
+ data.tar.gz: d7388fe4f18d3943e20494ad58acf66605fc0970c6374ca88390bb076cbf9575107c641aebf328704e5cd4cb2801d8d35b28a8378db255bc0a7fbe795c3a2d19
data/README.md CHANGED
@@ -70,6 +70,32 @@ Then, if you are using simple_form, you can use the `:summernote` input type. Th
70
70
 
71
71
  If you are not using simple_form, then simply add the `data-provider="summernote"` to the input field yourself.
72
72
 
73
+ ### i18n Support
74
+
75
+ If you use i18n, you have to include language files. In `app/assets/javascripts/application.js`, you should add the following:
76
+
77
+ ```js
78
+ // load all locales
79
+ //= require summernote/locales
80
+
81
+ // load specific locale(ko-KR)
82
+ //= require summernote/locales/ko-KR
83
+ ```
84
+
85
+ and update summernote option
86
+
87
+ ```html
88
+ <div id="summernote">Hello Summernote</div>
89
+
90
+ <script type="text/javascript">
91
+ $(document).ready(function() {
92
+ $('#summernote').summernote({
93
+ lang: 'ko-KR'
94
+ });
95
+ });
96
+ </script>
97
+ ```
98
+
73
99
  ## Sample projects
74
100
 
75
101
  For an example, take a look at the summernote-rails-test folder in this repository.
@@ -1,5 +1,5 @@
1
1
  module SummernoteRails
2
2
  module Rails
3
- VERSION = "0.6.2.0"
3
+ VERSION = "0.6.2.1"
4
4
  end
5
5
  end
@@ -1,2 +1 @@
1
1
  //= require ./summernote
2
- //= require ./locales/
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.6.2.0
4
+ version: 0.6.2.1
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: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties