suneditor 2.46.2 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/.eslintignore +7 -0
  2. package/.eslintrc.json +64 -0
  3. package/CONTRIBUTING.md +36 -0
  4. package/LICENSE.txt +1 -1
  5. package/README.md +174 -805
  6. package/dist/suneditor.min.css +1 -0
  7. package/dist/suneditor.min.js +1 -2
  8. package/package.json +96 -69
  9. package/src/assets/icons/_default.js +194 -0
  10. package/src/assets/suneditor-content.css +646 -0
  11. package/src/assets/suneditor.css +3378 -0
  12. package/src/core/base/eventHandlers/handler_toolbar.js +114 -0
  13. package/src/core/base/eventHandlers/handler_ww_clipboard.js +31 -0
  14. package/src/core/base/eventHandlers/handler_ww_dragDrop.js +69 -0
  15. package/src/core/base/eventHandlers/handler_ww_key_input.js +975 -0
  16. package/src/core/base/eventHandlers/handler_ww_mouse.js +118 -0
  17. package/src/core/base/eventManager.js +1115 -0
  18. package/src/core/base/events.js +320 -0
  19. package/src/core/base/history.js +301 -0
  20. package/src/core/class/char.js +146 -0
  21. package/src/core/class/component.js +627 -0
  22. package/src/core/class/format.js +3255 -0
  23. package/src/core/class/html.js +1621 -0
  24. package/src/core/class/menu.js +260 -0
  25. package/src/core/class/nodeTransform.js +379 -0
  26. package/src/core/class/notice.js +42 -0
  27. package/src/core/class/offset.js +578 -0
  28. package/src/core/class/selection.js +508 -0
  29. package/src/core/class/shortcuts.js +38 -0
  30. package/src/core/class/toolbar.js +440 -0
  31. package/src/core/class/viewer.js +646 -0
  32. package/src/core/editor.js +1593 -0
  33. package/src/core/section/actives.js +107 -0
  34. package/src/core/section/constructor.js +1237 -0
  35. package/src/core/section/context.js +97 -0
  36. package/src/editorInjector/_classes.js +22 -0
  37. package/src/editorInjector/_core.js +28 -0
  38. package/src/editorInjector/index.js +13 -0
  39. package/src/helper/converter.js +313 -0
  40. package/src/helper/domUtils.js +1177 -0
  41. package/src/helper/env.js +250 -0
  42. package/src/helper/index.js +19 -0
  43. package/src/helper/numbers.js +68 -0
  44. package/src/helper/unicode.js +43 -0
  45. package/src/langs/ckb.js +161 -0
  46. package/src/langs/cs.js +161 -0
  47. package/src/langs/da.js +161 -0
  48. package/src/langs/de.js +162 -0
  49. package/src/langs/en.js +199 -0
  50. package/src/langs/es.js +162 -0
  51. package/src/langs/fa.js +159 -0
  52. package/src/langs/fr.js +161 -0
  53. package/src/langs/he.js +162 -0
  54. package/src/{lang → langs}/index.js +0 -2
  55. package/src/langs/it.js +162 -0
  56. package/src/langs/ja.js +162 -0
  57. package/src/langs/ko.js +162 -0
  58. package/src/langs/lv.js +162 -0
  59. package/src/langs/nl.js +162 -0
  60. package/src/langs/pl.js +162 -0
  61. package/src/langs/pt_br.js +162 -0
  62. package/src/langs/ro.js +162 -0
  63. package/src/langs/ru.js +162 -0
  64. package/src/langs/se.js +162 -0
  65. package/src/langs/tr.js +159 -0
  66. package/src/langs/ua.js +162 -0
  67. package/src/langs/ur.js +162 -0
  68. package/src/langs/zh_cn.js +162 -0
  69. package/src/modules/ApiManager.js +168 -0
  70. package/src/modules/ColorPicker.js +302 -0
  71. package/src/modules/Controller.js +315 -0
  72. package/src/modules/Figure.js +1160 -0
  73. package/src/modules/FileBrowser.js +271 -0
  74. package/src/modules/FileManager.js +290 -0
  75. package/src/modules/HueSlider.js +513 -0
  76. package/src/modules/Modal.js +177 -0
  77. package/src/modules/ModalAnchorEditor.js +494 -0
  78. package/src/modules/SelectMenu.js +447 -0
  79. package/src/modules/_DragHandle.js +16 -0
  80. package/src/modules/index.js +14 -0
  81. package/src/plugins/command/blockquote.js +47 -47
  82. package/src/plugins/command/exportPdf.js +168 -0
  83. package/src/plugins/command/fileUpload.js +389 -0
  84. package/src/plugins/command/list_bulleted.js +112 -0
  85. package/src/plugins/command/list_numbered.js +115 -0
  86. package/src/plugins/dropdown/align.js +143 -0
  87. package/src/plugins/dropdown/backgroundColor.js +73 -0
  88. package/src/plugins/dropdown/font.js +113 -0
  89. package/src/plugins/dropdown/fontColor.js +73 -0
  90. package/src/plugins/dropdown/formatBlock.js +141 -0
  91. package/src/plugins/dropdown/hr.js +111 -0
  92. package/src/plugins/dropdown/layout.js +72 -0
  93. package/src/plugins/dropdown/lineHeight.js +114 -0
  94. package/src/plugins/dropdown/list.js +107 -0
  95. package/src/plugins/dropdown/paragraphStyle.js +117 -0
  96. package/src/plugins/dropdown/table.js +2810 -0
  97. package/src/plugins/dropdown/template.js +71 -0
  98. package/src/plugins/dropdown/textStyle.js +137 -0
  99. package/src/plugins/field/mention.js +172 -0
  100. package/src/plugins/fileBrowser/imageGallery.js +76 -59
  101. package/src/plugins/index.js +86 -24
  102. package/src/plugins/input/fontSize.js +357 -0
  103. package/src/plugins/modal/audio.js +510 -0
  104. package/src/plugins/modal/image.js +1062 -0
  105. package/src/plugins/modal/link.js +211 -0
  106. package/src/plugins/modal/math.js +347 -0
  107. package/src/plugins/modal/video.js +870 -0
  108. package/src/suneditor.js +62 -67
  109. package/src/themes/test.css +61 -0
  110. package/typings/CommandPlugin.d.ts +8 -0
  111. package/typings/DialogPlugin.d.ts +20 -0
  112. package/typings/FileBrowserPlugin.d.ts +30 -0
  113. package/typings/Lang.d.ts +124 -0
  114. package/typings/Module.d.ts +15 -0
  115. package/typings/Plugin.d.ts +42 -0
  116. package/typings/SubmenuPlugin.d.ts +8 -0
  117. package/typings/_classes.d.ts +17 -0
  118. package/typings/_colorPicker.d.ts +60 -0
  119. package/typings/_core.d.ts +55 -0
  120. package/typings/align.d.ts +5 -0
  121. package/{src/plugins/dialog → typings}/audio.d.ts +1 -1
  122. package/typings/backgroundColor.d.ts +5 -0
  123. package/{src/plugins/command → typings}/blockquote.d.ts +1 -1
  124. package/typings/char.d.ts +39 -0
  125. package/typings/component.d.ts +38 -0
  126. package/typings/context.d.ts +39 -0
  127. package/typings/converter.d.ts +33 -0
  128. package/typings/dialog.d.ts +28 -0
  129. package/typings/domUtils.d.ts +361 -0
  130. package/typings/editor.d.ts +7 -0
  131. package/typings/editor.ts +542 -0
  132. package/typings/env.d.ts +70 -0
  133. package/typings/eventManager.d.ts +37 -0
  134. package/typings/events.d.ts +262 -0
  135. package/typings/fileBrowser.d.ts +42 -0
  136. package/typings/fileManager.d.ts +67 -0
  137. package/typings/font.d.ts +5 -0
  138. package/typings/fontColor.d.ts +5 -0
  139. package/typings/fontSize.d.ts +5 -0
  140. package/typings/format.d.ts +191 -0
  141. package/typings/formatBlock.d.ts +5 -0
  142. package/typings/history.d.ts +48 -0
  143. package/typings/horizontalRule.d.ts +5 -0
  144. package/{src/plugins/dialog → typings}/image.d.ts +1 -1
  145. package/{src/plugins/fileBrowser → typings}/imageGallery.d.ts +1 -1
  146. package/typings/index.d.ts +21 -0
  147. package/{src/plugins/modules/index.d.ts → typings/index.modules.d.ts} +3 -3
  148. package/typings/index.plugins.d.ts +58 -0
  149. package/typings/lineHeight.d.ts +5 -0
  150. package/{src/plugins/dialog → typings}/link.d.ts +1 -1
  151. package/typings/list.d.ts +5 -0
  152. package/{src/plugins/dialog → typings}/math.d.ts +1 -1
  153. package/typings/mediaContainer.d.ts +25 -0
  154. package/typings/node.d.ts +57 -0
  155. package/typings/notice.d.ts +16 -0
  156. package/typings/numbers.d.ts +29 -0
  157. package/typings/offset.d.ts +24 -0
  158. package/typings/options.d.ts +589 -0
  159. package/typings/paragraphStyle.d.ts +5 -0
  160. package/typings/resizing.d.ts +141 -0
  161. package/typings/selection.d.ts +94 -0
  162. package/typings/shortcuts.d.ts +13 -0
  163. package/typings/suneditor.d.ts +9 -0
  164. package/typings/table.d.ts +5 -0
  165. package/typings/template.d.ts +5 -0
  166. package/typings/textStyle.d.ts +5 -0
  167. package/typings/toolbar.d.ts +32 -0
  168. package/typings/unicode.d.ts +25 -0
  169. package/{src/plugins/dialog → typings}/video.d.ts +1 -1
  170. package/dist/css/suneditor.min.css +0 -1
  171. package/src/assets/css/suneditor-contents.css +0 -562
  172. package/src/assets/css/suneditor.css +0 -566
  173. package/src/assets/defaultIcons.js +0 -103
  174. package/src/lang/Lang.d.ts +0 -144
  175. package/src/lang/ckb.d.ts +0 -5
  176. package/src/lang/ckb.js +0 -188
  177. package/src/lang/cs.d.ts +0 -5
  178. package/src/lang/cs.js +0 -188
  179. package/src/lang/da.d.ts +0 -5
  180. package/src/lang/da.js +0 -191
  181. package/src/lang/de.d.ts +0 -5
  182. package/src/lang/de.js +0 -188
  183. package/src/lang/en.d.ts +0 -5
  184. package/src/lang/en.js +0 -188
  185. package/src/lang/es.d.ts +0 -5
  186. package/src/lang/es.js +0 -188
  187. package/src/lang/fa.d.ts +0 -5
  188. package/src/lang/fa.js +0 -188
  189. package/src/lang/fr.d.ts +0 -5
  190. package/src/lang/fr.js +0 -188
  191. package/src/lang/he.d.ts +0 -5
  192. package/src/lang/he.js +0 -188
  193. package/src/lang/index.d.ts +0 -23
  194. package/src/lang/it.d.ts +0 -5
  195. package/src/lang/it.js +0 -188
  196. package/src/lang/ja.d.ts +0 -5
  197. package/src/lang/ja.js +0 -188
  198. package/src/lang/ko.d.ts +0 -5
  199. package/src/lang/ko.js +0 -188
  200. package/src/lang/lv.d.ts +0 -5
  201. package/src/lang/lv.js +0 -188
  202. package/src/lang/nl.d.ts +0 -5
  203. package/src/lang/nl.js +0 -188
  204. package/src/lang/pl.d.ts +0 -5
  205. package/src/lang/pl.js +0 -188
  206. package/src/lang/pt_br.d.ts +0 -5
  207. package/src/lang/pt_br.js +0 -189
  208. package/src/lang/ro.d.ts +0 -5
  209. package/src/lang/ro.js +0 -188
  210. package/src/lang/ru.d.ts +0 -5
  211. package/src/lang/ru.js +0 -188
  212. package/src/lang/se.d.ts +0 -5
  213. package/src/lang/se.js +0 -191
  214. package/src/lang/tr.d.ts +0 -5
  215. package/src/lang/tr.js +0 -191
  216. package/src/lang/ua.d.ts +0 -5
  217. package/src/lang/ua.js +0 -188
  218. package/src/lang/ur.d.ts +0 -5
  219. package/src/lang/ur.js +0 -188
  220. package/src/lang/zh_cn.d.ts +0 -5
  221. package/src/lang/zh_cn.js +0 -187
  222. package/src/lib/constructor.js +0 -954
  223. package/src/lib/context.d.ts +0 -42
  224. package/src/lib/context.js +0 -71
  225. package/src/lib/core.d.ts +0 -1135
  226. package/src/lib/core.js +0 -9395
  227. package/src/lib/history.d.ts +0 -48
  228. package/src/lib/history.js +0 -219
  229. package/src/lib/util.d.ts +0 -678
  230. package/src/lib/util.js +0 -2131
  231. package/src/options.d.ts +0 -608
  232. package/src/plugins/CommandPlugin.d.ts +0 -8
  233. package/src/plugins/DialogPlugin.d.ts +0 -20
  234. package/src/plugins/FileBrowserPlugin.d.ts +0 -30
  235. package/src/plugins/Module.d.ts +0 -15
  236. package/src/plugins/Plugin.d.ts +0 -42
  237. package/src/plugins/SubmenuPlugin.d.ts +0 -8
  238. package/src/plugins/dialog/audio.js +0 -559
  239. package/src/plugins/dialog/image.js +0 -1126
  240. package/src/plugins/dialog/link.js +0 -223
  241. package/src/plugins/dialog/math.js +0 -295
  242. package/src/plugins/dialog/mention.js +0 -242
  243. package/src/plugins/dialog/video.js +0 -979
  244. package/src/plugins/index.d.ts +0 -79
  245. package/src/plugins/modules/_anchor.js +0 -461
  246. package/src/plugins/modules/_colorPicker.d.ts +0 -60
  247. package/src/plugins/modules/_colorPicker.js +0 -201
  248. package/src/plugins/modules/_notice.d.ts +0 -21
  249. package/src/plugins/modules/_notice.js +0 -72
  250. package/src/plugins/modules/_selectMenu.js +0 -119
  251. package/src/plugins/modules/component.d.ts +0 -25
  252. package/src/plugins/modules/component.js +0 -81
  253. package/src/plugins/modules/dialog.d.ts +0 -28
  254. package/src/plugins/modules/dialog.js +0 -175
  255. package/src/plugins/modules/fileBrowser.d.ts +0 -42
  256. package/src/plugins/modules/fileBrowser.js +0 -374
  257. package/src/plugins/modules/fileManager.d.ts +0 -67
  258. package/src/plugins/modules/fileManager.js +0 -326
  259. package/src/plugins/modules/index.js +0 -9
  260. package/src/plugins/modules/resizing.d.ts +0 -154
  261. package/src/plugins/modules/resizing.js +0 -903
  262. package/src/plugins/submenu/align.d.ts +0 -5
  263. package/src/plugins/submenu/align.js +0 -160
  264. package/src/plugins/submenu/font.d.ts +0 -5
  265. package/src/plugins/submenu/font.js +0 -123
  266. package/src/plugins/submenu/fontColor.d.ts +0 -5
  267. package/src/plugins/submenu/fontColor.js +0 -101
  268. package/src/plugins/submenu/fontSize.d.ts +0 -5
  269. package/src/plugins/submenu/fontSize.js +0 -112
  270. package/src/plugins/submenu/formatBlock.d.ts +0 -5
  271. package/src/plugins/submenu/formatBlock.js +0 -273
  272. package/src/plugins/submenu/hiliteColor.d.ts +0 -5
  273. package/src/plugins/submenu/hiliteColor.js +0 -102
  274. package/src/plugins/submenu/horizontalRule.d.ts +0 -5
  275. package/src/plugins/submenu/horizontalRule.js +0 -98
  276. package/src/plugins/submenu/lineHeight.d.ts +0 -5
  277. package/src/plugins/submenu/lineHeight.js +0 -104
  278. package/src/plugins/submenu/list.d.ts +0 -5
  279. package/src/plugins/submenu/list.js +0 -456
  280. package/src/plugins/submenu/paragraphStyle.d.ts +0 -5
  281. package/src/plugins/submenu/paragraphStyle.js +0 -135
  282. package/src/plugins/submenu/table.d.ts +0 -5
  283. package/src/plugins/submenu/table.js +0 -1431
  284. package/src/plugins/submenu/template.d.ts +0 -5
  285. package/src/plugins/submenu/template.js +0 -72
  286. package/src/plugins/submenu/textStyle.d.ts +0 -5
  287. package/src/plugins/submenu/textStyle.js +0 -167
  288. package/src/suneditor.d.ts +0 -9
  289. package/src/suneditor_build.js +0 -18
  290. /package/{src/plugins/dialog → typings}/mention.d.ts +0 -0
