summernote-rails 0.8.9.2 → 0.8.10.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 +3 -3
- data/lib/summernote-rails/version.rb +1 -1
- data/vendor/assets/fonts/summernote.eot +0 -0
- data/vendor/assets/fonts/summernote.ttf +0 -0
- data/vendor/assets/fonts/summernote.woff +0 -0
- data/vendor/assets/javascripts/summernote/lang/summernote-de-DE.js +12 -12
- data/vendor/assets/javascripts/summernote/lang/summernote-pl-PL.js +2 -2
- data/vendor/assets/javascripts/summernote/lang/summernote-uz-UZ.js +112 -0
- data/vendor/assets/javascripts/summernote/summernote-bs4.js +71 -32
- data/vendor/assets/javascripts/summernote/summernote-bs4.min.js +2 -2
- data/vendor/assets/javascripts/summernote/summernote-lite.js +67 -28
- data/vendor/assets/javascripts/summernote/summernote.js +66 -29
- data/vendor/assets/javascripts/summernote/summernote.min.js +2 -2
- data/vendor/assets/stylesheets/summernote-bs4.css +1 -1
- data/vendor/assets/stylesheets/summernote-lite.css +1 -1
- data/vendor/assets/stylesheets/summernote.css +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6688db600108b64ddba43d512fb2caf3b65393d02ed4724d52d3a4ff7f91958
|
4
|
+
data.tar.gz: b01b9d47ffeb42a2033a9ee0e2cba96a47ede4f2f35dd3004a5114909eeca890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5b71d84ff5de817aa87dc42a92efcd112939f0745889b85acc28ced76c75e8ffb123388a136d21e68be1e7df4d8e5582ca9cfd0c4473ee706e00a66b00a7dea
|
7
|
+
data.tar.gz: 2e9e71672c4b6053c1ce4f28f88b7b15ba8421adc1f1834c7f4c3902a41a72b40a85615da6c5f15c6e673af71630ea056cafbfae6f59dce27ae12d246f5bf29e
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ The version of summernote-rails is matched with that of original summernote edit
|
|
10
10
|
|
11
11
|
Environments:
|
12
12
|
- Ruby v2.5.0
|
13
|
-
- Rails v5.2.0.
|
13
|
+
- Rails v5.2.0.rc1
|
14
14
|
- Gems :
|
15
15
|
- bootstrap v4.0.0
|
16
16
|
- simple_form v3.5.0
|
@@ -18,10 +18,10 @@ Environments:
|
|
18
18
|
Add the following gems to your application's Gemfile:
|
19
19
|
|
20
20
|
```ruby
|
21
|
-
gem 'rails', '~> 5.2.0.
|
21
|
+
gem 'rails', '~> 5.2.0.rc1'
|
22
22
|
gem 'jquery-rails', '~> 4.3.1'
|
23
23
|
gem 'bootstrap', '~> 4.0.0'
|
24
|
-
gem 'summernote-rails', '~> 0.8.
|
24
|
+
gem 'summernote-rails', '~> 0.8.10.0'
|
25
25
|
gem 'simple_form', '~> 3.5.0'
|
26
26
|
```
|
27
27
|
|
Binary file
|
Binary file
|
Binary file
|
@@ -7,10 +7,10 @@
|
|
7
7
|
underline: 'Unterstreichen',
|
8
8
|
clear: 'Zurücksetzen',
|
9
9
|
height: 'Zeilenhöhe',
|
10
|
-
name: '
|
10
|
+
name: 'Schriftart',
|
11
11
|
strikethrough: 'Durchgestrichen',
|
12
|
-
subscript: '
|
13
|
-
superscript: '
|
12
|
+
subscript: 'Tiefgestellt',
|
13
|
+
superscript: 'Hochgestellt',
|
14
14
|
size: 'Schriftgröße'
|
15
15
|
},
|
16
16
|
image: {
|
@@ -53,13 +53,13 @@
|
|
53
53
|
},
|
54
54
|
table: {
|
55
55
|
table: 'Tabelle',
|
56
|
-
addRowAbove: '
|
57
|
-
addRowBelow: '
|
58
|
-
addColLeft: '
|
59
|
-
addColRight: '
|
60
|
-
delRow: '
|
61
|
-
delCol: '
|
62
|
-
delTable: '
|
56
|
+
addRowAbove: 'Zeile oberhalb einfügen',
|
57
|
+
addRowBelow: 'Zeile unterhalb einfügen',
|
58
|
+
addColLeft: 'Spalte links einfügen',
|
59
|
+
addColRight: 'Spalte rechts einfügen',
|
60
|
+
delRow: 'Zeile löschen',
|
61
|
+
delCol: 'Spalte löschen',
|
62
|
+
delTable: 'Tabelle löschen'
|
63
63
|
},
|
64
64
|
hr: {
|
65
65
|
insert: 'Eine horizontale Linie einfügen'
|
@@ -146,8 +146,8 @@
|
|
146
146
|
redo: 'Wiederholen'
|
147
147
|
},
|
148
148
|
specialChar: {
|
149
|
-
specialChar: '
|
150
|
-
select: '
|
149
|
+
specialChar: 'SONDERZEICHEN',
|
150
|
+
select: 'Sonderzeichen auswählen'
|
151
151
|
}
|
152
152
|
}
|
153
153
|
});
|
@@ -0,0 +1,112 @@
|
|
1
|
+
(function($) {
|
2
|
+
$.extend($.summernote.lang, {
|
3
|
+
'uz-UZ': {
|
4
|
+
font: {
|
5
|
+
bold: 'қалин',
|
6
|
+
italic: 'Курсив',
|
7
|
+
underline: 'Белгиланган',
|
8
|
+
clear: 'Ҳарф турларини олиб ташлаш',
|
9
|
+
height: 'Чизиқ баландлиги',
|
10
|
+
name: 'Ҳарф',
|
11
|
+
strikethrough: 'Ўчирилган',
|
12
|
+
subscript: 'Пастки индекс',
|
13
|
+
superscript: 'Юқори индекс',
|
14
|
+
size: 'ҳарф ҳажми'
|
15
|
+
},
|
16
|
+
image: {
|
17
|
+
image: 'Расм',
|
18
|
+
insert: 'расмни қўйиш',
|
19
|
+
resizeFull: 'Ҳажмни тиклаш',
|
20
|
+
resizeHalf: '50% гача кичрайтириш',
|
21
|
+
resizeQuarter: '25% гача кичрайтириш',
|
22
|
+
floatLeft: 'Чапда жойлаштириш',
|
23
|
+
floatRight: 'Ўнгда жойлаштириш',
|
24
|
+
floatNone: 'Стандарт бўйича жойлашув',
|
25
|
+
shapeRounded: 'Шакли: Юмалоқ',
|
26
|
+
shapeCircle: 'Шакли: Доира',
|
27
|
+
shapeThumbnail: 'Шакли: Миниатюра',
|
28
|
+
shapeNone: 'Шакли: Йўқ',
|
29
|
+
dragImageHere: 'Суратни кўчириб ўтинг',
|
30
|
+
dropImage: 'Суратни кўчириб ўтинг',
|
31
|
+
selectFromFiles: 'Файллардан бирини танлаш',
|
32
|
+
url: 'суратлар URL и',
|
33
|
+
remove: 'Суратни ўчириш'
|
34
|
+
},
|
35
|
+
video: {
|
36
|
+
video: 'Видео',
|
37
|
+
videoLink: 'Видеога ҳавола',
|
38
|
+
insert: 'Видео',
|
39
|
+
url: 'URL видео',
|
40
|
+
providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion или Youku)'
|
41
|
+
},
|
42
|
+
link: {
|
43
|
+
link: 'Ҳавола',
|
44
|
+
insert: 'Ҳаволани қўйиш',
|
45
|
+
unlink: 'Ҳаволани олиб ташлаш',
|
46
|
+
edit: 'Таҳрир қилиш',
|
47
|
+
textToDisplay: 'Кўринадиган матн',
|
48
|
+
url: 'URL ўтиш учун',
|
49
|
+
openInNewWindow: 'Янги дарчада очиш'
|
50
|
+
},
|
51
|
+
table: {
|
52
|
+
table: 'Жадвал'
|
53
|
+
},
|
54
|
+
hr: {
|
55
|
+
insert: 'Горизонтал чизиқни қўйиш'
|
56
|
+
},
|
57
|
+
style: {
|
58
|
+
style: 'Услуб',
|
59
|
+
p: 'Яхши',
|
60
|
+
blockquote: 'Жумла',
|
61
|
+
pre: 'Код',
|
62
|
+
h1: 'Сарлавҳа 1',
|
63
|
+
h2: 'Сарлавҳа 2',
|
64
|
+
h3: 'Сарлавҳа 3',
|
65
|
+
h4: 'Сарлавҳа 4',
|
66
|
+
h5: 'Сарлавҳа 5',
|
67
|
+
h6: 'Сарлавҳа 6'
|
68
|
+
},
|
69
|
+
lists: {
|
70
|
+
unordered: 'Белгиланган рўйҳат',
|
71
|
+
ordered: 'Рақамланган рўйҳат'
|
72
|
+
},
|
73
|
+
options: {
|
74
|
+
help: 'Ёрдам',
|
75
|
+
fullscreen: 'Бутун экран бўйича',
|
76
|
+
codeview: 'Бошланғич код'
|
77
|
+
},
|
78
|
+
paragraph: {
|
79
|
+
paragraph: 'Параграф',
|
80
|
+
outdent: 'Орқага қайтишни камайтириш',
|
81
|
+
indent: 'Орқага қайтишни кўпайтириш',
|
82
|
+
left: 'Чап қирғоққа тўғрилаш',
|
83
|
+
center: 'Марказга тўғрилаш',
|
84
|
+
right: 'Ўнг қирғоққа тўғрилаш',
|
85
|
+
justify: 'Эни бўйлаб чўзиш'
|
86
|
+
},
|
87
|
+
color: {
|
88
|
+
recent: 'Охирги ранг',
|
89
|
+
more: 'Яна ранглар',
|
90
|
+
background: 'Фон ранги',
|
91
|
+
foreground: 'Ҳарф ранги',
|
92
|
+
transparent: 'Шаффоф',
|
93
|
+
setTransparent: 'Шаффофдай қилиш',
|
94
|
+
reset: 'Бекор қилиш',
|
95
|
+
resetToDefault: 'Стандартга оид тиклаш'
|
96
|
+
},
|
97
|
+
shortcut: {
|
98
|
+
shortcuts: 'Клавишларнинг ҳамохҳанглиги',
|
99
|
+
close: 'Ёпиқ',
|
100
|
+
textFormatting: 'Матнни ',
|
101
|
+
action: 'Ҳаркат',
|
102
|
+
paragraphFormatting: 'Параграфни форматлаш',
|
103
|
+
documentStyle: 'Ҳужжатнинг тури',
|
104
|
+
extraKeys: 'Қўшимча имкониятлар'
|
105
|
+
},
|
106
|
+
history: {
|
107
|
+
undo: 'Бекор қилиш',
|
108
|
+
redo: 'Қайтариш'
|
109
|
+
}
|
110
|
+
}
|
111
|
+
});
|
112
|
+
})(jQuery);
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* Super simple wysiwyg editor v0.8.
|
2
|
+
* Super simple wysiwyg editor v0.8.10
|
3
3
|
* https://summernote.org
|
4
4
|
*
|
5
5
|
* Copyright 2013- Alan Hong. and other contributors
|
6
6
|
* summernote may be freely distributed under the MIT license.
|
7
7
|
*
|
8
|
-
* Date:
|
8
|
+
* Date: 2018-02-20T00:34Z
|
9
9
|
*/
|
10
10
|
(function (global, factory) {
|
11
11
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
@@ -71,13 +71,15 @@ var renderer = {
|
|
71
71
|
};
|
72
72
|
|
73
73
|
var editor = renderer.create('<div class="note-editor note-frame card"/>');
|
74
|
-
var toolbar = renderer.create('<div class="note-toolbar-wrapper"><div class="note-toolbar card-header"></div></div>');
|
74
|
+
var toolbar = renderer.create('<div class="note-toolbar-wrapper"><div class="note-toolbar card-header" role="toolbar"></div></div>');
|
75
75
|
var editingArea = renderer.create('<div class="note-editing-area"/>');
|
76
|
-
var codable = renderer.create('<textarea class="note-codable"/>');
|
77
|
-
var editable = renderer.create('<div class="note-editable card-block" contentEditable="true"/>');
|
76
|
+
var codable = renderer.create('<textarea class="note-codable" role="textbox" aria-multiline="true"/>');
|
77
|
+
var editable = renderer.create('<div class="note-editable card-block" contentEditable="true" role="textbox" aria-multiline="true"/>');
|
78
78
|
var statusbar = renderer.create([
|
79
|
-
'<
|
80
|
-
'
|
79
|
+
'<output class="note-status-output" aria-live="polite"/>',
|
80
|
+
'<div class="note-statusbar" role="status">',
|
81
|
+
' <output class="note-status-output" aria-live="polite"></output>',
|
82
|
+
' <div class="note-resizebar" role="seperator" aria-orientation="horizontal" aria-label="Resize">',
|
81
83
|
' <div class="note-icon-bar"/>',
|
82
84
|
' <div class="note-icon-bar"/>',
|
83
85
|
' <div class="note-icon-bar"/>',
|
@@ -85,44 +87,50 @@ var statusbar = renderer.create([
|
|
85
87
|
'</div>'
|
86
88
|
].join(''));
|
87
89
|
var airEditor = renderer.create('<div class="note-editor"/>');
|
88
|
-
var airEditable = renderer.create(
|
90
|
+
var airEditable = renderer.create([
|
91
|
+
'<output class="note-status-output" aria-live="polite"/>',
|
92
|
+
'<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"/>'
|
93
|
+
].join(''));
|
89
94
|
var buttonGroup = renderer.create('<div class="note-btn-group btn-group">');
|
90
|
-
var dropdown = renderer.create('<div class="dropdown-menu">', function ($node, options) {
|
95
|
+
var dropdown = renderer.create('<div class="dropdown-menu" role="list">', function ($node, options) {
|
91
96
|
var markup = $$1.isArray(options.items) ? options.items.map(function (item) {
|
92
97
|
var value = (typeof item === 'string') ? item : (item.value || '');
|
93
98
|
var content = options.template ? options.template(item) : item;
|
94
99
|
var option = (typeof item === 'object') ? item.option : undefined;
|
95
100
|
var dataValue = 'data-value="' + value + '"';
|
96
101
|
var dataOption = (option !== undefined) ? ' data-option="' + option + '"' : '';
|
97
|
-
return '<a class="dropdown-item" href="#" ' + (dataValue + dataOption) + '>' + content + '</a>';
|
102
|
+
return '<a class="dropdown-item" href="#" ' + (dataValue + dataOption) + ' role="listitem" aria-label="' + item + '">' + content + '</a>';
|
98
103
|
}).join('') : options.items;
|
99
|
-
$node.html(markup);
|
104
|
+
$node.html(markup).attr({ 'aria-label': options.title });
|
100
105
|
});
|
101
106
|
var dropdownButtonContents = function (contents) {
|
102
107
|
return contents;
|
103
108
|
};
|
104
|
-
var dropdownCheck = renderer.create('<div class="dropdown-menu note-check">', function ($node, options) {
|
109
|
+
var dropdownCheck = renderer.create('<div class="dropdown-menu note-check" role="list">', function ($node, options) {
|
105
110
|
var markup = $$1.isArray(options.items) ? options.items.map(function (item) {
|
106
111
|
var value = (typeof item === 'string') ? item : (item.value || '');
|
107
112
|
var content = options.template ? options.template(item) : item;
|
108
|
-
return '<a class="dropdown-item" href="#" data-value="' + value + '">' + icon(options.checkClassName) + ' ' + content + '</a>';
|
113
|
+
return '<a class="dropdown-item" href="#" data-value="' + value + '" role="listitem" aria-label="' + item + '">' + icon(options.checkClassName) + ' ' + content + '</a>';
|
109
114
|
}).join('') : options.items;
|
110
|
-
$node.html(markup);
|
115
|
+
$node.html(markup).attr({ 'aria-label': options.title });
|
111
116
|
});
|
112
117
|
var palette = renderer.create('<div class="note-color-palette"/>', function ($node, options) {
|
113
118
|
var contents = [];
|
114
119
|
for (var row = 0, rowSize = options.colors.length; row < rowSize; row++) {
|
115
120
|
var eventName = options.eventName;
|
116
121
|
var colors = options.colors[row];
|
122
|
+
var colorsName = options.colorsName[row];
|
117
123
|
var buttons = [];
|
118
124
|
for (var col = 0, colSize = colors.length; col < colSize; col++) {
|
119
125
|
var color = colors[col];
|
126
|
+
var colorName = colorsName[col];
|
120
127
|
buttons.push([
|
121
128
|
'<button type="button" class="note-color-btn"',
|
122
129
|
'style="background-color:', color, '" ',
|
123
130
|
'data-event="', eventName, '" ',
|
124
131
|
'data-value="', color, '" ',
|
125
|
-
'title="',
|
132
|
+
'title="', colorName, '" ',
|
133
|
+
'aria-label="', colorName, '" ',
|
126
134
|
'data-toggle="button" tabindex="-1"></button>'
|
127
135
|
].join(''));
|
128
136
|
}
|
@@ -137,17 +145,20 @@ var palette = renderer.create('<div class="note-color-palette"/>', function ($no
|
|
137
145
|
});
|
138
146
|
}
|
139
147
|
});
|
140
|
-
var dialog = renderer.create('<div class="modal" aria-hidden="false" tabindex="-1"/>', function ($node, options) {
|
148
|
+
var dialog = renderer.create('<div class="modal" aria-hidden="false" tabindex="-1" role="dialog"/>', function ($node, options) {
|
141
149
|
if (options.fade) {
|
142
150
|
$node.addClass('fade');
|
143
151
|
}
|
152
|
+
$node.attr({
|
153
|
+
'aria-label': options.title
|
154
|
+
});
|
144
155
|
$node.html([
|
145
156
|
'<div class="modal-dialog">',
|
146
157
|
' <div class="modal-content">',
|
147
158
|
(options.title
|
148
159
|
? ' <div class="modal-header">' +
|
149
160
|
' <h4 class="modal-title">' + options.title + '</h4>' +
|
150
|
-
' <button type="button" class="close" data-dismiss="modal" aria-label="Close"
|
161
|
+
' <button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×</button>' +
|
151
162
|
' </div>' : ''),
|
152
163
|
' <div class="modal-body">' + options.body + '</div>',
|
153
164
|
(options.footer
|
@@ -168,14 +179,16 @@ var popover = renderer.create([
|
|
168
179
|
$node.find('.arrow').hide();
|
169
180
|
}
|
170
181
|
});
|
171
|
-
var checkbox = renderer.create('<label class="
|
182
|
+
var checkbox = renderer.create('<label class="custom-control custom-checkbox"></label>', function ($node, options) {
|
172
183
|
if (options.id) {
|
173
184
|
$node.attr('for', options.id);
|
174
185
|
}
|
175
186
|
$node.html([
|
176
|
-
' <input type="checkbox" class="
|
177
|
-
(options.checked ? ' checked' : '')
|
178
|
-
'
|
187
|
+
' <input role="checkbox" type="checkbox" class="custom-control-input"' + (options.id ? ' id="' + options.id + '"' : ''),
|
188
|
+
(options.checked ? ' checked' : ''),
|
189
|
+
' aria-checked="' + (options.checked ? 'true' : 'false') + '"/>',
|
190
|
+
' <span class="custom-control-indicator"></span>',
|
191
|
+
' <span class="custom-control-description">' + (options.text ? options.text : '') + '</span>',
|
179
192
|
'</label>'
|
180
193
|
].join(''));
|
181
194
|
});
|
@@ -203,10 +216,11 @@ var ui = {
|
|
203
216
|
checkbox: checkbox,
|
204
217
|
options: {},
|
205
218
|
button: function ($node, options) {
|
206
|
-
return renderer.create('<button type="button" class="note-btn btn btn-light btn-sm" tabindex="-1">', function ($node, options) {
|
219
|
+
return renderer.create('<button type="button" class="note-btn btn btn-light btn-sm" role="button" tabindex="-1">', function ($node, options) {
|
207
220
|
if (options && options.tooltip) {
|
208
221
|
$node.attr({
|
209
|
-
title: options.tooltip
|
222
|
+
title: options.tooltip,
|
223
|
+
'aria-label': options.tooltip
|
210
224
|
}).tooltip({
|
211
225
|
container: options.container,
|
212
226
|
trigger: 'hover',
|
@@ -3750,7 +3764,7 @@ var Editor = /** @class */ (function () {
|
|
3750
3764
|
})(idx);
|
3751
3765
|
this.context.memo('help.formatH' + idx, this.lang.help['formatH' + idx]);
|
3752
3766
|
}
|
3753
|
-
|
3767
|
+
|
3754
3768
|
this.insertParagraph = this.wrapCommand(function () {
|
3755
3769
|
_this.typing.insertParagraph(_this.editable);
|
3756
3770
|
});
|
@@ -4161,6 +4175,7 @@ var Editor = /** @class */ (function () {
|
|
4161
4175
|
* @param {Boolean} isPreventTrigger
|
4162
4176
|
*/
|
4163
4177
|
Editor.prototype.afterCommand = function (isPreventTrigger) {
|
4178
|
+
this.normalizeContent();
|
4164
4179
|
this.history.recordUndo();
|
4165
4180
|
if (!isPreventTrigger) {
|
4166
4181
|
this.context.triggerEvent('change', this.$editable.html());
|
@@ -4451,6 +4466,12 @@ var Editor = /** @class */ (function () {
|
|
4451
4466
|
Editor.prototype.empty = function () {
|
4452
4467
|
this.context.invoke('code', dom.emptyPara);
|
4453
4468
|
};
|
4469
|
+
/**
|
4470
|
+
* normalize content
|
4471
|
+
*/
|
4472
|
+
Editor.prototype.normalizeContent = function () {
|
4473
|
+
this.$editable[0].normalize();
|
4474
|
+
};
|
4454
4475
|
return Editor;
|
4455
4476
|
}());
|
4456
4477
|
|
@@ -4727,6 +4748,7 @@ var Statusbar = /** @class */ (function () {
|
|
4727
4748
|
};
|
4728
4749
|
Statusbar.prototype.destroy = function () {
|
4729
4750
|
this.$statusbar.off();
|
4751
|
+
this.$statusbar.addClass('locked');
|
4730
4752
|
};
|
4731
4753
|
return Statusbar;
|
4732
4754
|
}());
|
@@ -5075,6 +5097,7 @@ var Buttons = /** @class */ (function () {
|
|
5075
5097
|
_this.ui.dropdown({
|
5076
5098
|
className: 'dropdown-style',
|
5077
5099
|
items: _this.options.styleTags,
|
5100
|
+
title: _this.lang.style.style,
|
5078
5101
|
template: function (item) {
|
5079
5102
|
if (typeof item === 'string') {
|
5080
5103
|
item = { tag: item, title: (_this.lang.style.hasOwnProperty(item) ? _this.lang.style[item] : item) };
|
@@ -5095,7 +5118,7 @@ var Buttons = /** @class */ (function () {
|
|
5095
5118
|
return _this.button({
|
5096
5119
|
className: 'note-btn-style-' + item,
|
5097
5120
|
contents: '<div data-value="' + item + '">' + item.toUpperCase() + '</div>',
|
5098
|
-
tooltip: item
|
5121
|
+
tooltip: _this.lang.style[item],
|
5099
5122
|
click: _this.context.createInvokeHandler('editor.formatBlock')
|
5100
5123
|
}).render();
|
5101
5124
|
});
|
@@ -5183,6 +5206,7 @@ var Buttons = /** @class */ (function () {
|
|
5183
5206
|
className: 'dropdown-fontname',
|
5184
5207
|
checkClassName: _this.options.icons.menuCheck,
|
5185
5208
|
items: _this.options.fontNames.filter(_this.isFontInstalled.bind(_this)),
|
5209
|
+
title: _this.lang.font.name,
|
5186
5210
|
template: function (item) {
|
5187
5211
|
return '<span style="font-family: \'' + item + '\'">' + item + '</span>';
|
5188
5212
|
},
|
@@ -5204,6 +5228,7 @@ var Buttons = /** @class */ (function () {
|
|
5204
5228
|
className: 'dropdown-fontsize',
|
5205
5229
|
checkClassName: _this.options.icons.menuCheck,
|
5206
5230
|
items: _this.options.fontSizes,
|
5231
|
+
title: _this.lang.font.size,
|
5207
5232
|
click: _this.context.createInvokeHandlerAndUpdateState('editor.fontSize')
|
5208
5233
|
})
|
5209
5234
|
]).render();
|
@@ -5263,6 +5288,7 @@ var Buttons = /** @class */ (function () {
|
|
5263
5288
|
var $holder = $$1(item);
|
5264
5289
|
$holder.append(_this.ui.palette({
|
5265
5290
|
colors: _this.options.colors,
|
5291
|
+
colorsName: _this.options.colorsName,
|
5266
5292
|
eventName: $holder.data('event'),
|
5267
5293
|
container: _this.options.container,
|
5268
5294
|
tooltip: _this.options.tooltip
|
@@ -5372,6 +5398,7 @@ var Buttons = /** @class */ (function () {
|
|
5372
5398
|
items: _this.options.lineHeights,
|
5373
5399
|
checkClassName: _this.options.icons.menuCheck,
|
5374
5400
|
className: 'dropdown-line-height',
|
5401
|
+
title: _this.lang.font.height,
|
5375
5402
|
click: _this.context.createInvokeHandler('editor.lineHeight')
|
5376
5403
|
})
|
5377
5404
|
]).render();
|
@@ -5387,6 +5414,7 @@ var Buttons = /** @class */ (function () {
|
|
5387
5414
|
}
|
5388
5415
|
}),
|
5389
5416
|
_this.ui.dropdown({
|
5417
|
+
title: _this.lang.table.table,
|
5390
5418
|
className: 'note-table',
|
5391
5419
|
items: [
|
5392
5420
|
'<div class="note-dimension-picker">',
|
@@ -5440,7 +5468,7 @@ var Buttons = /** @class */ (function () {
|
|
5440
5468
|
return _this.button({
|
5441
5469
|
className: 'btn-fullscreen',
|
5442
5470
|
contents: _this.ui.icon(_this.options.icons.arrowsAlt),
|
5443
|
-
tooltip: _this.options.fullscreen,
|
5471
|
+
tooltip: _this.lang.options.fullscreen,
|
5444
5472
|
click: _this.context.createInvokeHandler('fullscreen.toggle')
|
5445
5473
|
}).render();
|
5446
5474
|
});
|
@@ -5448,7 +5476,7 @@ var Buttons = /** @class */ (function () {
|
|
5448
5476
|
return _this.button({
|
5449
5477
|
className: 'btn-codeview',
|
5450
5478
|
contents: _this.ui.icon(_this.options.icons.code),
|
5451
|
-
tooltip: _this.options.codeview,
|
5479
|
+
tooltip: _this.lang.options.codeview,
|
5452
5480
|
click: _this.context.createInvokeHandler('codeview.toggle')
|
5453
5481
|
}).render();
|
5454
5482
|
});
|
@@ -5469,7 +5497,7 @@ var Buttons = /** @class */ (function () {
|
|
5469
5497
|
this.context.memo('button.help', function () {
|
5470
5498
|
return _this.button({
|
5471
5499
|
contents: _this.ui.icon(_this.options.icons.question),
|
5472
|
-
tooltip: _this.options.help,
|
5500
|
+
tooltip: _this.lang.options.help,
|
5473
5501
|
click: _this.context.createInvokeHandler('helpDialog.show')
|
5474
5502
|
}).render();
|
5475
5503
|
});
|
@@ -6090,7 +6118,7 @@ var ImageDialog = /** @class */ (function () {
|
|
6090
6118
|
' type="file" name="files" accept="image/*" multiple="multiple" />',
|
6091
6119
|
imageLimitation,
|
6092
6120
|
'</div>',
|
6093
|
-
'<div class="form-group note-group-image-url">',
|
6121
|
+
'<div class="form-group note-group-image-url" style="overflow:auto;">',
|
6094
6122
|
'<label class="note-form-label">' + this.lang.image.url + '</label>',
|
6095
6123
|
'<input class="note-image-url form-control note-form-control note-input ',
|
6096
6124
|
' col-md-12" type="text" />',
|
@@ -6482,7 +6510,7 @@ var HelpDialog = /** @class */ (function () {
|
|
6482
6510
|
var $container = this.options.dialogsInBody ? this.$body : this.$editor;
|
6483
6511
|
var body = [
|
6484
6512
|
'<p class="text-center">',
|
6485
|
-
'<a href="http://summernote.org/" target="_blank">Summernote 0.8.
|
6513
|
+
'<a href="http://summernote.org/" target="_blank">Summernote 0.8.10</a> · ',
|
6486
6514
|
'<a href="https://github.com/summernote/summernote" target="_blank">Project</a> · ',
|
6487
6515
|
'<a href="https://github.com/summernote/summernote/issues" target="_blank">Issues</a>',
|
6488
6516
|
'</p>'
|
@@ -7042,7 +7070,7 @@ $$1.fn.extend({
|
|
7042
7070
|
});
|
7043
7071
|
|
7044
7072
|
$$1.summernote = $$1.extend($$1.summernote, {
|
7045
|
-
version: '0.8.
|
7073
|
+
version: '0.8.10',
|
7046
7074
|
ui: ui,
|
7047
7075
|
dom: dom,
|
7048
7076
|
plugins: {},
|
@@ -7127,7 +7155,7 @@ $$1.summernote = $$1.extend($$1.summernote, {
|
|
7127
7155
|
styleTags: [
|
7128
7156
|
'p',
|
7129
7157
|
{ title: 'Blockquote', tag: 'blockquote', className: 'blockquote', value: 'blockquote' },
|
7130
|
-
'
|
7158
|
+
'h1', 'h2', 'h3', 'h4', 'h5', 'h6'
|
7131
7159
|
],
|
7132
7160
|
fontNames: [
|
7133
7161
|
'Arial', 'Arial Black', 'Comic Sans MS', 'Courier New',
|
@@ -7146,6 +7174,17 @@ $$1.summernote = $$1.extend($$1.summernote, {
|
|
7146
7174
|
['#9C0000', '#B56308', '#BD9400', '#397B21', '#104A5A', '#085294', '#311873', '#731842'],
|
7147
7175
|
['#630000', '#7B3900', '#846300', '#295218', '#083139', '#003163', '#21104A', '#4A1031']
|
7148
7176
|
],
|
7177
|
+
// http://chir.ag/projects/name-that-color/
|
7178
|
+
colorsName: [
|
7179
|
+
['Black', 'Tundora', 'Dove Gray', 'Star Dust', 'Pale Slate', 'Gallery', 'Alabaster', 'White'],
|
7180
|
+
['Red', 'Orange Peel', 'Yellow', 'Green', 'Cyan', 'Blue', 'Electric Violet', 'Magenta'],
|
7181
|
+
['Azalea', 'Karry', 'Egg White', 'Zanah', 'Botticelli', 'Tropical Blue', 'Mischka', 'Twilight'],
|
7182
|
+
['Tonys Pink', 'Peach Orange', 'Cream Brulee', 'Sprout', 'Casper', 'Perano', 'Cold Purple', 'Careys Pink'],
|
7183
|
+
['Mandy', 'Rajah', 'Dandelion', 'Olivine', 'Gulf Stream', 'Viking', 'Blue Marguerite', 'Puce'],
|
7184
|
+
['Guardsman Red', 'Fire Bush', 'Golden Dream', 'Chelsea Cucumber', 'Smalt Blue', 'Boston Blue', 'Butterfly Bush', 'Cadillac'],
|
7185
|
+
['Sangria', 'Mai Tai', 'Buddha Gold', 'Forest Green', 'Eden', 'Venice Blue', 'Meteorite', 'Claret'],
|
7186
|
+
['Rosewood', 'Cinnamon', 'Olive', 'Parsley', 'Tiber', 'Midnight Blue', 'Valentino', 'Loulou']
|
7187
|
+
],
|
7149
7188
|
lineHeights: ['1.0', '1.2', '1.4', '1.5', '1.6', '1.8', '2.0', '3.0'],
|
7150
7189
|
tableClassName: 'table table-bordered',
|
7151
7190
|
insertTableMaxSize: {
|