summernote-rails 0.8.10.0 → 0.8.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +53 -13
  3. data/lib/summernote-rails/version.rb +1 -1
  4. data/vendor/assets/fonts/summernote.eot +0 -0
  5. data/vendor/assets/fonts/summernote.ttf +0 -0
  6. data/vendor/assets/fonts/summernote.woff +0 -0
  7. data/vendor/assets/javascripts/summernote/lang/summernote-ar-AR.js +18 -17
  8. data/vendor/assets/javascripts/summernote/lang/summernote-bg-BG.js +18 -17
  9. data/vendor/assets/javascripts/summernote/lang/summernote-ca-ES.js +17 -17
  10. data/vendor/assets/javascripts/summernote/lang/summernote-cs-CZ.js +18 -17
  11. data/vendor/assets/javascripts/summernote/lang/summernote-da-DK.js +24 -24
  12. data/vendor/assets/javascripts/summernote/lang/summernote-de-DE.js +71 -69
  13. data/vendor/assets/javascripts/summernote/lang/summernote-el-GR.js +17 -17
  14. data/vendor/assets/javascripts/summernote/lang/summernote-es-ES.js +17 -17
  15. data/vendor/assets/javascripts/summernote/lang/summernote-es-EU.js +17 -17
  16. data/vendor/assets/javascripts/summernote/lang/summernote-fa-IR.js +17 -17
  17. data/vendor/assets/javascripts/summernote/lang/summernote-fi-FI.js +66 -66
  18. data/vendor/assets/javascripts/summernote/lang/summernote-fr-FR.js +19 -19
  19. data/vendor/assets/javascripts/summernote/lang/summernote-gl-ES.js +18 -18
  20. data/vendor/assets/javascripts/summernote/lang/summernote-he-IL.js +17 -17
  21. data/vendor/assets/javascripts/summernote/lang/summernote-hr-HR.js +17 -17
  22. data/vendor/assets/javascripts/summernote/lang/summernote-hu-HU.js +17 -17
  23. data/vendor/assets/javascripts/summernote/lang/summernote-id-ID.js +59 -59
  24. data/vendor/assets/javascripts/summernote/lang/summernote-it-IT.js +17 -17
  25. data/vendor/assets/javascripts/summernote/lang/summernote-ja-JP.js +23 -23
  26. data/vendor/assets/javascripts/summernote/lang/summernote-ko-KR.js +61 -59
  27. data/vendor/assets/javascripts/summernote/lang/summernote-lt-LT.js +17 -17
  28. data/vendor/assets/javascripts/summernote/lang/summernote-lt-LV.js +17 -17
  29. data/vendor/assets/javascripts/summernote/lang/summernote-mn-MN.js +17 -17
  30. data/vendor/assets/javascripts/summernote/lang/summernote-nb-NO.js +17 -17
  31. data/vendor/assets/javascripts/summernote/lang/summernote-nl-NL.js +48 -48
  32. data/vendor/assets/javascripts/summernote/lang/summernote-pl-PL.js +52 -52
  33. data/vendor/assets/javascripts/summernote/lang/summernote-pt-BR.js +37 -36
  34. data/vendor/assets/javascripts/summernote/lang/summernote-pt-PT.js +59 -58
  35. data/vendor/assets/javascripts/summernote/lang/summernote-ro-RO.js +17 -17
  36. data/vendor/assets/javascripts/summernote/lang/summernote-ru-RU.js +17 -17
  37. data/vendor/assets/javascripts/summernote/lang/summernote-sk-SK.js +17 -17
  38. data/vendor/assets/javascripts/summernote/lang/summernote-sl-SI.js +17 -17
  39. data/vendor/assets/javascripts/summernote/lang/summernote-sr-RS-Latin.js +17 -17
  40. data/vendor/assets/javascripts/summernote/lang/summernote-sr-RS.js +17 -17
  41. data/vendor/assets/javascripts/summernote/lang/summernote-sv-SE.js +17 -17
  42. data/vendor/assets/javascripts/summernote/lang/summernote-ta-IN.js +17 -17
  43. data/vendor/assets/javascripts/summernote/lang/summernote-th-TH.js +35 -35
  44. data/vendor/assets/javascripts/summernote/lang/summernote-tr-TR.js +17 -17
  45. data/vendor/assets/javascripts/summernote/lang/summernote-uk-UA.js +17 -17
  46. data/vendor/assets/javascripts/summernote/lang/summernote-uz-UZ.js +15 -15
  47. data/vendor/assets/javascripts/summernote/lang/summernote-vi-VN.js +17 -17
  48. data/vendor/assets/javascripts/summernote/lang/summernote-zh-CN.js +25 -25
  49. data/vendor/assets/javascripts/summernote/lang/summernote-zh-TW.js +17 -17
  50. data/vendor/assets/javascripts/summernote/plugin/databasic/summernote-ext-databasic.js +18 -18
  51. data/vendor/assets/javascripts/summernote/plugin/hello/summernote-ext-hello.js +4 -4
  52. data/vendor/assets/javascripts/summernote/plugin/specialchars/summernote-ext-specialchars.js +7 -7
  53. data/vendor/assets/javascripts/summernote/summernote-bs4.js +7710 -7265
  54. data/vendor/assets/javascripts/summernote/summernote-bs4.min.js +2 -2
  55. data/vendor/assets/javascripts/summernote/summernote-lite.js +8251 -7777
  56. data/vendor/assets/javascripts/summernote/summernote-lite.min.js +3 -0
  57. data/vendor/assets/javascripts/summernote/summernote.js +7704 -7257
  58. data/vendor/assets/javascripts/summernote/summernote.min.js +2 -2
  59. data/vendor/assets/stylesheets/summernote-bs4.css +1 -1
  60. data/vendor/assets/stylesheets/summernote-lite.css +1 -1
  61. data/vendor/assets/stylesheets/summernote.css +1 -1
  62. metadata +4 -5
  63. data/vendor/assets/stylesheets/summernote-custom-theme.css +0 -28
  64. data/vendor/assets/stylesheets/summernote-custom-theme.min.css +0 -1
