|
6 | 6 | * Copyright 2013-2016 Alan Hong. and other contributors
|
7 | 7 | * summernote may be freely distributed under the MIT license./
|
8 | 8 | *
|
9 |
| - * Date: 2016-06-29T15:25Z |
| 9 | + * Date: 2016-10-13T16:40Z |
10 | 10 | */
|
11 | 11 | (function (factory) {
|
12 | 12 | /* global define */
|
|
21 | 21 | factory(window.jQuery);
|
22 | 22 | }
|
23 | 23 | }(function ($) {
|
24 |
| - |
25 |
| - |
| 24 | + 'use strict'; |
26 | 25 |
|
27 | 26 | /**
|
28 | 27 | * @class core.func
|
|
2080 | 2079 | openInNewWindow: 'Open in new window'
|
2081 | 2080 | },
|
2082 | 2081 | 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' |
2084 | 2089 | },
|
2085 | 2090 | hr: {
|
2086 | 2091 | insert: 'Insert Horizontal Rule'
|
|
5797 | 5802 | context.memo('button.addRowUp', function () {
|
5798 | 5803 | return ui.button({
|
5799 | 5804 | 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, |
5802 | 5807 | click: context.createInvokeHandler('editor.addRow', 'top')
|
5803 | 5808 | }).render();
|
5804 | 5809 | });
|
5805 | 5810 | context.memo('button.addRowDown', function () {
|
5806 | 5811 | return ui.button({
|
5807 | 5812 | 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, |
5810 | 5815 | click: context.createInvokeHandler('editor.addRow', 'bottom')
|
5811 | 5816 | }).render();
|
5812 | 5817 | });
|
5813 | 5818 | context.memo('button.addColLeft', function () {
|
5814 | 5819 | return ui.button({
|
5815 | 5820 | 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, |
5818 | 5823 | click: context.createInvokeHandler('editor.addCol', 'left')
|
5819 | 5824 | }).render();
|
5820 | 5825 | });
|
5821 | 5826 | context.memo('button.addColRight', function () {
|
5822 | 5827 | return ui.button({
|
5823 | 5828 | 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, |
5826 | 5831 | click: context.createInvokeHandler('editor.addCol', 'right')
|
5827 | 5832 | }).render();
|
5828 | 5833 | });
|
5829 | 5834 | context.memo('button.deleteRow', function () {
|
5830 | 5835 | return ui.button({
|
5831 | 5836 | 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, |
5834 | 5839 | click: context.createInvokeHandler('editor.deleteRow')
|
5835 | 5840 | }).render();
|
5836 | 5841 | });
|
5837 | 5842 | context.memo('button.deleteCol', function () {
|
5838 | 5843 | return ui.button({
|
5839 | 5844 | 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, |
5842 | 5847 | click: context.createInvokeHandler('editor.deleteCol')
|
5843 | 5848 | }).render();
|
5844 | 5849 | });
|
|
7194 | 7199 | 'alignJustify': 'note-icon-align-justify',
|
7195 | 7200 | 'alignLeft': 'note-icon-align-left',
|
7196 | 7201 | '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', |
7203 | 7208 | 'indent': 'note-icon-align-indent',
|
7204 | 7209 | 'outdent': 'note-icon-align-outdent',
|
7205 | 7210 | 'arrowsAlt': 'note-icon-arrows-alt',
|
|
7236 | 7241 | }
|
7237 | 7242 | }
|
7238 | 7243 | });
|
| 7244 | + |
7239 | 7245 | }));
|
0 commit comments