wysiwyg-rails 2.6.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -3
  3. data/app/assets/javascripts/froala_editor.min.js +3 -8
  4. data/app/assets/javascripts/froala_editor.pkgd.min.js +3 -17
  5. data/app/assets/javascripts/languages/ar.js +92 -4
  6. data/app/assets/javascripts/languages/bs.js +92 -4
  7. data/app/assets/javascripts/languages/cs.js +92 -4
  8. data/app/assets/javascripts/languages/da.js +196 -111
  9. data/app/assets/javascripts/languages/de.js +167 -79
  10. data/app/assets/javascripts/languages/el.js +327 -0
  11. data/app/assets/javascripts/languages/en_ca.js +94 -6
  12. data/app/assets/javascripts/languages/en_gb.js +92 -4
  13. data/app/assets/javascripts/languages/es.js +93 -5
  14. data/app/assets/javascripts/languages/et.js +92 -4
  15. data/app/assets/javascripts/languages/fa.js +96 -8
  16. data/app/assets/javascripts/languages/fi.js +92 -4
  17. data/app/assets/javascripts/languages/fr.js +129 -41
  18. data/app/assets/javascripts/languages/he.js +92 -4
  19. data/app/assets/javascripts/languages/hr.js +92 -4
  20. data/app/assets/javascripts/languages/hu.js +105 -17
  21. data/app/assets/javascripts/languages/id.js +92 -4
  22. data/app/assets/javascripts/languages/it.js +198 -110
  23. data/app/assets/javascripts/languages/ja.js +191 -103
  24. data/app/assets/javascripts/languages/ko.js +116 -28
  25. data/app/assets/javascripts/languages/ku.js +314 -0
  26. data/app/assets/javascripts/languages/me.js +92 -4
  27. data/app/assets/javascripts/languages/nb.js +92 -4
  28. data/app/assets/javascripts/languages/nl.js +101 -13
  29. data/app/assets/javascripts/languages/pl.js +92 -4
  30. data/app/assets/javascripts/languages/pt_br.js +165 -77
  31. data/app/assets/javascripts/languages/pt_pt.js +94 -6
  32. data/app/assets/javascripts/languages/ro.js +92 -5
  33. data/app/assets/javascripts/languages/ru.js +95 -7
  34. data/app/assets/javascripts/languages/sk.js +92 -5
  35. data/app/assets/javascripts/languages/sr.js +92 -4
  36. data/app/assets/javascripts/languages/sv.js +121 -33
  37. data/app/assets/javascripts/languages/th.js +93 -5
  38. data/app/assets/javascripts/languages/tr.js +92 -4
  39. data/app/assets/javascripts/languages/{ua.js → uk.js} +93 -5
  40. data/app/assets/javascripts/languages/vi.js +92 -4
  41. data/app/assets/javascripts/languages/zh_cn.js +259 -171
  42. data/app/assets/javascripts/languages/zh_tw.js +92 -4
  43. data/app/assets/javascripts/plugins/align.min.js +3 -3
  44. data/app/assets/javascripts/plugins/char_counter.min.js +3 -3
  45. data/app/assets/javascripts/plugins/code_beautifier.min.js +3 -4
  46. data/app/assets/javascripts/plugins/code_view.min.js +3 -3
  47. data/app/assets/javascripts/plugins/colors.min.js +3 -3
  48. data/app/assets/javascripts/plugins/draggable.min.js +3 -3
  49. data/app/assets/javascripts/plugins/emoticons.min.js +3 -3
  50. data/app/assets/javascripts/plugins/entities.min.js +3 -3
  51. data/app/assets/javascripts/plugins/file.min.js +3 -3
  52. data/app/assets/javascripts/plugins/font_family.min.js +3 -3
  53. data/app/assets/javascripts/plugins/font_size.min.js +3 -3
  54. data/app/assets/javascripts/plugins/forms.min.js +3 -3
  55. data/app/assets/javascripts/plugins/fullscreen.min.js +3 -3
  56. data/app/assets/javascripts/plugins/help.min.js +3 -3
  57. data/app/assets/javascripts/plugins/image.min.js +3 -4
  58. data/app/assets/javascripts/plugins/image_manager.min.js +3 -3
  59. data/app/assets/javascripts/plugins/inline_class.min.js +7 -0
  60. data/app/assets/javascripts/plugins/inline_style.min.js +3 -3
  61. data/app/assets/javascripts/plugins/line_breaker.min.js +3 -3
  62. data/app/assets/javascripts/plugins/line_height.min.js +7 -0
  63. data/app/assets/javascripts/plugins/link.min.js +3 -3
  64. data/app/assets/javascripts/plugins/lists.min.js +3 -3
  65. data/app/assets/javascripts/plugins/paragraph_format.min.js +3 -3
  66. data/app/assets/javascripts/plugins/paragraph_style.min.js +3 -3
  67. data/app/assets/javascripts/plugins/print.min.js +3 -3
  68. data/app/assets/javascripts/plugins/quick_insert.min.js +3 -3
  69. data/app/assets/javascripts/plugins/quote.min.js +3 -3
  70. data/app/assets/javascripts/plugins/save.min.js +3 -3
  71. data/app/assets/javascripts/plugins/special_characters.min.js +3 -3
  72. data/app/assets/javascripts/plugins/table.min.js +3 -4
  73. data/app/assets/javascripts/plugins/url.min.js +3 -3
  74. data/app/assets/javascripts/plugins/video.min.js +3 -4
  75. data/app/assets/javascripts/plugins/word_paste.min.js +3 -3
  76. data/app/assets/javascripts/third_party/embedly.min.js +7 -0
  77. data/app/assets/javascripts/third_party/font_awesome.min.js +7 -0
  78. data/app/assets/javascripts/third_party/image_aviary.min.js +7 -0
  79. data/app/assets/javascripts/third_party/image_tui.min.js +7 -0
  80. data/app/assets/javascripts/third_party/spell_checker.min.js +7 -0
  81. data/app/assets/stylesheets/froala_editor.css +159 -31
  82. data/app/assets/stylesheets/froala_editor.min.css +3 -3
  83. data/app/assets/stylesheets/froala_editor.pkgd.css +274 -82
  84. data/app/assets/stylesheets/froala_editor.pkgd.min.css +3 -3
  85. data/app/assets/stylesheets/froala_style.css +174 -26
  86. data/app/assets/stylesheets/froala_style.min.css +3 -3
  87. data/app/assets/stylesheets/plugins/char_counter.css +2 -2
  88. data/app/assets/stylesheets/plugins/char_counter.min.css +2 -2
  89. data/app/assets/stylesheets/plugins/code_view.css +2 -2
  90. data/app/assets/stylesheets/plugins/code_view.min.css +2 -2
  91. data/app/assets/stylesheets/plugins/colors.css +34 -3
  92. data/app/assets/stylesheets/plugins/colors.min.css +3 -3
  93. data/app/assets/stylesheets/plugins/draggable.css +3 -3
  94. data/app/assets/stylesheets/plugins/draggable.min.css +3 -3
  95. data/app/assets/stylesheets/plugins/emoticons.css +2 -2
  96. data/app/assets/stylesheets/plugins/emoticons.min.css +2 -2
  97. data/app/assets/stylesheets/plugins/file.css +16 -16
  98. data/app/assets/stylesheets/plugins/file.min.css +3 -3
  99. data/app/assets/stylesheets/plugins/fullscreen.css +3 -3
  100. data/app/assets/stylesheets/plugins/fullscreen.min.css +3 -3
  101. data/app/assets/stylesheets/plugins/help.css +2 -2
  102. data/app/assets/stylesheets/plugins/help.min.css +2 -2
  103. data/app/assets/stylesheets/plugins/image.css +17 -16
  104. data/app/assets/stylesheets/plugins/image.min.css +3 -3
  105. data/app/assets/stylesheets/plugins/image_manager.css +4 -2
  106. data/app/assets/stylesheets/plugins/image_manager.min.css +3 -3
  107. data/app/assets/stylesheets/plugins/line_breaker.css +2 -2
  108. data/app/assets/stylesheets/plugins/line_breaker.min.css +2 -2
  109. data/app/assets/stylesheets/plugins/quick_insert.css +4 -4
  110. data/app/assets/stylesheets/plugins/quick_insert.min.css +3 -3
  111. data/app/assets/stylesheets/plugins/special_characters.css +2 -2
  112. data/app/assets/stylesheets/plugins/special_characters.min.css +2 -2
  113. data/app/assets/stylesheets/plugins/table.css +34 -4
  114. data/app/assets/stylesheets/plugins/table.min.css +3 -3
  115. data/app/assets/stylesheets/plugins/video.css +18 -18
  116. data/app/assets/stylesheets/plugins/video.min.css +3 -3
  117. data/app/assets/stylesheets/themes/dark.css +199 -45
  118. data/app/assets/stylesheets/themes/dark.min.css +3 -3
  119. data/app/assets/stylesheets/themes/gray.css +197 -43
  120. data/app/assets/stylesheets/themes/gray.min.css +3 -3
  121. data/app/assets/stylesheets/themes/red.css +198 -44
  122. data/app/assets/stylesheets/themes/red.min.css +3 -3
  123. data/app/assets/stylesheets/themes/royal.css +210 -56
  124. data/app/assets/stylesheets/themes/royal.min.css +3 -3
  125. data/app/assets/stylesheets/third_party/embedly.css +64 -0
  126. data/app/assets/stylesheets/third_party/embedly.min.css +7 -0
  127. data/app/assets/stylesheets/third_party/font_awesome.css +50 -0
  128. data/app/assets/stylesheets/third_party/font_awesome.min.css +7 -0
  129. data/app/assets/stylesheets/third_party/image_tui.css +42 -0
  130. data/app/assets/stylesheets/third_party/image_tui.min.css +7 -0
  131. data/app/assets/stylesheets/third_party/spell_checker.css +72 -0
  132. data/app/assets/stylesheets/{plugins → third_party}/spell_checker.min.css +2 -2
  133. data/lib/wysiwyg-rails/engine.rb +0 -2
  134. data/lib/wysiwyg-rails/version.rb +1 -1
  135. metadata +20 -26
  136. data/app/assets/javascripts/plugins/image_aviary.min.js +0 -7
  137. data/app/assets/javascripts/plugins/spell_checker.min.js +0 -7