@@ -0,0 +1,159 @@
1
+ (function (global, factory) {
2
+ if (typeof module === 'object' && typeof module.exports === 'object') {
3
+ module.exports = global.document
4
+ ? factory(global, true)
5
+ : function (w) {
6
+ if (!w.document) {
7
+ throw new Error('SUNEDITOR_LANG a window with a document');
8
+ }
9
+ return factory(w);
10
+ };
11
+ } else {
12
+ factory(global);
13
+ }
14
+ })(typeof window !== 'undefined' ? window : this, function (window, noGlobal) {
15
+ const lang = {
16
+ code: 'fa',
17
+ align: 'چیدمان',
18
+ alignCenter: 'وسط‌چین',
19
+ alignJustify: 'همتراز از هر دو سمت',
20
+ alignLeft: 'چپ‌چین',
21
+ alignRight: 'راست‌چین',
22
+ audio: 'درج صوت',
23
+ audio_modal_file: 'انتخاب فایل',
24
+ audio_modal_title: 'درج صوت',
25
+ audio_modal_url: 'آدرس Url',
26
+ autoSize: 'اندازه‌ی خودکار',
27
+ backgroundColor: 'رنگ پس‌زمینه',
28
+ basic: 'چیدمان پیش فرض',
29
+ bold: 'پررنگ کردن',
30
+ bulletedList: 'لیست گلوله‌ای',
31
+ caption: 'توضیح',
32
+ center: 'وسط',
33
+ close: 'بستن',
34
+ codeView: 'مشاهده‌ی کُد HTML',
35
+ default: 'پیش فرض',
36
+ deleteColumn: 'حذف ستون',
37
+ deleteRow: 'حذف سطر',
38
+ dir_ltr: 'چپ به راست',
39
+ dir_rtl: 'راست به چپ',
40
+ edit: 'ویرایش',
41
+ fixedColumnWidth: 'اندازه ستون ثابت',
42
+ font: 'فونت',
43
+ fontColor: 'رنگ پیش زمینه',
44
+ fontSize: 'اندازه‌ی فونت',
45
+ formats: 'قالب‌ها',
46
+ fullScreen: 'تمام صفحه',
47
+ height: 'ارتفاع',
48
+ horizontalLine: 'درج خط افقی',
49
+ horizontalSplit: 'تقسیم در جهت افقی',
50
+ hr_solid: 'تو پر',
51
+ hr_dotted: 'نقطه‌چین',
52
+ hr_dashed: 'خط تیره',
53
+ image: 'درج تصویر',
54
+ imageGallery: 'گالری تصاویر',
55
+ image_modal_altText: 'متن جایگزین',
56
+ image_modal_file: 'انتخاب فایل',
57
+ image_modal_title: 'درج تصویر',
58
+ image_modal_url: 'آدرس Url',
59
+ indent: 'جلو بردن',
60
+ insertColumnAfter: 'درج یک ستون در جلو',
61
+ insertColumnBefore: 'درج یک ستون به عقب',
62
+ insertRowAbove: 'درج سطر در بالا',
63
+ insertRowBelow: 'درج سطر در پایین',
64
+ italic: 'کج کردن',
65
+ left: 'چپ',
66
+ lineHeight: 'ارتفاع خط',
67
+ link: 'درج لینک',
68
+ link_modal_bookmark: 'نشان',
69
+ link_modal_downloadLinkCheck: 'لینک دانلود',
70
+ link_modal_newWindowCheck: 'در پنجره‌ی جدیدی باز شود',
71
+ link_modal_text: 'عنوان لینک',
72
+ link_modal_title: 'درج لینک',
73
+ link_modal_url: 'آدرس لینک',
74
+ list: 'لیست',
75
+ math: 'درج فرمول ریاضی',
76
+ math_modal_fontSizeLabel: 'اندازه‌ی فونت',
77
+ math_modal_inputLabel: 'تعریف فرمول',
78
+ math_modal_previewLabel: 'پیش نمایش',
79
+ math_modal_title: 'فرمول ریاضی',
80
+ maxSize: 'حداکثر اندازه',
81
+ mention: 'ذکر کردن',
82
+ menu_bordered: 'لبه‌دار',
83
+ menu_code: 'کُد',
84
+ menu_neon: 'نئونی',
85
+ menu_shadow: 'سایه',
86
+ menu_spaced: 'فضادار',
87
+ menu_translucent: 'نیمه شفاف',
88
+ mergeCells: 'ادغام خانه‌ها',
89
+ minSize: 'حداقل اندازه',
90
+ mirrorHorizontal: 'بر عکس کردن در جهت افقی',
91
+ mirrorVertical: 'بر عکس کردن در جهت عمودی',
92
+ numberedList: 'لیست شمارشی',
93
+ outdent: 'عقب بردن',
94
+ paragraphStyle: 'استایل پاراگراف',
95
+ preview: 'پیش نمایش',
96
+ print: 'چاپ',
97
+ proportion: 'محدودیت اندازه',
98
+ ratio: 'نسبت',
99
+ redo: 'تکرار تغییر',
100
+ remove: 'حذف',
101
+ removeFormat: 'حذف قالب',
102
+ resize100: 'اندازه‌ی 100%',
103
+ resize25: 'اندازه‌ی 25%',
104
+ resize50: 'اندازه‌ی 50%',
105
+ resize75: 'اندازه‌ی 75%',
106
+ revert: 'برگرداندن تغییرات',
107
+ right: 'راست',
108
+ rotateLeft: 'دوران به چپ',
109
+ rotateRight: 'دوران به راست',
110
+ save: 'ذخیره',
111
+ search: 'جستجو',
112
+ showBlocks: 'نمایش بلاک‌بندی',
113
+ size: 'اندازه',
114
+ splitCells: 'تقسیم خانه به چند خانه',
115
+ strike: 'خط میان‌دار کردن',
116
+ submitButton: 'درج',
117
+ subscript: 'نوشتن به صورت زیر متن',
118
+ superscript: 'نوشتن به صورت بالای متن',
119
+ table: 'درج جدول',
120
+ tableHeader: 'هدر جدول',
121
+ tags: 'تگ‌ها',
122
+ tag_blockquote: 'نقل قول',
123
+ tag_div: 'عادی (DIV)',
124
+ tag_h: 'هدر',
125
+ tag_p: 'پاراگراف',
126
+ tag_pre: 'کُد',
127
+ template: 'درج محتوا بر اساس الگو',
128
+ textStyle: 'استایل متن',
129
+ underline: 'زیرخطدار کردن',
130
+ undo: 'برگرداندن تغییر',
131
+ unlink: 'حذف لینک',
132
+ verticalSplit: 'تقسیم در جهت عمودی',
133
+ video: 'درج ویدئو',
134
+ video_modal_file: 'انتخاب فایل',
135
+ video_modal_title: 'درج ویدئو',
136
+ video_modal_url: 'آدرس Url ویدئو, YouTube/Vimeo',
137
+ width: 'پهنا'
138
+ };
139
+
140
+ if (typeof noGlobal === typeof undefined) {
141
+ if (!window.SUNEDITOR_LANG) {
142
+ Object.defineProperty(window, 'SUNEDITOR_LANG', {
143
+ enumerable: true,
144
+ writable: false,
145
+ configurable: false,
146
+ value: {}
147
+ });
148
+ }
149
+
150
+ Object.defineProperty(window.SUNEDITOR_LANG, 'fa', {
151
+ enumerable: true,
152
+ writable: true,
153
+ configurable: true,
154
+ value: lang
155
+ });
156
+ }
157
+
158
+ return lang;
159
+ });
@@ -0,0 +1,161 @@
1
+ (function (global, factory) {
2
+ if (typeof module === 'object' && typeof module.exports === 'object') {
3
+ module.exports = global.document
4
+ ? factory(global, true)
5
+ : function (w) {
6
+ if (!w.document) {
7
+ throw new Error('SUNEDITOR_LANG a window with a document');
8
+ }
9
+ return factory(w);
10
+ };
11
+ } else {
12
+ factory(global);
13
+ }
14
+ })(typeof window !== 'undefined' ? window : this, function (window, noGlobal) {
15
+ const lang = {
16
+ code: 'fr',
17
+ align: 'Alignement',
18
+ alignCenter: 'Centré',
19
+ alignJustify: 'Justifié',
20
+ alignLeft: 'À gauche',
21
+ alignRight: 'À droite',
22
+ audio: 'Audio',
23
+ audio_modal_file: 'Sélectionner le fichier',
24
+ audio_modal_title: 'Insérer un fichier audio',
25
+ audio_modal_url: 'Adresse URL du fichier',
26
+ autoSize: 'Taille automatique',
27
+ backgroundColor: 'Couleur en arrière plan',
28
+ basic: 'Basique',
29
+ bold: 'Gras',
30
+ bulletedList: 'Non-ordonnée',
31
+ caption: 'Insérer une description',
32
+ center: 'Centré',
33
+ close: 'Fermer',
34
+ codeView: 'Voir le code',
35
+ default: 'Défaut',
36
+ deleteColumn: 'Effacer la colonne',
37
+ deleteRow: 'Effacer la ligne',
38
+ dir_ltr: 'De gauche à droite',
39
+ dir_rtl: 'De droite à gauche',
40
+ edit: 'Modifier',
41
+ fixedColumnWidth: 'Largeur de colonne fixe',
42
+ font: 'Police',
43
+ fontColor: 'Couleur du texte',
44
+ fontSize: 'Taille',
45
+ formats: 'Formats',
46
+ fullScreen: 'Plein écran',
47
+ height: 'Hauteur',
48
+ horizontalLine: 'Ligne horizontale',
49
+ horizontalSplit: 'Scission horizontale',
50
+ hr_dashed: 'Tirets',
51
+ hr_dotted: 'Points',
52
+ hr_solid: 'Solide',
53
+ image: 'Image',
54
+ imageGallery: "Galerie d'images",
55
+ image_modal_altText: 'Texte Alternatif',
56
+ image_modal_file: 'Sélectionner le fichier',
57
+ image_modal_title: 'Insérer une image',
58
+ image_modal_url: 'Adresse URL du fichier',
59
+ indent: 'Indenter',
60
+ insertColumnAfter: 'Insérer une colonne après',
61
+ insertColumnBefore: 'Insérer une colonne avant',
62
+ insertRowAbove: 'Insérer une ligne en dessous',
63
+ insertRowBelow: 'Insérer une ligne au dessus',
64
+ italic: 'Italique',
65
+ layout: 'Layout',
66
+ left: 'Gauche',
67
+ lineHeight: 'Hauteur de la ligne',
68
+ link: 'Lien',
69
+ link_modal_bookmark: 'Signet',
70
+ link_modal_downloadLinkCheck: 'Lien de téléchargement',
71
+ link_modal_newWindowCheck: 'Ouvrir dans une nouvelle fenêtre',
72
+ link_modal_text: 'Texte à afficher',
73
+ link_modal_title: 'Insérer un lien',
74
+ link_modal_url: 'Adresse URL du lien',
75
+ list: 'Liste',
76
+ math: 'Math',
77
+ math_modal_fontSizeLabel: 'Taille',
78
+ math_modal_inputLabel: 'Notation mathématique',
79
+ math_modal_previewLabel: 'Prévisualiser',
80
+ math_modal_title: 'Math',
81
+ maxSize: 'Taille max',
82
+ mention: 'Mention',
83
+ menu_bordered: 'Ligne de démarcation',
84
+ menu_code: 'Code',
85
+ menu_neon: 'Néon',
86
+ menu_shadow: 'Ombre',
87
+ menu_spaced: 'Espacement',
88
+ menu_translucent: 'Translucide',
89
+ mergeCells: 'Fusionner les cellules',
90
+ minSize: 'Taille min',
91
+ mirrorHorizontal: 'Mirroir, Horizontal',
92
+ mirrorVertical: 'Mirroir, Vertical',
93
+ numberedList: 'Ordonnée',
94
+ outdent: 'Désindenter',
95
+ paragraphStyle: 'Style de paragraphe',
96
+ preview: 'Prévisualiser',
97
+ print: 'Imprimer',
98
+ proportion: 'Maintenir le rapport hauteur/largeur',
99
+ ratio: 'Rapport',
100
+ redo: 'Rétablir',
101
+ remove: 'Effacer',
102
+ removeFormat: 'Effacer le formatage',
103
+ resize100: 'Redimensionner à 100%',
104
+ resize25: 'Redimensionner à 25%',
105
+ resize50: 'Redimensionner à 50%',
106
+ resize75: 'Redimensionner à 75%',
107
+ revert: 'Revenir en arrière',
108
+ right: 'Droite',
109
+ rotateLeft: 'Rotation à gauche',
110
+ rotateRight: 'Rotation à droite',
111
+ save: 'Sauvegarder',
112
+ search: 'Chercher',
113
+ showBlocks: 'Voir les blocs',
114
+ size: 'Taille',
115
+ splitCells: 'Diviser les Cellules',
116
+ strike: 'Barré',
117
+ submitButton: 'Appliquer',
118
+ subscript: 'Indice',
119
+ superscript: 'Exposant',
120
+ table: 'Table',
121
+ tableHeader: 'En-tête de table',
122
+ tags: 'Mots clés',
123
+ tag_blockquote: 'Citation',
124
+ tag_div: 'Normal (DIV)',
125
+ tag_h: 'Titre',
126
+ tag_p: 'Paragraphe',
127
+ tag_pre: 'Code',
128
+ template: 'Template',
129
+ textStyle: 'Style de texte',
130
+ title: 'Title',
131
+ underline: 'Souligné',
132
+ undo: 'Annuler',
133
+ unlink: 'Supprimer un lien',
134
+ verticalSplit: 'Scission verticale',
135
+ video: 'Video',
136
+ video_modal_file: 'Sélectionner le fichier',
137
+ video_modal_title: 'Insérer une vidéo',
138
+ video_modal_url: 'URL d’intégration du média, YouTube/Vimeo',
139
+ width: 'Largeur'
140
+ };
141
+
142
+ if (typeof noGlobal === typeof undefined) {
143
+ if (!window.SUNEDITOR_LANG) {
144
+ Object.defineProperty(window, 'SUNEDITOR_LANG', {
145
+ enumerable: true,
146
+ writable: false,
147
+ configurable: false,
148
+ value: {}
149
+ });
150
+ }
151
+
152
+ Object.defineProperty(window.SUNEDITOR_LANG, 'fr', {
153
+ enumerable: true,
154
+ writable: true,
155
+ configurable: true,
156
+ value: lang
157
+ });
158
+ }
159
+
160
+ return lang;
161
+ });
@@ -0,0 +1,162 @@
1
+ (function (global, factory) {
2
+ if (typeof module === 'object' && typeof module.exports === 'object') {
3
+ module.exports = global.document
4
+ ? factory(global, true)
5
+ : function (w) {
6
+ if (!w.document) {
7
+ throw new Error('SUNEDITOR_LANG a window with a document');
8
+ }
9
+ return factory(w);
10
+ };
11
+ } else {
12
+ factory(global);
13
+ }
14
+ })(typeof window !== 'undefined' ? window : this, function (window, noGlobal) {
15
+ const lang = {
16
+ code: 'he',
17
+ align: 'יישור',
18
+ alignCenter: 'מרכז',
19
+ alignJustify: 'יישר לשני הצדדים',
20
+ alignLeft: 'יישר לשמאל',
21
+ alignRight: 'יישר לימין',
22
+ audio: 'שמע',
23
+ audio_modal_file: 'בחר מקובץ',
24
+ audio_modal_title: 'הכנס שמע',
25
+ audio_modal_url: 'כתובת URL שמע',
26
+ autoSize: 'הקטן אוטומטית',
27
+ backgroundColor: 'צבע קו תחתון',
28
+ basic: 'בסיסי',
29
+ bold: 'מודגש',
30
+ bulletedList: 'תבליטים',
31
+ caption: 'הכנס תיאור',
32
+ center: 'מרכז',
33
+ close: 'סגור',
34
+ codeView: 'הצג קוד',
35
+ default: 'ברירת מחדל',
36
+ deleteColumn: 'מחק עמודה',
37
+ deleteRow: 'מחק שורה',
38
+ dir_ltr: 'משמאל לימין',
39
+ dir_rtl: 'מימין לשמאל',
40
+ edit: 'ערוך',
41
+ fixedColumnWidth: 'קבע רוחב עמודות',
42
+ font: 'גופן',
43
+ fontColor: 'צבע גופן',
44
+ fontSize: 'גודל',
45
+ formats: 'עיצוב',
46
+ fullScreen: 'מסך מלא',
47
+ height: 'גובה',
48
+ horizontalLine: 'קו אופקי',
49
+ horizontalSplit: 'פצל לגובה',
50
+ hr_dashed: 'מקפים',
51
+ hr_dotted: 'נקודות',
52
+ hr_solid: 'קו',
53
+ image: 'תמונה',
54
+ imageGallery: 'גלרית תמונות',
55
+ image_modal_altText: 'תיאור (תגית alt)',
56
+ image_modal_file: 'בחר מקובץ',
57
+ image_modal_title: 'הכנס תמונה',
58
+ image_modal_url: 'כתובת URL תמונה',
59
+ indent: 'הגדל כניסה',
60
+ insertColumnAfter: 'הכנס עמודה אחרי',
61
+ insertColumnBefore: 'הכנס עמודה לפני',
62
+ insertRowAbove: 'הכנס שורה מעל',
63
+ insertRowBelow: 'הכנס שורה מתחת',
64
+ italic: 'נטוי',
65
+ layout: 'Layout',
66
+ left: 'שמאל',
67
+ lineHeight: 'גובה השורה',
68
+ link: 'קישור',
69
+ link_modal_bookmark: 'סמניה',
70
+ link_modal_downloadLinkCheck: 'קישור להורדה',
71
+ link_modal_newWindowCheck: 'פתח בחלון חדש',
72
+ link_modal_text: 'תיאור',
73
+ link_modal_title: 'הכנס קשור',
74
+ link_modal_url: 'כתובת קשור',
75
+ list: 'רשימה',
76
+ math: 'מתמטיקה',
77
+ math_modal_fontSizeLabel: 'גודל גופן',
78
+ math_modal_inputLabel: 'סימנים מתמטים',
79
+ math_modal_previewLabel: 'תצוגה מקדימה',
80
+ math_modal_title: 'נוסחה',
81
+ maxSize: 'גודל מרבי',
82
+ mention: 'הזכר',
83
+ menu_bordered: 'בעל מיתאר',
84
+ menu_code: 'קוד',
85
+ menu_neon: 'זוהר',
86
+ menu_shadow: 'צל',
87
+ menu_spaced: 'מרווח',
88
+ menu_translucent: 'שקוף למחצה',
89
+ mergeCells: 'מזג תאים',
90
+ minSize: 'גודל מזערי',
91
+ mirrorHorizontal: 'הפוך לרוחב',
92
+ mirrorVertical: 'הפוך לגובה',
93
+ numberedList: 'מספור',
94
+ outdent: 'הקטן כניסה',
95
+ paragraphStyle: 'סגנון פסקה',
96
+ preview: 'תצוגה מקדימה',
97
+ print: 'הדפס',
98
+ proportion: 'שמר יחס',
99
+ ratio: 'יחס',
100
+ redo: 'חזור',
101
+ remove: 'הסר',
102
+ removeFormat: 'הסר עיצוב',
103
+ resize100: 'ללא הקטנה',
104
+ resize25: 'הקטן 25%',
105
+ resize50: 'הקטן 50%',
106
+ resize75: 'הקטן 75%',
107
+ resize: 'Resize',
108
+ revert: 'בטל',
109
+ right: 'ימין',
110
+ rotateLeft: 'סובב שמאלה',
111
+ rotateRight: 'סובב ימינה',
112
+ save: 'שמור',
113
+ search: 'חפש',
114
+ showBlocks: 'הצג גושים',
115
+ size: 'גודל',
116
+ splitCells: 'פצל תא',
117
+ strike: 'קו חוצה',
118
+ submitButton: 'שלח',
119
+ subscript: 'עילי',
120
+ superscript: 'תחתי',
121
+ table: 'טבלה',
122
+ tableHeader: 'כותרת טבלה',
123
+ tags: 'תג',
124
+ tag_blockquote: 'ציטוט',
125
+ tag_div: 'רגילה (DIV)',
126
+ tag_h: 'כותרת',
127
+ tag_p: 'פסקה',
128
+ tag_pre: 'קוד',
129
+ template: 'תבנית',
130
+ textStyle: 'סגנון גופן',
131
+ title: 'Title',
132
+ underline: 'קו תחתון',
133
+ undo: 'בטל',
134
+ unlink: 'הסר קישורים',
135
+ verticalSplit: 'פצל לרוחב',
136
+ video: 'חוזי',
137
+ video_modal_file: 'בחר מקובץ',
138
+ video_modal_title: 'הכנס סרטון',
139
+ video_modal_url: 'כתובת הטמעה YouTube/Vimeo',
140
+ width: 'רוחב'
141
+ };
142
+
143
+ if (typeof noGlobal === typeof undefined) {
144
+ if (!window.SUNEDITOR_LANG) {
145
+ Object.defineProperty(window, 'SUNEDITOR_LANG', {
146
+ enumerable: true,
147
+ writable: false,
148
+ configurable: false,
149
+ value: {}
150
+ });
151
+ }
152
+
153
+ Object.defineProperty(window.SUNEDITOR_LANG, 'he', {
154
+ enumerable: true,
155
+ writable: true,
156
+ configurable: true,
157
+ value: lang
158
+ });
159
+ }
160
+
161
+ return lang;
162
+ });
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  import ckb from './ckb';
4
2
  import cs from './cs';
