@opentiny/fluent-editor 4.0.0-alpha.13 → 4.0.0-alpha.15
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 +88 -88
- 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 +27 -0
- 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 +3 -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/emoji.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/index.es.js +31 -2
- package/es/index.es.js.map +1 -1
- package/es/modules/ai/constants.es.js.map +1 -1
- package/es/modules/ai/icons.es.js.map +1 -1
- package/es/modules/ai/index.es.js.map +1 -1
- package/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -1
- package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -1
- package/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -1
- package/es/modules/collaborative-editing/module.es.js.map +1 -1
- package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -1
- package/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -1
- package/es/modules/collaborative-editing/provider/websocket.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/actions/action.es.js.map +1 -1
- package/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -1
- package/es/modules/custom-image/actions/delete-action.es.js.map +1 -1
- package/es/modules/custom-image/blot-formatter.es.js.map +1 -1
- package/es/modules/custom-image/image.es.js.map +1 -1
- package/es/modules/custom-image/options.es.js.map +1 -1
- package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -1
- package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -1
- package/es/modules/custom-image/specs/image-spec.es.js.map +1 -1
- package/es/modules/divider.es.js.map +1 -1
- package/es/modules/emoji.es.js.map +1 -1
- package/es/modules/file/formats/file.es.js.map +1 -1
- package/es/modules/file/modules/file-bar.es.js.map +1 -1
- package/es/modules/file/modules/file-module.es.js.map +1 -1
- package/es/modules/flow-chart/config-utils.es.js.map +1 -1
- package/es/modules/flow-chart/formats/flow-chart-blot.es.js.map +1 -1
- package/es/modules/flow-chart/i18n/en-us.es.js.map +1 -1
- package/es/modules/flow-chart/i18n/index.es.js.map +1 -1
- package/es/modules/flow-chart/i18n/zh-cn.es.js.map +1 -1
- package/es/modules/flow-chart/icons.es.js.map +1 -1
- package/es/modules/flow-chart/index.es.js.map +1 -1
- package/es/modules/flow-chart/modules/context-menu.es.js.map +1 -1
- package/es/modules/flow-chart/modules/control-panel.es.js.map +1 -1
- package/es/modules/flow-chart/modules/custom-resize-action.es.js.map +1 -1
- package/es/modules/link/formats/link.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/tooltip.es.js.map +1 -1
- package/es/modules/mention/constants.es.js.map +1 -1
- package/es/modules/mention/mention-link.es.js.map +1 -1
- package/es/modules/mention/mention.es.js.map +1 -1
- package/es/modules/mind-map/config-utils.es.js.map +1 -1
- package/es/modules/mind-map/formats/mind-map-blot.es.js.map +1 -1
- package/es/modules/mind-map/i18n/en-us.es.js.map +1 -1
- package/es/modules/mind-map/i18n/index.es.js.map +1 -1
- package/es/modules/mind-map/i18n/zh-cn.es.js.map +1 -1
- package/es/modules/mind-map/icons.es.js.map +1 -1
- package/es/modules/mind-map/index.es.js.map +1 -1
- package/es/modules/mind-map/modules/context-menu.es.js.map +1 -1
- package/es/modules/mind-map/modules/control-panel.es.js.map +1 -1
- package/es/modules/mind-map/modules/custom-resize-action.es.js.map +1 -1
- package/es/modules/syntax.es.js.map +1 -1
- package/es/modules/toolbar/better-picker.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/merge.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 +27 -0
- 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 +2 -0
- 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/emoji.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/index.cjs.js +39 -10
- package/lib/index.cjs.js.map +1 -1
- package/lib/modules/ai/constants.cjs.js.map +1 -1
- package/lib/modules/ai/icons.cjs.js.map +1 -1
- package/lib/modules/ai/index.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/module.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/provider/websocket.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/actions/action.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -1
- package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -1
- package/lib/modules/custom-image/image.cjs.js.map +1 -1
- package/lib/modules/custom-image/options.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -1
- package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -1
- package/lib/modules/divider.cjs.js.map +1 -1
- package/lib/modules/emoji.cjs.js.map +1 -1
- package/lib/modules/file/formats/file.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-module.cjs.js.map +1 -1
- package/lib/modules/flow-chart/config-utils.cjs.js.map +1 -1
- package/lib/modules/flow-chart/formats/flow-chart-blot.cjs.js.map +1 -1
- package/lib/modules/flow-chart/i18n/en-us.cjs.js.map +1 -1
- package/lib/modules/flow-chart/i18n/index.cjs.js.map +1 -1
- package/lib/modules/flow-chart/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/modules/flow-chart/icons.cjs.js.map +1 -1
- package/lib/modules/flow-chart/index.cjs.js.map +1 -1
- package/lib/modules/flow-chart/modules/context-menu.cjs.js.map +1 -1
- package/lib/modules/flow-chart/modules/control-panel.cjs.js.map +1 -1
- package/lib/modules/flow-chart/modules/custom-resize-action.cjs.js.map +1 -1
- package/lib/modules/link/formats/link.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/tooltip.cjs.js.map +1 -1
- package/lib/modules/mention/constants.cjs.js.map +1 -1
- package/lib/modules/mention/mention-link.cjs.js.map +1 -1
- package/lib/modules/mention/mention.cjs.js.map +1 -1
- package/lib/modules/mind-map/config-utils.cjs.js.map +1 -1
- package/lib/modules/mind-map/formats/mind-map-blot.cjs.js.map +1 -1
- package/lib/modules/mind-map/i18n/en-us.cjs.js.map +1 -1
- package/lib/modules/mind-map/i18n/index.cjs.js.map +1 -1
- package/lib/modules/mind-map/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/modules/mind-map/icons.cjs.js.map +1 -1
- package/lib/modules/mind-map/index.cjs.js.map +1 -1
- package/lib/modules/mind-map/modules/context-menu.cjs.js.map +1 -1
- package/lib/modules/mind-map/modules/control-panel.cjs.js.map +1 -1
- package/lib/modules/mind-map/modules/custom-resize-action.cjs.js.map +1 -1
- package/lib/modules/syntax.cjs.js.map +1 -1
- package/lib/modules/toolbar/better-picker.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/merge.cjs.js.map +1 -1
- package/lib/utils/method.cjs.js.map +1 -1
- package/package.json +1 -1
- package/patches/quill@2.0.3.patch +33 -33
- package/scripts/apply-patches.cjs +248 -248
- package/style.css +1 -1
- 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 +55 -11
- package/types/config/editor.utils.d.ts +40 -40
- package/types/config/i18n/en-us.d.ts +125 -125
- package/types/config/i18n/zh-cn.d.ts +125 -125
- package/types/config/index.d.ts +7 -7
- package/types/config/types/additional-toolbar-item.interface.d.ts +8 -0
- package/types/config/types/content-change.interface.d.ts +13 -0
- package/types/config/types/content-save.interface.d.ts +6 -0
- package/types/config/types/counter-option.interface.d.ts +9 -0
- package/types/config/types/editor-config.interface.d.ts +12 -11
- package/types/config/types/editor-modules.interface.d.ts +39 -38
- package/types/config/types/editor-toolbar.interface.d.ts +6 -0
- package/types/config/types/file-operation.interface.d.ts +12 -0
- package/types/config/types/focus-change.interface.d.ts +4 -0
- package/types/config/types/fullscreen-module.interface.d.ts +4 -0
- package/types/config/types/help-panel-item.interface.d.ts +5 -0
- package/types/config/types/help-panel-option.interface.d.ts +7 -0
- package/types/config/types/image-module.interface.d.ts +3 -0
- package/types/config/types/image-upload.interface.d.ts +7 -0
- package/types/config/types/index.d.ts +3 -3
- package/types/config/types/load-on-demand-module.interface.d.ts +5 -0
- package/types/config/types/mention-module.interface.d.ts +8 -0
- package/types/config/types/paste-change.interface.d.ts +6 -0
- package/types/config/types/quick-menu-module.interface.d.ts +3 -0
- package/types/config/types/range.interface.d.ts +4 -0
- package/types/config/types/registry-options.interface.d.ts +5 -0
- package/types/config/types/selection-change.interface.d.ts +8 -0
- package/types/config/types/toolbar-item.interface.d.ts +13 -0
- package/types/config/types/type.d.ts +2 -2
- package/types/config/types/validate-error.interface.d.ts +13 -0
- package/types/core/fluent-editor.d.ts +11 -10
- package/types/fluent-editor.d.ts +2 -1
- package/types/formats/emoji.d.ts +8 -7
- package/types/formats/index.d.ts +4 -4
- package/types/formats/soft-break.d.ts +12 -11
- package/types/formats/strike.d.ts +8 -7
- package/types/formats/video.d.ts +13 -12
- package/types/index.d.ts +8 -7
- package/types/modules/ai/constants.d.ts +30 -30
- package/types/modules/ai/icons.d.ts +21 -21
- package/types/modules/ai/index.d.ts +94 -93
- package/types/modules/ai/types.d.ts +16 -16
- package/types/modules/collaborative-editing/awareness/awareness.d.ts +26 -25
- package/types/modules/collaborative-editing/awareness/index.d.ts +2 -2
- package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +3 -2
- package/types/modules/collaborative-editing/collaborative-editing.d.ts +21 -20
- package/types/modules/collaborative-editing/index.d.ts +2 -2
- package/types/modules/collaborative-editing/module.d.ts +11 -10
- package/types/modules/collaborative-editing/provider/index.d.ts +3 -3
- package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +25 -24
- package/types/modules/collaborative-editing/provider/webrtc.d.ts +34 -33
- package/types/modules/collaborative-editing/provider/websocket.d.ts +38 -37
- package/types/modules/collaborative-editing/types.d.ts +46 -45
- package/types/modules/counter.d.ts +22 -21
- package/types/modules/custom-clipboard.d.ts +24 -23
- package/types/modules/custom-image/BlotFormatter.d.ts +29 -0
- package/types/modules/custom-image/{options.d.ts → Options.d.ts} +46 -45
- package/types/modules/custom-image/actions/{action.d.ts → Action.d.ts} +8 -7
- package/types/modules/custom-image/actions/CustomResizeAction.d.ts +24 -0
- package/types/modules/custom-image/actions/DeleteAction.d.ts +7 -0
- package/types/modules/custom-image/actions/custom-resize-action.d.ts +23 -22
- package/types/modules/custom-image/actions/delete-action.d.ts +6 -5
- package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +16 -15
- package/types/modules/custom-image/actions/index.d.ts +6 -6
- package/types/modules/custom-image/actions/toolbar-action.d.ts +8 -7
- package/types/modules/custom-image/actions/toolbar.d.ts +17 -16
- package/types/modules/custom-image/blot-formatter.d.ts +20 -19
- package/types/modules/custom-image/image-bar.d.ts +15 -0
- package/types/modules/custom-image/image.d.ts +27 -26
- package/types/modules/custom-image/index.d.ts +4 -4
- package/types/modules/custom-image/specs/BlotSpec.d.ts +13 -0
- package/types/modules/custom-image/specs/CustomImageSpec.d.ts +21 -0
- package/types/modules/custom-image/specs/ImageSpec.d.ts +10 -0
- package/types/modules/custom-image/specs/blot-spec.d.ts +11 -10
- package/types/modules/custom-image/specs/custom-image-spec.d.ts +16 -15
- package/types/modules/custom-image/specs/image-spec.d.ts +8 -7
- package/types/modules/custom-image/specs/index.d.ts +3 -3
- package/types/modules/custom-uploader.d.ts +38 -37
- package/types/modules/divider.d.ts +8 -7
- package/types/modules/emoji/emoji-list/index.d.ts +1 -0
- package/types/modules/emoji/emoji-list/people.d.ts +1 -0
- package/types/modules/emoji/emoji-list.d.ts +2 -0
- package/types/modules/emoji/emoji-map.d.ts +2 -0
- package/types/modules/emoji/emoji-sprite.d.ts +1 -0
- package/types/modules/emoji/formats/emoji-blot.d.ts +13 -0
- package/types/modules/emoji/index.d.ts +10 -0
- package/types/modules/emoji/modules/emoji.d.ts +38 -0
- package/types/modules/emoji/modules/toolbar-emoji.d.ts +8 -0
- package/types/modules/emoji/utils.d.ts +1 -0
- package/types/modules/emoji.d.ts +36 -35
- package/types/modules/file/formats/file.d.ts +18 -17
- package/types/modules/file/index.d.ts +3 -3
- package/types/modules/file/modules/file-bar.d.ts +14 -14
- package/types/modules/file/modules/file-module.d.ts +8 -7
- package/types/modules/flow-chart/config-utils.d.ts +10 -9
- package/types/modules/flow-chart/formats/flow-chart-blot.d.ts +41 -40
- package/types/modules/flow-chart/i18n/en-us.d.ts +26 -26
- package/types/modules/flow-chart/i18n/index.d.ts +1 -1
- package/types/modules/flow-chart/i18n/zh-cn.d.ts +26 -26
- package/types/modules/flow-chart/icons.d.ts +12 -12
- package/types/modules/flow-chart/index.d.ts +9 -8
- package/types/modules/flow-chart/modules/context-menu.d.ts +2 -1
- package/types/modules/flow-chart/modules/control-panel.d.ts +2 -1
- package/types/modules/flow-chart/modules/custom-resize-action.d.ts +22 -22
- package/types/modules/flow-chart/options.d.ts +29 -29
- package/types/modules/global-link/constants.d.ts +3 -0
- package/types/modules/global-link/formats/customer-widget-link.d.ts +14 -0
- package/types/modules/global-link/formats/doc-link.d.ts +17 -0
- package/types/modules/global-link/formats/wiki-link.d.ts +16 -0
- package/types/modules/global-link/formats/work-item-link.d.ts +16 -0
- package/types/modules/global-link/global-link-panel.d.ts +19 -0
- package/types/modules/global-link/index.d.ts +18 -0
- package/types/modules/global-link/utils/createTable.d.ts +1 -0
- package/types/modules/i18n.d.ts +14 -13
- package/types/modules/index.d.ts +18 -18
- package/types/modules/link/formats/link.d.ts +15 -14
- package/types/modules/link/index.d.ts +2 -2
- package/types/modules/link/modules/tooltip.d.ts +26 -25
- package/types/modules/mathlive/formats.d.ts +21 -20
- package/types/modules/mathlive/index.d.ts +3 -3
- package/types/modules/mathlive/module.d.ts +8 -7
- package/types/modules/mathlive/tooltip.d.ts +15 -14
- package/types/modules/mention/{mention.d.ts → Mention.d.ts} +53 -52
- package/types/modules/mention/MentionLink.d.ts +16 -0
- package/types/modules/mention/constants.d.ts +3 -3
- package/types/modules/mention/index.d.ts +2 -2
- package/types/modules/mention/mention-link.d.ts +15 -14
- package/types/modules/mind-map/config-utils.d.ts +12 -11
- package/types/modules/mind-map/formats/mind-map-blot.d.ts +42 -41
- package/types/modules/mind-map/i18n/en-us.d.ts +25 -25
- package/types/modules/mind-map/i18n/index.d.ts +1 -1
- package/types/modules/mind-map/i18n/zh-cn.d.ts +25 -25
- package/types/modules/mind-map/icons.d.ts +21 -21
- package/types/modules/mind-map/index.d.ts +9 -8
- package/types/modules/mind-map/modules/context-menu.d.ts +2 -1
- package/types/modules/mind-map/modules/control-panel.d.ts +2 -1
- package/types/modules/mind-map/modules/custom-resize-action.d.ts +23 -23
- package/types/modules/mind-map/options.d.ts +27 -27
- package/types/modules/quick-menu.d.ts +22 -0
- package/types/modules/shortcut-key/index.d.ts +68 -67
- package/types/modules/syntax.d.ts +13 -12
- package/types/modules/table/better-table.d.ts +35 -0
- package/types/modules/table/formats/header.d.ts +23 -0
- package/types/modules/table/formats/list.d.ts +34 -0
- package/types/modules/table/formats/table.d.ts +147 -0
- package/types/modules/table/modules/table-column-tool.d.ts +23 -0
- package/types/modules/table/modules/table-operation-menu.d.ts +38 -0
- package/types/modules/table/modules/table-scroll-bar.d.ts +33 -0
- package/types/modules/table/modules/table-selection.d.ts +37 -0
- package/types/modules/table/modules/table-selector.d.ts +22 -0
- package/types/modules/table/table-config.d.ts +38 -0
- package/types/modules/table/utils/index.d.ts +17 -0
- package/types/modules/table/utils/node-matchers.d.ts +9 -0
- package/types/modules/table-up/index.d.ts +33 -32
- package/types/modules/toolbar/better-picker.d.ts +14 -13
- package/types/modules/toolbar/better-toolbar.d.ts +7 -6
- package/types/modules/toolbar/index.d.ts +3 -3
- package/types/modules/toolbar/toolbar-tip.d.ts +8 -7
- package/types/themes/snow.d.ts +10 -9
- package/types/tools/format-painter.d.ts +13 -12
- package/types/tools/fullscreen.d.ts +5 -4
- package/types/tools/screenshot.d.ts +18 -17
- package/types/ui/icons.config.d.ts +40 -40
- 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 +6 -6
- package/types/utils/merge.d.ts +7 -7
- package/types/utils/method.d.ts +6 -6
- package/types/utils/scroll-lock.d.ts +6 -6
|
@@ -1,125 +1,125 @@
|
|
|
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
|
-
'line-height': 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
|
-
'default-link-text': string;
|
|
34
|
-
basicblock: string;
|
|
35
|
-
linkplaceholder: string;
|
|
36
|
-
'counter-template': string;
|
|
37
|
-
char: string;
|
|
38
|
-
word: string;
|
|
39
|
-
'counter-limit-tips': string;
|
|
40
|
-
'ie-msg': string;
|
|
41
|
-
loading: string;
|
|
42
|
-
pasting: string;
|
|
43
|
-
'img-error': string;
|
|
44
|
-
'img-error-info': string;
|
|
45
|
-
'last-modified': string;
|
|
46
|
-
screenshot: string;
|
|
47
|
-
uploading: string;
|
|
48
|
-
'sub-title-bg-color': string;
|
|
49
|
-
emoji: string;
|
|
50
|
-
fullscreen: string;
|
|
51
|
-
blockquote: string;
|
|
52
|
-
undo: string;
|
|
53
|
-
redo: string;
|
|
54
|
-
clean: string;
|
|
55
|
-
bold: string;
|
|
56
|
-
italic: string;
|
|
57
|
-
underline: string;
|
|
58
|
-
strike: string;
|
|
59
|
-
image: string;
|
|
60
|
-
file: string;
|
|
61
|
-
'mind-map': string;
|
|
62
|
-
'flow-chart': string;
|
|
63
|
-
link: string;
|
|
64
|
-
divider: string;
|
|
65
|
-
code: string;
|
|
66
|
-
table: string;
|
|
67
|
-
'table-up': string;
|
|
68
|
-
'code-block': string;
|
|
69
|
-
formula: string;
|
|
70
|
-
'format-painter': string;
|
|
71
|
-
video: string;
|
|
72
|
-
color: string;
|
|
73
|
-
background: string;
|
|
74
|
-
font: string;
|
|
75
|
-
size: string;
|
|
76
|
-
list: string;
|
|
77
|
-
'list-ordered': string;
|
|
78
|
-
'list-bullet': string;
|
|
79
|
-
'list-check': string;
|
|
80
|
-
'align-left': string;
|
|
81
|
-
'align-center': string;
|
|
82
|
-
'align-right': string;
|
|
83
|
-
'align-justify': string;
|
|
84
|
-
'direction-ltr': string;
|
|
85
|
-
'direction-rtl': string;
|
|
86
|
-
'indent--1': string;
|
|
87
|
-
'indent-+1': string;
|
|
88
|
-
'script-super': string;
|
|
89
|
-
'script-sub': string;
|
|
90
|
-
'header-normal': string;
|
|
91
|
-
'header-1': string;
|
|
92
|
-
'header-2': string;
|
|
93
|
-
'header-3': string;
|
|
94
|
-
'header-4': string;
|
|
95
|
-
'header-5': string;
|
|
96
|
-
'header-6': string;
|
|
97
|
-
'header-list': string;
|
|
98
|
-
'input-recall-menu-placeholder': string;
|
|
99
|
-
'clear-color': string;
|
|
100
|
-
'custom-color': string;
|
|
101
|
-
fullCheckboxText: string;
|
|
102
|
-
customBtnText: string;
|
|
103
|
-
confirmText: string;
|
|
104
|
-
cancelText: string;
|
|
105
|
-
rowText: string;
|
|
106
|
-
colText: string;
|
|
107
|
-
notPositiveNumberError: string;
|
|
108
|
-
custom: string;
|
|
109
|
-
clear: string;
|
|
110
|
-
transparent: string;
|
|
111
|
-
perWidthInsufficient: string;
|
|
112
|
-
CopyCell: string;
|
|
113
|
-
CutCell: string;
|
|
114
|
-
InsertTop: string;
|
|
115
|
-
InsertRight: string;
|
|
116
|
-
InsertBottom: string;
|
|
117
|
-
InsertLeft: string;
|
|
118
|
-
MergeCell: string;
|
|
119
|
-
SplitCell: string;
|
|
120
|
-
DeleteRow: string;
|
|
121
|
-
DeleteColumn: string;
|
|
122
|
-
DeleteTable: string;
|
|
123
|
-
BackgroundColor: string;
|
|
124
|
-
BorderColor: string;
|
|
125
|
-
};
|
|
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
|
+
'line-height': 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
|
+
'default-link-text': string;
|
|
34
|
+
basicblock: string;
|
|
35
|
+
linkplaceholder: string;
|
|
36
|
+
'counter-template': string;
|
|
37
|
+
char: string;
|
|
38
|
+
word: string;
|
|
39
|
+
'counter-limit-tips': string;
|
|
40
|
+
'ie-msg': string;
|
|
41
|
+
loading: string;
|
|
42
|
+
pasting: string;
|
|
43
|
+
'img-error': string;
|
|
44
|
+
'img-error-info': string;
|
|
45
|
+
'last-modified': string;
|
|
46
|
+
screenshot: string;
|
|
47
|
+
uploading: string;
|
|
48
|
+
'sub-title-bg-color': string;
|
|
49
|
+
emoji: string;
|
|
50
|
+
fullscreen: string;
|
|
51
|
+
blockquote: string;
|
|
52
|
+
undo: string;
|
|
53
|
+
redo: string;
|
|
54
|
+
clean: string;
|
|
55
|
+
bold: string;
|
|
56
|
+
italic: string;
|
|
57
|
+
underline: string;
|
|
58
|
+
strike: string;
|
|
59
|
+
image: string;
|
|
60
|
+
file: string;
|
|
61
|
+
'mind-map': string;
|
|
62
|
+
'flow-chart': string;
|
|
63
|
+
link: string;
|
|
64
|
+
divider: string;
|
|
65
|
+
code: string;
|
|
66
|
+
table: string;
|
|
67
|
+
'table-up': string;
|
|
68
|
+
'code-block': string;
|
|
69
|
+
formula: string;
|
|
70
|
+
'format-painter': string;
|
|
71
|
+
video: string;
|
|
72
|
+
color: string;
|
|
73
|
+
background: string;
|
|
74
|
+
font: string;
|
|
75
|
+
size: string;
|
|
76
|
+
list: string;
|
|
77
|
+
'list-ordered': string;
|
|
78
|
+
'list-bullet': string;
|
|
79
|
+
'list-check': string;
|
|
80
|
+
'align-left': string;
|
|
81
|
+
'align-center': string;
|
|
82
|
+
'align-right': string;
|
|
83
|
+
'align-justify': string;
|
|
84
|
+
'direction-ltr': string;
|
|
85
|
+
'direction-rtl': string;
|
|
86
|
+
'indent--1': string;
|
|
87
|
+
'indent-+1': string;
|
|
88
|
+
'script-super': string;
|
|
89
|
+
'script-sub': string;
|
|
90
|
+
'header-normal': string;
|
|
91
|
+
'header-1': string;
|
|
92
|
+
'header-2': string;
|
|
93
|
+
'header-3': string;
|
|
94
|
+
'header-4': string;
|
|
95
|
+
'header-5': string;
|
|
96
|
+
'header-6': string;
|
|
97
|
+
'header-list': string;
|
|
98
|
+
'input-recall-menu-placeholder': string;
|
|
99
|
+
'clear-color': string;
|
|
100
|
+
'custom-color': string;
|
|
101
|
+
fullCheckboxText: string;
|
|
102
|
+
customBtnText: string;
|
|
103
|
+
confirmText: string;
|
|
104
|
+
cancelText: string;
|
|
105
|
+
rowText: string;
|
|
106
|
+
colText: string;
|
|
107
|
+
notPositiveNumberError: string;
|
|
108
|
+
custom: string;
|
|
109
|
+
clear: string;
|
|
110
|
+
transparent: string;
|
|
111
|
+
perWidthInsufficient: string;
|
|
112
|
+
CopyCell: string;
|
|
113
|
+
CutCell: string;
|
|
114
|
+
InsertTop: string;
|
|
115
|
+
InsertRight: string;
|
|
116
|
+
InsertBottom: string;
|
|
117
|
+
InsertLeft: string;
|
|
118
|
+
MergeCell: string;
|
|
119
|
+
SplitCell: string;
|
|
120
|
+
DeleteRow: string;
|
|
121
|
+
DeleteColumn: string;
|
|
122
|
+
DeleteTable: string;
|
|
123
|
+
BackgroundColor: string;
|
|
124
|
+
BorderColor: string;
|
|
125
|
+
};
|
package/types/config/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './editor.config';
|
|
2
|
-
export * from './editor.utils';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export declare function inputFile(type: 'image' | 'video' | 'file', accept: string[]): void;
|
|
5
|
-
export declare function getListValue(value: any, preListValue: any): any;
|
|
6
|
-
/** css namespace */
|
|
7
|
-
export declare const namespace = "fe";
|
|
1
|
+
export * from './editor.config';
|
|
2
|
+
export * from './editor.utils';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export declare function inputFile(type: 'image' | 'video' | 'file', accept: string[]): void;
|
|
5
|
+
export declare function getListValue(value: any, preListValue: any): any;
|
|
6
|
+
/** css namespace */
|
|
7
|
+
export declare const namespace = "fe";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { QuillOptions } from 'quill';
|
|
2
2
|
import { ScreenShotOptions } from '../../tools/screenshot';
|
|
3
3
|
import { IEditorModules } from './editor-modules.interface';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
4
|
+
|
|
5
|
+
export interface IEditorConfig extends QuillOptions {
|
|
6
|
+
'modules'?: IEditorModules;
|
|
7
|
+
'screenshotOnStaticPage'?: boolean;
|
|
8
|
+
'scrollingContainer'?: HTMLElement | string | null;
|
|
9
|
+
'autoProtocol'?: boolean | string;
|
|
10
|
+
'editorPaste'?: any;
|
|
11
|
+
'screenshot'?: Partial<ScreenShotOptions>;
|
|
12
|
+
'format-painter'?: {
|
|
13
|
+
ignoreFormat?: string[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -5,41 +5,42 @@ import { FileUploaderOptions } from '../../modules/custom-uploader';
|
|
|
5
5
|
import { EmojiModuleOptions } from '../../modules/emoji';
|
|
6
6
|
import { FlowChartOptions } from '../../modules/flow-chart/options';
|
|
7
7
|
import { MindMapOptions } from '../../modules/mind-map/options';
|
|
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
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
|
|
8
|
+
|
|
9
|
+
export type ToolbarOptions = {
|
|
10
|
+
container?: HTMLElement | (Record<string, any>[] | string[] | (string | Record<string, any>)[])[];
|
|
11
|
+
} & ToolbarProps;
|
|
12
|
+
export interface IEditorModules {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
'clipboard'?: {
|
|
15
|
+
matchers?: any[];
|
|
16
|
+
matchVisual?: boolean;
|
|
17
|
+
} | boolean;
|
|
18
|
+
'history'?: {
|
|
19
|
+
delay?: number;
|
|
20
|
+
maxStack?: number;
|
|
21
|
+
userOnly?: boolean;
|
|
22
|
+
} | boolean;
|
|
23
|
+
'keyboard'?: {
|
|
24
|
+
bindings?: any;
|
|
25
|
+
} | boolean;
|
|
26
|
+
'syntax'?: {
|
|
27
|
+
interval?: number;
|
|
28
|
+
languages?: {
|
|
29
|
+
key: string;
|
|
30
|
+
label: string;
|
|
31
|
+
}[];
|
|
32
|
+
hljs?: any;
|
|
33
|
+
} | boolean;
|
|
34
|
+
'toolbar'?: boolean | ToolbarOptions | ToolbarOptions['container'] | string[];
|
|
35
|
+
'uploader'?: boolean | Partial<FileUploaderOptions>;
|
|
36
|
+
'shortcut-key'?: boolean | Partial<ShortCutKeyInputOptions>;
|
|
37
|
+
'mention'?: boolean | MentionOption;
|
|
38
|
+
'i18n'?: boolean | Partial<I18NOptions>;
|
|
39
|
+
'counter'?: boolean | ICounterOption;
|
|
40
|
+
'emoji'?: boolean | EmojiModuleOptions;
|
|
41
|
+
'file'?: boolean;
|
|
42
|
+
'mathlive'?: boolean;
|
|
43
|
+
'image'?: boolean | Partial<BlotFormatterOptionsInput>;
|
|
44
|
+
'mind-map'?: boolean | Partial<MindMapOptions>;
|
|
45
|
+
'flow-chart'?: boolean | Partial<FlowChartOptions>;
|
|
46
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './editor-config.interface';
|
|
2
|
-
export * from './editor-modules.interface';
|
|
3
|
-
export * from './type';
|
|
1
|
+
export * from './editor-config.interface';
|
|
2
|
+
export * from './editor-modules.interface';
|
|
3
|
+
export * from './type';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IToolbarItem {
|
|
2
|
+
indent?: string;
|
|
3
|
+
list?: string;
|
|
4
|
+
direction?: string;
|
|
5
|
+
header?: number | (boolean | number)[];
|
|
6
|
+
color?: string[];
|
|
7
|
+
background?: string[];
|
|
8
|
+
align?: string[];
|
|
9
|
+
script?: string;
|
|
10
|
+
font?: string[];
|
|
11
|
+
size?: boolean[] | string[];
|
|
12
|
+
lineheight?: number[];
|
|
13
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type AnyFunction = (...args: any[]) => any;
|
|
2
|
-
export type Constructor<T = any, U extends Array<any> = any[]> = new (...args: U) => T;
|
|
1
|
+
export type AnyFunction = (...args: any[]) => any;
|
|
2
|
+
export type Constructor<T = any, U extends Array<any> = any[]> = new (...args: U) => T;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ExpandedQuillOptions, default as Quill } from 'quill';
|
|
2
2
|
import { IEditorConfig } from '../config/types';
|
|
3
3
|
import { FileUploader } from '../modules/custom-uploader';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
|
|
5
|
+
declare class FluentEditor extends Quill {
|
|
6
|
+
isFullscreen: boolean;
|
|
7
|
+
options: IEditorConfig & ExpandedQuillOptions;
|
|
8
|
+
uploader: FileUploader;
|
|
9
|
+
static register(...args: any[]): void;
|
|
10
|
+
get lang(): string;
|
|
11
|
+
constructor(container: HTMLElement | string, options?: IEditorConfig);
|
|
12
|
+
getLangText(name: string): string;
|
|
13
|
+
}
|
|
14
|
+
export default FluentEditor;
|
package/types/fluent-editor.d.ts
CHANGED
package/types/formats/emoji.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as TypeInline } from 'quill/blots/inline';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
static
|
|
6
|
-
static
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
|
|
3
|
+
declare const Inline: typeof TypeInline;
|
|
4
|
+
export declare class EmojiBlot extends Inline {
|
|
5
|
+
static blotName: string;
|
|
6
|
+
static tagName: string;
|
|
7
|
+
static className: string;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
package/types/formats/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './emoji';
|
|
2
|
-
export * from './soft-break';
|
|
3
|
-
export * from './strike';
|
|
4
|
-
export * from './video';
|
|
1
|
+
export * from './emoji';
|
|
2
|
+
export * from './soft-break';
|
|
3
|
+
export * from './strike';
|
|
4
|
+
export * from './video';
|