@opentiny/fluent-editor 3.25.1 → 3.25.3-alpha.0
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/README.md +105 -105
- package/es/attributors/line-height.es.js.map +1 -1
- package/es/config/base64-image.es.js.map +1 -1
- package/es/config/editor.config.es.js.map +1 -1
- package/es/config/editor.utils.es.js.map +1 -1
- package/es/config/i18n/en-us.es.js.map +1 -1
- package/es/config/i18n/zh-cn.es.js.map +1 -1
- package/es/config/index.es.js.map +1 -1
- package/es/core/fluent-editor.es.js.map +1 -1
- package/es/fluent-editor.es.js.map +1 -1
- package/es/formats/soft-break.es.js.map +1 -1
- package/es/formats/strike.es.js.map +1 -1
- package/es/formats/video.es.js.map +1 -1
- package/es/modules/counter.es.js.map +1 -1
- package/es/modules/custom-clipboard.es.js.map +1 -1
- package/es/modules/custom-image/BlotFormatter.es.js +28 -0
- package/es/modules/custom-image/BlotFormatter.es.js.map +1 -1
- package/es/modules/custom-image/Options.es.js.map +1 -1
- package/es/modules/custom-image/actions/Action.es.js.map +1 -1
- package/es/modules/custom-image/actions/CustomResizeAction.es.js.map +1 -1
- package/es/modules/custom-image/actions/DeleteAction.es.js.map +1 -1
- package/es/modules/custom-image/image-bar.es.js +126 -0
- package/es/modules/custom-image/image-bar.es.js.map +1 -0
- package/es/modules/custom-image/image.es.js.map +1 -1
- package/es/modules/custom-image/specs/BlotSpec.es.js.map +1 -1
- package/es/modules/custom-image/specs/CustomImageSpec.es.js.map +1 -1
- package/es/modules/custom-image/specs/ImageSpec.es.js.map +1 -1
- package/es/modules/custom-uploader.es.js.map +1 -1
- package/es/modules/divider.es.js.map +1 -1
- package/es/modules/emoji/emoji-list/people.es.js.map +1 -1
- package/es/modules/emoji/emoji-list.es.js.map +1 -1
- package/es/modules/emoji/emoji-map.es.js.map +1 -1
- package/es/modules/emoji/emoji-sprite.es.js.map +1 -1
- package/es/modules/emoji/formats/emoji-blot.es.js.map +1 -1
- package/es/modules/emoji/index.es.js.map +1 -1
- package/es/modules/emoji/modules/emoji.es.js.map +1 -1
- package/es/modules/emoji/modules/toolbar-emoji.es.js.map +1 -1
- package/es/modules/emoji/utils.es.js.map +1 -1
- package/es/modules/file/formats/file.es.js.map +1 -1
- package/es/modules/file/index.es.js.map +1 -1
- package/es/modules/file/modules/file-bar.es.js.map +1 -1
- package/es/modules/global-link/constants.es.js.map +1 -1
- package/es/modules/global-link/formats/customer-widget-link.es.js.map +1 -1
- package/es/modules/global-link/formats/doc-link.es.js.map +1 -1
- package/es/modules/global-link/formats/wiki-link.es.js.map +1 -1
- package/es/modules/global-link/formats/work-item-link.es.js.map +1 -1
- package/es/modules/global-link/index.es.js.map +1 -1
- package/es/modules/global-link/utils/createTable.es.js.map +1 -1
- package/es/modules/link/formats/link.es.js.map +1 -1
- package/es/modules/link/index.es.js.map +1 -1
- package/es/modules/link/modules/tooltip.es.js.map +1 -1
- package/es/modules/mathlive/formats.es.js.map +1 -1
- package/es/modules/mathlive/index.es.js.map +1 -1
- package/es/modules/mathlive/tooltip.es.js.map +1 -1
- package/es/modules/mention/Mention.es.js.map +1 -1
- package/es/modules/mention/MentionLink.es.js.map +1 -1
- package/es/modules/mention/constants.es.js.map +1 -1
- package/es/modules/quick-menu.es.js.map +1 -1
- package/es/modules/syntax.es.js.map +1 -1
- package/es/modules/table/better-table.es.js.map +1 -1
- package/es/modules/table/formats/header.es.js.map +1 -1
- package/es/modules/table/formats/list.es.js.map +1 -1
- package/es/modules/table/formats/table.es.js.map +1 -1
- package/es/modules/table/modules/table-column-tool.es.js.map +1 -1
- package/es/modules/table/modules/table-operation-menu.es.js.map +1 -1
- package/es/modules/table/modules/table-scroll-bar.es.js.map +1 -1
- package/es/modules/table/modules/table-selection.es.js.map +1 -1
- package/es/modules/table/modules/table-selector.es.js.map +1 -1
- package/es/modules/table/table-config.es.js.map +1 -1
- package/es/modules/table/utils/index.es.js.map +1 -1
- package/es/modules/table/utils/node-matchers.es.js.map +1 -1
- package/es/modules/toolbar/better-picker.es.js.map +1 -1
- package/es/modules/toolbar/index.es.js.map +1 -1
- package/es/themes/snow.es.js.map +1 -1
- package/es/tools/screenshot.es.js.map +1 -1
- package/es/ui/icons.config.es.js.map +1 -1
- package/es/ui/icons.es.js.map +1 -1
- package/es/utils/debounce.es.js.map +1 -1
- package/es/utils/method.es.js.map +1 -1
- package/lib/attributors/line-height.cjs.js.map +1 -1
- package/lib/config/base64-image.cjs.js.map +1 -1
- package/lib/config/editor.config.cjs.js.map +1 -1
- package/lib/config/editor.utils.cjs.js.map +1 -1
- package/lib/config/i18n/en-us.cjs.js.map +1 -1
- package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/config/index.cjs.js.map +1 -1
- package/lib/core/fluent-editor.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/formats/soft-break.cjs.js.map +1 -1
- package/lib/formats/strike.cjs.js.map +1 -1
- package/lib/formats/video.cjs.js.map +1 -1
- package/lib/modules/counter.cjs.js.map +1 -1
- package/lib/modules/custom-clipboard.cjs.js.map +1 -1
- package/lib/modules/custom-image/BlotFormatter.cjs.js +28 -0
- package/lib/modules/custom-image/BlotFormatter.cjs.js.map +1 -1
- package/lib/modules/custom-image/Options.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/Action.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/CustomResizeAction.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/DeleteAction.cjs.js.map +1 -1
- package/lib/modules/custom-image/image-bar.cjs.js +126 -0
- package/lib/modules/custom-image/image-bar.cjs.js.map +1 -0
- package/lib/modules/custom-image/image.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/BlotSpec.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/CustomImageSpec.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/ImageSpec.cjs.js.map +1 -1
- package/lib/modules/custom-uploader.cjs.js.map +1 -1
- package/lib/modules/divider.cjs.js.map +1 -1
- package/lib/modules/emoji/emoji-list/people.cjs.js.map +1 -1
- package/lib/modules/emoji/emoji-list.cjs.js.map +1 -1
- package/lib/modules/emoji/emoji-map.cjs.js.map +1 -1
- package/lib/modules/emoji/emoji-sprite.cjs.js.map +1 -1
- package/lib/modules/emoji/formats/emoji-blot.cjs.js.map +1 -1
- package/lib/modules/emoji/index.cjs.js.map +1 -1
- package/lib/modules/emoji/modules/emoji.cjs.js.map +1 -1
- package/lib/modules/emoji/modules/toolbar-emoji.cjs.js.map +1 -1
- package/lib/modules/emoji/utils.cjs.js.map +1 -1
- package/lib/modules/file/formats/file.cjs.js.map +1 -1
- package/lib/modules/file/index.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
- package/lib/modules/global-link/constants.cjs.js.map +1 -1
- package/lib/modules/global-link/formats/customer-widget-link.cjs.js.map +1 -1
- package/lib/modules/global-link/formats/doc-link.cjs.js.map +1 -1
- package/lib/modules/global-link/formats/wiki-link.cjs.js.map +1 -1
- package/lib/modules/global-link/formats/work-item-link.cjs.js.map +1 -1
- package/lib/modules/global-link/index.cjs.js.map +1 -1
- package/lib/modules/global-link/utils/createTable.cjs.js.map +1 -1
- package/lib/modules/link/formats/link.cjs.js.map +1 -1
- package/lib/modules/link/index.cjs.js.map +1 -1
- package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
- package/lib/modules/mathlive/formats.cjs.js.map +1 -1
- package/lib/modules/mathlive/index.cjs.js.map +1 -1
- package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
- package/lib/modules/mention/Mention.cjs.js.map +1 -1
- package/lib/modules/mention/MentionLink.cjs.js.map +1 -1
- package/lib/modules/mention/constants.cjs.js.map +1 -1
- package/lib/modules/quick-menu.cjs.js.map +1 -1
- package/lib/modules/syntax.cjs.js.map +1 -1
- package/lib/modules/table/better-table.cjs.js.map +1 -1
- package/lib/modules/table/formats/header.cjs.js.map +1 -1
- package/lib/modules/table/formats/list.cjs.js.map +1 -1
- package/lib/modules/table/formats/table.cjs.js.map +1 -1
- package/lib/modules/table/modules/table-column-tool.cjs.js.map +1 -1
- package/lib/modules/table/modules/table-operation-menu.cjs.js.map +1 -1
- package/lib/modules/table/modules/table-scroll-bar.cjs.js.map +1 -1
- package/lib/modules/table/modules/table-selection.cjs.js.map +1 -1
- package/lib/modules/table/modules/table-selector.cjs.js.map +1 -1
- package/lib/modules/table/table-config.cjs.js.map +1 -1
- package/lib/modules/table/utils/index.cjs.js.map +1 -1
- package/lib/modules/table/utils/node-matchers.cjs.js.map +1 -1
- package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
- package/lib/modules/toolbar/index.cjs.js.map +1 -1
- package/lib/themes/snow.cjs.js.map +1 -1
- package/lib/tools/screenshot.cjs.js.map +1 -1
- package/lib/ui/icons.cjs.js.map +1 -1
- package/lib/ui/icons.config.cjs.js.map +1 -1
- package/lib/utils/debounce.cjs.js.map +1 -1
- package/lib/utils/method.cjs.js.map +1 -1
- package/package.json +57 -56
- package/style.css +193 -0
- package/types/attributors/font-size.d.ts +1 -1
- package/types/attributors/font-style.d.ts +1 -1
- package/types/attributors/index.d.ts +4 -4
- package/types/attributors/line-height.d.ts +1 -1
- package/types/attributors/text-indent.d.ts +1 -1
- package/types/config/base64-image.d.ts +2 -2
- package/types/config/editor.config.d.ts +229 -229
- package/types/config/editor.utils.d.ts +42 -42
- package/types/config/i18n/en-us.d.ts +108 -108
- package/types/config/i18n/zh-cn.d.ts +108 -108
- package/types/config/index.d.ts +6 -6
- package/types/config/types/additional-toolbar-item.interface.d.ts +7 -6
- package/types/config/types/content-change.interface.d.ts +13 -13
- package/types/config/types/content-save.interface.d.ts +6 -6
- package/types/config/types/counter-option.interface.d.ts +8 -7
- package/types/config/types/editor-config.interface.d.ts +34 -33
- package/types/config/types/editor-modules.interface.d.ts +30 -29
- package/types/config/types/editor-toolbar.interface.d.ts +4 -3
- package/types/config/types/file-operation.interface.d.ts +11 -10
- package/types/config/types/focus-change.interface.d.ts +4 -4
- package/types/config/types/fullscreen-module.interface.d.ts +4 -4
- package/types/config/types/help-panel-item.interface.d.ts +5 -5
- package/types/config/types/help-panel-option.interface.d.ts +6 -5
- package/types/config/types/image-module.interface.d.ts +3 -3
- package/types/config/types/image-upload.interface.d.ts +6 -5
- package/types/config/types/index.d.ts +23 -23
- package/types/config/types/load-on-demand-module.interface.d.ts +5 -5
- package/types/config/types/mention-module.interface.d.ts +8 -8
- package/types/config/types/paste-change.interface.d.ts +5 -4
- package/types/config/types/quick-menu-module.interface.d.ts +3 -3
- package/types/config/types/range.interface.d.ts +4 -4
- package/types/config/types/registry-options.interface.d.ts +5 -5
- package/types/config/types/selection-change.interface.d.ts +7 -6
- package/types/config/types/toolbar-item.interface.d.ts +13 -13
- package/types/config/types/type.d.ts +5 -4
- package/types/config/types/validate-error.interface.d.ts +13 -13
- package/types/core/fluent-editor.d.ts +10 -9
- package/types/fluent-editor.d.ts +2 -1
- package/types/formats/soft-break.d.ts +14 -14
- package/types/formats/strike.d.ts +7 -7
- package/types/formats/video.d.ts +15 -14
- package/types/index.d.ts +4 -3
- package/types/modules/counter.d.ts +15 -14
- package/types/modules/custom-clipboard.d.ts +27 -26
- package/types/modules/custom-image/BlotFormatter.d.ts +26 -20
- package/types/modules/custom-image/Options.d.ts +36 -36
- package/types/modules/custom-image/actions/Action.d.ts +7 -7
- package/types/modules/custom-image/actions/CustomResizeAction.d.ts +23 -22
- package/types/modules/custom-image/actions/DeleteAction.d.ts +6 -5
- package/types/modules/custom-image/image-bar.d.ts +15 -0
- package/types/modules/custom-image/image.d.ts +28 -28
- package/types/modules/custom-image/specs/BlotSpec.d.ts +11 -10
- package/types/modules/custom-image/specs/CustomImageSpec.d.ts +18 -17
- package/types/modules/custom-image/specs/ImageSpec.d.ts +9 -8
- package/types/modules/custom-uploader.d.ts +30 -29
- package/types/modules/divider.d.ts +7 -7
- package/types/modules/emoji/emoji-list/index.d.ts +1 -1
- package/types/modules/emoji/emoji-list/people.d.ts +1 -1
- package/types/modules/emoji/emoji-list.d.ts +2 -2
- package/types/modules/emoji/emoji-map.d.ts +2 -2
- package/types/modules/emoji/emoji-sprite.d.ts +1 -1
- package/types/modules/emoji/formats/emoji-blot.d.ts +13 -13
- package/types/modules/emoji/index.d.ts +7 -6
- package/types/modules/emoji/modules/emoji.d.ts +38 -38
- package/types/modules/emoji/modules/toolbar-emoji.d.ts +8 -8
- package/types/modules/emoji/utils.d.ts +1 -1
- package/types/modules/file/formats/file.d.ts +15 -15
- package/types/modules/file/index.d.ts +10 -9
- package/types/modules/file/modules/file-bar.d.ts +14 -14
- package/types/modules/global-link/constants.d.ts +3 -3
- package/types/modules/global-link/formats/customer-widget-link.d.ts +14 -14
- package/types/modules/global-link/formats/doc-link.d.ts +17 -17
- package/types/modules/global-link/formats/wiki-link.d.ts +16 -16
- package/types/modules/global-link/formats/work-item-link.d.ts +16 -16
- package/types/modules/global-link/global-link-panel.d.ts +18 -17
- package/types/modules/global-link/index.d.ts +18 -18
- package/types/modules/global-link/utils/createTable.d.ts +1 -1
- package/types/modules/i18n.d.ts +15 -14
- package/types/modules/link/formats/link.d.ts +15 -14
- package/types/modules/link/index.d.ts +6 -6
- package/types/modules/link/modules/tooltip.d.ts +32 -31
- package/types/modules/mathlive/formats.d.ts +21 -20
- package/types/modules/mathlive/index.d.ts +7 -6
- package/types/modules/mathlive/tooltip.d.ts +15 -14
- package/types/modules/mention/Mention.d.ts +54 -53
- package/types/modules/mention/MentionLink.d.ts +15 -14
- package/types/modules/mention/constants.d.ts +3 -3
- package/types/modules/quick-menu.d.ts +21 -20
- package/types/modules/syntax.d.ts +13 -12
- package/types/modules/table/better-table.d.ts +32 -31
- package/types/modules/table/formats/header.d.ts +22 -21
- package/types/modules/table/formats/list.d.ts +34 -34
- package/types/modules/table/formats/table.d.ts +146 -145
- package/types/modules/table/modules/table-column-tool.d.ts +23 -23
- package/types/modules/table/modules/table-operation-menu.d.ts +38 -38
- package/types/modules/table/modules/table-scroll-bar.d.ts +33 -33
- package/types/modules/table/modules/table-selection.d.ts +37 -37
- package/types/modules/table/modules/table-selector.d.ts +22 -22
- package/types/modules/table/table-config.d.ts +38 -38
- package/types/modules/table/utils/index.d.ts +17 -17
- package/types/modules/table/utils/node-matchers.d.ts +9 -9
- package/types/modules/toolbar/better-picker.d.ts +1 -1
- package/types/modules/toolbar/index.d.ts +8 -7
- package/types/modules/toolbar/toolbar-tip.d.ts +8 -7
- package/types/themes/snow.d.ts +3 -2
- package/types/tools/format-painter.d.ts +14 -13
- package/types/tools/fullscreen.d.ts +2 -1
- package/types/tools/screenshot.d.ts +18 -17
- package/types/ui/icons.config.d.ts +36 -36
- package/types/ui/icons.d.ts +6 -6
- package/types/utils/debounce.d.ts +6 -6
- package/types/utils/image.d.ts +1 -1
- package/types/utils/is.d.ts +4 -4
- package/types/utils/method.d.ts +6 -6
- package/types/utils/scroll-lock.d.ts +6 -6
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
export declare const EN_US: {
|
|
2
|
-
header: string;
|
|
3
|
-
normal: string;
|
|
4
|
-
h1: string;
|
|
5
|
-
h2: string;
|
|
6
|
-
h3: string;
|
|
7
|
-
h4: string;
|
|
8
|
-
h5: string;
|
|
9
|
-
h6: string;
|
|
10
|
-
lineheight: string;
|
|
11
|
-
songti: string;
|
|
12
|
-
yahei: string;
|
|
13
|
-
kaiti: string;
|
|
14
|
-
heiti: string;
|
|
15
|
-
lishu: string;
|
|
16
|
-
left: string;
|
|
17
|
-
center: string;
|
|
18
|
-
right: string;
|
|
19
|
-
codeblock: string;
|
|
20
|
-
globallink: string;
|
|
21
|
-
'exit-fullscreen': string;
|
|
22
|
-
help: string;
|
|
23
|
-
more: string;
|
|
24
|
-
'help-format': string;
|
|
25
|
-
'help-insert': string;
|
|
26
|
-
'help-operation': string;
|
|
27
|
-
mention: string;
|
|
28
|
-
'quick-menu': string;
|
|
29
|
-
'toggle-help-panel': string;
|
|
30
|
-
'scroll-table': string;
|
|
31
|
-
'mouse-wheel': string;
|
|
32
|
-
save: string;
|
|
33
|
-
'copy-cells': string;
|
|
34
|
-
'copy-table': string;
|
|
35
|
-
'cut-cells': string;
|
|
36
|
-
'empty-cells': string;
|
|
37
|
-
'insert-row-up': string;
|
|
38
|
-
'insert-row-down': string;
|
|
39
|
-
'insert-column-left': string;
|
|
40
|
-
'insert-column-right': string;
|
|
41
|
-
'merge-cells': string;
|
|
42
|
-
'unmerge-cells': string;
|
|
43
|
-
'delete-row': string;
|
|
44
|
-
'delete-column': string;
|
|
45
|
-
'delete-table': string;
|
|
46
|
-
'default-link-text': string;
|
|
47
|
-
basicblock: string;
|
|
48
|
-
linkplaceholder: string;
|
|
49
|
-
'counter-template': string;
|
|
50
|
-
char: string;
|
|
51
|
-
word: string;
|
|
52
|
-
'counter-limit-tips': string;
|
|
53
|
-
'ie-msg': string;
|
|
54
|
-
loading: string;
|
|
55
|
-
pasting: string;
|
|
56
|
-
'img-error': string;
|
|
57
|
-
'img-error-info': string;
|
|
58
|
-
'last-modified': string;
|
|
59
|
-
screenshot: string;
|
|
60
|
-
uploading: string;
|
|
61
|
-
'sub-title-bg-color': string;
|
|
62
|
-
emoji: string;
|
|
63
|
-
fullscreen: string;
|
|
64
|
-
blockquote: string;
|
|
65
|
-
undo: string;
|
|
66
|
-
redo: string;
|
|
67
|
-
clean: string;
|
|
68
|
-
bold: string;
|
|
69
|
-
italic: string;
|
|
70
|
-
underline: string;
|
|
71
|
-
strike: string;
|
|
72
|
-
image: string;
|
|
73
|
-
file: string;
|
|
74
|
-
table: string;
|
|
75
|
-
link: string;
|
|
76
|
-
code: string;
|
|
77
|
-
'better-table': string;
|
|
78
|
-
'code-block': string;
|
|
79
|
-
formula: string;
|
|
80
|
-
'format-painter': string;
|
|
81
|
-
divider: string;
|
|
82
|
-
video: string;
|
|
83
|
-
color: string;
|
|
84
|
-
background: string;
|
|
85
|
-
font: string;
|
|
86
|
-
size: string;
|
|
87
|
-
'list-ordered': string;
|
|
88
|
-
'list-bullet': string;
|
|
89
|
-
'list-check': string;
|
|
90
|
-
'align-left': string;
|
|
91
|
-
'align-center': string;
|
|
92
|
-
'align-right': string;
|
|
93
|
-
'align-justify': string;
|
|
94
|
-
'direction-ltr': string;
|
|
95
|
-
'direction-rtl': string;
|
|
96
|
-
'indent--1': string;
|
|
97
|
-
'indent-+1': string;
|
|
98
|
-
'script-super': string;
|
|
99
|
-
'script-sub': string;
|
|
100
|
-
'header-normal': string;
|
|
101
|
-
'header-1': string;
|
|
102
|
-
'header-2': string;
|
|
103
|
-
'header-3': string;
|
|
104
|
-
'header-4': string;
|
|
105
|
-
'header-5': string;
|
|
106
|
-
'header-6': string;
|
|
107
|
-
'header-list': string;
|
|
108
|
-
};
|
|
1
|
+
export declare const EN_US: {
|
|
2
|
+
header: string;
|
|
3
|
+
normal: string;
|
|
4
|
+
h1: string;
|
|
5
|
+
h2: string;
|
|
6
|
+
h3: string;
|
|
7
|
+
h4: string;
|
|
8
|
+
h5: string;
|
|
9
|
+
h6: string;
|
|
10
|
+
lineheight: string;
|
|
11
|
+
songti: string;
|
|
12
|
+
yahei: string;
|
|
13
|
+
kaiti: string;
|
|
14
|
+
heiti: string;
|
|
15
|
+
lishu: string;
|
|
16
|
+
left: string;
|
|
17
|
+
center: string;
|
|
18
|
+
right: string;
|
|
19
|
+
codeblock: string;
|
|
20
|
+
globallink: string;
|
|
21
|
+
'exit-fullscreen': string;
|
|
22
|
+
help: string;
|
|
23
|
+
more: string;
|
|
24
|
+
'help-format': string;
|
|
25
|
+
'help-insert': string;
|
|
26
|
+
'help-operation': string;
|
|
27
|
+
mention: string;
|
|
28
|
+
'quick-menu': string;
|
|
29
|
+
'toggle-help-panel': string;
|
|
30
|
+
'scroll-table': string;
|
|
31
|
+
'mouse-wheel': string;
|
|
32
|
+
save: string;
|
|
33
|
+
'copy-cells': string;
|
|
34
|
+
'copy-table': string;
|
|
35
|
+
'cut-cells': string;
|
|
36
|
+
'empty-cells': string;
|
|
37
|
+
'insert-row-up': string;
|
|
38
|
+
'insert-row-down': string;
|
|
39
|
+
'insert-column-left': string;
|
|
40
|
+
'insert-column-right': string;
|
|
41
|
+
'merge-cells': string;
|
|
42
|
+
'unmerge-cells': string;
|
|
43
|
+
'delete-row': string;
|
|
44
|
+
'delete-column': string;
|
|
45
|
+
'delete-table': string;
|
|
46
|
+
'default-link-text': string;
|
|
47
|
+
basicblock: string;
|
|
48
|
+
linkplaceholder: string;
|
|
49
|
+
'counter-template': string;
|
|
50
|
+
char: string;
|
|
51
|
+
word: string;
|
|
52
|
+
'counter-limit-tips': string;
|
|
53
|
+
'ie-msg': string;
|
|
54
|
+
loading: string;
|
|
55
|
+
pasting: string;
|
|
56
|
+
'img-error': string;
|
|
57
|
+
'img-error-info': string;
|
|
58
|
+
'last-modified': string;
|
|
59
|
+
screenshot: string;
|
|
60
|
+
uploading: string;
|
|
61
|
+
'sub-title-bg-color': string;
|
|
62
|
+
emoji: string;
|
|
63
|
+
fullscreen: string;
|
|
64
|
+
blockquote: string;
|
|
65
|
+
undo: string;
|
|
66
|
+
redo: string;
|
|
67
|
+
clean: string;
|
|
68
|
+
bold: string;
|
|
69
|
+
italic: string;
|
|
70
|
+
underline: string;
|
|
71
|
+
strike: string;
|
|
72
|
+
image: string;
|
|
73
|
+
file: string;
|
|
74
|
+
table: string;
|
|
75
|
+
link: string;
|
|
76
|
+
code: string;
|
|
77
|
+
'better-table': string;
|
|
78
|
+
'code-block': string;
|
|
79
|
+
formula: string;
|
|
80
|
+
'format-painter': string;
|
|
81
|
+
divider: string;
|
|
82
|
+
video: string;
|
|
83
|
+
color: string;
|
|
84
|
+
background: string;
|
|
85
|
+
font: string;
|
|
86
|
+
size: string;
|
|
87
|
+
'list-ordered': string;
|
|
88
|
+
'list-bullet': string;
|
|
89
|
+
'list-check': string;
|
|
90
|
+
'align-left': string;
|
|
91
|
+
'align-center': string;
|
|
92
|
+
'align-right': string;
|
|
93
|
+
'align-justify': string;
|
|
94
|
+
'direction-ltr': string;
|
|
95
|
+
'direction-rtl': string;
|
|
96
|
+
'indent--1': string;
|
|
97
|
+
'indent-+1': string;
|
|
98
|
+
'script-super': string;
|
|
99
|
+
'script-sub': string;
|
|
100
|
+
'header-normal': string;
|
|
101
|
+
'header-1': string;
|
|
102
|
+
'header-2': string;
|
|
103
|
+
'header-3': string;
|
|
104
|
+
'header-4': string;
|
|
105
|
+
'header-5': string;
|
|
106
|
+
'header-6': string;
|
|
107
|
+
'header-list': string;
|
|
108
|
+
};
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
export declare const ZH_CN: {
|
|
2
|
-
header: string;
|
|
3
|
-
normal: string;
|
|
4
|
-
h1: string;
|
|
5
|
-
h2: string;
|
|
6
|
-
h3: string;
|
|
7
|
-
h4: string;
|
|
8
|
-
h5: string;
|
|
9
|
-
h6: string;
|
|
10
|
-
lineheight: string;
|
|
11
|
-
songti: string;
|
|
12
|
-
yahei: string;
|
|
13
|
-
kaiti: string;
|
|
14
|
-
heiti: string;
|
|
15
|
-
lishu: string;
|
|
16
|
-
left: string;
|
|
17
|
-
center: string;
|
|
18
|
-
right: string;
|
|
19
|
-
codeblock: string;
|
|
20
|
-
globallink: string;
|
|
21
|
-
'exit-fullscreen': string;
|
|
22
|
-
help: string;
|
|
23
|
-
more: string;
|
|
24
|
-
'help-format': string;
|
|
25
|
-
'help-insert': string;
|
|
26
|
-
'help-operation': string;
|
|
27
|
-
mention: string;
|
|
28
|
-
'quick-menu': string;
|
|
29
|
-
'toggle-help-panel': string;
|
|
30
|
-
'scroll-table': string;
|
|
31
|
-
'mouse-wheel': string;
|
|
32
|
-
save: string;
|
|
33
|
-
'copy-cells': string;
|
|
34
|
-
'copy-table': string;
|
|
35
|
-
'cut-cells': string;
|
|
36
|
-
'empty-cells': string;
|
|
37
|
-
'insert-row-up': string;
|
|
38
|
-
'insert-row-down': string;
|
|
39
|
-
'insert-column-left': string;
|
|
40
|
-
'insert-column-right': string;
|
|
41
|
-
'merge-cells': string;
|
|
42
|
-
'unmerge-cells': string;
|
|
43
|
-
'delete-row': string;
|
|
44
|
-
'delete-column': string;
|
|
45
|
-
'delete-table': string;
|
|
46
|
-
'default-link-text': string;
|
|
47
|
-
basicblock: string;
|
|
48
|
-
linkplaceholder: string;
|
|
49
|
-
'counter-template': string;
|
|
50
|
-
char: string;
|
|
51
|
-
word: string;
|
|
52
|
-
'counter-limit-tips': string;
|
|
53
|
-
'ie-msg': string;
|
|
54
|
-
loading: string;
|
|
55
|
-
pasting: string;
|
|
56
|
-
'img-error': string;
|
|
57
|
-
'img-error-info': string;
|
|
58
|
-
'last-modified': string;
|
|
59
|
-
screenshot: string;
|
|
60
|
-
uploading: string;
|
|
61
|
-
'sub-title-bg-color': string;
|
|
62
|
-
emoji: string;
|
|
63
|
-
fullscreen: string;
|
|
64
|
-
blockquote: string;
|
|
65
|
-
undo: string;
|
|
66
|
-
redo: string;
|
|
67
|
-
clean: string;
|
|
68
|
-
bold: string;
|
|
69
|
-
italic: string;
|
|
70
|
-
underline: string;
|
|
71
|
-
strike: string;
|
|
72
|
-
image: string;
|
|
73
|
-
file: string;
|
|
74
|
-
table: string;
|
|
75
|
-
link: string;
|
|
76
|
-
divider: string;
|
|
77
|
-
code: string;
|
|
78
|
-
'better-table': string;
|
|
79
|
-
'code-block': string;
|
|
80
|
-
formula: string;
|
|
81
|
-
'format-painter': string;
|
|
82
|
-
video: string;
|
|
83
|
-
color: string;
|
|
84
|
-
background: string;
|
|
85
|
-
font: string;
|
|
86
|
-
size: string;
|
|
87
|
-
'list-ordered': string;
|
|
88
|
-
'list-bullet': string;
|
|
89
|
-
'list-check': string;
|
|
90
|
-
'align-left': string;
|
|
91
|
-
'align-center': string;
|
|
92
|
-
'align-right': string;
|
|
93
|
-
'align-justify': string;
|
|
94
|
-
'direction-ltr': string;
|
|
95
|
-
'direction-rtl': string;
|
|
96
|
-
'indent--1': string;
|
|
97
|
-
'indent-+1': string;
|
|
98
|
-
'script-super': string;
|
|
99
|
-
'script-sub': string;
|
|
100
|
-
'header-normal': string;
|
|
101
|
-
'header-1': string;
|
|
102
|
-
'header-2': string;
|
|
103
|
-
'header-3': string;
|
|
104
|
-
'header-4': string;
|
|
105
|
-
'header-5': string;
|
|
106
|
-
'header-6': string;
|
|
107
|
-
'header-list': string;
|
|
108
|
-
};
|
|
1
|
+
export declare const ZH_CN: {
|
|
2
|
+
header: string;
|
|
3
|
+
normal: string;
|
|
4
|
+
h1: string;
|
|
5
|
+
h2: string;
|
|
6
|
+
h3: string;
|
|
7
|
+
h4: string;
|
|
8
|
+
h5: string;
|
|
9
|
+
h6: string;
|
|
10
|
+
lineheight: string;
|
|
11
|
+
songti: string;
|
|
12
|
+
yahei: string;
|
|
13
|
+
kaiti: string;
|
|
14
|
+
heiti: string;
|
|
15
|
+
lishu: string;
|
|
16
|
+
left: string;
|
|
17
|
+
center: string;
|
|
18
|
+
right: string;
|
|
19
|
+
codeblock: string;
|
|
20
|
+
globallink: string;
|
|
21
|
+
'exit-fullscreen': string;
|
|
22
|
+
help: string;
|
|
23
|
+
more: string;
|
|
24
|
+
'help-format': string;
|
|
25
|
+
'help-insert': string;
|
|
26
|
+
'help-operation': string;
|
|
27
|
+
mention: string;
|
|
28
|
+
'quick-menu': string;
|
|
29
|
+
'toggle-help-panel': string;
|
|
30
|
+
'scroll-table': string;
|
|
31
|
+
'mouse-wheel': string;
|
|
32
|
+
save: string;
|
|
33
|
+
'copy-cells': string;
|
|
34
|
+
'copy-table': string;
|
|
35
|
+
'cut-cells': string;
|
|
36
|
+
'empty-cells': string;
|
|
37
|
+
'insert-row-up': string;
|
|
38
|
+
'insert-row-down': string;
|
|
39
|
+
'insert-column-left': string;
|
|
40
|
+
'insert-column-right': string;
|
|
41
|
+
'merge-cells': string;
|
|
42
|
+
'unmerge-cells': string;
|
|
43
|
+
'delete-row': string;
|
|
44
|
+
'delete-column': string;
|
|
45
|
+
'delete-table': string;
|
|
46
|
+
'default-link-text': string;
|
|
47
|
+
basicblock: string;
|
|
48
|
+
linkplaceholder: string;
|
|
49
|
+
'counter-template': string;
|
|
50
|
+
char: string;
|
|
51
|
+
word: string;
|
|
52
|
+
'counter-limit-tips': string;
|
|
53
|
+
'ie-msg': string;
|
|
54
|
+
loading: string;
|
|
55
|
+
pasting: string;
|
|
56
|
+
'img-error': string;
|
|
57
|
+
'img-error-info': string;
|
|
58
|
+
'last-modified': string;
|
|
59
|
+
screenshot: string;
|
|
60
|
+
uploading: string;
|
|
61
|
+
'sub-title-bg-color': string;
|
|
62
|
+
emoji: string;
|
|
63
|
+
fullscreen: string;
|
|
64
|
+
blockquote: string;
|
|
65
|
+
undo: string;
|
|
66
|
+
redo: string;
|
|
67
|
+
clean: string;
|
|
68
|
+
bold: string;
|
|
69
|
+
italic: string;
|
|
70
|
+
underline: string;
|
|
71
|
+
strike: string;
|
|
72
|
+
image: string;
|
|
73
|
+
file: string;
|
|
74
|
+
table: string;
|
|
75
|
+
link: string;
|
|
76
|
+
divider: string;
|
|
77
|
+
code: string;
|
|
78
|
+
'better-table': string;
|
|
79
|
+
'code-block': string;
|
|
80
|
+
formula: string;
|
|
81
|
+
'format-painter': string;
|
|
82
|
+
video: string;
|
|
83
|
+
color: string;
|
|
84
|
+
background: string;
|
|
85
|
+
font: string;
|
|
86
|
+
size: string;
|
|
87
|
+
'list-ordered': string;
|
|
88
|
+
'list-bullet': string;
|
|
89
|
+
'list-check': string;
|
|
90
|
+
'align-left': string;
|
|
91
|
+
'align-center': string;
|
|
92
|
+
'align-right': string;
|
|
93
|
+
'align-justify': string;
|
|
94
|
+
'direction-ltr': string;
|
|
95
|
+
'direction-rtl': string;
|
|
96
|
+
'indent--1': string;
|
|
97
|
+
'indent-+1': string;
|
|
98
|
+
'script-super': string;
|
|
99
|
+
'script-sub': string;
|
|
100
|
+
'header-normal': string;
|
|
101
|
+
'header-1': string;
|
|
102
|
+
'header-2': string;
|
|
103
|
+
'header-3': string;
|
|
104
|
+
'header-4': string;
|
|
105
|
+
'header-5': string;
|
|
106
|
+
'header-6': string;
|
|
107
|
+
'header-list': string;
|
|
108
|
+
};
|
package/types/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './editor.config';
|
|
2
|
-
export * from './editor.utils';
|
|
3
|
-
export declare function inputFile(type: any, accept: any): void;
|
|
4
|
-
export declare function getListValue(value: any, preListValue: any): any;
|
|
5
|
-
/** css namespace */
|
|
6
|
-
export declare const namespace = "fe";
|
|
1
|
+
export * from './editor.config';
|
|
2
|
+
export * from './editor.utils';
|
|
3
|
+
export declare function inputFile(type: any, accept: any): void;
|
|
4
|
+
export declare function getListValue(value: any, preListValue: any): any;
|
|
5
|
+
/** css namespace */
|
|
6
|
+
export declare const namespace = "fe";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AnyFunction } from './type';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
|
|
3
|
+
export interface IAdditionalToolItemData {
|
|
4
|
+
name: string;
|
|
5
|
+
content: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
handler: AnyFunction;
|
|
8
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export interface IContentChange {
|
|
2
|
-
content: any;
|
|
3
|
-
delta: any;
|
|
4
|
-
editor: any;
|
|
5
|
-
html: string | null;
|
|
6
|
-
oldDelta: any;
|
|
7
|
-
source: string;
|
|
8
|
-
text: string;
|
|
9
|
-
textCount: number;
|
|
10
|
-
wordCount: number;
|
|
11
|
-
htmlCount: number;
|
|
12
|
-
isChanged?: boolean;
|
|
13
|
-
}
|
|
1
|
+
export interface IContentChange {
|
|
2
|
+
content: any;
|
|
3
|
+
delta: any;
|
|
4
|
+
editor: any;
|
|
5
|
+
html: string | null;
|
|
6
|
+
oldDelta: any;
|
|
7
|
+
source: string;
|
|
8
|
+
text: string;
|
|
9
|
+
textCount: number;
|
|
10
|
+
wordCount: number;
|
|
11
|
+
htmlCount: number;
|
|
12
|
+
isChanged?: boolean;
|
|
13
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface IContentSave {
|
|
2
|
-
editor: any;
|
|
3
|
-
content: any;
|
|
4
|
-
html: string | null;
|
|
5
|
-
text: string;
|
|
6
|
-
}
|
|
1
|
+
export interface IContentSave {
|
|
2
|
+
editor: any;
|
|
3
|
+
content: any;
|
|
4
|
+
html: string | null;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AnyFunction } from './type';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
|
|
3
|
+
export interface ICounterOption {
|
|
4
|
+
format?: 'text' | 'html';
|
|
5
|
+
unit?: 'word' | 'char';
|
|
6
|
+
count?: number;
|
|
7
|
+
template?: string | AnyFunction;
|
|
8
|
+
errorTemplate?: string | AnyFunction;
|
|
9
|
+
}
|
|
@@ -2,36 +2,37 @@ import { QuillOptions } from 'quill';
|
|
|
2
2
|
import { ScreenShotOptions } from '../../tools/screenshot';
|
|
3
3
|
import { IEditorModules } from './editor-modules.interface';
|
|
4
4
|
import { EditorFormat } from './type';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
5
|
+
|
|
6
|
+
export interface IEditorConfig extends QuillOptions {
|
|
7
|
+
format?: EditorFormat;
|
|
8
|
+
modules?: IEditorModules;
|
|
9
|
+
screenshotOnStaticPage?: boolean;
|
|
10
|
+
scrollingContainer?: HTMLElement | string | null;
|
|
11
|
+
trackChanges?: 'user' | 'all';
|
|
12
|
+
autoProtocol?: boolean | string;
|
|
13
|
+
editorPaste?: any;
|
|
14
|
+
uploadOption?: {
|
|
15
|
+
imageUpload?: ({ file, callback, editor }: {
|
|
16
|
+
file: any;
|
|
17
|
+
callback: any;
|
|
18
|
+
editor: any;
|
|
19
|
+
}) => void;
|
|
20
|
+
imageAccept?: Array<string>[] | string;
|
|
21
|
+
fileAccept?: Array<string>[] | string;
|
|
22
|
+
fileUpload: ({ file, callback, editor }: {
|
|
23
|
+
file: any;
|
|
24
|
+
callback: any;
|
|
25
|
+
editor: any;
|
|
26
|
+
}) => void;
|
|
27
|
+
isVideoPlay?: boolean;
|
|
28
|
+
maxSize?: number;
|
|
29
|
+
success?: (file: File) => void;
|
|
30
|
+
fail?: (file: File) => void;
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
};
|
|
33
|
+
screenshot?: Partial<ScreenShotOptions>;
|
|
34
|
+
i18n?: {
|
|
35
|
+
lang?: string;
|
|
36
|
+
langText?: Record<string, string>;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { ToolbarOption } from './type';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
2
|
+
|
|
3
|
+
export interface IEditorModules {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
clipboard?: {
|
|
6
|
+
matchers?: any[];
|
|
7
|
+
matchVisual?: boolean;
|
|
8
|
+
} | boolean;
|
|
9
|
+
history?: {
|
|
10
|
+
delay?: number;
|
|
11
|
+
maxStack?: number;
|
|
12
|
+
userOnly?: boolean;
|
|
13
|
+
} | boolean;
|
|
14
|
+
keyboard?: {
|
|
15
|
+
bindings?: any;
|
|
16
|
+
} | boolean;
|
|
17
|
+
syntax?: {
|
|
18
|
+
interval?: number;
|
|
19
|
+
languages?: {
|
|
20
|
+
key: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
hljs?: any;
|
|
24
|
+
} | boolean;
|
|
25
|
+
toolbar?: (string | string[])[][] | ToolbarOption | string | {
|
|
26
|
+
container?: string | string[] | ToolbarOption;
|
|
27
|
+
handlers?: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
};
|
|
30
|
+
} | boolean;
|
|
31
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as Toolbar } from 'quill/modules/toolbar';
|
|
2
2
|
import { default as FluentEditor } from '../../fluent-editor';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
export interface FluentEditorToolbar extends Toolbar {
|
|
5
|
+
quill: FluentEditor;
|
|
6
|
+
}
|