@@ -11,7 +11,7 @@
11
11
  strikethrough: 'Gạch ngang',
12
12
  subscript: 'Subscript',
13
13
  superscript: 'Superscript',
14
- size: 'Cỡ chữ'
14
+ size: 'Cỡ chữ',
15
15
  },
16
16
  image: {
17
17
  image: 'Hình ảnh',
@@ -33,14 +33,14 @@
33
33
  maximumFileSizeError: 'Maximum file size exceeded.',
34
34
  url: 'URL',
35
35
  remove: 'Xóa',
36
- original: 'Original'
36
+ original: 'Original',
37
37
  },
38
38
  video: {
39
39
  video: 'Video',
40
40
  videoLink: 'Link đến Video',
41
41
  insert: 'Chèn Video',
42
42
  url: 'URL',
43
- providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion và Youku)'
43
+ providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion và Youku)',
44
44
  },
45
45
  link: {
46
46
  link: 'Link',
@@ -49,7 +49,7 @@
49
49
  edit: 'Sửa',
50
50
  textToDisplay: 'Văn bản hiển thị',
51
51
  url: 'URL',
52
- openInNewWindow: 'Mở ở Cửa sổ mới'
52
+ openInNewWindow: 'Mở ở Cửa sổ mới',
53
53
  },
54
54
  table: {
55
55
  table: 'Bảng',
@@ -59,10 +59,10 @@
59
59
  addColRight: 'Add column right',
60
60
  delRow: 'Delete row',
61
61
  delCol: 'Delete column',
62
- delTable: 'Delete table'
62
+ delTable: 'Delete table',
63
63
  },
64
64
  hr: {
65
- insert: 'Chèn'
65
+ insert: 'Chèn',
66
66
  },
67
67
  style: {
68
68
  style: 'Kiểu chữ',
@@ -74,16 +74,16 @@
74
74
  h3: 'H3',
75
75
  h4: 'H4',
76
76
  h5: 'H5',
77
- h6: 'H6'
77
+ h6: 'H6',
78
78
  },
