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 +4 -4
- data/README.md +26 -0
- data/lib/summernote-rails/version.rb +1 -1
- data/vendor/assets/javascripts/summernote/index.js +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 738b12c30c77848392d2ca4ab4087024fdbb7150
|
4
|
+
data.tar.gz: e87633ff25feec7bd1845621788ddcf3285acd37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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-
|
11
|
+
date: 2015-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|