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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -0
  3. data/lib/summernote-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/summernote/locales/ar-AR.js +3 -1
  5. data/vendor/assets/javascripts/summernote/locales/ca-ES.js +3 -1
  6. data/vendor/assets/javascripts/summernote/locales/cs-CZ.js +3 -1
  7. data/vendor/assets/javascripts/summernote/locales/da-DK.js +5 -1
  8. data/vendor/assets/javascripts/summernote/locales/de-DE.js +3 -1
  9. data/vendor/assets/javascripts/summernote/locales/es-ES.js +5 -1
  10. data/vendor/assets/javascripts/summernote/locales/es-EU.js +3 -1
  11. data/vendor/assets/javascripts/summernote/locales/fa-IR.js +3 -1
  12. data/vendor/assets/javascripts/summernote/locales/fi-FI.js +3 -1
  13. data/vendor/assets/javascripts/summernote/locales/fr-FR.js +5 -1
  14. data/vendor/assets/javascripts/summernote/locales/he-IL.js +5 -1
  15. data/vendor/assets/javascripts/summernote/locales/hu-HU.js +3 -1
  16. data/vendor/assets/javascripts/summernote/locales/id-ID.js +3 -1
  17. data/vendor/assets/javascripts/summernote/locales/it-IT.js +3 -1
  18. data/vendor/assets/javascripts/summernote/locales/ja-JP.js +3 -1
  19. data/vendor/assets/javascripts/summernote/locales/ko-KR.js +6 -1
  20. data/vendor/assets/javascripts/summernote/locales/nb-NO.js +3 -1
  21. data/vendor/assets/javascripts/summernote/locales/nl-NL.js +3 -1
  22. data/vendor/assets/javascripts/summernote/locales/pl-PL.js +17 -7
  23. data/vendor/assets/javascripts/summernote/locales/pt-BR.js +3 -1
  24. data/vendor/assets/javascripts/summernote/locales/ro-RO.js +3 -1
  25. data/vendor/assets/javascripts/summernote/locales/ru-RU.js +5 -1
  26. data/vendor/assets/javascripts/summernote/locales/sk-SK.js +3 -1
  27. data/vendor/assets/javascripts/summernote/locales/sl-SI.js +5 -1
  28. data/vendor/assets/javascripts/summernote/locales/sr-RS-Latin.js +3 -1
  29. data/vendor/assets/javascripts/summernote/locales/sr-RS.js +3 -1
  30. data/vendor/assets/javascripts/summernote/locales/sv-SE.js +3 -1
  31. data/vendor/assets/javascripts/summernote/locales/th-TH.js +5 -1
  32. data/vendor/assets/javascripts/summernote/locales/tr-TR.js +5 -1
  33. data/vendor/assets/javascripts/summernote/locales/uk-UA.js +5 -1
  34. data/vendor/assets/javascripts/summernote/locales/vi-VN.js +3 -1
  35. data/vendor/assets/javascripts/summernote/locales/zh-CN.js +3 -1
  36. data/vendor/assets/javascripts/summernote/locales/zh-TW.js +3 -1
  37. data/vendor/assets/javascripts/summernote/plugin/summernote-ext-hello.js +89 -0
  38. data/vendor/assets/javascripts/summernote/plugin/summernote-ext-video.js +573 -0
  39. data/vendor/assets/javascripts/summernote/summernote.js +1648 -1099
  40. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 738b12c30c77848392d2ca4ab4087024fdbb7150
4
- data.tar.gz: e87633ff25feec7bd1845621788ddcf3285acd37
3
+ metadata.gz: be0643d568fdb6a2066aab7bf5c9391585526a22
4
+ data.tar.gz: 50cf01fb4366b9efb9c7aa2976f9a198ae921c91
5
5
  SHA512:
6
- metadata.gz: 62a93be72db4549dbe625975a1c08b437aec153ff5588310fb61bddcf9db4116d4b6e71f47713c48e11a009c7a47d268a775dc17da11ce3ed33735285348e956
7
- data.tar.gz: d7388fe4f18d3943e20494ad58acf66605fc0970c6374ca88390bb076cbf9575107c641aebf328704e5cd4cb2801d8d35b28a8378db255bc0a7fbe795c3a2d19
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.
@@ -1,5 +1,5 @@
1
1
  module SummernoteRails