79
79
  lists: {
80
80
  unordered: 'Liệt kê danh sách',
81
- ordered: 'Liệt kê theo thứ tự'
81
+ ordered: 'Liệt kê theo thứ tự',
82
82
  },
83
83
  options: {
84
84
  help: 'Trợ giúp',
85
85
  fullscreen: 'Toàn Màn hình',
86
- codeview: 'Xem Code'
86
+ codeview: 'Xem Code',
87
87
  },
88
88
  paragraph: {
89
89
  paragraph: 'Canh lề',
@@ -92,7 +92,7 @@
92
92
  left: 'Canh trái',
93
93
  center: 'Canh giữa',
94
94
  right: 'Canh phải',
95
- justify: 'Canh đều'
95
+ justify: 'Canh đều',
96
96
  },
97
97
  color: {
98
98
  recent: 'Màu chữ',
@@ -102,7 +102,7 @@
102
102
  transparent: 'trong suốt',
103
103
  setTransparent: 'Nền trong suốt',
104
104
  reset: 'Thiết lập lại',
105
- resetToDefault: 'Trở lại ban đầu'
105
+ resetToDefault: 'Trở lại ban đầu',
106
106
  },
107
107
  shortcut: {
108
108
  shortcuts: 'Phím tắt',
@@ -111,7 +111,7 @@
111
111
  action: 'Hành động',
112
112
  paragraphFormatting: 'Định dạng',
113
113
  documentStyle: 'Kiểu văn bản',
114
- extraKeys: 'Extra keys'
114
+ extraKeys: 'Extra keys',
115
115
  },
116
116
  help: {
117
117
  'insertParagraph': 'Insert Paragraph',
@@ -140,16 +140,16 @@
140
140
  'formatH5': 'Change current block\'s format as H5',
141
141
  'formatH6': 'Change current block\'s format as H6',
142
142
  'insertHorizontalRule': 'Insert horizontal rule',
143
- 'linkDialog.show': 'Show Link Dialog'
143
+ 'linkDialog.show': 'Show Link Dialog',
144
144
  },
145
145
  history: {
146
146
  undo: 'Lùi lại',
147
- redo: 'Làm lại'
147
+ redo: 'Làm lại',
148
148
  },
149
149
  specialChar: {
150
150
  specialChar: 'SPECIAL CHARACTERS',
151
- select: 'Select Special characters'
152
- }
153
- }
151
+ select: 'Select Special characters',
152
+ },
153
+ },
154
154
  });
155
155
  })(jQuery);
@@ -11,7 +11,7 @@
11
11
  strikethrough: '删除线',
12
12
  subscript: '下标',
13
13
  superscript: '上标',
14
- size: '字号'
14
+ size: '字号',
15
15
  },
16
16
  image: {
17
17
  image: '图片',
@@ -27,20 +27,20 @@
27
27
  shapeThumbnail: '形状: 缩略图',
28
28
  shapeNone: '形状: 无',
29
29
  dragImageHere: '将图片拖拽至此处',
30
- dropImage: 'Drop image or Text',
30
+ dropImage: '拖拽图片或文本',
31
31
  selectFromFiles: '从本地上传',
32
32
  maximumFileSize: '文件大小最大值',
33
33
  maximumFileSizeError: '文件大小超出最大值。',
34
34
  url: '图片地址',
35
35
  remove: '移除图片',
36
- original: 'Original'
36
+ original: '原始图片',
37
37
  },
38
38
  video: {
39
39
  video: '视频',
40
40
  videoLink: '视频链接',
41
41
  insert: '插入视频',
42
42
  url: '视频地址',
43
- providers: '(优酷, 腾讯, Instagram, DailyMotion, Youtube等)'
43
+ providers: '(优酷, 腾讯, Instagram, DailyMotion, Youtube等)',
44
44
  },