@@ -1,233 +1,321 @@
1
1
  /*!
2
- * froala_editor v2.6.0 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.9.0 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
- * Copyright 2014-2017 Froala Labs
4
+ * Copyright 2014-2018 Froala Labs
5
5
  */
6
6
 
7
+ (function (factory) {
8
+ if (typeof define === 'function' && define.amd) {
9
+ // AMD. Register as an anonymous module.
10
+ define(['jquery'], factory);
11
+ } else if (typeof module === 'object' && module.exports) {
12
+ // Node/CommonJS
13
+ module.exports = function( root, jQuery ) {
14
+ if ( jQuery === undefined ) {
15
+ // require('jQuery') returns a factory that requires window to
16
+ // build a jQuery instance, we normalize how we use modules
17
+ // that require this pattern but the window provided is a noop
18
+ // if it's defined (how jquery works)
19
+ if ( typeof window !== 'undefined' ) {
20
+ jQuery = require('jquery');
21
+ }
22
+ else {
23
+ jQuery = require('jquery')(root);
24
+ }
25
+ }
26
+ return factory(jQuery);
27
+ };
28
+ } else {
29
+ // Browser globals
30
+ factory(window.jQuery);
31
+ }
32
+ }(function ($) {
7
33
  /**
8
- * Simplified Chinese spoken in China.
9
- */
34
+ * Simplified Chinese spoken in China.
35
+ */
10
36
 
11
37
  $.FE.LANGUAGE['zh_cn'] = {
12
38
  translation: {
13
39
  // Place holder
14
- "Type something": "\u8f93\u5165\u4e00\u4e9b\u5185\u5bb9",
40
+ "Type something": "输入内容",
15
41
 
16
42
  // Basic formatting
17
- "Bold": "\u7c97\u4f53",
18
- "Italic": "\u659c\u4f53",
19
- "Underline": "\u4e0b\u5212\u7ebf",
20
- "Strikethrough": "\u5220\u9664\u7ebf",
43
+ "Bold": "粗体",
44
+ "Italic": "斜体",
45
+ "Underline": "下划线",
46
+ "Strikethrough": "删除线",
21
47
 
22
48
  // Main buttons
23
- "Insert": "\u63d2\u5165",
24
- "Delete": "\u5220\u9664",
25
- "Cancel": "\u53d6\u6d88",
26
- "OK": "\u786e\u5b9a",
27
- "Back": "\u80cc\u90e8",
28
- "Remove": "\u53bb\u6389",
29
- "More": "\u66f4\u591a",
30
- "Update": "\u66f4\u65b0",
31
- "Style": "\u98ce\u683c",
49
+ "Insert": "插入",
50
+ "Delete": "删除",
51
+ "Cancel": "取消",
52
+ "OK": "确定",
53
+ "Back": "后退",
54
+ "Remove": "删除",
55
+ "More": "更多",
56
+ "Update": "更新",
57
+ "Style": "样式",
32
58
 
33
59
  // Font
34
- "Font Family": "\u5b57\u4f53",
35
- "Font Size": "\u5b57\u53f7",
60
+ "Font Family": "字体",
61
+ "Font Size": "字号",
36
62
 
37
63
  // Colors
38
- "Colors": "\u989c\u8272",
39
- "Background": "\u80cc\u666f",
40
- "Text": "\u6587\u5b57",
64
+ "Colors": "颜色",
65
+ "Background": "背景",
66
+ "Text": "字体",
67
+ "HEX Color": "十六进制颜色",
41
68
 
42
69
  // Paragraphs
43
- "Paragraph Format": "\u683c\u5f0f",
44
- "Normal": "\u6b63\u5e38",
45
- "Code": "\u4ee3\u7801",
46
- "Heading 1": "\u6807\u98981",
47
- "Heading 2": "\u6807\u98982",
48
- "Heading 3": "\u6807\u98983",
49
- "Heading 4": "\u6807\u98984",
70
+ "Paragraph Format": "段落格式",
71
+ "Normal": "正文",
72
+ "Code": "代码",
73
+ "Heading 1": "标题1",
74
+ "Heading 2": "标题2",
75
+ "Heading 3": "标题3",
76
+ "Heading 4": "标题4",
50
77
 
51
78
  // Style
52
- "Paragraph Style": "\u6bb5\u843d\u6837\u5f0f",
53
- "Inline Style": "\u5185\u8054\u6837\u5f0f",
79
+ "Paragraph Style": "段落样式",
80
+ "Inline Style": "内联样式",
54
81
 
55
82
  // Alignment
56
- "Align": "\u5bf9\u9f50\u65b9\u5f0f",
57
- "Align Left": "\u5de6\u5bf9\u9f50",
58
- "Align Center": "\u5c45\u4e2d",
59
- "Align Right": "\u53f3\u5bf9\u9f50",
60
- "Align Justify": "\u4e24\u7aef\u5bf9\u9f50",
61
- "None": "\u65e0",
83
+ "Align": "对齐方式",
84
+ "Align Left": "左对齐",
85
+ "Align Center": "居中",
86
+ "Align Right": "右对齐",
87
+ "Align Justify": "两端对齐",
88
+ "None": "",
62
89
 
63
90
  // Lists
64
- "Ordered List": "\u7f16\u53f7\u5217\u8868",
65
- "Unordered List": "\u9879\u76ee\u7b26\u53f7",
91
+ "Ordered List": "编号",
92
+ "Unordered List": "项目符号",
66
93
 
67
94
  // Indent
68
- "Decrease Indent": "\u51cf\u5c11\u7f29\u8fdb",
69
- "Increase Indent": "\u589e\u52a0\u7f29\u8fdb",
95
+ "Decrease Indent": "减少缩进量",
96
+ "Increase Indent": "增加缩进量",
70
97
 
71
98
  // Links
72
- "Insert Link": "\u63d2\u5165\u94fe\u63a5",
73
- "Open in new tab": "\u5f00\u542f\u5728\u65b0\u6807\u7b7e\u9875",
74
- "Open Link": "\u6253\u5f00\u94fe\u63a5",
75
- "Edit Link": "\u7f16\u8f91\u94fe\u63a5",
76
- "Unlink": "\u5220\u9664\u94fe\u63a5",
77
- "Choose Link": "\u9009\u62e9\u94fe\u63a5",
99
+ "Insert Link": "插入超链接",
100
+ "Open in new tab": "在新标签页中打开",
101
+ "Open Link": "打开超链接",
102
+ "Edit Link": "编辑超链接",
103
+ "Unlink": "删除超链接",
104
+ "Choose Link": "选择超链接",
78
105
 
79
106
  // Images
80
- "Insert Image": "\u63d2\u5165\u56fe\u7247",
81
- "Upload Image": "\u4e0a\u4f20\u56fe\u7247",
82
- "By URL": "\u901a\u8fc7\u7f51\u5740",
83
- "Browse": "\u6d4f\u89c8",
84
- "Drop image": "\u56fe\u50cf\u62d6\u653e",
85
- "or click": "\u6216\u70b9\u51fb",
86
- "Manage Images": "\u7ba1\u7406\u56fe\u50cf",
87
- "Loading": "\u8f7d\u5165\u4e2d",
88
- "Deleting": "\u5220\u9664",
89
- "Tags": "\u6807\u7b7e",
90
- "Are you sure? Image will be deleted.": "\u4f60\u786e\u5b9a\u5417\uff1f\u56fe\u50cf\u5c06\u88ab\u5220\u9664\u3002",
91
- "Replace": "\u66f4\u6362",
92
- "Uploading": "\u4e0a\u4f20",
93
- "Loading image": "\u5bfc\u5165\u56fe\u50cf",
94
- "Display": "\u663e\u793a",
95
- "Inline": "\u6392\u961f",
96
- "Break Text": "\u65ad\u5f00\u6587\u672c",
97
- "Alternate Text": "\u5907\u7528\u6587\u672c",
98
- "Change Size": "\u5c3a\u5bf8\u53d8\u5316",
99
- "Width": "\u5bbd\u5ea6",
100
- "Height": "\u9ad8\u5ea6",
101
- "Something went wrong. Please try again.": "\u51fa\u4e86\u4e9b\u95ee\u9898\u3002 \u8bf7\u518d\u8bd5\u4e00\u6b21\u3002",
107
+ "Insert Image": "插入图片",
108
+ "Upload Image": "上传图片",
109
+ "By URL": "通过 URL",
110
+ "Browse": "浏览",
111
+ "Drop image": "拖入图片",
112
+ "or click": "或点击",
113
+ "Manage Images": "管理图片",
114
+ "Loading": "加载中",
115
+ "Deleting": "删除中",
116
+ "Tags": "标签",
117
+ "Are you sure? Image will be deleted.": "图片将会被删除,是否确认?",
118
+ "Replace": "替换",
119
+ "Uploading": "上传中",
120
+ "Loading image": "图片加载中",
121
+ "Display": "显示",
122
+ "Inline": "嵌入型",
123
+ "Break Text": "上下型环绕",
124
+ "Alternative Text": "替换文字",
125
+ "Change Size": "改变大小",
126
+ "Width": "宽度",
127
+ "Height": "高度",
128
+ "Something went wrong. Please try again.": "发生错误,请重试。",
129
+ "Image Caption": "图片标题",
130
+ "Advanced Edit": "高级编辑",
102
131
 
103
132
  // Video
104
- "Insert Video": "\u63d2\u5165\u89c6\u9891",
105
- "Embedded Code": "\u5d4c\u5165\u5f0f\u4ee3\u7801",
133
+ "Insert Video": "插入视频",
134
+ "Embedded Code": "嵌入代码",
135
+ "Paste in a video URL": "粘贴视频网址",
136
+ "Drop video": "拖入视频",
137
+ "Your browser does not support HTML5 video.": "您的浏览器不支持 HTML5 视频。",
138
+ "Upload Video": "上传视频",
106
139
 
107
140
  // Tables
108
- "Insert Table": "\u63d2\u5165\u8868\u683c",
109
- "Table Header": "\u8868\u5934",
110
- "Remove Table": "\u5220\u9664\u8868",
111
- "Table Style": "\u8868\u683c\u6837\u5f0f",
112
- "Horizontal Align": "\u6c34\u5e73\u5bf9\u9f50\u65b9\u5f0f",
113
- "Row": "\u884c",
114
- "Insert row above": "\u5728\u4e0a\u65b9\u63d2\u5165",
115
- "Insert row below": "\u5728\u4e0b\u65b9\u63d2\u5165",
116
- "Delete row": "\u5220\u9664\u884c",
117
- "Column": "\u5217",
118
- "Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165",
119
- "Insert column after": "\u5728\u53f3\u4fa7\u63d2\u5165",
120
- "Delete column": "\u5220\u9664\u5217",
121
- "Cell": "\u5355\u5143\u683c",
122
- "Merge cells": "\u5408\u5e76\u5355\u5143\u683c",
123
- "Horizontal split": "\u6c34\u5e73\u5206\u5272",
124
- "Vertical split": "\u5782\u76f4\u5206\u5272",
125
- "Cell Background": "\u5355\u5143\u683c\u80cc\u666f",
126
- "Vertical Align": "\u5782\u76f4\u5bf9\u9f50\u65b9\u5f0f",
127
- "Top": "\u6700\u4f73",
128
- "Middle": "\u4e2d\u95f4",
129
- "Bottom": "\u5e95\u90e8",
130
- "Align Top": "\u9876\u90e8\u5bf9\u9f50",
131
- "Align Middle": "\u4e2d\u95f4\u5bf9\u9f50",
132
- "Align Bottom": "\u5e95\u90e8\u5bf9\u9f50",
133
- "Cell Style": "\u5355\u5143\u683c\u6837\u5f0f",
141
+ "Insert Table": "插入表格",
142
+ "Table Header": "表头",
143
+ "Remove Table": "删除表格",
144
+ "Table Style": "表格样式",
145
+ "Horizontal Align": "水平对齐方式",
146
+ "Row": "",
147
+ "Insert row above": "在上方插入",
148
+ "Insert row below": "在下方插入",
149
+ "Delete row": "删除行",
150
+ "Column": "",
151
+ "Insert column before": "在左侧插入",
152
+ "Insert column after": "在右侧插入",
153
+ "Delete column": "删除列",
154
+ "Cell": "单元格",
155
+ "Merge cells": "合并单元格",
156
+ "Horizontal split": "水平分割",
157
+ "Vertical split": "垂直分割",
158
+ "Cell Background": "单元格背景",
159
+ "Vertical Align": "垂直对齐方式",
160
+ "Top": "靠上",
161
+ "Middle": "居中",
162
+ "Bottom": "靠下",
163
+ "Align Top": "靠上对齐",
164
+ "Align Middle": "居中对齐",
165
+ "Align Bottom": "靠下对齐",
166
+ "Cell Style": "单元格样式",
134
167
 
135
168
  // Files
136
- "Upload File": "\u4e0a\u4f20\u6587\u4ef6",
137
- "Drop file": "\u6587\u4ef6\u62d6\u653e",
169
+ "Upload File": "上传文件",
170
+ "Drop file": "拖入文件",
138
171
 
139
172
  // Emoticons
140
- "Emoticons": "\u8868\u60c5",
141
- "Grinning face": "\u8138\u4e0a\u7b11\u563b\u563b",
142
- "Grinning face with smiling eyes": "",
143
- "Face with tears of joy": "\u7b11\u563b\u563b\u7684\u8138\uff0c\u542b\u7b11\u7684\u773c\u775b",
144
- "Smiling face with open mouth": "\u7b11\u8138\u5f20\u5f00\u5634",
145
- "Smiling face with open mouth and smiling eyes": "\u7b11\u8138\u5f20\u5f00\u5634\u5fae\u7b11\u7684\u773c\u775b",
146
- "Smiling face with open mouth and cold sweat": "\u7b11\u8138\u5f20\u5f00\u5634\uff0c\u4e00\u8eab\u51b7\u6c57",
147
- "Smiling face with open mouth and tightly-closed eyes": "\u7b11\u8138\u5f20\u5f00\u5634\uff0c\u7d27\u7d27\u95ed\u7740\u773c\u775b",
148
- "Smiling face with halo": "\u7b11\u8138\u6655",
149
- "Smiling face with horns": "\u5fae\u7b11\u7684\u8138\u89d2",
150
- "Winking face": "\u7728\u773c\u8868\u60c5",
151
- "Smiling face with smiling eyes": "\u9762\u5e26\u5fae\u7b11\u7684\u773c\u775b",
152
- "Face savoring delicious food": "\u9762\u5bf9\u54c1\u5c1d\u7f8e\u5473\u7684\u98df\u7269",
153
- "Relieved face": "\u9762\u5bf9\u5982\u91ca\u91cd\u8d1f",
154
- "Smiling face with heart-shaped eyes": "\u5fae\u7b11\u7684\u8138\uff0c\u5fc3\u810f\u5f62\u7684\u773c\u775b",
155
- "Smiling face with sunglasses": "\u7b11\u8138\u592a\u9633\u955c",
156
- "Smirking face": "\u9762\u5bf9\u9762\u5e26\u7b11\u5bb9",
157
- "Neutral face": "\u4e2d\u6027\u9762",
158
- "Expressionless face": "\u9762\u65e0\u8868\u60c5",
159
- "Unamused face": "\u4e00\u8138\u4e0d\u5feb\u7684\u8138",
160
- "Face with cold sweat": "\u9762\u5bf9\u51b7\u6c57",
161
- "Pensive face": "\u6c89\u601d\u7684\u8138",
162
- "Confused face": "\u9762\u5bf9\u56f0\u60d1",
163
- "Confounded face": "\u8be5\u6b7b\u7684\u8138",
164
- "Kissing face": "\u9762\u5bf9\u63a5\u543b",
165
- "Face throwing a kiss": "\u9762\u5bf9\u6295\u63b7\u4e00\u4e2a\u543b",
166
- "Kissing face with smiling eyes": "\u63a5\u543b\u8138\uff0c\u542b\u7b11\u7684\u773c\u775b",
167
- "Kissing face with closed eyes": "\u63a5\u543b\u7684\u8138\u95ed\u7740\u773c\u775b",
168
- "Face with stuck out tongue": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934",
169
- "Face with stuck out tongue and winking eye": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934\u548c\u7728\u52a8\u7684\u773c\u775b",
170
- "Face with stuck out tongue and tightly-closed eyes": "\u9762\u5bf9\u4f38\u51fa\u820c\u5934\u548c\u7d27\u95ed\u7684\u773c\u775b",
171
- "Disappointed face": "\u9762\u5bf9\u5931\u671b",
172
- "Worried face": "\u9762\u5bf9\u62c5\u5fc3",
173
- "Angry face": "\u6124\u6012\u7684\u8138",
174
- "Pouting face": "\u9762\u5bf9\u5658\u5634",
175
- "Crying face": "\u54ed\u6ce3\u7684\u8138",
176
- "Persevering face": "\u600e\u5948\u8138",
177
- "Face with look of triumph": "\u9762\u5e26\u770b\u7684\u80dc\u5229",
178
- "Disappointed but relieved face": "\u5931\u671b\uff0c\u4f46\u8138\u4e0a\u91ca\u7136",
179
- "Frowning face with open mouth": "\u9762\u5bf9\u76b1\u7740\u7709\u5934\u5f20\u53e3",
180
- "Anguished face": "\u9762\u5bf9\u75db\u82e6",
181
- "Fearful face": "\u53ef\u6015\u7684\u8138",
182
- "Weary face": "\u9762\u5bf9\u538c\u5026",
183
- "Sleepy face": "\u9762\u5bf9\u56f0",
184
- "Tired face": "\u75b2\u60eb\u7684\u8138",
185
- "Grimacing face": "\u72f0\u72de\u7684\u8138",
186
- "Loudly crying face": "\u5927\u58f0\u54ed\u8138",
187
- "Face with open mouth": "\u9762\u5bf9\u5f20\u5f00\u5634",
188
- "Hushed face": "\u5b89\u9759\u7684\u8138",
189
- "Face with open mouth and cold sweat": "",
190
- "Face screaming in fear": "\u9762\u5bf9\u5f20\u5f00\u5634\uff0c\u4e00\u8eab\u51b7\u6c57",
191
- "Astonished face": "\u9762\u5bf9\u60ca\u8bb6",
192
- "Flushed face": "\u7ea2\u6251\u6251\u7684\u8138\u86cb",
193
- "Sleeping face": "\u719f\u7761\u7684\u8138",
194
- "Dizzy face": "\u9762\u5bf9\u7729",
195
- "Face without mouth": "\u8138\u4e0a\u6ca1\u6709\u5634",
196
- "Face with medical mask": "\u9762\u5bf9\u533b\u7597\u53e3\u7f69",
173
+ "Emoticons": "表情符号",
174
+ "Grinning face": "露齿笑脸",
175
+ "Grinning face with smiling eyes": "露齿笑到眯起眼",
176
+ "Face with tears of joy": "笑哭",
177
+ "Smiling face with open mouth": "张嘴微笑",
178
+ "Smiling face with open mouth and smiling eyes": "眯眼张嘴微笑",
179
+ "Smiling face with open mouth and cold sweat": "带冷汗的张嘴微笑",
180
+ "Smiling face with open mouth and tightly-closed eyes": "紧闭双眼张嘴微笑",
181
+ "Smiling face with halo": "带光环微笑",
182
+ "Smiling face with horns": "带牛角的微笑",
183
+ "Winking face": "眨眼",
184
+ "Smiling face with smiling eyes": "眯眼微笑",
185
+ "Face savoring delicious food": "",
186
+ "Relieved face": "如释重负",
187
+ "Smiling face with heart-shaped eyes": "桃心眼微笑",
188
+ "Smiling face with sunglasses": "戴太阳镜微笑",
189
+ "Smirking face": "得意地笑",
190
+ "Neutral face": "中性脸",
191
+ "Expressionless face": "面无表情",
192
+ "Unamused face": "不高兴",
193
+ "Face with cold sweat": "冷汗",
194
+ "Pensive face": "沉思",
195
+ "Confused face": "迷惑",
196
+ "Confounded face": "困惑",
197
+ "Kissing face": "嘴巴嘟嘟",
198
+ "Face throwing a kiss": "飞吻",
199
+ "Kissing face with smiling eyes": "眯眼接吻",
200
+ "Kissing face with closed eyes": "闭眼接吻",
201
+ "Face with stuck out tongue": "吐舌",
202
+ "Face with stuck out tongue and winking eye": "眨眼吐舌",
203
+ "Face with stuck out tongue and tightly-closed eyes": "眯眼吐舌",
204
+ "Disappointed face": "失望",
205
+ "Worried face": "担心",
206
+ "Angry face": "生气",
207
+ "Pouting face": "撅嘴",
208
+ "Crying face": "大哭",
209
+ "Persevering face": "坚强",
210
+ "Face with look of triumph": "扬眉吐气",
211
+ "Disappointed but relieved face": "失望",
212
+ "Frowning face with open mouth": "皱眉",
213
+ "Anguished face": "痛苦",
214
+ "Fearful face": "害怕",
215
+ "Weary face": "疲惫",
216
+ "Sleepy face": "困了",
217
+ "Tired face": "累了",
218
+ "Grimacing face": "扭曲脸",
219
+ "Loudly crying face": "大哭",
220
+ "Face with open mouth": "张开嘴",
221
+ "Hushed face": "安静",
222
+ "Face with open mouth and cold sweat": "冷汗",
223
+ "Face screaming in fear": "害怕尖叫",
224
+ "Astonished face": "惊讶",
225
+ "Flushed face": "脸红",
226
+ "Sleeping face": "熟睡",
227
+ "Dizzy face": "眩晕",
228
+ "Face without mouth": "没有嘴的脸",
229
+ "Face with medical mask": "口罩脸",
197
230
 
198
231
  // Line breaker
199
- "Break": "\u7834",
232
+ "Break": "换行",
200
233
 
201
234
  // Math
202
- "Subscript": "\u4e0b\u6807",
203
- "Superscript": "\u4e0a\u6807",
235
+ "Subscript": "下标",
236
+ "Superscript": "上标",
204
237
 
205
238
  // Full screen
206
- "Fullscreen": "\u5168\u5c4f",
239
+ "Fullscreen": "全屏",
207
240
 
208
241
  // Horizontal line
209
- "Insert Horizontal Line": "\u63d2\u5165\u6c34\u5e73\u7ebf",
242
+ "Insert Horizontal Line": "插入水平线",
210
243
 
211
244
  // Clear formatting
212
- "Clear Formatting": "\u683c\u5f0f\u5316\u5220\u9664",
245
+ "Clear Formatting": "清除格式",
246
+
247
+ // Save
248
+ "Save": "保存",
213
249
 
214
250
  // Undo, redo
215
- "Undo": "\u64a4\u6d88",
216
- "Redo": "\u91cd\u590d",
251
+ "Undo": "撤消",
252
+ "Redo": "恢复",
217
253
 
218
254
  // Select all
219
- "Select All": "\u5168\u9009",
255
+ "Select All": "全选",
220
256
 
221
257
  // Code view
222
- "Code View": "\u4ee3\u7801\u89c6\u56fe",
258
+ "Code View": "代码视图",
223
259
 
224
260
  // Quote
225
- "Quote": "\u5f15\u7528",
226
- "Increase": "\u589e\u52a0\u5f15\u7528",
227
- "Decrease": "\u5220\u9664\u5f15\u7528",
261
+ "Quote": "引用",
262
+ "Increase": "增加引用级别",
263
+ "Decrease": "减少引用级别",
228
264
 
229
265
  // Quick Insert
230
- "Quick Insert": "\u5feb\u63d2"
266
+ "Quick Insert": "快速插入",
267
+
268
+ // Spcial Characters
269
+ "Special Characters": "特殊字符",
270
+ "Latin": "拉丁字母",
271
+ "Greek": "希腊字母",
272
+ "Cyrillic": "西里尔字母",
273
+ "Punctuation": "标点",
274
+ "Currency": "货币",
275
+ "Arrows": "箭头",
276
+ "Math": "数学",
277
+ "Misc": "杂项",
278
+
279
+ // Print.
280
+ "Print": "打印",
281
+
282
+ // Spell Checker.
283
+ "Spell Checker": "拼写检查器",
284
+
285
+ // Help
286
+ "Help": "帮助",
287
+ "Shortcuts": "快捷键",
288
+ "Inline Editor": "内联编辑器",
289
+ "Show the editor": "显示编辑器",
290
+ "Common actions": "常用操作",
291
+ "Copy": "复制",
292
+ "Cut": "剪切",
293
+ "Paste": "粘贴",
294
+ "Basic Formatting": "基本格式",
295
+ "Increase quote level": "增加引用级别",
296
+ "Decrease quote level": "减少引用级别",
297
+ "Image / Video": "图像/视频",
298
+ "Resize larger": "放大",
299
+ "Resize smaller": "缩小",
300
+ "Table": "表格",
301
+ "Select table cell": "选择单元格",
302
+ "Extend selection one cell": "增加选中的单元格",
303
+ "Extend selection one row": "增加选中的行",
304
+ "Navigation": "导航",
305
+ "Focus popup / toolbar": "焦点弹出/工具栏",
306
+ "Return focus to previous position": "将焦点返回到上一个位置",
307
+
308
+ // Embed.ly
309
+ "Embed URL": "嵌入网址",
310
+ "Paste in a URL to embed": "粘贴要嵌入的网址",
311
+
312
+ // Word Paste.
313
+ "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "粘贴的内容来自微软 Word 文档。你想保留还是清除格式?",
314
+ "Keep": "保留",
315
+ "Clean": "清除",
316
+ "Word Paste Detected": "检测到粘贴自 Word 的内容"
231
317
  },
232
318
  direction: "ltr"
233
319
  };
320
+
321
+ }));
@@ -1,9 +1,35 @@
1
1
  /*!
2
- * froala_editor v2.6.0 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.9.0 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
- * Copyright 2014-2017 Froala Labs
4
+ * Copyright 2014-2018 Froala Labs
5
5
  */
