summernote-rails 0.4.0 → 0.5.10.0
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 +83 -40
- data/lib/summernote/rails/version.rb +1 -1
- data/vendor/assets/javascripts/lang/summernote-ar-AR.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-ca-ES.js +102 -0
- data/vendor/assets/javascripts/lang/summernote-cs-CZ.js +103 -0
- data/vendor/assets/javascripts/lang/summernote-da-DK.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-de-DE.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-es-ES.js +105 -0
- data/vendor/assets/javascripts/lang/summernote-es-EU.js +103 -0
- data/vendor/assets/javascripts/lang/summernote-fa-IR.js +105 -0
- data/vendor/assets/javascripts/lang/summernote-fi-FI.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-fr-FR.js +107 -0
- data/vendor/assets/javascripts/lang/summernote-hu-HU.js +105 -0
- data/vendor/assets/javascripts/lang/summernote-id-ID.js +103 -0
- data/vendor/assets/javascripts/lang/summernote-it-IT.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-ja-JP.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-ko-KR.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-nb-NO.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-nl-NL.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-pl-PL.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-pt-BR.js +102 -0
- data/vendor/assets/javascripts/lang/summernote-ro-RO.js +102 -0
- data/vendor/assets/javascripts/lang/summernote-ru-RU.js +107 -0
- data/vendor/assets/javascripts/lang/summernote-sk-SK.js +102 -0
- data/vendor/assets/javascripts/lang/summernote-sl-SI.js +106 -0
- data/vendor/assets/javascripts/lang/summernote-sr-RS-Latin.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-sr-RS.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-sv-SE.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-th-TH.js +106 -0
- data/vendor/assets/javascripts/lang/summernote-tr-TR.js +102 -0
- data/vendor/assets/javascripts/lang/summernote-uk-UA.js +106 -0
- data/vendor/assets/javascripts/lang/summernote-vi-VN.js +104 -0
- data/vendor/assets/javascripts/lang/summernote-zh-CN.js +103 -0
- data/vendor/assets/javascripts/lang/summernote-zh-TW.js +102 -0
- data/vendor/assets/javascripts/summernote.js +5009 -1678
- data/vendor/assets/javascripts/summernote.min.js +2 -2
- data/vendor/assets/stylesheets/summernote-bs2.css +4 -4
- data/vendor/assets/stylesheets/summernote-bs3.css +97 -10
- data/vendor/assets/stylesheets/summernote.css +1 -1
- metadata +46 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbbd142ab80411657e9dc6ed4dc81b7377069561
|
4
|
+
data.tar.gz: a740442613a209243f6b0689d55c89e13bfa0144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03620aae39a8fc2454245a15d5bd9560a05ef1e96f1675774c97aa151b41a24a9f5e4b27c38d4b6c3c09d2809f1de434f3081ea78a5663215eee7f22825c8627
|
7
|
+
data.tar.gz: f9e8389feee1d01678fe30d5ea3055f90c05daad97671c175df17efe9392f1dfd8315aac9940627153ce652c4fda2ddcde5c2484134b56ab30086ecef13ef6a7
|
data/README.md
CHANGED
@@ -14,55 +14,59 @@ 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
|
-
# for Rails 4.0
|
18
|
-
gem 'simple_form'
|
19
|
-
# for Rails 3.x
|
20
17
|
gem 'simple_form'
|
21
18
|
|
22
19
|
# You'll need to include the following dependencies of Summernote
|
23
20
|
gem 'bootstrap-sass'
|
24
|
-
gem
|
21
|
+
gem "font-awesome-rails"
|
25
22
|
|
26
23
|
# This is the right gem to use summernote editor in Rails projects.
|
27
24
|
gem 'summernote-rails'
|
28
25
|
|
26
|
+
# To solve the problems on the turbolinks
|
27
|
+
gem 'jquery-turbolinks'
|
28
|
+
|
29
29
|
And then execute:
|
30
30
|
|
31
|
-
$ bundle
|
31
|
+
$ bundle install
|
32
32
|
|
33
33
|
## Usage
|
34
34
|
|
35
35
|
First of all, the summernote editor works on Bootstrap and so it is assumed that you have already set it up.
|
36
36
|
|
37
|
-
> Note that when using font-awesome-rails with bootstrap-sass, both FontAwesome & Glyphicon icons show up, overlapping. So if you have bootstrap_and_override.css.scss file, please add the following two code lines related with the Bootstrap's glyphicon:
|
38
37
|
|
39
|
-
In app/assets/stylesheets/
|
38
|
+
In app/assets/stylesheets/application.css.scss,
|
40
39
|
|
41
40
|
```
|
41
|
+
// You can insert the following two code lines if you are using Bootstrap 2
|
42
42
|
$iconSpritePath: '';
|
43
43
|
$iconWhiteSpritePath: '';
|
44
44
|
|
45
45
|
@import 'bootstrap';
|
46
|
+
@import "font-awesome";
|
47
|
+
@import "summernote";
|
46
48
|
body {padding-top:3em;}
|
47
|
-
|
49
|
+
|
50
|
+
// You can delete the follow code line if you are using Bootstrap 3
|
51
|
+
@import "bootstrap";
|
52
|
+
@import "font-awesome";
|
53
|
+
@import "summernote";
|
48
54
|
```
|
49
55
|
|
50
56
|
In app/assets/javascripts/application.js, you should add the following:
|
51
57
|
|
52
58
|
```
|
59
|
+
//= require jquery
|
60
|
+
//= require jquery.turbolinks
|
61
|
+
//= require jquery_ujs
|
62
|
+
//= require bootstrap
|
53
63
|
//= require summernote.min
|
54
|
-
|
55
|
-
//=
|
56
|
-
|
57
|
-
|
58
|
-
And also, in app/assets/stylesheets/application.css, you should add the following:
|
59
|
-
|
60
|
-
```
|
61
|
-
*= require font-awesome
|
62
|
-
*= require summernote
|
64
|
+
//= require lang/summernote-ko-KR
|
65
|
+
//= require_tree .
|
66
|
+
//= require turbolinks
|
63
67
|
```
|
64
68
|
|
65
|
-
For example, if you made a `Post` model using `scaffold generator` of Rails, you would see the `post` form view template in app/views/posts/_form.html.erb.
|
69
|
+
For example, if you made a `Post` model using `scaffold generator` of Rails, you would see the `post` form view template in app/views/posts/_form.html.erb.
|
66
70
|
|
67
71
|
In that template file, you should add `summernote` class to the textarea input as the following:
|
68
72
|
|
@@ -70,13 +74,15 @@ In that template file, you should add `summernote` class to the textarea input a
|
|
70
74
|
<%= simple_form_for(@post) do |f| %>
|
71
75
|
<%= f.error_notification %>
|
72
76
|
|
73
|
-
<div class="form-
|
74
|
-
<%= f.input :title %>
|
77
|
+
<div class="form-group">
|
78
|
+
<%= f.input :title, input_html:{class:'form-control'} %>
|
79
|
+
</div>
|
80
|
+
<div class="form-group">
|
75
81
|
<%= f.input :content, class:'summernote' %>
|
76
82
|
</div>
|
77
83
|
|
78
|
-
<div class="form-
|
79
|
-
<%= f.button :submit %>
|
84
|
+
<div class="form-group">
|
85
|
+
<%= f.button :submit, class:'btn btn-default' %>
|
80
86
|
</div>
|
81
87
|
<% end %>
|
82
88
|
```
|
@@ -93,16 +99,17 @@ $ ->
|
|
93
99
|
# to call summernote editor
|
94
100
|
summer_note.summernote
|
95
101
|
# to set options
|
96
|
-
height:300
|
102
|
+
height:300
|
103
|
+
lang: 'ko-KR'
|
97
104
|
# toolbar: [
|
98
105
|
# ['insert', ['picture', 'link']], // no insert buttons
|
99
|
-
# ["table", ["table"]],
|
100
|
-
# ["style", ["style"]],
|
101
|
-
# ["fontsize", ["fontsize"]],
|
102
|
-
# ["color", ["color"]],
|
103
|
-
# ["style", ["bold", "italic", "underline", "clear"]],
|
104
|
-
# ["para", ["ul", "ol", "paragraph"]],
|
105
|
-
# ["height", ["height"]],
|
106
|
+
# ["table", ["table"]],
|
107
|
+
# ["style", ["style"]],
|
108
|
+
# ["fontsize", ["fontsize"]],
|
109
|
+
# ["color", ["color"]],
|
110
|
+
# ["style", ["bold", "italic", "underline", "clear"]],
|
111
|
+
# ["para", ["ul", "ol", "paragraph"]],
|
112
|
+
# ["height", ["height"]],
|
106
113
|
# ["help", ["help"]]
|
107
114
|
#]
|
108
115
|
|
@@ -111,21 +118,57 @@ $ ->
|
|
111
118
|
|
112
119
|
# to get code for summernote
|
113
120
|
summer_note.closest('form').submit ->
|
114
|
-
# alert $('#post_content').code()
|
115
|
-
summer_note.val summer_note.code()
|
121
|
+
# alert $('#post_content').code()
|
122
|
+
summer_note.val summer_note.code()
|
116
123
|
true
|
117
124
|
```
|
118
125
|
|
119
|
-
That's it.
|
126
|
+
That's it.
|
120
127
|
|
121
128
|
|
122
|
-
## Sample projects
|
129
|
+
## Sample projects
|
123
130
|
|
124
|
-
- Rails 3.2.
|
125
|
-
- Rails 4.0 : http://github.com/rorlab/summernote-test
|
131
|
+
- Rails 3.2.16 : http://github.com/rorlab/summernote-test-r3
|
132
|
+
- Rails 4.0.2 : http://github.com/rorlab/summernote-test
|
126
133
|
|
127
134
|
## Changelogs
|
128
135
|
|
136
|
+
- v0.5.10.0
|
137
|
+
* Updated with `v0.5.10 Summernote, 2014-10-3`
|
138
|
+
|
139
|
+
- v0.5.9 2014-09-21
|
140
|
+
* Dom Editing: insert(Un)OrderedList, indent/outdent
|
141
|
+
* History in a line.
|
142
|
+
|
143
|
+
- v0.5.8 2014-08-31
|
144
|
+
* Remove autoFormatRange option
|
145
|
+
* Fixed onChange issues
|
146
|
+
|
147
|
+
- v0.5.7 ~ v0.5.4 2014-08-29 ~ 2014-08-23
|
148
|
+
* Dom editing: insertPara, insertNode
|
149
|
+
|
150
|
+
- v0.5.3 2014-07-25
|
151
|
+
* Extract codemirror.autoFormatOnStart option
|
152
|
+
* Bug patch (createLink)
|
153
|
+
|
154
|
+
- v0.5.2 2014-07-20
|
155
|
+
* Air Mode
|
156
|
+
* And bug patch (scroll, createLink, ...)
|
157
|
+
|
158
|
+
- v0.5.1 2014-03-16
|
159
|
+
* Support 15 Languages(https://github.com/HackerWins/summernote/tree/master/lang)
|
160
|
+
* Add local-server for develop summernote.
|
161
|
+
* Font style: Font-Family
|
162
|
+
* And Bug patch.
|
163
|
+
|
164
|
+
- v0.5.0 : Support i18n
|
165
|
+
* Updated with `v0.5 Summernote, 2013-12-29` as the followings:
|
166
|
+
* Support both Font-Awesome 3.x and 4.x
|
167
|
+
* CodeMirror as Codeview
|
168
|
+
* Insert Video (by cdownie)
|
169
|
+
* Support 5 Languages(by hendrismit, tschiela, inomies, cverond)
|
170
|
+
* Restructuring: jQuery build pattern
|
171
|
+
|
129
172
|
- v0.4.0 : Support both Bootstrap 3.0 and 2.x
|
130
173
|
* Updated with `v0.4 Summernote, 2013-11-01` as the followings:
|
131
174
|
* View mode
|
@@ -133,16 +176,16 @@ That's it.
|
|
133
176
|
* Code view
|
134
177
|
* Image upload callback
|
135
178
|
- v0.3.0 : Added the resizing bar at the bottom of editor.
|
136
|
-
* Updated with `v0.3 Summernote, 2013-09-01` as the followings:
|
179
|
+
* Updated with `v0.3 Summernote, 2013-09-01` as the followings:
|
137
180
|
* `FIXED` bugs(image upload, fontsize, tab, recent color, ...)
|
138
181
|
* `ADDED` help dialog(keyboard shortcut)
|
139
182
|
* `ADDED` init options(event callbacks, custom toolbar)
|
140
183
|
* `ADDED` resize bar
|
141
184
|
* `ADDED` support IE8 Beta(some range bugs, can't insert Image)
|
142
|
-
- v0.2.1.4 : Enable to customize Toolbar Collection
|
185
|
+
- v0.2.1.4 : Enable to customize Toolbar Collection
|
143
186
|
- v0.2.1.3 : Added Help button in editor toolbox to popup Hot Key Table
|
144
|
-
- v0.2.1.2 : Added InsertHorizontalRule(Cmd+Enter) in summernote editor /
|
145
|
-
Added summernote.js
|
187
|
+
- v0.2.1.2 : Added InsertHorizontalRule(Cmd+Enter) in summernote editor /
|
188
|
+
Added summernote.js
|
146
189
|
- v0.2.1.1 : Available for Rails >= 3.1
|
147
190
|
- v0.2.1 : Bugfixed file uploading
|
148
191
|
- v0.2.0 : Available for Rails v4.0
|
@@ -0,0 +1,104 @@
|
|
1
|
+
(function ($) {
|
2
|
+
$.extend($.summernote.lang, {
|
3
|
+
'ar-AR': {
|
4
|
+
font: {
|
5
|
+
bold: 'عريض',
|
6
|
+
italic: 'مائل',
|
7
|
+
underline: 'تحته خط',
|
8
|
+
strikethrough: 'فى وسطه خط',
|
9
|
+
clear: 'مسح التنسيق',
|
10
|
+
height: 'إرتفاع السطر',
|
11
|
+
name: 'الخط',
|
12
|
+
size: 'الحجم'
|
13
|
+
},
|
14
|
+
image: {
|
15
|
+
image: 'صورة',
|
16
|
+
insert: 'إضافة صورة',
|
17
|
+
resizeFull: 'الحجم بالكامل',
|
18
|
+
resizeHalf: 'تصغير للنصف',
|
19
|
+
resizeQuarter: 'تصغير للربع',
|
20
|
+
floatLeft: 'تطيير لليسار',
|
21
|
+
floatRight: 'تطيير لليمين',
|
22
|
+
floatNone: 'ثابته',
|
23
|
+
dragImageHere: 'إدرج الصورة هنا',
|
24
|
+
selectFromFiles: 'حدد ملف',
|
25
|
+
url: 'رابط الصورة',
|
26
|
+
remove: 'حذف الصورة'
|
27
|
+
},
|
28
|
+
link: {
|
29
|
+
link: 'رابط رابط',
|
30
|
+
insert: 'إدراج',
|
31
|
+
unlink: 'حذف الرابط',
|
32
|
+
edit: 'تعديل',
|
33
|
+
textToDisplay: 'النص',
|
34
|
+
url: 'مسار الرابط',
|
35
|
+
openInNewWindow: 'فتح في نافذة جديدة'
|
36
|
+
},
|
37
|
+
video: {
|
38
|
+
video: 'فيديو',
|
39
|
+
videoLink: 'رابط الفيديو',
|
40
|
+
insert: 'إدراج الفيديو',
|
41
|
+
url: 'رابط الفيديو',
|
42
|
+
providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion ou Youku)'
|
43
|
+
},
|
44
|
+
table: {
|
45
|
+
table: 'جدول'
|
46
|
+
},
|
47
|
+
hr: {
|
48
|
+
insert: 'إدراج خط أفقي'
|
49
|
+
},
|
50
|
+
style: {
|
51
|
+
style: 'تنسيق',
|
52
|
+
normal: 'عادي',
|
53
|
+
blockquote: 'إقتباس',
|
54
|
+
pre: 'شفيرة',
|
55
|
+
h1: 'عنوان رئيسي 1',
|
56
|
+
h2: 'عنوان رئيسي 2',
|
57
|
+
h3: 'عنوان رئيسي 3',
|
58
|
+
h4: 'عنوان رئيسي 4',
|
59
|
+
h5: 'عنوان رئيسي 5',
|
60
|
+
h6: 'عنوان رئيسي 6'
|
61
|
+
},
|
62
|
+
lists: {
|
63
|
+
unordered: 'قائمة مُنقطة',
|
64
|
+
ordered: 'قائمة مُرقمة'
|
65
|
+
},
|
66
|
+
options: {
|
67
|
+
help: 'مساعدة',
|
68
|
+
fullscreen: 'حجم الشاشة بالكامل',
|
69
|
+
codeview: 'شفيرة المصدر'
|
70
|
+
},
|
71
|
+
paragraph: {
|
72
|
+
paragraph: 'فقرة',
|
73
|
+
outdent: 'محاذاة للخارج',
|
74
|
+
indent: 'محاذاة للداخل',
|
75
|
+
left: 'محاذاة لليسار',
|
76
|
+
center: 'توسيط',
|
77
|
+
right: 'محاذاة لليمين',
|
78
|
+
justify: 'ملئ السطر'
|
79
|
+
},
|
80
|
+
color: {
|
81
|
+
recent: 'تم إستخدامه',
|
82
|
+
more: 'المزيد',
|
83
|
+
background: 'لون الخلفية',
|
84
|
+
foreground: 'لون النص',
|
85
|
+
transparent: 'شفاف',
|
86
|
+
setTransparent: 'بدون خلفية',
|
87
|
+
reset: 'إعادة الضبط',
|
88
|
+
resetToDefault: 'إعادة الضبط'
|
89
|
+
},
|
90
|
+
shortcut: {
|
91
|
+
shortcuts: 'إختصارات',
|
92
|
+
close: 'غلق',
|
93
|
+
textFormatting: 'تنسيق النص',
|
94
|
+
action: 'Action',
|
95
|
+
paragraphFormatting: 'تنسيق الفقرة',
|
96
|
+
documentStyle: 'تنسيق المستند'
|
97
|
+
},
|
98
|
+
history: {
|
99
|
+
undo: 'Undo',
|
100
|
+
redo: 'Redo'
|
101
|
+
}
|
102
|
+
}
|
103
|
+
});
|
104
|
+
})(jQuery);
|
@@ -0,0 +1,102 @@
|
|
1
|
+
(function ($) {
|
2
|
+
$.extend($.summernote.lang, {
|
3
|
+
'ca-ES': {
|
4
|
+
font: {
|
5
|
+
bold: 'Negreta',
|
6
|
+
italic: 'Cursiva',
|
7
|
+
underline: 'Subratllat',
|
8
|
+
strikethrough: 'Ratllat',
|
9
|
+
clear: 'Treure estil de lletra',
|
10
|
+
height: 'Alçada de línia',
|
11
|
+
size: 'Mida de lletra'
|
12
|
+
},
|
13
|
+
image: {
|
14
|
+
image: 'Imatge',
|
15
|
+
insert: 'Inserir imatge',
|
16
|
+
resizeFull: 'Redimensionar a mida completa',
|
17
|
+
resizeHalf: 'Redimensionar a la meitat',
|
18
|
+
resizeQuarter: 'Redimensionar a un quart',
|
19
|
+
floatLeft: 'Surar a l%27esquerra',
|
20
|
+
floatRight: 'Surar a la dreta',
|
21
|
+
floatNone: 'No surar',
|
22
|
+
dragImageHere: 'Arrossegueu una imatge aquí',
|
23
|
+
selectFromFiles: 'Seleccioneu des dels arxius',
|
24
|
+
url: 'URL de la imatge'
|
25
|
+
},
|
26
|
+
link: {
|
27
|
+
link: 'Enllaç',
|
28
|
+
insert: 'Inserir enllaç',
|
29
|
+
unlink: 'Treure enllaç',
|
30
|
+
edit: 'Editar',
|
31
|
+
textToDisplay: 'Text per mostrar',
|
32
|
+
url: 'Cap a quina URL porta l\'enllaç?',
|
33
|
+
openInNewWindow: 'Obrir en una finestra nova'
|
34
|
+
},
|
35
|
+
video: {
|
36
|
+
video: 'Video',
|
37
|
+
videoLink: 'Enllaç del video',
|
38
|
+
insert: 'Inserir video',
|
39
|
+
url: 'URL del video?',
|
40
|
+
providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion, o Youku)'
|
41
|
+
},
|
42
|
+
table: {
|
43
|
+
table: 'Taula'
|
44
|
+
},
|
45
|
+
hr: {
|
46
|
+
insert: 'Inserir línia horitzontal'
|
47
|
+
},
|
48
|
+
style: {
|
49
|
+
style: 'Estil',
|
50
|
+
normal: 'Normal',
|
51
|
+
blockquote: 'Cita',
|
52
|
+
pre: 'Codi',
|
53
|
+
h1: 'Títol 1',
|
54
|
+
h2: 'Títol 2',
|
55
|
+
h3: 'Títol 3',
|
56
|
+
h4: 'Títol 4',
|
57
|
+
h5: 'Títol 5',
|
58
|
+
h6: 'Títol 6'
|
59
|
+
},
|
60
|
+
lists: {
|
61
|
+
unordered: 'Llista desendreçada',
|
62
|
+
ordered: 'Llista endreçada'
|
63
|
+
},
|
64
|
+
options: {
|
65
|
+
help: 'Ajut',
|
66
|
+
fullscreen: 'Pantalla sencera',
|
67
|
+
codeview: 'Veure codi font'
|
68
|
+
},
|
69
|
+
paragraph: {
|
70
|
+
paragraph: 'Paràgraf',
|
71
|
+
outdent: 'Menys tabulació',
|
72
|
+
indent: 'Més tabulació',
|
73
|
+
left: 'Alinear a l\'esquerra',
|
74
|
+
center: 'Alinear al mig',
|
75
|
+
right: 'Alinear a la dreta',
|
76
|
+
justify: 'Justificar'
|
77
|
+
},
|
78
|
+
color: {
|
79
|
+
recent: 'Últim color',
|
80
|
+
more: 'Més colors',
|
81
|
+
background: 'Color de fons',
|
82
|
+
foreground: 'Color de lletra',
|
83
|
+
transparent: 'Transparent',
|
84
|
+
setTransparent: 'Establir transparent',
|
85
|
+
reset: 'Restablir',
|
86
|
+
resetToDefault: 'Restablir per defecte'
|
87
|
+
},
|
88
|
+
shortcut: {
|
89
|
+
shortcuts: 'Dreceres de teclat',
|
90
|
+
close: 'Tancar',
|
91
|
+
textFormatting: 'Format de text',
|
92
|
+
action: 'Acció',
|
93
|
+
paragraphFormatting: 'Format de paràgraf',
|
94
|
+
documentStyle: 'Estil del document'
|
95
|
+
},
|
96
|
+
history: {
|
97
|
+
undo: 'Desfer',
|
98
|
+
redo: 'Refer'
|
99
|
+
}
|
100
|
+
}
|
101
|
+
});
|
102
|
+
})(jQuery);
|
@@ -0,0 +1,103 @@
|
|
1
|
+
(function ($) {
|
2
|
+
$.extend($.summernote.lang, {
|
3
|
+
'cs-CZ': {
|
4
|
+
font: {
|
5
|
+
bold: 'Tučné',
|
6
|
+
italic: 'Kurzíva',
|
7
|
+
underline: 'Podtržené',
|
8
|
+
strikethrough: 'Přeškrtnuté',
|
9
|
+
clear: 'Odstranit styl písma',
|
10
|
+
height: 'Výška řádku',
|
11
|
+
size: 'Velikost písma'
|
12
|
+
},
|
13
|
+
image: {
|
14
|
+
image: 'Obrázek',
|
15
|
+
insert: 'Vložit obrázek',
|
16
|
+
resizeFull: 'Původní velikost',
|
17
|
+
resizeHalf: 'Poloviční velikost',
|
18
|
+
resizeQuarter: 'Čtvrteční velikost',
|
19
|
+
floatLeft: 'Umístit doleva',
|
20
|
+
floatRight: 'Umístit doprava',
|
21
|
+
floatNone: 'Neobtékat textem',
|
22
|
+
dragImageHere: 'Přetáhnout sem obrázek',
|
23
|
+
selectFromFiles: 'Vybrat soubor',
|
24
|
+
url: 'URL obrázku'
|
25
|
+
},
|
26
|
+
link: {
|
27
|
+
link: 'Odkaz',
|
28
|
+
insert: 'Vytvořit odkaz',
|
29
|
+
unlink: 'Zrušit odkaz',
|
30
|
+
edit: 'Upravit',
|
31
|
+
textToDisplay: 'Zobrazovaný text',
|
32
|
+
url: 'Na jaké URL má tento odkaz vést?',
|
33
|
+
openInNewWindow: 'Otevřít v novém okně'
|
34
|
+
},
|
35
|
+
video: {
|
36
|
+
video: 'Video',
|
37
|
+
videoLink: 'Odkaz videa',
|
38
|
+
insert: 'Vložit video',
|
39
|
+
url: 'URL videa?',
|
40
|
+
providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion nebo Youku)'
|
41
|
+
},
|
42
|
+
table: {
|
43
|
+
table: 'Tabulka'
|
44
|
+
},
|
45
|
+
hr: {
|
46
|
+
insert: 'Vložit vodorovnou čáru'
|
47
|
+
},
|
48
|
+
style: {
|
49
|
+
style: 'Styl',
|
50
|
+
normal: 'Normální',
|
51
|
+
blockquote: 'Citace',
|
52
|
+
pre: 'Kód',
|
53
|
+
h1: 'Nadpis 1',
|
54
|
+
h2: 'Nadpis 2',
|
55
|
+
h3: 'Nadpis 3',
|
56
|
+
h4: 'Nadpis 4',
|
57
|
+
h5: 'Nadpis 5',
|
58
|
+
h6: 'Nadpis 6'
|
59
|
+
},
|
60
|
+
lists: {
|
61
|
+
unordered: 'Odrážkový seznam',
|
62
|
+
ordered: 'Číselný seznam'
|
63
|
+
},
|
64
|
+
options: {
|
65
|
+
help: 'Nápověda',
|
66
|
+
fullscreen: 'Celá obrazovka',
|
67
|
+
codeview: 'HTML kód'
|
68
|
+
},
|
69
|
+
paragraph: {
|
70
|
+
paragraph: 'Odstavec',
|
71
|
+
outdent: 'Zvětšit odsazení',
|
72
|
+
indent: 'Zmenšit odsazení',
|
73
|
+
left: 'Zarovnat doleva',
|
74
|
+
center: 'Zarovnat na střed',
|
75
|
+
right: 'Zarovnat doprava',
|
76
|
+
justify: 'Zarovnat oboustranně'
|
77
|
+
},
|
78
|
+
color: {
|
79
|
+
recent: 'Aktuální barva',
|
80
|
+
more: 'Další barvy',
|
81
|
+
background: 'Barva pozadí',
|
82
|
+
foreground: 'Barva písma',
|
83
|
+
transparent: 'Průhlednost',
|
84
|
+
setTransparent: 'Nastavit průhlednost',
|
85
|
+
reset: 'Obnovit',
|
86
|
+
resetToDefault: 'Obnovit výchozí'
|
87
|
+
},
|
88
|
+
shortcut: {
|
89
|
+
shortcuts: 'Klávesové zkratky',
|
90
|
+
close: 'Zavřít',
|
91
|
+
textFormatting: 'Formátování textu',
|
92
|
+
action: 'Akce',
|
93
|
+
paragraphFormatting: 'Formátování odstavce',
|
94
|
+
documentStyle: 'Styl dokumentu'
|
95
|
+
},
|
96
|
+
history: {
|
97
|
+
undo: 'Krok vzad',
|
98
|
+
redo: 'Krok vpřed'
|
99
|
+
}
|
100
|
+
|
101
|
+
}
|
102
|
+
});
|
103
|
+
})(jQuery);
|