45
45
  link: {
46
46
  link: '链接',
@@ -49,20 +49,20 @@
49
49
  edit: '编辑链接',
50
50
  textToDisplay: '显示文本',
51
51
  url: '链接地址',
52
- openInNewWindow: '在新窗口打开'
52
+ openInNewWindow: '在新窗口打开',
53
53
  },
54
54
  table: {
55
55
  table: '表格',
56
- addRowAbove: 'Add row above',
57
- addRowBelow: 'Add row below',
58
- addColLeft: 'Add column left',
59
- addColRight: 'Add column right',
60
- delRow: 'Delete row',
61
- delCol: 'Delete column',
62
- delTable: 'Delete table'
56
+ addRowAbove: '在上方插入行',
57
+ addRowBelow: '在下方插入行',
58
+ addColLeft: '在左侧插入列',
59
+ addColRight: '在右侧插入列',
60
+ delRow: '删除行',
61
+ delCol: '删除列',
62
+ delTable: '删除表格',
63
63
  },
64
64
  hr: {
65
- insert: '水平线'
65
+ insert: '水平线',
66
66
  },
67
67
  style: {
68
68
  style: '样式',
@@ -74,16 +74,16 @@
74
74
  h3: '标题 3',
75
75
  h4: '标题 4',
76
76
  h5: '标题 5',
77
- h6: '标题 6'
77
+ h6: '标题 6',
78
78
  },
79
79
  lists: {
80
80
  unordered: '无序列表',
81
- ordered: '有序列表'
81
+ ordered: '有序列表',
82
82
  },
83
83
  options: {
84
84
  help: '帮助',
85
85
  fullscreen: '全屏',
86
- codeview: '源代码'
86
+ codeview: '源代码',
87
87
  },
88
88
  paragraph: {
89
89
  paragraph: '段落',
@@ -92,7 +92,7 @@
92
92
  left: '左对齐',
93
93
  center: '居中对齐',
94
94
  right: '右对齐',
95
- justify: '两端对齐'
95
+ justify: '两端对齐',
96
96
  },
97
97
  color: {
98
98
  recent: '最近使用',
@@ -102,7 +102,7 @@
102
102
  transparent: '透明',
103
103
  setTransparent: '透明',
104
104
  reset: '重置',
105
- resetToDefault: '默认'
105
+ resetToDefault: '默认',
106
106
  },
107
107
  shortcut: {
108
108
  shortcuts: '快捷键',
@@ -111,7 +111,7 @@
111
111
  action: '动作',
112
112
  paragraphFormatting: '段落格式',
113
113
  documentStyle: '文档样式',
114
- extraKeys: '额外按键'
114
+ extraKeys: '额外按键',
115
115
  },
116
116
  help: {
117
117
  insertParagraph: '插入段落',
@@ -140,16 +140,16 @@
140
140
  formatH5: '设置选中内容样式为 标题5',
141
141
  formatH6: '设置选中内容样式为 标题6',
142
142
  insertHorizontalRule: '插入水平线',
143
- 'linkDialog.show': '显示链接对话框'
143
+ 'linkDialog.show': '显示链接对话框',
144
144
  },
145
145
  history: {
146
146
  undo: '撤销',
147
- redo: '重做'
147
+ redo: '重做',
148
148
  },
149
149
  specialChar: {
150
- specialChar: 'SPECIAL CHARACTERS',
151
- select: 'Select Special characters'
152
- }
153
- }
150
+ specialChar: '特殊字符',
151
+ select: '选取特殊字符',
152
+ },
153
+ },
154
154
  });
155
155
  })(jQuery);
@@ -11,7 +11,7 @@
11
11
  strikethrough: '刪除線',
12
12
  subscript: '下標',
13
13
  superscript: '上標',
14
- size: '字號'
14
+ size: '字號',
15
15
  },
16
16
  image: {
17
17
  image: '圖片',
@@ -33,14 +33,14 @@
33
33
  maximumFileSizeError: '文件大小超出最大值。',
34
34
  url: '圖片網址',
35
35
  remove: '移除圖片',
36
- original: 'Original'
36
+ original: 'Original',
37
37
  },