6
6
 
7
+ (function (factory) {
8
+ if (typeof define === 'function' && define.amd) {
9
+ // AMD. Register as an anonymous module.
10
+ define(['jquery'], factory);
11
+ } else if (typeof module === 'object' && module.exports) {
12
+ // Node/CommonJS
13
+ module.exports = function( root, jQuery ) {
14
+ if ( jQuery === undefined ) {
15
+ // require('jQuery') returns a factory that requires window to
16
+ // build a jQuery instance, we normalize how we use modules
17
+ // that require this pattern but the window provided is a noop
18
+ // if it's defined (how jquery works)
19
+ if ( typeof window !== 'undefined' ) {
20
+ jQuery = require('jquery');
21
+ }
22
+ else {
23
+ jQuery = require('jquery')(root);
24
+ }
25
+ }
26
+ return factory(jQuery);
27
+ };
28
+ } else {
29
+ // Browser globals
30
+ factory(window.jQuery);
31
+ }
32
+ }(function ($) {
7
33
  /**
8
34
  * Traditional Chinese spoken in Taiwan.
9
35
  */
@@ -38,6 +64,7 @@ $.FE.LANGUAGE['zh_tw'] = {
38
64
  "Colors": "\u984f\u8272",
39
65
  "Background": "\u80cc\u666f",
40
66
  "Text": "\u6587\u5b57",
67
+ "HEX Color": "十六進制顏色",
41
68
 
42
69
  // Paragraphs
43
70
  "Paragraph Format": "\u683c\u5f0f",
@@ -94,15 +121,21 @@ $.FE.LANGUAGE['zh_tw'] = {
94
121
  "Display": "\u986f\u793a",
95
122
  "Inline": "\u5d4c\u5165",
96
123
  "Break Text": "\u8207\u6587\u5b57\u5206\u96e2",
97
- "Alternate Text": "\u6587\u5b57\u74b0\u7e5e",
124
+ "Alternative Text": "\u6587\u5b57\u74b0\u7e5e",
98
125
  "Change Size": "\u8abf\u6574\u5927\u5c0f",
99
126
  "Width": "\u5bec\u5ea6",
100
127
  "Height": "\u9ad8\u5ea6",
101
128
  "Something went wrong. Please try again.": "\u932f\u8aa4\uff0c\u8acb\u518d\u8a66\u4e00\u6b21\u3002",
129
+ "Image Caption": "圖片說明",
130
+ "Advanced Edit": "高級編輯",
102
131
 
103
132
  // Video
104
133
  "Insert Video": "\u63d2\u5165\u5f71\u7247",
105
134
  "Embedded Code": "\u5d4c\u5165\u7a0b\u5f0f\u78bc",
135
+ "Paste in a video URL": "粘貼在視頻網址",
136
+ "Drop video": "放下視頻",
137
+ "Your browser does not support HTML5 video.": "您的瀏覽器不支持html5視頻。",
138
+ "Upload Video": "上傳視頻",
106
139
 
107
140
  // Tables
108
141
  "Insert Table": "\u63d2\u5165\u8868\u683c",
@@ -211,6 +244,9 @@ $.FE.LANGUAGE['zh_tw'] = {
211
244
  // Clear formatting
212
245
  "Clear Formatting": "\u6e05\u9664\u683c\u5f0f",
213
246
 
247
+ // Save
248
+ "Save": "保存",
249
+
214
250
  // Undo, redo
215
251
  "Undo": "\u5fa9\u539f",
216
252
  "Redo": "\u53d6\u6d88\u5fa9\u539f",
@@ -227,7 +263,59 @@ $.FE.LANGUAGE['zh_tw'] = {
227
263
  "Decrease": "\u53bb\u9664\u7e2e\u6392",
228
264
 
229
265
  // Quick Insert
230
- "Quick Insert": "\u5feb\u63d2"
266
+ "Quick Insert": "\u5feb\u63d2",
267
+
268
+ // Spcial Characters
269
+ "Special Characters": "特殊字符",
270
+ "Latin": "拉丁",
271
+ "Greek": "希臘語",
272
+ "Cyrillic": "西里爾",
273
+ "Punctuation": "標點",
274
+ "Currency": "貨幣",
275
+ "Arrows": "箭頭",
276
+ "Math": "數學",
277
+ "Misc": "雜項",
278
+
279
+ // Print.
280
+ "Print": "打印",
281
+
282
+ // Spell Checker.
283
+ "Spell Checker": "拼寫檢查器",
284
+
285
+ // Help
286
+ "Help": "幫幫我",
287
+ "Shortcuts": "快捷鍵",
288
+ "Inline Editor": "內聯編輯器",
289
+ "Show the editor": "顯示編輯",
290
+ "Common actions": "共同行動",
291
+ "Copy": "複製",
292
+ "Cut": "切",
293
+ "Paste": "糊",
294
+ "Basic Formatting": "基本格式",
295
+ "Increase quote level": "提高報價水平",
296
+ "Decrease quote level": "降低報價水平",
297
+ "Image / Video": "圖像/視頻",
298
+ "Resize larger": "調整大小更大",
299
+ "Resize smaller": "調整大小更小",
300
+ "Table": "表",
301
+ "Select table cell": "選擇表單元格",
302
+ "Extend selection one cell": "擴展選擇一個單元格",
303
+ "Extend selection one row": "擴展選擇一行",
304
+ "Navigation": "導航",
305
+ "Focus popup / toolbar": "焦點彈出/工具欄",
306
+ "Return focus to previous position": "將焦點返回到上一個位置",
307
+
308
+ // Embed.ly
309
+ "Embed URL": "嵌入網址",
310
+ "Paste in a URL to embed": "粘貼在一個網址中嵌入",
311
+
312
+ // Word Paste.
313
+ "The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?": "粘貼的內容來自微軟Word文檔。你想保留格式還是清理它?",
314
+ "Keep": "保持",
315
+ "Clean": "清潔",
316
+ "Word Paste Detected": "檢測到字貼"
231
317
  },
232
318
  direction: "ltr"
233
319
  };
320
+
321
+ }));