summernote-rails 0.6.2.1 → 0.6.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -0
- data/lib/summernote-rails/version.rb +1 -1
- data/vendor/assets/javascripts/summernote/locales/ar-AR.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/ca-ES.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/cs-CZ.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/da-DK.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/de-DE.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/es-ES.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/es-EU.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/fa-IR.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/fi-FI.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/fr-FR.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/he-IL.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/hu-HU.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/id-ID.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/it-IT.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/ja-JP.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/ko-KR.js +6 -1
- data/vendor/assets/javascripts/summernote/locales/nb-NO.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/nl-NL.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/pl-PL.js +17 -7
- data/vendor/assets/javascripts/summernote/locales/pt-BR.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/ro-RO.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/ru-RU.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/sk-SK.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/sl-SI.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/sr-RS-Latin.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/sr-RS.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/sv-SE.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/th-TH.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/tr-TR.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/uk-UA.js +5 -1
- data/vendor/assets/javascripts/summernote/locales/vi-VN.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/zh-CN.js +3 -1
- data/vendor/assets/javascripts/summernote/locales/zh-TW.js +3 -1
- data/vendor/assets/javascripts/summernote/plugin/summernote-ext-hello.js +89 -0
- data/vendor/assets/javascripts/summernote/plugin/summernote-ext-video.js +573 -0
- data/vendor/assets/javascripts/summernote/summernote.js +1648 -1099
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be0643d568fdb6a2066aab7bf5c9391585526a22
|
4
|
+
data.tar.gz: 50cf01fb4366b9efb9c7aa2976f9a198ae921c91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 580fca4c1b9dd5174c5bb47bfd484cefc4917236d8a09131081fb47768abaaa9ba09bdfeb4f01b0e019bc8059f66e9e1716ecfd8de84008acb15fdeff441fe57
|
7
|
+
data.tar.gz: c05e152907bd0c0e85d2ccf1992a491479fb023caf466d1a902f02f8b1f999e6d6956bec55e6fa6b12fe8f9abde53912d6350bfc7e4f15c88bb0b6043423f1eb
|
data/README.md
CHANGED
@@ -96,6 +96,36 @@ and update summernote option
|
|
96
96
|
</script>
|
97
97
|
```
|
98
98
|
|
99
|
+
### Plugin
|
100
|
+
|
101
|
+
If you use Plugin, you have to include plugin files. In `app/assets/javascripts/application.js`, you should add the following:
|
102
|
+
|
103
|
+
```js
|
104
|
+
// load video plugin
|
105
|
+
//= require summernote/plugin/summernote-ext-video.js
|
106
|
+
```
|
107
|
+
|
108
|
+
and update summernote option
|
109
|
+
|
110
|
+
```html
|
111
|
+
<div id="summernote">Hello Summernote</div>
|
112
|
+
|
113
|
+
<script type="text/javascript">
|
114
|
+
$(document).ready(function() {
|
115
|
+
$('#summernote').summernote({
|
116
|
+
toolbar : [
|
117
|
+
...
|
118
|
+
['group', [ 'video' ]]
|
119
|
+
...
|
120
|
+
]
|
121
|
+
});
|
122
|
+
});
|
123
|
+
</script>
|
124
|
+
```
|
125
|
+
|
126
|
+
* [plugin example](https://github.com/summernote/summernote/blob/develop/examples/plugin-video.html)
|
127
|
+
|
128
|
+
|
99
129
|
## Sample projects
|
100
130
|
|
101
131
|
For an example, take a look at the summernote-rails-test folder in this repository.
|
@@ -7,7 +7,11 @@
|
|
7
7
|
underline: 'Understreget',
|
8
8
|
clear: 'Fjern formatering',
|
9
9
|
height: 'Højde',
|
10
|
-
name: 'Skrifttype'
|
10
|
+
name: 'Skrifttype',
|
11
|
+
strikethrough: 'Gennemstreget',
|
12
|
+
subscript: 'Sænket skrift',
|
13
|
+
superscript: 'Hævet skrift',
|
14
|
+
size: 'Skriftstørrelse'
|
11
15
|
},
|
12
16
|
image: {
|
13
17
|
image: 'Billede',
|
@@ -7,7 +7,11 @@
|
|
7
7
|
underline: 'Subrayado',
|
8
8
|
clear: 'Quitar estilo de fuente',
|
9
9
|
height: 'Altura de línea',
|
10
|
-
name: 'Fuente'
|
10
|
+
name: 'Fuente',
|
11
|
+
strikethrough: 'Tachado',
|
12
|
+
superscript: 'Superíndice',
|
13
|
+
subscript: 'Subíndice',
|
14
|
+
size: 'Tamaño de la fuente'
|
11
15
|
},
|
12
16
|
image: {
|
13
17
|
image: 'Imagen',
|
@@ -7,7 +7,11 @@
|
|
7
7
|
underline: 'Souligné',
|
8
8
|
clear: 'Effacer la mise en forme',
|
9
9
|
height: 'Interligne',
|
10
|
-
name: 'Famille de police'
|
10
|
+
name: 'Famille de police',
|
11
|
+
strikethrough: 'Barré',
|
12
|
+
superscript: 'Exposant',
|
13
|
+
subscript: 'Indicé',
|
14
|
+
size: 'Taille de police'
|
11
15
|
},
|
12
16
|
image: {
|
13
17
|
image: 'Image',
|
@@ -7,7 +7,9 @@
|
|
7
7
|
underline: 'Testo sottolineato',
|
8
8
|
clear: 'Elimina la formattazione del testo',
|
9
9
|
height: 'Altezza della linea di testo',
|
10
|
-
name: 'Famiglia Font'
|
10
|
+
name: 'Famiglia Font',
|
11
|
+
strikethrough: 'Testo barrato',
|
12
|
+
size: 'Dimensione del carattere'
|
11
13
|
},
|
12
14
|
image: {
|
13
15
|
image: 'Immagine',
|
@@ -1,4 +1,5 @@
|
|
1
1
|
(function ($) {
|
2
|
+
console.log('hit');
|
2
3
|
$.extend($.summernote.lang, {
|
3
4
|
'ko-KR': {
|
4
5
|
font: {
|
@@ -7,7 +8,11 @@
|
|
7
8
|
underline: '밑줄',
|
8
9
|
clear: '글자 효과 없애기',
|
9
10
|
height: '줄간격',
|
10
|
-
name: '글꼴'
|
11
|
+
name: '글꼴',
|
12
|
+
superscript: '위 첨자',
|
13
|
+
subscript: '아래 첨자',
|
14
|
+
strikethrough: '취소선',
|
15
|
+
size: '글자 크기'
|
11
16
|
},
|
12
17
|
image: {
|
13
18
|
image: '사진',
|
@@ -7,7 +7,9 @@
|
|
7
7
|
underline: 'Podkreślenie',
|
8
8
|
clear: 'Usuń formatowanie',
|
9
9
|
height: 'Interlinia',
|
10
|
-
name: 'Czcionka'
|
10
|
+
name: 'Czcionka',
|
11
|
+
strikethrough: 'Przekreślenie',
|
12
|
+
size: 'Rozmiar'
|
11
13
|
},
|
12
14
|
image: {
|
13
15
|
image: 'Grafika',
|
@@ -18,9 +20,16 @@
|
|
18
20
|
floatLeft: 'Po lewej',
|
19
21
|
floatRight: 'Po prawej',
|
20
22
|
floatNone: 'Równo z tekstem',
|
21
|
-
|
23
|
+
shapeRounded: 'Kształt: zaokrąglone',
|
24
|
+
shapeCircle: 'Kształt: okrąg',
|
25
|
+
shapeThumbnail: 'Kształt: miniatura',
|
26
|
+
shapeNone: 'Kształt: brak',
|
27
|
+
dragImageHere: 'Przeciągnij grafikę lub tekst tutaj',
|
28
|
+
dropImage: 'Przeciągnij grafikę lub tekst',
|
22
29
|
selectFromFiles: 'Wybierz z dysku',
|
23
|
-
|
30
|
+
maximumFileSize: 'Limit wielkości pliku',
|
31
|
+
maximumFileSizeError: 'Przekroczono limit wielkości pliku.',
|
32
|
+
url: 'Adres URL grafiki',
|
24
33
|
remove: 'Usuń grafikę'
|
25
34
|
},
|
26
35
|
link: {
|
@@ -29,7 +38,7 @@
|
|
29
38
|
unlink: 'Usuń odnośnik',
|
30
39
|
edit: 'Edytuj',
|
31
40
|
textToDisplay: 'Tekst do wyświetlenia',
|
32
|
-
url: 'Na jaki URL powinien przenosić ten
|
41
|
+
url: 'Na jaki adres URL powinien przenosić ten odnośnik?',
|
33
42
|
openInNewWindow: 'Otwórz w nowym oknie'
|
34
43
|
},
|
35
44
|
table: {
|
@@ -57,7 +66,7 @@
|
|
57
66
|
options: {
|
58
67
|
help: 'Pomoc',
|
59
68
|
fullscreen: 'Pełny ekran',
|
60
|
-
codeview: '
|
69
|
+
codeview: 'Źródło'
|
61
70
|
},
|
62
71
|
paragraph: {
|
63
72
|
paragraph: 'Akapit',
|
@@ -79,12 +88,13 @@
|
|
79
88
|
resetToDefault: 'Domyślne'
|
80
89
|
},
|
81
90
|
shortcut: {
|
82
|
-
shortcuts: 'Skróty
|
91
|
+
shortcuts: 'Skróty klawiaturowe',
|
83
92
|
close: 'Zamknij',
|
84
93
|
textFormatting: 'Formatowanie tekstu',
|
85
94
|
action: 'Akcja',
|
86
95
|
paragraphFormatting: 'Formatowanie akapitu',
|
87
|
-
documentStyle: 'Styl dokumentu'
|
96
|
+
documentStyle: 'Styl dokumentu',
|
97
|
+
extraKeys: 'Dodatkowe klawisze'
|
88
98
|
},
|
89
99
|
history: {
|
90
100
|
undo: 'Cofnij',
|
@@ -7,7 +7,11 @@
|
|
7
7
|
underline: 'Подчёркнутый',
|
8
8
|
clear: 'Убрать стили шрифта',
|
9
9
|
height: 'Высота линии',
|
10
|
-
name: 'Шрифт'
|
10
|
+
name: 'Шрифт',
|
11
|
+
strikethrough: 'Зачёркнутый',
|
12
|
+
subscript: 'Нижний индекс',
|
13
|
+
superscript: 'Верхний индекс',
|
14
|
+
size: 'Размер шрифта'
|
11
15
|
},
|
12
16
|
image: {
|
13
17
|
image: 'Картинка',
|
@@ -7,7 +7,11 @@
|
|
7
7
|
underline: 'Podčrtano',
|
8
8
|
clear: 'Počisti oblikovanje izbire',
|
9
9
|
height: 'Razmik med vrsticami',
|
10
|
-
name: 'Pisava'
|
10
|
+
name: 'Pisava',
|
11
|
+
strikethrough: 'Prečrtano',
|
12
|
+
subscript: 'Podpisano',
|
13
|
+
superscript: 'Nadpisano',
|
14
|
+
size: 'Velikost pisave'
|
11
15
|
},
|
12
16
|
image: {
|
13
17
|
image: 'Slika',
|