38
38
  video: {
39
39
  video: '影片',
40
40
  videoLink: '影片連結',
41
41
  insert: '插入影片',
42
42
  url: '影片網址',
43
- providers: '(優酷, Instagram, DailyMotion, Youtube等)'
43
+ providers: '(優酷, Instagram, DailyMotion, Youtube等)',
44
44
  },
45
45
  link: {
46
46
  link: '連結',
@@ -49,7 +49,7 @@
49
49
  edit: '編輯連結',
50
50
  textToDisplay: '顯示文字',
51
51
  url: '連結網址',
52
- openInNewWindow: '在新視窗開啟'
52
+ openInNewWindow: '在新視窗開啟',
53
53
  },
54
54
  table: {
55
55
  table: '表格',
@@ -59,10 +59,10 @@
59
59
  addColRight: 'Add column right',
60
60
  delRow: 'Delete row',
61
61
  delCol: 'Delete column',
62
- delTable: 'Delete table'
62
+ delTable: 'Delete table',
63
63
  },
64
64
  hr: {
65
- insert: '水平線'
65
+ insert: '水平線',
66
66
  },
67
67
  style: {
68
68
  style: '樣式',
@@ -74,16 +74,16 @@
74
74
  h3: '標題 3',
75
75
  h4: '標題 4',
76
76
  h5: '標題 5',
77
- h6: '標題 6'
77
+ h6: '標題 6',
78
78
  },
79
79
  lists: {
80
80
  unordered: '項目清單',
81
- ordered: '編號清單'
81
+ ordered: '編號清單',
82
82
  },
83
83
  options: {
84
84
  help: '幫助',
85
85
  fullscreen: '全螢幕',
86
- codeview: '原始碼'
86
+ codeview: '原始碼',
87
87
  },
88
88
  paragraph: {
89
89
  paragraph: '段落',
@@ -92,7 +92,7 @@
92
92
  left: '靠右對齊',
93
93
  center: '靠中對齊',
94
94
  right: '靠右對齊',
95
- justify: '左右對齊'
95
+ justify: '左右對齊',
96
96
  },
97
97
  color: {
98
98
  recent: '字型顏色',
@@ -102,7 +102,7 @@
102
102
  transparent: '透明',
103
103
  setTransparent: '透明',
104
104
  reset: '重設',
105
- resetToDefault: '默認'
105
+ resetToDefault: '默認',
106
106
  },
107
107
  shortcut: {
108
108
  shortcuts: '快捷鍵',
@@ -111,7 +111,7 @@
111
111
  action: '動作',
112
112
  paragraphFormatting: '段落格式',
113
113
  documentStyle: '文件格式',
114
- extraKeys: '額外按鍵'
114
+ extraKeys: '額外按鍵',
115
115
  },
116
116
  help: {
117
117
  'insertParagraph': 'Insert Paragraph',
@@ -140,16 +140,16 @@
140
140
  'formatH5': 'Change current block\'s format as H5',
141
141
  'formatH6': 'Change current block\'s format as H6',
142
142
  'insertHorizontalRule': 'Insert horizontal rule',
143
- 'linkDialog.show': 'Show Link Dialog'
143
+ 'linkDialog.show': 'Show Link Dialog',
144
144
  },
145
145
  history: {
146
146
  undo: '復原',
147
- redo: '取消復原'
147
+ redo: '取消復原',
148
148
  },
149
149
  specialChar: {
150
150
  specialChar: 'SPECIAL CHARACTERS',
151
- select: 'Select Special characters'
152
- }
153
- }
151
+ select: 'Select Special characters',
152
+ },
153
+ },
154
154
  });
155
155
  })(jQuery);
@@ -28,7 +28,7 @@
28
28
  return ui.button({
29
29
  contents: self.icon,
30
30
  tooltip: lang.databasic.insert,
31
- click: context.createInvokeHandler('databasic.showDialog')
31
+ click: context.createInvokeHandler('databasic.showDialog'),
32
32
  }).render();
33
33
  });