2
2
  module Rails
3
- VERSION = "0.6.2.1"
3
+ VERSION = "0.6.5.0"
4
4
  end
5
5
  end
@@ -7,7 +7,9 @@
7
7
  underline: 'تحته خط',
8
8
  clear: 'مسح التنسيق',
9
9
  height: 'إرتفاع السطر',
10
- name: 'الخط'
10
+ name: 'الخط',
11
+ strikethrough: 'فى وسطه خط',
12
+ size: 'الحجم'
11
13
  },
12
14
  image: {
13
15
  image: 'صورة',
@@ -6,7 +6,9 @@
6
6
  italic: 'Cursiva',
7
7
  underline: 'Subratllat',
8
8
  clear: 'Treure estil de lletra',
9
- height: 'Alçada de línia'
9
+ height: 'Alçada de línia',
10
+ strikethrough: 'Ratllat',
11
+ size: 'Mida de lletra'
10
12
  },
11
13
  image: {
12
14
  image: 'Imatge',
@@ -6,7 +6,9 @@
6
6
  italic: 'Kurzíva',
7
7
  underline: 'Podtržené',
8
8
  clear: 'Odstranit styl písma',
9
- height: 'Výška řádku'
9
+ height: 'Výška řádku',
10
+ strikethrough: 'Přeškrtnuté',
11
+ size: 'Velikost písma'
10
12
  },
11
13
  image: {
12
14
  image: 'Obrázek',
@@ -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',
@@ -6,7 +6,9 @@
6
6
  italic: 'Kursiv',
7
7
  underline: 'Unterstreichen',
8
8
  clear: 'Zurücksetzen',
9
- height: 'Zeilenhöhe'
9
+ height: 'Zeilenhöhe',
10
+ strikethrough: 'Durchgestrichen',
11
+ size: 'Schriftgröße'
10
12
  },
11
13
  image: {
12
14
  image: 'Grafik',
@@ -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,9 @@
7
7
  underline: 'Azpimarratua',
8
8
  clear: 'Estiloa kendu',
9
9
  height: 'Lerro altuera',
10
- name: 'Tipografia'
10
+ name: 'Tipografia',
11
+ strikethrough: 'Marratua',
12
+ size: 'Letren neurria'
11
13
  },
12
14
  image: {
13
15
  image: 'Irudia',
@@ -7,7 +7,9 @@
7
7
  underline: 'میان خط',
8
8
  clear: 'پاک کردن فرمت فونت',
9
9
  height: 'فاصله ی خطی',
10
- name: 'اسم فونت'
10
+ name: 'اسم فونت',
11
+ strikethrough: 'Strike',
12
+ size: 'اندازه ی فونت'
11
13
  },
12
14
  image: {
13
15
  image: 'تصویر',
@@ -7,7 +7,9 @@
7
7
  underline: 'Alleviivaa',
8
8
  clear: 'Tyhjennä muotoilu',
9
9
  height: 'Riviväli',
10
- name: 'Kirjasintyyppi'
10
+ name: 'Kirjasintyyppi',
11
+ strikethrough: 'Yliviivaus',
12
+ size: 'Kirjasinkoko'
11
13
  },
12
14
  image: {
13
15
  image: 'Kuva',
@@ -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,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,9 @@
7
7
  underline: 'Aláhúzott',
8
8
  clear: 'Formázás törlése',
9
9
  height: 'Sorköz',
10
- name: 'Betűtípus'
10
+ name: 'Betűtípus',
11
+ strikethrough: 'Áthúzott',
12
+ size: 'Betűméret'
11
13
  },
12
14
  image: {
13
15
  image: 'Kép',
@@ -6,7 +6,9 @@
6
6
  italic: 'Miring',
7
7
  underline: 'Garis bawah',
8
8
  clear: 'Bersihkan gaya',
9
- height: 'Jarak baris'
9
+ height: 'Jarak baris',
10
+ strikethrough: 'Coret',
11
+ size: 'Ukuran font'
10
12
  },
