assui 2.1.5 → 2.1.9
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.
- package/es/rich-text-editor/index.d.ts +11 -1
- package/es/rich-text-editor/index.js +17 -8
- package/es/rich-text-editor/lang/zh_CN.d.ts +55 -111
- package/es/rich-text-editor/lang/zh_CN.js +108 -165
- package/es/single-img-upload/index.d.ts +2 -0
- package/es/single-img-upload/index.js +4 -2
- package/lib/rich-text-editor/index.d.ts +11 -1
- package/lib/rich-text-editor/index.js +27 -8
- package/lib/rich-text-editor/lang/zh_CN.d.ts +55 -111
- package/lib/rich-text-editor/lang/zh_CN.js +108 -166
- package/lib/single-img-upload/index.d.ts +2 -0
- package/lib/single-img-upload/index.js +4 -2
- package/package.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IAllProps } from '@tinymce/tinymce-react';
|
|
2
2
|
import 'tinymce/themes/silver';
|
|
3
|
+
import 'tinymce/models/dom';
|
|
3
4
|
import 'tinymce/icons/default';
|
|
4
5
|
import 'tinymce/skins/ui/oxide/skin.min.css';
|
|
5
6
|
import 'tinymce/plugins/advlist';
|
|
@@ -8,7 +9,6 @@ import 'tinymce/plugins/link';
|
|
|
8
9
|
import 'tinymce/plugins/image';
|
|
9
10
|
import 'tinymce/plugins/lists';
|
|
10
11
|
import 'tinymce/plugins/charmap';
|
|
11
|
-
import 'tinymce/plugins/hr';
|
|
12
12
|
import 'tinymce/plugins/anchor';
|
|
13
13
|
import 'tinymce/plugins/searchreplace';
|
|
14
14
|
import 'tinymce/plugins/wordcount';
|
|
@@ -19,6 +19,16 @@ import 'tinymce/plugins/nonbreaking';
|
|
|
19
19
|
import 'tinymce/plugins/table';
|
|
20
20
|
import 'tinymce/plugins/template';
|
|
21
21
|
import 'tinymce/plugins/help';
|
|
22
|
+
import 'tinymce/plugins/quickbars';
|
|
23
|
+
import 'tinymce/plugins/autosave';
|
|
24
|
+
import 'tinymce/plugins/directionality';
|
|
25
|
+
import 'tinymce/plugins/preview';
|
|
26
|
+
import 'tinymce/plugins/save';
|
|
27
|
+
import 'tinymce/plugins/visualblocks';
|
|
28
|
+
import 'tinymce/plugins/autoresize';
|
|
29
|
+
import 'tinymce/plugins/emoticons';
|
|
30
|
+
import 'tinymce/plugins/importcss';
|
|
31
|
+
import 'tinymce/plugins/pagebreak';
|
|
22
32
|
export declare type RichTextEditorProps = IAllProps;
|
|
23
33
|
declare const defaultPlugins: string[];
|
|
24
34
|
declare const defaultToolbar: string;
|
|
@@ -31,8 +31,8 @@ import React from 'react';
|
|
|
31
31
|
import { Editor } from '@tinymce/tinymce-react';
|
|
32
32
|
import tinymce from 'tinymce/tinymce';
|
|
33
33
|
import 'tinymce/themes/silver';
|
|
34
|
-
import 'tinymce/
|
|
35
|
-
|
|
34
|
+
import 'tinymce/models/dom';
|
|
35
|
+
import 'tinymce/icons/default';
|
|
36
36
|
import 'tinymce/skins/ui/oxide/skin.min.css'; // importing the plugin js.
|
|
37
37
|
|
|
38
38
|
import 'tinymce/plugins/advlist';
|
|
@@ -41,7 +41,6 @@ import 'tinymce/plugins/link';
|
|
|
41
41
|
import 'tinymce/plugins/image';
|
|
42
42
|
import 'tinymce/plugins/lists';
|
|
43
43
|
import 'tinymce/plugins/charmap';
|
|
44
|
-
import 'tinymce/plugins/hr';
|
|
45
44
|
import 'tinymce/plugins/anchor';
|
|
46
45
|
import 'tinymce/plugins/searchreplace';
|
|
47
46
|
import 'tinymce/plugins/wordcount'; // import 'tinymce/plugins/code';
|
|
@@ -53,17 +52,27 @@ import 'tinymce/plugins/nonbreaking';
|
|
|
53
52
|
import 'tinymce/plugins/table';
|
|
54
53
|
import 'tinymce/plugins/template';
|
|
55
54
|
import 'tinymce/plugins/help';
|
|
55
|
+
import 'tinymce/plugins/quickbars';
|
|
56
|
+
import 'tinymce/plugins/autosave';
|
|
57
|
+
import 'tinymce/plugins/directionality';
|
|
58
|
+
import 'tinymce/plugins/preview';
|
|
59
|
+
import 'tinymce/plugins/save';
|
|
60
|
+
import 'tinymce/plugins/visualblocks';
|
|
61
|
+
import 'tinymce/plugins/autoresize';
|
|
62
|
+
import 'tinymce/plugins/emoticons';
|
|
63
|
+
import 'tinymce/plugins/importcss';
|
|
64
|
+
import 'tinymce/plugins/pagebreak';
|
|
56
65
|
import initCodePlugin from './plugins/code';
|
|
57
66
|
import zhCN from './lang/zh_CN';
|
|
58
|
-
tinymce.addI18n('
|
|
67
|
+
tinymce.addI18n('zh-Hans', zhCN);
|
|
59
68
|
initCodePlugin();
|
|
60
|
-
var defaultPlugins = ['autolink lists link image charmap
|
|
61
|
-
var defaultToolbar = 'undo redo |
|
|
69
|
+
var defaultPlugins = ['advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'anchor', 'searchreplace', 'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'preview', 'help', 'wordcount'];
|
|
70
|
+
var defaultToolbar = 'undo redo | blocks fontsize | ' + 'bold italic underline forecolor backcolor charmap | ' + 'alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | ' + 'removeformat | help';
|
|
62
71
|
var defaultInit = {
|
|
63
72
|
height: 300,
|
|
64
|
-
language: '
|
|
73
|
+
language: 'zh-Hans',
|
|
65
74
|
menubar: false,
|
|
66
|
-
|
|
75
|
+
// images_upload_handler() {},
|
|
67
76
|
plugins: defaultPlugins,
|
|
68
77
|
toolbar: defaultToolbar,
|
|
69
78
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
@@ -16,9 +16,11 @@ declare const _default: {
|
|
|
16
16
|
Superscript: string;
|
|
17
17
|
Subscript: string;
|
|
18
18
|
'Clear formatting': string;
|
|
19
|
+
Remove: string;
|
|
19
20
|
'Align left': string;
|
|
20
21
|
'Align center': string;
|
|
21
22
|
'Align right': string;
|
|
23
|
+
'No alignment': string;
|
|
22
24
|
Justify: string;
|
|
23
25
|
'Bullet list': string;
|
|
24
26
|
'Numbered list': string;
|
|
@@ -27,13 +29,6 @@ declare const _default: {
|
|
|
27
29
|
Close: string;
|
|
28
30
|
Formats: string;
|
|
29
31
|
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.": string;
|
|
30
|
-
Headers: string;
|
|
31
|
-
'Header 1': string;
|
|
32
|
-
'Header 2': string;
|
|
33
|
-
'Header 3': string;
|
|
34
|
-
'Header 4': string;
|
|
35
|
-
'Header 5': string;
|
|
36
|
-
'Header 6': string;
|
|
37
32
|
Headings: string;
|
|
38
33
|
'Heading 1': string;
|
|
39
34
|
'Heading 2': string;
|
|
@@ -51,12 +46,13 @@ declare const _default: {
|
|
|
51
46
|
Blocks: string;
|
|
52
47
|
'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.': string;
|
|
53
48
|
Fonts: string;
|
|
54
|
-
'Font
|
|
49
|
+
'Font sizes': string;
|
|
55
50
|
Class: string;
|
|
56
51
|
'Browse for an image': string;
|
|
57
52
|
OR: string;
|
|
58
53
|
'Drop an image here': string;
|
|
59
54
|
Upload: string;
|
|
55
|
+
'Uploading image': string;
|
|
60
56
|
Block: string;
|
|
61
57
|
Align: string;
|
|
62
58
|
Default: string;
|
|
@@ -69,31 +65,21 @@ declare const _default: {
|
|
|
69
65
|
'Upper Alpha': string;
|
|
70
66
|
'Upper Roman': string;
|
|
71
67
|
'Anchor...': string;
|
|
68
|
+
Anchor: string;
|
|
72
69
|
Name: string;
|
|
73
|
-
|
|
74
|
-
'
|
|
70
|
+
ID: string;
|
|
71
|
+
'ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.': string;
|
|
75
72
|
'You have unsaved changes are you sure you want to navigate away?': string;
|
|
76
73
|
'Restore last draft': string;
|
|
77
74
|
'Special character...': string;
|
|
75
|
+
'Special Character': string;
|
|
78
76
|
'Source code': string;
|
|
79
77
|
'Insert/Edit code sample': string;
|
|
80
78
|
Language: string;
|
|
81
79
|
'Code sample...': string;
|
|
82
|
-
'Color Picker': string;
|
|
83
|
-
R: string;
|
|
84
|
-
G: string;
|
|
85
|
-
B: string;
|
|
86
80
|
'Left to right': string;
|
|
87
81
|
'Right to left': string;
|
|
88
|
-
Emoticons: string;
|
|
89
|
-
'Emoticons...': string;
|
|
90
|
-
'Metadata and Document Properties': string;
|
|
91
82
|
Title: string;
|
|
92
|
-
Keywords: string;
|
|
93
|
-
Description: string;
|
|
94
|
-
Robots: string;
|
|
95
|
-
Author: string;
|
|
96
|
-
Encoding: string;
|
|
97
83
|
Fullscreen: string;
|
|
98
84
|
Action: string;
|
|
99
85
|
Shortcut: string;
|
|
@@ -129,25 +115,7 @@ declare const _default: {
|
|
|
129
115
|
'Insert image': string;
|
|
130
116
|
'Image...': string;
|
|
131
117
|
'Image list': string;
|
|
132
|
-
'Rotate counterclockwise': string;
|
|
133
|
-
'Rotate clockwise': string;
|
|
134
|
-
'Flip vertically': string;
|
|
135
|
-
'Flip horizontally': string;
|
|
136
|
-
'Edit image': string;
|
|
137
|
-
'Image options': string;
|
|
138
|
-
'Zoom in': string;
|
|
139
|
-
'Zoom out': string;
|
|
140
|
-
Crop: string;
|
|
141
118
|
Resize: string;
|
|
142
|
-
Orientation: string;
|
|
143
|
-
Brightness: string;
|
|
144
|
-
Sharpen: string;
|
|
145
|
-
Contrast: string;
|
|
146
|
-
'Color levels': string;
|
|
147
|
-
Gamma: string;
|
|
148
|
-
Invert: string;
|
|
149
|
-
Apply: string;
|
|
150
|
-
Back: string;
|
|
151
119
|
'Insert date/time': string;
|
|
152
120
|
'Date/time': string;
|
|
153
121
|
'Insert/edit link': string;
|
|
@@ -179,6 +147,7 @@ declare const _default: {
|
|
|
179
147
|
'Page break': string;
|
|
180
148
|
'Paste as text': string;
|
|
181
149
|
Preview: string;
|
|
150
|
+
Print: string;
|
|
182
151
|
'Print...': string;
|
|
183
152
|
Save: string;
|
|
184
153
|
Find: string;
|
|
@@ -193,13 +162,6 @@ declare const _default: {
|
|
|
193
162
|
'Match case': string;
|
|
194
163
|
'Find whole words only': string;
|
|
195
164
|
'Find in selection': string;
|
|
196
|
-
Spellcheck: string;
|
|
197
|
-
'Spellcheck Language': string;
|
|
198
|
-
'No misspellings found.': string;
|
|
199
|
-
Ignore: string;
|
|
200
|
-
'Ignore all': string;
|
|
201
|
-
Finish: string;
|
|
202
|
-
'Add to Dictionary': string;
|
|
203
165
|
'Insert table': string;
|
|
204
166
|
'Table properties': string;
|
|
205
167
|
'Delete table': string;
|
|
@@ -214,9 +176,13 @@ declare const _default: {
|
|
|
214
176
|
'Delete row': string;
|
|
215
177
|
'Row properties': string;
|
|
216
178
|
'Cut row': string;
|
|
179
|
+
'Cut column': string;
|
|
217
180
|
'Copy row': string;
|
|
181
|
+
'Copy column': string;
|
|
218
182
|
'Paste row before': string;
|
|
183
|
+
'Paste column before': string;
|
|
219
184
|
'Paste row after': string;
|
|
185
|
+
'Paste column after': string;
|
|
220
186
|
'Insert column before': string;
|
|
221
187
|
'Insert column after': string;
|
|
222
188
|
'Delete column': string;
|
|
@@ -226,6 +192,13 @@ declare const _default: {
|
|
|
226
192
|
Height: string;
|
|
227
193
|
'Cell spacing': string;
|
|
228
194
|
'Cell padding': string;
|
|
195
|
+
'Row clipboard actions': string;
|
|
196
|
+
'Column clipboard actions': string;
|
|
197
|
+
'Table styles': string;
|
|
198
|
+
'Cell styles': string;
|
|
199
|
+
'Column header': string;
|
|
200
|
+
'Row header': string;
|
|
201
|
+
'Table caption': string;
|
|
229
202
|
Caption: string;
|
|
230
203
|
'Show caption': string;
|
|
231
204
|
Left: string;
|
|
@@ -234,8 +207,8 @@ declare const _default: {
|
|
|
234
207
|
'Cell type': string;
|
|
235
208
|
Scope: string;
|
|
236
209
|
Alignment: string;
|
|
237
|
-
'
|
|
238
|
-
'
|
|
210
|
+
'Horizontal align': string;
|
|
211
|
+
'Vertical align': string;
|
|
239
212
|
Top: string;
|
|
240
213
|
Middle: string;
|
|
241
214
|
Bottom: string;
|
|
@@ -247,16 +220,25 @@ declare const _default: {
|
|
|
247
220
|
Body: string;
|
|
248
221
|
Footer: string;
|
|
249
222
|
'Border color': string;
|
|
223
|
+
Solid: string;
|
|
224
|
+
Dotted: string;
|
|
225
|
+
Dashed: string;
|
|
226
|
+
Double: string;
|
|
227
|
+
Groove: string;
|
|
228
|
+
Ridge: string;
|
|
229
|
+
Inset: string;
|
|
230
|
+
Outset: string;
|
|
231
|
+
Hidden: string;
|
|
250
232
|
'Insert template...': string;
|
|
251
233
|
Templates: string;
|
|
252
234
|
Template: string;
|
|
235
|
+
'Insert Template': string;
|
|
253
236
|
'Text color': string;
|
|
254
237
|
'Background color': string;
|
|
255
238
|
'Custom...': string;
|
|
256
239
|
'Custom color': string;
|
|
257
240
|
'No color': string;
|
|
258
241
|
'Remove color': string;
|
|
259
|
-
'Table of Contents': string;
|
|
260
242
|
'Show blocks': string;
|
|
261
243
|
'Show invisible characters': string;
|
|
262
244
|
'Word count': string;
|
|
@@ -282,6 +264,7 @@ declare const _default: {
|
|
|
282
264
|
Warn: string;
|
|
283
265
|
Valid: string;
|
|
284
266
|
'To open the popup, press Shift+Enter': string;
|
|
267
|
+
'Rich Text Area': string;
|
|
285
268
|
'Rich Text Area. Press ALT-0 for help.': string;
|
|
286
269
|
'System Font': string;
|
|
287
270
|
'Failed to upload image: {0}': string;
|
|
@@ -334,8 +317,10 @@ declare const _default: {
|
|
|
334
317
|
'yuan character': string;
|
|
335
318
|
'yuan character, in hong kong and taiwan': string;
|
|
336
319
|
'yen/yuan character variant one': string;
|
|
337
|
-
|
|
338
|
-
'
|
|
320
|
+
Emojis: string;
|
|
321
|
+
'Emojis...': string;
|
|
322
|
+
'Loading emojis...': string;
|
|
323
|
+
'Could not load emojis': string;
|
|
339
324
|
People: string;
|
|
340
325
|
'Animals and Nature': string;
|
|
341
326
|
'Food and Drink': string;
|
|
@@ -348,8 +333,19 @@ declare const _default: {
|
|
|
348
333
|
'{0} characters': string;
|
|
349
334
|
'Error: Form submit field collision.': string;
|
|
350
335
|
'Error: No form element found.': string;
|
|
351
|
-
Update: string;
|
|
352
336
|
'Color swatch': string;
|
|
337
|
+
'Color Picker': string;
|
|
338
|
+
'Invalid hex color code: {0}': string;
|
|
339
|
+
'Invalid input': string;
|
|
340
|
+
R: string;
|
|
341
|
+
'Red component': string;
|
|
342
|
+
G: string;
|
|
343
|
+
'Green component': string;
|
|
344
|
+
B: string;
|
|
345
|
+
'Blue component': string;
|
|
346
|
+
'#': string;
|
|
347
|
+
'Hex color code': string;
|
|
348
|
+
'Range 0 to 255': string;
|
|
353
349
|
Turquoise: string;
|
|
354
350
|
Green: string;
|
|
355
351
|
Blue: string;
|
|
@@ -401,63 +397,11 @@ declare const _default: {
|
|
|
401
397
|
'List properties...': string;
|
|
402
398
|
'Start list at number': string;
|
|
403
399
|
'Line height': string;
|
|
404
|
-
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
'Title Case': string;
|
|
411
|
-
'permanent pen': string;
|
|
412
|
-
'Permanent Pen Properties': string;
|
|
413
|
-
'Permanent pen properties...': string;
|
|
414
|
-
'case change': string;
|
|
415
|
-
'page embed': string;
|
|
416
|
-
'Advanced sort...': string;
|
|
417
|
-
'Advanced Sort': string;
|
|
418
|
-
'Sort table by column ascending': string;
|
|
419
|
-
'Sort table by column descending': string;
|
|
420
|
-
Sort: string;
|
|
421
|
-
Order: string;
|
|
422
|
-
'Sort by': string;
|
|
423
|
-
Ascending: string;
|
|
424
|
-
Descending: string;
|
|
425
|
-
'Column {0}': string;
|
|
426
|
-
'Row {0}': string;
|
|
427
|
-
'Spellcheck...': string;
|
|
428
|
-
'Misspelled word': string;
|
|
429
|
-
Suggestions: string;
|
|
430
|
-
Change: string;
|
|
431
|
-
'Finding word suggestions': string;
|
|
432
|
-
Success: string;
|
|
433
|
-
Repair: string;
|
|
434
|
-
'Issue {0} of {1}': string;
|
|
435
|
-
'Images must be marked as decorative or have an alternative text description': string;
|
|
436
|
-
'Images must have an alternative text description. Decorative images are not allowed.': string;
|
|
437
|
-
'Or provide alternative text:': string;
|
|
438
|
-
'Make image decorative:': string;
|
|
439
|
-
'ID attribute must be unique': string;
|
|
440
|
-
'Make ID unique': string;
|
|
441
|
-
'Keep this ID and remove all others': string;
|
|
442
|
-
'Remove this ID': string;
|
|
443
|
-
'Remove all IDs': string;
|
|
444
|
-
Checklist: string;
|
|
445
|
-
Anchor: string;
|
|
446
|
-
'Special character': string;
|
|
447
|
-
'Code sample': string;
|
|
448
|
-
Color: string;
|
|
449
|
-
'Document properties': string;
|
|
450
|
-
'Image description': string;
|
|
451
|
-
Image: string;
|
|
452
|
-
'Insert link': string;
|
|
453
|
-
Target: string;
|
|
454
|
-
Link: string;
|
|
455
|
-
Poster: string;
|
|
456
|
-
Media: string;
|
|
457
|
-
Print: string;
|
|
458
|
-
Prev: string;
|
|
459
|
-
'Find and replace': string;
|
|
460
|
-
'Whole words': string;
|
|
461
|
-
'Insert template': string;
|
|
400
|
+
'Dropped file type is not supported': string;
|
|
401
|
+
'Loading...': string;
|
|
402
|
+
'ImageProxy HTTP error: Rejected request': string;
|
|
403
|
+
'ImageProxy HTTP error: Could not find Image Proxy': string;
|
|
404
|
+
'ImageProxy HTTP error: Incorrect Image Proxy URL': string;
|
|
405
|
+
'ImageProxy HTTP error: Unknown ImageProxy error': string;
|
|
462
406
|
};
|
|
463
407
|
export default _default;
|