34
34
 
@@ -37,7 +37,7 @@
37
37
  return ui.button({
38
38
  contents: self.icon,
39
39
  tooltip: lang.databasic.edit,
40
- click: context.createInvokeHandler('databasic.showDialog')
40
+ click: context.createInvokeHandler('databasic.showDialog'),
41
41
  }).render();
42
42
  });
43
43
 
@@ -46,21 +46,21 @@
46
46
  return ui.button({
47
47
  contents: '<span class="note-fontsize-10">100%</span>',
48
48
  tooltip: lang.image.resizeFull,
49
- click: context.createInvokeHandler('editor.resize', '1')
49
+ click: context.createInvokeHandler('editor.resize', '1'),
50
50
  }).render();
51
51
  });
52
52
  context.memo('button.databasicSize50', function() {
53
53
  return ui.button({
54
54
  contents: '<span class="note-fontsize-10">50%</span>',
55
55
  tooltip: lang.image.resizeHalf,
56
- click: context.createInvokeHandler('editor.resize', '0.5')
56
+ click: context.createInvokeHandler('editor.resize', '0.5'),
57
57
  }).render();
58
58
  });
59
59
  context.memo('button.databasicSize25', function() {
60
60
  return ui.button({
61
61
  contents: '<span class="note-fontsize-10">25%</span>',
62
62
  tooltip: lang.image.resizeQuarter,
63
- click: context.createInvokeHandler('editor.resize', '0.25')
63
+ click: context.createInvokeHandler('editor.resize', '0.25'),
64
64
  }).render();
65
65
  });
66
66
 
@@ -75,7 +75,7 @@
75
75
  },
76
76
  'summernote.dialog.shown': function() {
77
77
  self.hidePopover();
78
- }
78
+ },
79
79
  };
80
80
 
81
81
  self.initialize = function() {
@@ -92,12 +92,12 @@
92
92
  title: lang.databasic.name,
93
93
  fade: options.dialogsFade,
94
94
  body: body,
95
- footer: footer
95
+ footer: footer,
96
96
  }).render().appendTo($container);
97
97
 
98
98
  // create popover
99
99
  self.$popover = ui.popover({
100
- className: 'ext-databasic-popover'
100
+ className: 'ext-databasic-popover',
101
101
  }).render().appendTo('body');
102
102
  var $content = self.$popover.find('.popover-content');
103
103
 
@@ -130,7 +130,7 @@
130
130
  self.$popover.css({
131
131
  display: 'block',
132
132
  left: pos.left,
133
- top: pos.top
133
+ top: pos.top,
134
134
  });
135
135
 
136
136
  // save editor target to let size buttons resize the container
@@ -161,7 +161,7 @@
161
161
  // Get the first node on range(for edit).
162
162
  return {
163
163
  node: $data,
164
- test: $data.attr('data-test')
164
+ test: $data.attr('data-test'),
165
165
  };
166
166
  }
167
167
  }
@@ -265,15 +265,15 @@
265
265
  // Extends summernote
266
266
  $.extend(true, $.summernote, {
267
267
  plugins: {
268
- databasic: DataBasicPlugin
268
+ databasic: DataBasicPlugin,
269
269
  },
270
270
 
271
271
  options: {
272
272
  popover: {
273
273
  databasic: [
274
- ['databasic', ['databasicDialog', 'databasicSize100', 'databasicSize50', 'databasicSize25']]
275
- ]
276
- }
274
+ ['databasic', ['databasicDialog', 'databasicSize100', 'databasicSize50', 'databasicSize25']],
275
+ ],
276
+ },
277
277
  },
278
278
 
279
279
  // add localization texts
@@ -283,10 +283,10 @@
283
283
  name: 'Basic Data Container',
284
284
  insert: 'insert basic data container',
285
285
  edit: 'edit basic data container',
286
- testLabel: 'test input'
287
- }
288
- }
289
- }
286
+ testLabel: 'test input',
287
+ },
288
+ },
289
+ },
290
290
 
291
291
  });
292
292
  }));