11
13
  image: {
12
14
  image: 'Gambar',
@@ -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',
@@ -7,7 +7,9 @@
7
7
  underline: '下線',
8
8
  clear: 'クリア',
9
9
  height: '文字高',
10
- name: 'フォント'
10
+ name: 'フォント',
11
+ strikethrough: '取り消し線',
12
+ size: '大きさ'
11
13
  },
12
14
  image: {
13
15
  image: '画像',
@@ -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: 'Understrek',
8
8
  clear: 'Fjern formatering',
9
9
  height: 'Linjehøyde',
10
- name: 'Skrifttype'
10
+ name: 'Skrifttype',
11
+ strikethrough: 'Gjennomstrek',
12
+ size: 'Skriftstørrelse'
11
13
  },
12
14
  image: {
13
15
  image: 'Bilde',
@@ -7,7 +7,9 @@
7
7
  underline: 'Onderstrepen',
8
8
  clear: 'Stijl verwijderen',
9
9
  height: 'Regelhoogte',
10
- name: 'Lettertype'
10
+ name: 'Lettertype',
11
+ strikethrough: 'Doorhalen',
12
+ size: 'Tekstgrootte'
11
13
  },
12
14
  image: {
13
15
  image: 'Afbeelding',
@@ -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
- dragImageHere: 'Przeciągnij grafikę tutaj',
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
- url: 'URL grafiki',
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 link?',
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: 'Zródło'
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 klawiszone',
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,9 @@
7
7
  underline: 'Sublinhado',
8
8
  clear: 'Remover estilo da fonte',
9
9
  height: 'Altura da linha',
10
- name: 'Fonte'
10
+ name: 'Fonte',
11
+ strikethrough: 'Riscado',
12
+ size: 'Tamanho da fonte'
11
13
  },
12
14
  image: {
13
15
  image: 'Imagem',
@@ -6,7 +6,9 @@
6
6
  italic: 'Înclinat',
7
7
  underline: 'Subliniat',
8
8
  clear: 'Înlătură formatare font',
9
- height: 'Înălțime rând'
9
+ height: 'Înălțime rând',
10
+ strikethrough: 'Tăiat',
11
+ size: 'Dimensiune font'
10
12
  },
11
13
  image: {
12
14
  image: 'Imagine',
@@ -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: 'Картинка',
@@ -6,7 +6,9 @@
6
6
  italic: 'Kurzíva',
7
7
  underline: 'Podtržené',
8
8
  clear: 'Odstrániť štýl písma',
9
- height: 'Výška riadku'
9
+ height: 'Výška riadku',
10
+ strikethrough: 'Preškrtnuté',
11
+ size: 'Veľkosť písma'
10
12
  },
11
13
  image: {
12
14
  image: 'Obrázok',
@@ -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',
@@ -6,7 +6,9 @@
6
6
  italic: 'Kurziv',
7
7
  underline: 'Podvučeno',
8
8
  clear: 'Ukloni stilove fonta',
9
- height: 'Visina linije'
9
+ height: 'Visina linije',
10
+ strikethrough: 'Precrtano',
11
+ size: 'Veličina fonta'
10
12
  },
11
13
  image: {
12
14
  image: 'Slika',
@@ -6,7 +6,9 @@
6
6
  italic: 'Курзив',
7
7
  underline: 'Подвучено',
8
8
  clear: 'Уклони стилове фонта',
9
- height: 'Висина линије'
9
+ height: 'Висина линије',
10
+ strikethrough: 'Прецртано',
11
+ size: 'Величина фонта'
10
12
  },
11
13
  image: {
12
14
  image: 'Слика',
@@ -7,7 +7,9 @@
7
7
  underline: 'Understruken',
8
8
  clear: 'Radera formatering',
9
9
  height: 'Radavstånd',
10
- name: 'Teckensnitt'
10
+ name: 'Teckensnitt',
11
+ strikethrough: 'Genomstruken',
12
+ size: 'Teckenstorlek'
11
13
  },
12
14
  image: {
13
15
  image: 'Bild',