5
3
  import da from './da';
@@ -0,0 +1,162 @@
1
+ (function (global, factory) {
2
+ if (typeof module === 'object' && typeof module.exports === 'object') {
3
+ module.exports = global.document
4
+ ? factory(global, true)
5
+ : function (w) {
6
+ if (!w.document) {
7
+ throw new Error('SUNEDITOR_LANG una finestra con un documento');
8
+ }
9
+ return factory(w);
10
+ };
11
+ } else {
12
+ factory(global);
13
+ }
14
+ })(typeof window !== 'undefined' ? window : this, function (window, noGlobal) {
15
+ const lang = {
16
+ code: 'it',
17
+ align: 'Allinea',
18
+ alignCenter: 'Allinea al centro',
19
+ alignJustify: 'Giustifica testo',
20
+ alignLeft: 'Allinea a sinistra',
21
+ alignRight: 'Allinea a destra',
22
+ audio: 'Audio',
23
+ audio_modal_file: 'Seleziona da file',
24
+ audio_modal_title: 'Inserisci audio',
25
+ audio_modal_url: 'Indirizzo audio',
26
+ autoSize: 'Ridimensione automatica',
27
+ backgroundColor: 'Colore sottolineatura',
28
+ basic: 'Da impostazione',
29
+ bold: 'Grassetto',
30
+ bulletedList: 'Elenco puntato',
31
+ caption: 'Inserisci didascalia',
32
+ center: 'Centrato',
33
+ close: 'Chiudi',
34
+ codeView: 'Visualizza codice',
35
+ default: 'Predefinita',
36
+ deleteColumn: 'Cancella colonna',
37
+ deleteRow: 'Cancella riga',
38
+ dir_ltr: 'Da sinistra a destra',
39
+ dir_rtl: 'Da destra a sinistra',
40
+ edit: 'Modifica',
41
+ fixedColumnWidth: 'Larghezza delle colonne fissa',
42
+ font: 'Font',
43
+ fontColor: 'Colore testo',
44
+ fontSize: 'Grandezza',
45
+ formats: 'Formato',
46
+ fullScreen: 'A tutto schermo',
47
+ height: 'Altezza',
48
+ horizontalLine: 'Linea orizzontale',
49
+ horizontalSplit: 'Separa orizontalmente',
50
+ hr_dashed: 'Trattini',
51
+ hr_dotted: 'Puntini',
52
+ hr_solid: 'Linea continua',
53
+ image: 'Immagine',
54
+ imageGallery: 'Galleria di immagini',
55
+ image_modal_altText: 'Testo alternativo (ALT)',
56
+ image_modal_file: 'Seleziona da file',
57
+ image_modal_title: 'Inserisci immagine',
58
+ image_modal_url: 'Indirizzo immagine',
59
+ indent: 'Aumenta rientro',
60
+ insertColumnAfter: 'Inserisci colonna dopo',
61
+ insertColumnBefore: 'Inserisci colonna prima',
62
+ insertRowAbove: 'Inserisci riga sopra',
63
+ insertRowBelow: 'Inserisci riga sotto',
64
+ italic: 'Corsivo',
65
+ layout: 'Modello',
66
+ left: 'Sinistra',
67
+ lineHeight: 'Interlinea',
68
+ link: 'Collegamento ipertestuale',
69
+ link_modal_bookmark: 'Segnalibro',
70
+ link_modal_downloadLinkCheck: 'Link per scaricare',
71
+ link_modal_newWindowCheck: 'Apri in una nuova finestra',
72
+ link_modal_text: 'Testo da visualizzare',
73
+ link_modal_title: 'Inserisci un link',
74
+ link_modal_url: 'Indirizzo',
75
+ list: 'Elenco',
76
+ math: 'Formula matematica',
77
+ math_modal_fontSizeLabel: 'Grandezza testo',
78
+ math_modal_inputLabel: 'Notazione matematica',
79
+ math_modal_previewLabel: 'Anteprima',
80
+ math_modal_title: 'Matematica',
81
+ maxSize: 'Dimensione massima',
82
+ mention: 'Menzione',
83
+ menu_bordered: 'Bordato',
84
+ menu_code: 'Codice',
85
+ menu_neon: 'Luminoso',
86
+ menu_shadow: 'Ombra',
87
+ menu_spaced: 'Spaziato',
88
+ menu_translucent: 'Traslucido',
89
+ mergeCells: 'Unisci celle',
90
+ minSize: 'Dimensione minima',
91
+ mirrorHorizontal: 'Capovolgi orizzontalmente',
92
+ mirrorVertical: 'Capovolgi verticalmente',
93
+ numberedList: 'Elenco numerato',
94
+ outdent: 'Riduci rientro',
95
+ paragraphStyle: 'Stile paragrafo',
96
+ preview: 'Anteprima',
97
+ print: 'Stampa',
98
+ proportion: 'Proporzionale',
99
+ ratio: 'Rapporto',
100
+ redo: 'Ripristina',
101
+ remove: 'Rimuovi',
102
+ removeFormat: 'Rimuovi formattazione',
103
+ resize100: 'Ridimensiona 100%',
104
+ resize25: 'Ridimensiona 25%',
105
+ resize50: 'Ridimensiona 50%',
106
+ resize75: 'Ridimensiona 75%',
107
+ resize: 'Ridimensiona',
108
+ revert: 'Annulla',
109
+ right: 'Destra',
110
+ rotateLeft: 'Ruota a sinistra',
111
+ rotateRight: 'Ruota a destra',
112
+ save: 'Salva',
113
+ search: 'Ricerca',
114
+ showBlocks: 'Visualizza blocchi',
115
+ size: 'Dimensioni',
116
+ splitCells: 'Dividi celle',
117
+ strike: 'Barrato',
118
+ submitButton: 'Invia',
119
+ subscript: 'Apice',
120
+ superscript: 'Pedice',
121
+ table: 'Tabella',
122
+ tableHeader: 'Intestazione tabella',
123
+ tags: 'tag',
124
+ tag_blockquote: 'Citazione',
125
+ tag_div: 'Normale (DIV)',
126
+ tag_h: 'Titolo',
127
+ tag_p: 'Paragrafo',
128
+ tag_pre: 'Codice',
129
+ template: 'Modello',
130
+ textStyle: 'Stile testo',
131
+ title: 'Titolo',
132
+ underline: 'Sottolineato',
133
+ undo: 'Annulla',
134
+ unlink: 'Elimina link',
135
+ verticalSplit: 'Separa verticalmente',
136
+ video: 'Video',
137
+ video_modal_file: 'Seleziona da file',
138
+ video_modal_title: 'Inserisci video',
139
+ video_modal_url: 'Indirizzo video di embed, YouTube/Vimeo',
140
+ width: 'Larghezza'
141
+ };
142
+
143
+ if (typeof noGlobal === typeof undefined) {
144
+ if (!window.SUNEDITOR_LANG) {
145
+ Object.defineProperty(window, 'SUNEDITOR_LANG', {
146
+ enumerable: true,
147
+ writable: false,
148
+ configurable: false,
149
+ value: {}
150
+ });
151
+ }
152
+
153
+ Object.defineProperty(window.SUNEDITOR_LANG, 'it', {
154
+ enumerable: true,
155
+ writable: true,
156
+ configurable: true,
157
+ value: lang
158
+ });
159
+ }
160
+
161
+ return lang;
162
+ });