Skip to content

Commit c81f579

Browse files
Change table action icons and add translate
Change icons of actions in table. Include tooltips in language files.
1 parent 1b421a3 commit c81f579

18 files changed

+562
-48
lines changed

dist/font/summernote.eot

-5.52 KB
Binary file not shown.

dist/font/summernote.ttf

-5.52 KB
Binary file not shown.

dist/font/summernote.woff

5.73 KB
Binary file not shown.

dist/lang/summernote-pt-BR.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@
4141
openInNewWindow: 'Abrir em uma nova janela'
4242
},
4343
table: {
44-
table: 'Tabela'
44+
table: 'Tabela',
45+
addRowAbove: 'Adicionar linha acima',
46+
addRowBelow: 'Adicionar linha abaixo',
47+
addColLeft: 'Adicionar coluna a esquerda',
48+
addColRight: 'Adicionar coluna a direita',
49+
delRow: 'Excluir linha',
50+
delCol: 'Excluir coluna'
4551
},
4652
hr: {
4753
insert: 'Inserir linha horizontal'

dist/lang/summernote-pt-BR.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/summernote.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/summernote.js

+28-22
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright 2013-2016 Alan Hong. and other contributors
77
* summernote may be freely distributed under the MIT license./
88
*
9-
* Date: 2016-06-29T15:25Z
9+
* Date: 2016-10-13T16:40Z
1010
*/
1111
(function (factory) {
1212
/* global define */
@@ -21,8 +21,7 @@
2121
factory(window.jQuery);
2222
}
2323
}(function ($) {
24-
25-
24+
'use strict';
2625

2726
/**
2827
* @class core.func
@@ -2080,7 +2079,13 @@
20802079
openInNewWindow: 'Open in new window'
20812080
},
20822081
table: {
2083-
table: 'Table'
2082+
table: 'Table',
2083+
addRowAbove: 'Add row above',
2084+
addRowBelow: 'Add row below',
2085+
addColLeft: 'Add column left',
2086+
addColRight: 'Add column right',
2087+
delRow: 'Delete row',
2088+
delCol: 'Delete column'
20842089
},
20852090
hr: {
20862091
insert: 'Insert Horizontal Rule'
@@ -5797,48 +5802,48 @@
57975802
context.memo('button.addRowUp', function () {
57985803
return ui.button({
57995804
className: 'btn-md',
5800-
contents: ui.icon(options.icons.arrowUp),
5801-
tooltip: 'Add row before',
5805+
contents: ui.icon(options.icons.rowAbove),
5806+
tooltip: lang.table.addRowAbove,
58025807
click: context.createInvokeHandler('editor.addRow', 'top')
58035808
}).render();
58045809
});
58055810
context.memo('button.addRowDown', function () {
58065811
return ui.button({
58075812
className: 'btn-md',
5808-
contents: ui.icon(options.icons.arrowDown),
5809-
tooltip: 'Add row after',
5813+
contents: ui.icon(options.icons.rowBelow),
5814+
tooltip: lang.table.addRowBelow,
58105815
click: context.createInvokeHandler('editor.addRow', 'bottom')
58115816
}).render();
58125817
});
58135818
context.memo('button.addColLeft', function () {
58145819
return ui.button({
58155820
className: 'btn-md',
5816-
contents: ui.icon(options.icons.arrowLeft),
5817-
tooltip: 'Add column left',
5821+
contents: ui.icon(options.icons.colBefore),
5822+
tooltip: lang.table.addColLeft,
58185823
click: context.createInvokeHandler('editor.addCol', 'left')
58195824
}).render();
58205825
});
58215826
context.memo('button.addColRight', function () {
58225827
return ui.button({
58235828
className: 'btn-md',
5824-
contents: ui.icon(options.icons.arrowRight),
5825-
tooltip: 'Add column right',
5829+
contents: ui.icon(options.icons.colAfter),
5830+
tooltip: lang.table.addColRight,
58265831
click: context.createInvokeHandler('editor.addCol', 'right')
58275832
}).render();
58285833
});
58295834
context.memo('button.deleteRow', function () {
58305835
return ui.button({
58315836
className: 'btn-md',
5832-
contents: ui.icon(options.icons.arrowsH),
5833-
tooltip: 'delete row',
5837+
contents: ui.icon(options.icons.rowRemove),
5838+
tooltip: lang.table.delRow,
58345839
click: context.createInvokeHandler('editor.deleteRow')
58355840
}).render();
58365841
});
58375842
context.memo('button.deleteCol', function () {
58385843
return ui.button({
58395844
className: 'btn-md',
5840-
contents: ui.icon(options.icons.arrowsV),
5841-
tooltip: 'delete col',
5845+
contents: ui.icon(options.icons.colRemove),
5846+
tooltip: lang.table.delCol,
58425847
click: context.createInvokeHandler('editor.deleteCol')
58435848
}).render();
58445849
});
@@ -7194,12 +7199,12 @@
71947199
'alignJustify': 'note-icon-align-justify',
71957200
'alignLeft': 'note-icon-align-left',
71967201
'alignRight': 'note-icon-align-right',
7197-
'arrowDown': 'note-icon-arrow-circle-down',
7198-
'arrowLeft': 'note-icon-arrow-circle-left',
7199-
'arrowRight': 'note-icon-arrow-circle-right',
7200-
'arrowUp': 'note-icon-arrow-circle-up',
7201-
'arrowsH': 'note-icon-arrows-h',
7202-
'arrowsV': 'note-icon-arrows-v',
7202+
'rowBelow': 'note-icon-row-below',
7203+
'colBefore': 'note-icon-col-before',
7204+
'colAfter': 'note-icon-col-after',
7205+
'rowAbove': 'note-icon-row-above',
7206+
'rowRemove': 'note-icon-row-remove',
7207+
'colRemove': 'note-icon-col-remove',
72037208
'indent': 'note-icon-align-indent',
72047209
'outdent': 'note-icon-align-outdent',
72057210
'arrowsAlt': 'note-icon-arrows-alt',
@@ -7236,4 +7241,5 @@
72367241
}
72377242
}
72387243
});
7244+
72397245
}));

dist/summernote.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lang/summernote-pt-BR.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@
4141
openInNewWindow: 'Abrir em uma nova janela'
4242
},
4343
table: {
44-
table: 'Tabela'
44+
table: 'Tabela',
45+
addRowAbove: 'Adicionar linha acima',
46+
addRowBelow: 'Adicionar linha abaixo',
47+
addColLeft: 'Adicionar coluna a esquerda',
48+
addColRight: 'Adicionar coluna a direita',
49+
delRow: 'Excluir linha',
50+
delCol: 'Excluir coluna'
4551
},
4652
hr: {
4753
insert: 'Inserir linha horizontal'

src/icons/col-after.svg

+99
Loading

src/icons/col-before.svg

+19
Loading

0 commit comments

Comments
 (0)