@opentiny/fluent-editor 4.0.0-alpha.0 → 4.0.0-alpha.10
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 -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 +0 -7
- package/es/config/editor.config.es.js.map +1 -1
- package/es/config/editor.utils.es.js +0 -2
- package/es/config/editor.utils.es.js.map +1 -1
- package/es/config/i18n/en-us.es.js +0 -13
- package/es/config/i18n/en-us.es.js.map +1 -1
- package/es/config/i18n/zh-cn.es.js +0 -13
- package/es/config/i18n/zh-cn.es.js.map +1 -1
- package/es/config/index.es.js +8 -13
- package/es/config/index.es.js.map +1 -1
- package/es/config/types/index.es.js +0 -20
- package/es/config/types/index.es.js.map +1 -1
- package/es/core/fluent-editor.es.js +7 -5
- package/es/core/fluent-editor.es.js.map +1 -1
- package/es/fluent-editor.es.js +38 -22
- package/es/fluent-editor.es.js.map +1 -1
- package/es/formats/emoji.es.js +14 -0
- package/es/formats/emoji.es.js.map +1 -0
- package/es/formats/index.es.js +11 -0
- package/es/formats/index.es.js.map +1 -0
- package/es/formats/soft-break.es.js +12 -5
- package/es/formats/soft-break.es.js.map +1 -1
- package/es/formats/strike.es.js +8 -5
- package/es/formats/strike.es.js.map +1 -1
- package/es/formats/video.es.js +14 -10
- package/es/formats/video.es.js.map +1 -1
- package/es/index.es.js +94 -32
- package/es/index.es.js.map +1 -1
- package/es/modules/ai/constants.es.js +50 -0
- package/es/modules/ai/constants.es.js.map +1 -0
- package/es/modules/ai/icons.es.js +319 -0
- package/es/modules/ai/icons.es.js.map +1 -0
- package/es/modules/ai/index.es.js +670 -0
- package/es/modules/ai/index.es.js.map +1 -0
- package/es/modules/collaborative-editing/awareness/awareness.es.js +93 -0
- package/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -0
- package/es/modules/collaborative-editing/awareness/index.es.js +8 -0
- package/es/modules/{emoji/emoji-list → collaborative-editing/awareness}/index.es.js.map +1 -1
- package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js +12 -0
- package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -0
- package/es/modules/collaborative-editing/collaborative-editing.es.js +105 -0
- package/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -0
- package/es/modules/collaborative-editing/index.es.js +6 -0
- package/es/modules/collaborative-editing/index.es.js.map +1 -0
- package/es/modules/collaborative-editing/module.es.js +35 -0
- package/es/modules/collaborative-editing/module.es.js.map +1 -0
- package/es/modules/collaborative-editing/provider/providerRegistry.es.js +28 -0
- package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -0
- package/es/modules/collaborative-editing/provider/webrtc.es.js +99 -0
- package/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -0
- package/es/modules/collaborative-editing/provider/websocket.es.js +111 -0
- package/es/modules/collaborative-editing/provider/websocket.es.js.map +1 -0
- package/es/modules/collaborative-editing/types.es.js +2 -0
- package/es/modules/collaborative-editing/types.es.js.map +1 -0
- package/es/modules/counter.es.js +8 -3
- package/es/modules/counter.es.js.map +1 -1
- package/es/modules/custom-clipboard.es.js +23 -27
- package/es/modules/custom-clipboard.es.js.map +1 -1
- package/es/modules/custom-image/actions/action.es.js +19 -0
- package/es/modules/custom-image/actions/action.es.js.map +1 -0
- package/es/modules/custom-image/actions/{CustomResizeAction.es.js → custom-resize-action.es.js} +24 -11
- package/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -0
- package/es/modules/custom-image/actions/{DeleteAction.es.js → delete-action.es.js} +8 -5
- package/es/modules/custom-image/actions/delete-action.es.js.map +1 -0
- package/es/modules/custom-image/actions/image-toolbar-buttons.es.js +137 -0
- package/es/modules/custom-image/actions/image-toolbar-buttons.es.js.map +1 -0
- package/es/modules/custom-image/actions/index.es.js +18 -0
- package/es/modules/custom-image/actions/index.es.js.map +1 -0
- package/es/modules/custom-image/actions/toolbar-action.es.js +33 -0
- package/es/modules/custom-image/actions/toolbar-action.es.js.map +1 -0
- package/es/modules/custom-image/actions/toolbar.es.js +110 -0
- package/es/modules/custom-image/actions/toolbar.es.js.map +1 -0
- package/es/modules/custom-image/{BlotFormatter.es.js → blot-formatter.es.js} +27 -50
- package/es/modules/custom-image/blot-formatter.es.js.map +1 -0
- package/es/modules/custom-image/image.es.js +41 -21
- package/es/modules/custom-image/image.es.js.map +1 -1
- package/es/modules/custom-image/index.es.js +9 -0
- package/es/modules/custom-image/index.es.js.map +1 -0
- package/es/modules/custom-image/options.es.js +88 -0
- package/es/modules/custom-image/options.es.js.map +1 -0
- package/es/modules/custom-image/specs/blot-spec.es.js +33 -0
- package/es/modules/custom-image/specs/blot-spec.es.js.map +1 -0
- package/es/modules/custom-image/specs/{CustomImageSpec.es.js → custom-image-spec.es.js} +13 -14
- package/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -0
- package/es/modules/custom-image/specs/image-spec.es.js +32 -0
- package/es/modules/custom-image/specs/image-spec.es.js.map +1 -0
- package/es/modules/custom-image/specs/index.es.js +9 -0
- package/es/modules/custom-image/specs/index.es.js.map +1 -0
- package/es/modules/custom-uploader.es.js +63 -194
- package/es/modules/custom-uploader.es.js.map +1 -1
- package/es/modules/divider.es.js +8 -7
- package/es/modules/divider.es.js.map +1 -1
- package/es/modules/emoji.es.js +167 -0
- package/es/modules/emoji.es.js.map +1 -0
- package/es/modules/file/formats/file.es.js +13 -13
- package/es/modules/file/formats/file.es.js.map +1 -1
- package/es/modules/file/index.es.js +6 -29
- package/es/modules/file/index.es.js.map +1 -1
- package/es/modules/file/modules/file-bar.es.js +11 -3
- package/es/modules/file/modules/file-bar.es.js.map +1 -1
- package/es/modules/file/modules/file-module.es.js +35 -0
- package/es/modules/file/modules/file-module.es.js.map +1 -0
- package/es/modules/i18n.es.js +33 -11
- package/es/modules/i18n.es.js.map +1 -1
- package/es/modules/index.es.js +27 -0
- package/es/modules/index.es.js.map +1 -0
- package/es/modules/link/formats/link.es.js +14 -10
- package/es/modules/link/formats/link.es.js.map +1 -1
- package/es/modules/link/index.es.js +4 -12
- package/es/modules/link/index.es.js.map +1 -1
- package/es/modules/link/modules/tooltip.es.js +31 -21
- package/es/modules/link/modules/tooltip.es.js.map +1 -1
- package/es/modules/mathlive/formats.es.js +10 -7
- package/es/modules/mathlive/formats.es.js.map +1 -1
- package/es/modules/mathlive/index.es.js +6 -30
- package/es/modules/mathlive/index.es.js.map +1 -1
- package/es/modules/mathlive/module.es.js +40 -0
- package/es/modules/mathlive/module.es.js.map +1 -0
- package/es/modules/mathlive/tooltip.es.js +9 -5
- package/es/modules/mathlive/tooltip.es.js.map +1 -1
- package/es/modules/mention/constants.es.js.map +1 -1
- package/es/modules/mention/index.es.js +7 -0
- package/es/modules/mention/index.es.js.map +1 -0
- package/es/modules/mention/{MentionLink.es.js → mention-link.es.js} +14 -6
- package/es/modules/mention/mention-link.es.js.map +1 -0
- package/es/modules/mention/{Mention.es.js → mention.es.js} +28 -20
- package/es/modules/mention/mention.es.js.map +1 -0
- package/es/modules/shortcut-key/index.es.js +17 -1
- package/es/modules/shortcut-key/index.es.js.map +1 -1
- package/es/modules/syntax.es.js +4 -0
- package/es/modules/syntax.es.js.map +1 -1
- package/es/modules/table-up/index.es.js +21 -8
- package/es/modules/table-up/index.es.js.map +1 -1
- package/es/modules/toolbar/better-picker.es.js +5 -0
- package/es/modules/toolbar/better-picker.es.js.map +1 -1
- package/es/modules/toolbar/better-toolbar.es.js +138 -0
- package/es/modules/toolbar/better-toolbar.es.js.map +1 -0
- package/es/modules/toolbar/index.es.js +5 -135
- package/es/modules/toolbar/index.es.js.map +1 -1
- package/es/modules/toolbar/toolbar-tip.es.js +6 -1
- package/es/modules/toolbar/toolbar-tip.es.js.map +1 -1
- package/es/themes/snow.es.js +32 -15
- package/es/themes/snow.es.js.map +1 -1
- package/es/tools/format-painter.es.js +8 -2
- package/es/tools/format-painter.es.js.map +1 -1
- package/es/tools/fullscreen.es.js.map +1 -1
- package/es/tools/screenshot.es.js.map +1 -1
- package/es/ui/icons.config.es.js +53 -0
- package/es/ui/icons.config.es.js.map +1 -1
- package/es/ui/icons.es.js +2 -1
- package/es/ui/icons.es.js.map +1 -1
- package/es/utils/debounce.es.js.map +1 -1
- package/es/utils/is.es.js +4 -0
- package/es/utils/is.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 +0 -7
- package/lib/config/editor.config.cjs.js.map +1 -1
- package/lib/config/editor.utils.cjs.js +0 -2
- package/lib/config/editor.utils.cjs.js.map +1 -1
- package/lib/config/i18n/en-us.cjs.js +0 -13
- package/lib/config/i18n/en-us.cjs.js.map +1 -1
- package/lib/config/i18n/zh-cn.cjs.js +0 -13
- package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/config/index.cjs.js +6 -11
- package/lib/config/index.cjs.js.map +1 -1
- package/lib/config/types/index.cjs.js +0 -20
- package/lib/config/types/index.cjs.js.map +1 -1
- package/lib/core/fluent-editor.cjs.js +6 -4
- package/lib/core/fluent-editor.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js +46 -30
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/formats/emoji.cjs.js +14 -0
- package/lib/formats/emoji.cjs.js.map +1 -0
- package/lib/formats/index.cjs.js +11 -0
- package/lib/formats/index.cjs.js.map +1 -0
- package/lib/formats/soft-break.cjs.js +13 -6
- package/lib/formats/soft-break.cjs.js.map +1 -1
- package/lib/formats/strike.cjs.js +9 -6
- package/lib/formats/strike.cjs.js.map +1 -1
- package/lib/formats/video.cjs.js +15 -11
- package/lib/formats/video.cjs.js.map +1 -1
- package/lib/index.cjs.js +114 -34
- package/lib/index.cjs.js.map +1 -1
- package/lib/modules/ai/constants.cjs.js +50 -0
- package/lib/modules/ai/constants.cjs.js.map +1 -0
- package/lib/modules/ai/icons.cjs.js +319 -0
- package/lib/modules/ai/icons.cjs.js.map +1 -0
- package/lib/modules/ai/index.cjs.js +670 -0
- package/lib/modules/ai/index.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/awareness/awareness.cjs.js +110 -0
- package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/awareness/index.cjs.js +8 -0
- package/lib/modules/collaborative-editing/awareness/index.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js +12 -0
- package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/collaborative-editing.cjs.js +122 -0
- package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/index.cjs.js +6 -0
- package/lib/modules/{emoji/emoji-list → collaborative-editing}/index.cjs.js.map +1 -1
- package/lib/modules/collaborative-editing/module.cjs.js +35 -0
- package/lib/modules/collaborative-editing/module.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js +28 -0
- package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/provider/webrtc.cjs.js +116 -0
- package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/provider/websocket.cjs.js +128 -0
- package/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +1 -0
- package/lib/modules/collaborative-editing/types.cjs.js +2 -0
- package/lib/modules/collaborative-editing/types.cjs.js.map +1 -0
- package/lib/modules/counter.cjs.js +8 -3
- package/lib/modules/counter.cjs.js.map +1 -1
- package/lib/modules/custom-clipboard.cjs.js +23 -27
- package/lib/modules/custom-clipboard.cjs.js.map +1 -1
- package/lib/modules/custom-image/actions/action.cjs.js +19 -0
- package/lib/modules/custom-image/actions/action.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/{CustomResizeAction.cjs.js → custom-resize-action.cjs.js} +26 -13
- package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/{DeleteAction.cjs.js → delete-action.cjs.js} +10 -7
- package/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js +137 -0
- package/lib/modules/custom-image/actions/image-toolbar-buttons.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/index.cjs.js +18 -0
- package/lib/modules/custom-image/actions/index.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/toolbar-action.cjs.js +33 -0
- package/lib/modules/custom-image/actions/toolbar-action.cjs.js.map +1 -0
- package/lib/modules/custom-image/actions/toolbar.cjs.js +110 -0
- package/lib/modules/custom-image/actions/toolbar.cjs.js.map +1 -0
- package/lib/modules/custom-image/{BlotFormatter.cjs.js → blot-formatter.cjs.js} +28 -51
- package/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -0
- package/lib/modules/custom-image/image.cjs.js +42 -22
- package/lib/modules/custom-image/image.cjs.js.map +1 -1
- package/lib/modules/custom-image/index.cjs.js +9 -0
- package/lib/modules/custom-image/index.cjs.js.map +1 -0
- package/lib/modules/custom-image/options.cjs.js +88 -0
- package/lib/modules/custom-image/options.cjs.js.map +1 -0
- package/lib/modules/custom-image/specs/blot-spec.cjs.js +33 -0
- package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -0
- package/lib/modules/custom-image/specs/{CustomImageSpec.cjs.js → custom-image-spec.cjs.js} +14 -15
- package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -0
- package/lib/modules/custom-image/specs/image-spec.cjs.js +32 -0
- package/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -0
- package/lib/modules/custom-image/specs/index.cjs.js +9 -0
- package/lib/modules/custom-image/specs/index.cjs.js.map +1 -0
- package/lib/modules/custom-uploader.cjs.js +64 -195
- package/lib/modules/custom-uploader.cjs.js.map +1 -1
- package/lib/modules/divider.cjs.js +9 -8
- package/lib/modules/divider.cjs.js.map +1 -1
- package/lib/modules/emoji.cjs.js +167 -0
- package/lib/modules/emoji.cjs.js.map +1 -0
- package/lib/modules/file/formats/file.cjs.js +14 -14
- package/lib/modules/file/formats/file.cjs.js.map +1 -1
- package/lib/modules/file/index.cjs.js +5 -28
- package/lib/modules/file/index.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-bar.cjs.js +12 -4
- package/lib/modules/file/modules/file-bar.cjs.js.map +1 -1
- package/lib/modules/file/modules/file-module.cjs.js +35 -0
- package/lib/modules/file/modules/file-module.cjs.js.map +1 -0
- package/lib/modules/i18n.cjs.js +32 -10
- package/lib/modules/i18n.cjs.js.map +1 -1
- package/lib/modules/index.cjs.js +27 -0
- package/lib/modules/index.cjs.js.map +1 -0
- package/lib/modules/link/formats/link.cjs.js +15 -11
- package/lib/modules/link/formats/link.cjs.js.map +1 -1
- package/lib/modules/link/index.cjs.js +4 -12
- package/lib/modules/link/index.cjs.js.map +1 -1
- package/lib/modules/link/modules/tooltip.cjs.js +30 -20
- package/lib/modules/link/modules/tooltip.cjs.js.map +1 -1
- package/lib/modules/mathlive/formats.cjs.js +11 -8
- package/lib/modules/mathlive/formats.cjs.js.map +1 -1
- package/lib/modules/mathlive/index.cjs.js +5 -29
- package/lib/modules/mathlive/index.cjs.js.map +1 -1
- package/lib/modules/mathlive/module.cjs.js +40 -0
- package/lib/modules/mathlive/module.cjs.js.map +1 -0
- package/lib/modules/mathlive/tooltip.cjs.js +10 -6
- package/lib/modules/mathlive/tooltip.cjs.js.map +1 -1
- package/lib/modules/mention/constants.cjs.js.map +1 -1
- package/lib/modules/mention/index.cjs.js +7 -0
- package/lib/modules/mention/index.cjs.js.map +1 -0
- package/lib/modules/mention/{MentionLink.cjs.js → mention-link.cjs.js} +15 -7
- package/lib/modules/mention/mention-link.cjs.js.map +1 -0
- package/lib/modules/mention/{Mention.cjs.js → mention.cjs.js} +30 -22
- package/lib/modules/mention/mention.cjs.js.map +1 -0
- package/lib/modules/shortcut-key/index.cjs.js +16 -0
- package/lib/modules/shortcut-key/index.cjs.js.map +1 -1
- package/lib/modules/syntax.cjs.js +4 -0
- package/lib/modules/syntax.cjs.js.map +1 -1
- package/lib/modules/table-up/index.cjs.js +21 -8
- package/lib/modules/table-up/index.cjs.js.map +1 -1
- package/lib/modules/toolbar/better-picker.cjs.js +5 -0
- package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
- package/lib/modules/toolbar/better-toolbar.cjs.js +138 -0
- package/lib/modules/toolbar/better-toolbar.cjs.js.map +1 -0
- package/lib/modules/toolbar/index.cjs.js +6 -136
- package/lib/modules/toolbar/index.cjs.js.map +1 -1
- package/lib/modules/toolbar/toolbar-tip.cjs.js +6 -1
- package/lib/modules/toolbar/toolbar-tip.cjs.js.map +1 -1
- package/lib/themes/snow.cjs.js +33 -16
- package/lib/themes/snow.cjs.js.map +1 -1
- package/lib/tools/format-painter.cjs.js +8 -2
- package/lib/tools/format-painter.cjs.js.map +1 -1
- package/lib/tools/fullscreen.cjs.js.map +1 -1
- package/lib/tools/screenshot.cjs.js.map +1 -1
- package/lib/ui/icons.cjs.js +1 -0
- package/lib/ui/icons.cjs.js.map +1 -1
- package/lib/ui/icons.config.cjs.js +53 -0
- package/lib/ui/icons.config.cjs.js.map +1 -1
- package/lib/utils/debounce.cjs.js.map +1 -1
- package/lib/utils/is.cjs.js +4 -0
- package/lib/utils/is.cjs.js.map +1 -1
- package/lib/utils/method.cjs.js.map +1 -1
- package/package.json +68 -59
- package/style.css +2359 -2251
- 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 +11 -285
- package/types/config/editor.utils.d.ts +40 -41
- package/types/config/i18n/en-us.d.ts +123 -136
- package/types/config/i18n/zh-cn.d.ts +123 -136
- package/types/config/index.d.ts +7 -6
- package/types/config/types/editor-config.interface.d.ts +11 -35
- package/types/config/types/editor-modules.interface.d.ts +41 -31
- package/types/config/types/index.d.ts +3 -23
- package/types/config/types/type.d.ts +2 -6
- package/types/core/fluent-editor.d.ts +11 -11
- package/types/fluent-editor.d.ts +1 -2
- package/types/formats/emoji.d.ts +8 -0
- package/types/formats/index.d.ts +4 -0
- package/types/formats/soft-break.d.ts +12 -14
- package/types/formats/strike.d.ts +8 -7
- package/types/formats/video.d.ts +13 -16
- package/types/index.d.ts +7 -6
- package/types/modules/ai/constants.d.ts +30 -0
- package/types/modules/ai/icons.d.ts +21 -0
- package/types/modules/ai/index.d.ts +96 -0
- package/types/modules/ai/types.d.ts +16 -0
- package/types/modules/collaborative-editing/awareness/awareness.d.ts +28 -0
- package/types/modules/collaborative-editing/awareness/index.d.ts +2 -0
- package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +2 -0
- package/types/modules/collaborative-editing/collaborative-editing.d.ts +24 -0
- package/types/modules/collaborative-editing/index.d.ts +2 -0
- package/types/modules/collaborative-editing/module.d.ts +11 -0
- package/types/modules/collaborative-editing/provider/index.d.ts +3 -0
- package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +25 -0
- package/types/modules/collaborative-editing/provider/webrtc.d.ts +36 -0
- package/types/modules/collaborative-editing/provider/websocket.d.ts +40 -0
- package/types/modules/collaborative-editing/types.d.ts +37 -0
- package/types/modules/counter.d.ts +22 -16
- package/types/modules/custom-clipboard.d.ts +23 -27
- package/types/modules/custom-image/actions/action.d.ts +8 -0
- package/types/modules/custom-image/actions/{CustomResizeAction.d.ts → custom-resize-action.d.ts} +23 -24
- package/types/modules/custom-image/actions/delete-action.d.ts +6 -0
- package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +16 -0
- package/types/modules/custom-image/actions/index.d.ts +6 -0
- package/types/modules/custom-image/actions/toolbar-action.d.ts +11 -0
- package/types/modules/custom-image/actions/toolbar.d.ts +19 -0
- package/types/modules/custom-image/blot-formatter.d.ts +23 -0
- package/types/modules/custom-image/image.d.ts +28 -28
- package/types/modules/custom-image/index.d.ts +4 -0
- package/types/modules/custom-image/options.d.ts +47 -0
- package/types/modules/custom-image/specs/blot-spec.d.ts +12 -0
- package/types/modules/custom-image/specs/{CustomImageSpec.d.ts → custom-image-spec.d.ts} +17 -21
- package/types/modules/custom-image/specs/image-spec.d.ts +8 -0
- package/types/modules/custom-image/specs/index.d.ts +3 -0
- package/types/modules/custom-uploader.d.ts +40 -31
- package/types/modules/divider.d.ts +8 -7
- package/types/modules/emoji.d.ts +39 -0
- package/types/modules/file/formats/file.d.ts +18 -15
- package/types/modules/file/index.d.ts +3 -11
- package/types/modules/file/modules/file-bar.d.ts +14 -14
- package/types/modules/file/modules/file-module.d.ts +9 -0
- package/types/modules/i18n.d.ts +13 -15
- package/types/modules/index.d.ts +16 -0
- package/types/modules/link/formats/link.d.ts +14 -15
- package/types/modules/link/index.d.ts +2 -6
- package/types/modules/link/modules/tooltip.d.ts +26 -32
- package/types/modules/mathlive/formats.d.ts +20 -21
- package/types/modules/mathlive/index.d.ts +3 -9
- package/types/modules/mathlive/module.d.ts +9 -0
- package/types/modules/mathlive/tooltip.d.ts +14 -15
- package/types/modules/mention/constants.d.ts +3 -3
- package/types/modules/mention/index.d.ts +2 -0
- package/types/modules/mention/{MentionLink.d.ts → mention-link.d.ts} +15 -15
- package/types/modules/mention/{Mention.d.ts → mention.d.ts} +52 -54
- package/types/modules/shortcut-key/index.d.ts +67 -93
- package/types/modules/syntax.d.ts +12 -13
- package/types/modules/table-up/index.d.ts +32 -64
- package/types/modules/toolbar/better-picker.d.ts +13 -14
- package/types/modules/toolbar/better-toolbar.d.ts +7 -0
- package/types/modules/toolbar/index.d.ts +3 -9
- package/types/modules/toolbar/toolbar-tip.d.ts +7 -8
- package/types/themes/snow.d.ts +9 -10
- package/types/tools/format-painter.d.ts +12 -14
- package/types/tools/fullscreen.d.ts +6 -3
- package/types/tools/screenshot.d.ts +17 -18
- package/types/ui/icons.config.d.ts +38 -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 +6 -4
- package/types/utils/method.d.ts +6 -6
- package/types/utils/scroll-lock.d.ts +6 -6
- package/es/config/types/additional-toolbar-item.interface.es.js +0 -2
- package/es/config/types/additional-toolbar-item.interface.es.js.map +0 -1
- package/es/config/types/content-change.interface.es.js +0 -2
- package/es/config/types/content-change.interface.es.js.map +0 -1
- package/es/config/types/content-save.interface.es.js +0 -2
- package/es/config/types/content-save.interface.es.js.map +0 -1
- package/es/config/types/counter-option.interface.es.js +0 -2
- package/es/config/types/counter-option.interface.es.js.map +0 -1
- package/es/config/types/editor-toolbar.interface.es.js +0 -2
- package/es/config/types/editor-toolbar.interface.es.js.map +0 -1
- package/es/config/types/file-operation.interface.es.js +0 -2
- package/es/config/types/file-operation.interface.es.js.map +0 -1
- package/es/config/types/focus-change.interface.es.js +0 -2
- package/es/config/types/focus-change.interface.es.js.map +0 -1
- package/es/config/types/fullscreen-module.interface.es.js +0 -2
- package/es/config/types/fullscreen-module.interface.es.js.map +0 -1
- package/es/config/types/help-panel-item.interface.es.js +0 -2
- package/es/config/types/help-panel-item.interface.es.js.map +0 -1
- package/es/config/types/help-panel-option.interface.es.js +0 -2
- package/es/config/types/help-panel-option.interface.es.js.map +0 -1
- package/es/config/types/image-module.interface.es.js +0 -2
- package/es/config/types/image-module.interface.es.js.map +0 -1
- package/es/config/types/image-upload.interface.es.js +0 -2
- package/es/config/types/image-upload.interface.es.js.map +0 -1
- package/es/config/types/load-on-demand-module.interface.es.js +0 -2
- package/es/config/types/load-on-demand-module.interface.es.js.map +0 -1
- package/es/config/types/mention-module.interface.es.js +0 -2
- package/es/config/types/mention-module.interface.es.js.map +0 -1
- package/es/config/types/paste-change.interface.es.js +0 -2
- package/es/config/types/paste-change.interface.es.js.map +0 -1
- package/es/config/types/quick-menu-module.interface.es.js +0 -2
- package/es/config/types/quick-menu-module.interface.es.js.map +0 -1
- package/es/config/types/range.interface.es.js +0 -2
- package/es/config/types/range.interface.es.js.map +0 -1
- package/es/config/types/registry-options.interface.es.js +0 -2
- package/es/config/types/registry-options.interface.es.js.map +0 -1
- package/es/config/types/selection-change.interface.es.js +0 -2
- package/es/config/types/selection-change.interface.es.js.map +0 -1
- package/es/config/types/toolbar-item.interface.es.js +0 -2
- package/es/config/types/toolbar-item.interface.es.js.map +0 -1
- package/es/config/types/validate-error.interface.es.js +0 -2
- package/es/config/types/validate-error.interface.es.js.map +0 -1
- package/es/modules/custom-image/BlotFormatter.es.js.map +0 -1
- package/es/modules/custom-image/Options.es.js +0 -95
- package/es/modules/custom-image/Options.es.js.map +0 -1
- package/es/modules/custom-image/actions/Action.es.js +0 -15
- package/es/modules/custom-image/actions/Action.es.js.map +0 -1
- package/es/modules/custom-image/actions/CustomResizeAction.es.js.map +0 -1
- package/es/modules/custom-image/actions/DeleteAction.es.js.map +0 -1
- package/es/modules/custom-image/image-bar.es.js +0 -127
- package/es/modules/custom-image/image-bar.es.js.map +0 -1
- package/es/modules/custom-image/specs/BlotSpec.es.js +0 -27
- package/es/modules/custom-image/specs/BlotSpec.es.js.map +0 -1
- package/es/modules/custom-image/specs/CustomImageSpec.es.js.map +0 -1
- package/es/modules/custom-image/specs/ImageSpec.es.js +0 -29
- package/es/modules/custom-image/specs/ImageSpec.es.js.map +0 -1
- package/es/modules/emoji/emoji-list/index.es.js +0 -5
- package/es/modules/emoji/emoji-list/people.es.js +0 -114
- package/es/modules/emoji/emoji-list/people.es.js.map +0 -1
- package/es/modules/emoji/emoji-list.es.js +0 -9
- package/es/modules/emoji/emoji-list.es.js.map +0 -1
- package/es/modules/emoji/emoji-map.es.js +0 -9
- package/es/modules/emoji/emoji-map.es.js.map +0 -1
- package/es/modules/emoji/emoji-sprite.es.js +0 -5
- package/es/modules/emoji/emoji-sprite.es.js.map +0 -1
- package/es/modules/emoji/formats/emoji-blot.es.js +0 -41
- package/es/modules/emoji/formats/emoji-blot.es.js.map +0 -1
- package/es/modules/emoji/index.es.js +0 -8
- package/es/modules/emoji/index.es.js.map +0 -1
- package/es/modules/emoji/modules/emoji.es.js +0 -248
- package/es/modules/emoji/modules/emoji.es.js.map +0 -1
- package/es/modules/emoji/modules/toolbar-emoji.es.js +0 -153
- package/es/modules/emoji/modules/toolbar-emoji.es.js.map +0 -1
- package/es/modules/emoji/utils.es.js +0 -19
- package/es/modules/emoji/utils.es.js.map +0 -1
- package/es/modules/mention/Mention.es.js.map +0 -1
- package/es/modules/mention/MentionLink.es.js.map +0 -1
- package/lib/config/types/additional-toolbar-item.interface.cjs.js +0 -2
- package/lib/config/types/additional-toolbar-item.interface.cjs.js.map +0 -1
- package/lib/config/types/content-change.interface.cjs.js +0 -2
- package/lib/config/types/content-change.interface.cjs.js.map +0 -1
- package/lib/config/types/content-save.interface.cjs.js +0 -2
- package/lib/config/types/content-save.interface.cjs.js.map +0 -1
- package/lib/config/types/counter-option.interface.cjs.js +0 -2
- package/lib/config/types/counter-option.interface.cjs.js.map +0 -1
- package/lib/config/types/editor-toolbar.interface.cjs.js +0 -2
- package/lib/config/types/editor-toolbar.interface.cjs.js.map +0 -1
- package/lib/config/types/file-operation.interface.cjs.js +0 -2
- package/lib/config/types/file-operation.interface.cjs.js.map +0 -1
- package/lib/config/types/focus-change.interface.cjs.js +0 -2
- package/lib/config/types/focus-change.interface.cjs.js.map +0 -1
- package/lib/config/types/fullscreen-module.interface.cjs.js +0 -2
- package/lib/config/types/fullscreen-module.interface.cjs.js.map +0 -1
- package/lib/config/types/help-panel-item.interface.cjs.js +0 -2
- package/lib/config/types/help-panel-item.interface.cjs.js.map +0 -1
- package/lib/config/types/help-panel-option.interface.cjs.js +0 -2
- package/lib/config/types/help-panel-option.interface.cjs.js.map +0 -1
- package/lib/config/types/image-module.interface.cjs.js +0 -2
- package/lib/config/types/image-module.interface.cjs.js.map +0 -1
- package/lib/config/types/image-upload.interface.cjs.js +0 -2
- package/lib/config/types/image-upload.interface.cjs.js.map +0 -1
- package/lib/config/types/load-on-demand-module.interface.cjs.js +0 -2
- package/lib/config/types/load-on-demand-module.interface.cjs.js.map +0 -1
- package/lib/config/types/mention-module.interface.cjs.js +0 -2
- package/lib/config/types/mention-module.interface.cjs.js.map +0 -1
- package/lib/config/types/paste-change.interface.cjs.js +0 -2
- package/lib/config/types/paste-change.interface.cjs.js.map +0 -1
- package/lib/config/types/quick-menu-module.interface.cjs.js +0 -2
- package/lib/config/types/quick-menu-module.interface.cjs.js.map +0 -1
- package/lib/config/types/range.interface.cjs.js +0 -2
- package/lib/config/types/range.interface.cjs.js.map +0 -1
- package/lib/config/types/registry-options.interface.cjs.js +0 -2
- package/lib/config/types/registry-options.interface.cjs.js.map +0 -1
- package/lib/config/types/selection-change.interface.cjs.js +0 -2
- package/lib/config/types/selection-change.interface.cjs.js.map +0 -1
- package/lib/config/types/toolbar-item.interface.cjs.js +0 -2
- package/lib/config/types/toolbar-item.interface.cjs.js.map +0 -1
- package/lib/config/types/validate-error.interface.cjs.js +0 -2
- package/lib/config/types/validate-error.interface.cjs.js.map +0 -1
- package/lib/modules/custom-image/BlotFormatter.cjs.js.map +0 -1
- package/lib/modules/custom-image/Options.cjs.js +0 -95
- package/lib/modules/custom-image/Options.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/Action.cjs.js +0 -15
- package/lib/modules/custom-image/actions/Action.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/CustomResizeAction.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/DeleteAction.cjs.js.map +0 -1
- package/lib/modules/custom-image/image-bar.cjs.js +0 -127
- package/lib/modules/custom-image/image-bar.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/BlotSpec.cjs.js +0 -27
- package/lib/modules/custom-image/specs/BlotSpec.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/CustomImageSpec.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/ImageSpec.cjs.js +0 -29
- package/lib/modules/custom-image/specs/ImageSpec.cjs.js.map +0 -1
- package/lib/modules/emoji/emoji-list/index.cjs.js +0 -5
- package/lib/modules/emoji/emoji-list/people.cjs.js +0 -114
- package/lib/modules/emoji/emoji-list/people.cjs.js.map +0 -1
- package/lib/modules/emoji/emoji-list.cjs.js +0 -9
- package/lib/modules/emoji/emoji-list.cjs.js.map +0 -1
- package/lib/modules/emoji/emoji-map.cjs.js +0 -9
- package/lib/modules/emoji/emoji-map.cjs.js.map +0 -1
- package/lib/modules/emoji/emoji-sprite.cjs.js +0 -5
- package/lib/modules/emoji/emoji-sprite.cjs.js.map +0 -1
- package/lib/modules/emoji/formats/emoji-blot.cjs.js +0 -41
- package/lib/modules/emoji/formats/emoji-blot.cjs.js.map +0 -1
- package/lib/modules/emoji/index.cjs.js +0 -8
- package/lib/modules/emoji/index.cjs.js.map +0 -1
- package/lib/modules/emoji/modules/emoji.cjs.js +0 -248
- package/lib/modules/emoji/modules/emoji.cjs.js.map +0 -1
- package/lib/modules/emoji/modules/toolbar-emoji.cjs.js +0 -153
- package/lib/modules/emoji/modules/toolbar-emoji.cjs.js.map +0 -1
- package/lib/modules/emoji/utils.cjs.js +0 -19
- package/lib/modules/emoji/utils.cjs.js.map +0 -1
- package/lib/modules/mention/Mention.cjs.js.map +0 -1
- package/lib/modules/mention/MentionLink.cjs.js.map +0 -1
- package/types/config/types/additional-toolbar-item.interface.d.ts +0 -8
- package/types/config/types/content-change.interface.d.ts +0 -13
- package/types/config/types/content-save.interface.d.ts +0 -6
- package/types/config/types/counter-option.interface.d.ts +0 -9
- package/types/config/types/editor-toolbar.interface.d.ts +0 -6
- package/types/config/types/file-operation.interface.d.ts +0 -12
- package/types/config/types/focus-change.interface.d.ts +0 -4
- package/types/config/types/fullscreen-module.interface.d.ts +0 -4
- package/types/config/types/help-panel-item.interface.d.ts +0 -5
- package/types/config/types/help-panel-option.interface.d.ts +0 -7
- package/types/config/types/image-module.interface.d.ts +0 -3
- package/types/config/types/image-upload.interface.d.ts +0 -7
- package/types/config/types/load-on-demand-module.interface.d.ts +0 -5
- package/types/config/types/mention-module.interface.d.ts +0 -8
- package/types/config/types/paste-change.interface.d.ts +0 -6
- package/types/config/types/quick-menu-module.interface.d.ts +0 -3
- package/types/config/types/range.interface.d.ts +0 -4
- package/types/config/types/registry-options.interface.d.ts +0 -5
- package/types/config/types/selection-change.interface.d.ts +0 -8
- package/types/config/types/toolbar-item.interface.d.ts +0 -13
- package/types/config/types/validate-error.interface.d.ts +0 -13
- package/types/modules/custom-image/BlotFormatter.d.ts +0 -29
- package/types/modules/custom-image/Options.d.ts +0 -36
- package/types/modules/custom-image/actions/Action.d.ts +0 -7
- package/types/modules/custom-image/actions/DeleteAction.d.ts +0 -7
- package/types/modules/custom-image/image-bar.d.ts +0 -15
- package/types/modules/custom-image/specs/BlotSpec.d.ts +0 -13
- package/types/modules/custom-image/specs/ImageSpec.d.ts +0 -10
- package/types/modules/emoji/emoji-list/index.d.ts +0 -1
- package/types/modules/emoji/emoji-list/people.d.ts +0 -1
- package/types/modules/emoji/emoji-list.d.ts +0 -2
- package/types/modules/emoji/emoji-map.d.ts +0 -2
- package/types/modules/emoji/emoji-sprite.d.ts +0 -1
- package/types/modules/emoji/formats/emoji-blot.d.ts +0 -13
- package/types/modules/emoji/index.d.ts +0 -10
- package/types/modules/emoji/modules/emoji.d.ts +0 -38
- package/types/modules/emoji/modules/toolbar-emoji.d.ts +0 -8
- package/types/modules/emoji/utils.d.ts +0 -1
|
@@ -123,7 +123,6 @@ function isInside(position, dom) {
|
|
|
123
123
|
const inside = left > areaLeft && left < areaLeft + areaWidth && top > areaTop && top < areaTop + areaHeight;
|
|
124
124
|
return inside;
|
|
125
125
|
}
|
|
126
|
-
const isPureIE = !!document.documentMode;
|
|
127
126
|
exports.getEventComposedPath = getEventComposedPath;
|
|
128
127
|
exports.hadProtocol = hadProtocol;
|
|
129
128
|
exports.hexToRgbA = hexToRgbA;
|
|
@@ -131,7 +130,6 @@ exports.imageFileToUrl = imageFileToUrl;
|
|
|
131
130
|
exports.imageUrlToFile = imageUrlToFile;
|
|
132
131
|
exports.isInside = isInside;
|
|
133
132
|
exports.isNullOrUndefined = isNullOrUndefined;
|
|
134
|
-
exports.isPureIE = isPureIE;
|
|
135
133
|
exports.omit = omit;
|
|
136
134
|
exports.replaceDeltaImage = replaceDeltaImage;
|
|
137
135
|
exports.sanitize = sanitize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.utils.cjs.js","sources":["../../../src/config/editor.utils.ts"],"sourcesContent":["import Quill from 'quill'\
|
|
1
|
+
{"version":3,"file":"editor.utils.cjs.js","sources":["../../../src/config/editor.utils.ts"],"sourcesContent":["import Quill from 'quill'\n\nconst Delta = Quill.import('delta')\n\n// color hex to rgba\nexport function hexToRgbA(hex: string) {\n let color\n if (/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)) {\n color = hex.substring(1).split('')\n if (color.length === 3) {\n color = [color[0], color[0], color[1], color[1], color[2], color[2]]\n }\n color = `0x${color.join('')}`\n return (\n `rgba(${\n [(color >> 16) & 255, (color >> 8) & 255, color & 255].join(',')\n },1)`\n )\n }\n}\n\n/**\n * 将File格式的图片转换成Url格式\n * @param imageFile File格式的图片\n */\nexport function imageFileToUrl(imageFile) {\n return new Promise((resolve, reject) => {\n const reader = new FileReader()\n reader.readAsDataURL(imageFile)\n reader.onload = function (e) {\n resolve(e.target.result)\n }\n reader.onerror = reject\n }).catch((error) => {\n console.error('Error reading file:', error)\n })\n}\n\n/**\n * 将Url格式的图片转换成File格式\n * @param imageUrl 图片的URL\n */\nexport function imageUrlToFile(imageUrl, isErrorImage?: boolean) {\n return new Promise((resolve, reject) => {\n fetch(imageUrl, {\n method: 'get',\n mode: 'no-cors',\n })\n .then(res => res.blob())\n .then((blob) => {\n if (!blob.type.includes('image') || !blob.type) {\n return reject()\n }\n const fileType = blob.type.replace(/^.*\\//, '')\n const fileName = isErrorImage\n ? 'editorx-error-image.png'\n : `image-${new Date().getTime()}.${fileType}`\n const file = new File([blob], fileName, blob)\n resolve(file)\n })\n .catch(reject)\n })\n}\n\nexport function isNullOrUndefined(param) {\n return param === null || param === undefined\n}\n\n/**\n * omit\n * @param obj target Object\n * @param uselessKeys keys of removed properties\n * @return new Object without useless properties\n */\nexport function omit(obj, uselessKeys) {\n return (\n obj\n && Object.keys(obj).reduce((acc, key) => {\n return uselessKeys.includes(key) ? acc : { ...acc, [key]: obj[key] }\n }, {})\n )\n}\n\n/**\n * 将delta中的图片替换成制定的图片数组,用于图片上传到服务器的场景\n * @param delta 原始delta\n * @param imageUrls 图片数组\n * @param imagePlaceholder 标识是否是占位图的数组,与图片数组一一对应\n * @return 替换之后的delta\n */\nexport function replaceDeltaImage(delta, imageUrls, imagePlaceholder) {\n let imageIndex = 0\n return delta.reduce((newDelta, op) => {\n if (op.insert.image && !op.insert.image.hasExisted) {\n const attributes = imagePlaceholder[imageIndex]\n ? { ...op.attributes, width: 'auto', height: 225 } // 占位图片应该固定大小\n : op.attributes\n newDelta.insert({ image: imageUrls[imageIndex] }, attributes)\n imageIndex++\n }\n else {\n newDelta.insert(op.insert, op.attributes)\n }\n return newDelta\n }, new Delta())\n}\n\nexport function splitWithBreak(insertContent: string) {\n const lines = []\n const insertStr = insertContent\n let start = 0\n for (let i = 0; i < insertContent.length; i++) {\n if (insertStr.charAt(i) === '\\n') {\n if (i === 0) {\n lines.push('\\n')\n }\n else {\n lines.push(insertStr.substring(start, i))\n lines.push('\\n')\n }\n start = i + 1\n }\n }\n\n const tailStr = insertStr.substring(start)\n if (tailStr) {\n lines.push(tailStr)\n }\n\n return lines\n}\n\n/**\n * getEventComposedPath\n * compatibility fixed for Event.path/Event.composedPath\n * Event.path is only for chrome/opera\n * Event.composedPath is for Safari, FF\n * Neither for Micro Edge\n * @return an array of event.path\n */\nexport function getEventComposedPath(evt) {\n let path\n // chrome, opera, safari, firefox\n path = evt.path || (evt.composedPath && evt.composedPath())\n\n // other: edge\n if (path === undefined && evt.target) {\n path = []\n let target = evt.target\n path.push(target)\n\n while (target && target.parentNode) {\n target = target.parentNode\n path.push(target)\n }\n }\n\n return path\n}\n\nexport function sanitize(url, protocols) {\n const anchor = document.createElement('a')\n anchor.href = url\n const protocol = anchor.href.slice(0, anchor.href.indexOf(':'))\n return protocols.includes(protocol)\n}\n\nexport function hadProtocol(url: string) {\n if (!url || !/^(?:f|ht)tps?\\:\\/\\//.test(url)) {\n return false\n }\n return true\n}\n\nexport function isInside(position, dom) {\n const areaPosition = dom.getBoundingClientRect()\n const { pageX, pageY } = position\n // getBoundingClientRect是不考虑窗口滚动的\n const left = pageX - window.scrollX\n const top = pageY - window.scrollY\n const {\n left: areaLeft,\n top: areaTop,\n width: areaWidth,\n height: areaHeight,\n } = areaPosition\n const inside\n = left > areaLeft\n && left < areaLeft + areaWidth\n && top > areaTop\n && top < areaTop + areaHeight\n return inside\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,QAAQ,MAAM,OAAO,OAAO;AAG3B,SAAS,UAAU,KAAa;AACjC,MAAA;AACA,MAAA,2BAA2B,KAAK,GAAG,GAAG;AACxC,YAAQ,IAAI,UAAU,CAAC,EAAE,MAAM,EAAE;AAC7B,QAAA,MAAM,WAAW,GAAG;AACtB,cAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;AAAA,IAAA;AAErE,YAAQ,KAAK,MAAM,KAAK,EAAE,CAAC;AAC3B,WACE,QACE,CAAE,SAAS,KAAM,KAAM,SAAS,IAAK,KAAK,QAAQ,GAAG,EAAE,KAAK,GAAG,CACjE;AAAA,EAAA;AAGN;AAMO,SAAS,eAAe,WAAW;AACxC,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AAChC,UAAA,SAAS,IAAI,WAAW;AAC9B,WAAO,cAAc,SAAS;AACvB,WAAA,SAAS,SAAU,GAAG;AACnB,cAAA,EAAE,OAAO,MAAM;AAAA,IACzB;AACA,WAAO,UAAU;AAAA,EAAA,CAClB,EAAE,MAAM,CAAC,UAAU;AACV,YAAA,MAAM,uBAAuB,KAAK;AAAA,EAAA,CAC3C;AACH;AAMgB,SAAA,eAAe,UAAU,cAAwB;AAC/D,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,UAAU;AAAA,MACd,QAAQ;AAAA,MACR,MAAM;AAAA,IAAA,CACP,EACE,KAAK,CAAO,QAAA,IAAI,MAAM,EACtB,KAAK,CAAC,SAAS;AACV,UAAA,CAAC,KAAK,KAAK,SAAS,OAAO,KAAK,CAAC,KAAK,MAAM;AAC9C,eAAO,OAAO;AAAA,MAAA;AAEhB,YAAM,WAAW,KAAK,KAAK,QAAQ,SAAS,EAAE;AACxC,YAAA,WAAW,eACb,4BACA,UAAS,oBAAI,QAAO,QAAA,CAAS,IAAI,QAAQ;AAC7C,YAAM,OAAO,IAAI,KAAK,CAAC,IAAI,GAAG,UAAU,IAAI;AAC5C,cAAQ,IAAI;AAAA,IAAA,CACb,EACA,MAAM,MAAM;AAAA,EAAA,CAChB;AACH;AAEO,SAAS,kBAAkB,OAAO;AAChC,SAAA,UAAU,QAAQ,UAAU;AACrC;AAQgB,SAAA,KAAK,KAAK,aAAa;AAEnC,SAAA,OACG,OAAO,KAAK,GAAG,EAAE,OAAO,CAAC,KAAK,QAAQ;AACvC,WAAO,YAAY,SAAS,GAAG,IAAI,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,GAAG,IAAI,GAAG,EAAE;AAAA,EACrE,GAAG,EAAE;AAET;AASgB,SAAA,kBAAkB,OAAO,WAAW,kBAAkB;AACpE,MAAI,aAAa;AACjB,SAAO,MAAM,OAAO,CAAC,UAAU,OAAO;AACpC,QAAI,GAAG,OAAO,SAAS,CAAC,GAAG,OAAO,MAAM,YAAY;AAClD,YAAM,aAAa,iBAAiB,UAAU,IAC1C,EAAE,GAAG,GAAG,YAAY,OAAO,QAAQ,QAAQ,QAC3C,GAAG;AACP,eAAS,OAAO,EAAE,OAAO,UAAU,UAAU,KAAK,UAAU;AAC5D;AAAA,IAAA,OAEG;AACH,eAAS,OAAO,GAAG,QAAQ,GAAG,UAAU;AAAA,IAAA;AAEnC,WAAA;AAAA,EAAA,GACN,IAAI,MAAA,CAAO;AAChB;AAEO,SAAS,eAAe,eAAuB;AACpD,QAAM,QAAQ,CAAC;AACf,QAAM,YAAY;AAClB,MAAI,QAAQ;AACZ,WAAS,IAAI,GAAG,IAAI,cAAc,QAAQ,KAAK;AAC7C,QAAI,UAAU,OAAO,CAAC,MAAM,MAAM;AAChC,UAAI,MAAM,GAAG;AACX,cAAM,KAAK,IAAI;AAAA,MAAA,OAEZ;AACH,cAAM,KAAK,UAAU,UAAU,OAAO,CAAC,CAAC;AACxC,cAAM,KAAK,IAAI;AAAA,MAAA;AAEjB,cAAQ,IAAI;AAAA,IAAA;AAAA,EACd;AAGI,QAAA,UAAU,UAAU,UAAU,KAAK;AACzC,MAAI,SAAS;AACX,UAAM,KAAK,OAAO;AAAA,EAAA;AAGb,SAAA;AACT;AAUO,SAAS,qBAAqB,KAAK;AACpC,MAAA;AAEJ,SAAO,IAAI,QAAS,IAAI,gBAAgB,IAAI,aAAa;AAGrD,MAAA,SAAS,UAAa,IAAI,QAAQ;AACpC,WAAO,CAAC;AACR,QAAI,SAAS,IAAI;AACjB,SAAK,KAAK,MAAM;AAET,WAAA,UAAU,OAAO,YAAY;AAClC,eAAS,OAAO;AAChB,WAAK,KAAK,MAAM;AAAA,IAAA;AAAA,EAClB;AAGK,SAAA;AACT;AAEgB,SAAA,SAAS,KAAK,WAAW;AACjC,QAAA,SAAS,SAAS,cAAc,GAAG;AACzC,SAAO,OAAO;AACR,QAAA,WAAW,OAAO,KAAK,MAAM,GAAG,OAAO,KAAK,QAAQ,GAAG,CAAC;AACvD,SAAA,UAAU,SAAS,QAAQ;AACpC;AAEO,SAAS,YAAY,KAAa;AACvC,MAAI,CAAC,OAAO,CAAC,sBAAsB,KAAK,GAAG,GAAG;AACrC,WAAA;AAAA,EAAA;AAEF,SAAA;AACT;AAEgB,SAAA,SAAS,UAAU,KAAK;AAChC,QAAA,eAAe,IAAI,sBAAsB;AACzC,QAAA,EAAE,OAAO,MAAA,IAAU;AAEnB,QAAA,OAAO,QAAQ,OAAO;AACtB,QAAA,MAAM,QAAQ,OAAO;AACrB,QAAA;AAAA,IACJ,MAAM;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,EAAA,IACN;AACE,QAAA,SACF,OAAO,YACJ,OAAO,WAAW,aAClB,MAAM,WACN,MAAM,UAAU;AAChB,SAAA;AACT;;;;;;;;;;;;"}
|
|
@@ -32,19 +32,6 @@ const EN_US = {
|
|
|
32
32
|
"scroll-table": "Horizontal Scroll",
|
|
33
33
|
"mouse-wheel": "Mouse Wheel",
|
|
34
34
|
"save": "Save",
|
|
35
|
-
"copy-cells": "Copy",
|
|
36
|
-
"copy-table": "Copy Table",
|
|
37
|
-
"cut-cells": "Cut",
|
|
38
|
-
"empty-cells": "Clear Contents",
|
|
39
|
-
"insert-row-up": "Insert Rows Above",
|
|
40
|
-
"insert-row-down": "Insert Rows Below",
|
|
41
|
-
"insert-column-left": "Insert Columns to the Left",
|
|
42
|
-
"insert-column-right": "Insert Columns to the Right",
|
|
43
|
-
"merge-cells": "Merge Cells",
|
|
44
|
-
"unmerge-cells": "Split Cells",
|
|
45
|
-
"delete-row": "Delete Entire Row",
|
|
46
|
-
"delete-column": "Delete Entire Column",
|
|
47
|
-
"delete-table": "Delete Table",
|
|
48
35
|
"default-link-text": "Link",
|
|
49
36
|
"basicblock": "Card",
|
|
50
37
|
"linkplaceholder": "Enter an address and press Enter.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-us.cjs.js","sources":["../../../../src/config/i18n/en-us.ts"],"sourcesContent":["export const EN_US = {\
|
|
1
|
+
{"version":3,"file":"en-us.cjs.js","sources":["../../../../src/config/i18n/en-us.ts"],"sourcesContent":["export const EN_US = {\n\n 'header': 'Paragraph Formatting',\n 'normal': 'Normal',\n 'h1': 'Heading 1',\n 'h2': 'Heading 2',\n 'h3': 'Heading 3',\n 'h4': 'Heading 4',\n 'h5': 'Heading 5',\n 'h6': 'Heading 6',\n\n 'line-height': 'Line Height',\n 'songti': 'SimSun',\n 'yahei': 'Microsoft Yahei',\n 'kaiti': 'KaiTi',\n 'heiti': 'SimHei',\n 'lishu': 'LiSu',\n\n 'left': 'Left',\n 'center': 'Centered',\n 'right': 'Right',\n\n 'codeblock': 'Code Block',\n 'globallink': 'Link',\n\n 'exit-fullscreen': 'Exit Full Screen',\n 'help': 'Help',\n 'more': 'More',\n\n 'help-format': 'Format',\n 'help-insert': 'Insert',\n 'help-operation': 'Edit',\n 'mention': 'Mention People',\n 'quick-menu': 'Shortcut',\n 'toggle-help-panel': 'Open/Close Help Panel',\n 'scroll-table': 'Horizontal Scroll',\n 'mouse-wheel': 'Mouse Wheel',\n 'save': 'Save',\n\n 'default-link-text': 'Link',\n 'basicblock': 'Card',\n 'linkplaceholder': 'Enter an address and press Enter.',\n 'counter-template': `{{count}}/{{totalCount}} {{countUnit}}`,\n 'char': 'characters',\n 'word': 'words',\n 'counter-limit-tips':\n 'The number of {{countUnit}} exceeds the maximum allowed limit.',\n 'ie-msg':\n 'In order to have a better experience, it is recommended to use the latest version of Chrome browser.',\n\n 'loading': 'Loading...',\n 'pasting': 'A large amount of content to paste. Loading...',\n 'img-error': 'Image Copy Error',\n 'img-error-info':\n 'Failed to copy the image. Save it to your local computer and then upload it by clicking Image on the toolbar.',\n\n 'last-modified': 'Last Modified Date:',\n 'screenshot': 'Screenshot',\n 'uploading': 'Uploading...',\n 'sub-title-bg-color': 'Background Color',\n\n // blot tip name\n 'emoji': 'Emoji',\n 'fullscreen': 'Full Screen',\n 'blockquote': 'Quote',\n 'undo': 'Undo',\n 'redo': 'Redo',\n 'clean': 'Clear Formatting',\n 'bold': 'Bold',\n 'italic': 'Italic',\n 'underline': 'Underline',\n 'strike': 'Strikethrough',\n 'image': 'Image',\n 'file': 'File',\n 'link': 'Hyperlink',\n 'code': 'Inline Code',\n 'table': 'Table',\n 'table-up': 'Table',\n 'code-block': 'Code Block',\n 'formula': 'Formula',\n 'format-painter': 'Format Painter',\n 'divider': 'Divider',\n 'video': 'Video',\n 'color': 'Font Color',\n 'background': 'Background Color',\n 'font': 'Font',\n 'size': 'Size',\n 'list': 'List',\n 'list-ordered': 'Ordered List',\n 'list-bullet': 'Unordered List',\n 'list-check': 'Task List',\n 'align-left': 'Left aligned',\n 'align-center': 'Center aligned',\n 'align-right': 'Right aligned',\n 'align-justify': 'Justify aligned',\n 'direction-ltr': 'Text Direction Left To Right',\n 'direction-rtl': 'Text Direction Right To Left',\n 'indent--1': 'Minus Indent',\n 'indent-+1': 'Add Indent',\n 'script-super': 'Superscript',\n 'script-sub': 'Subscript',\n 'header-normal': 'Text',\n 'header-1': 'Heading 1',\n 'header-2': 'Heading 2',\n 'header-3': 'Heading 3',\n 'header-4': 'Heading 4',\n 'header-5': 'Heading 5',\n 'header-6': 'Heading 6',\n 'header-list': 'Heading List',\n 'input-recall-menu-placeholder': 'Input / recall menu',\n 'clear-color': 'Clear color',\n 'custom-color': 'Color picker',\n // table-up texts\n 'fullCheckboxText': 'Insert full width table',\n 'customBtnText': 'Custom',\n 'confirmText': 'Confirm',\n 'cancelText': 'Cancel',\n 'rowText': 'Row',\n 'colText': 'Column',\n 'notPositiveNumberError': 'Please enter a positive integer',\n 'custom': 'Custom',\n 'clear': 'Clear',\n 'transparent': 'Transparent',\n 'perWidthInsufficient': 'The percentage width is insufficient. To complete the operation, the table needs to be converted to a fixed width. Do you want to continue?',\n 'CopyCell': 'Copy cell',\n 'CutCell': 'Cut cell',\n 'InsertTop': 'Insert row above',\n 'InsertRight': 'Insert column right',\n 'InsertBottom': 'Insert row below',\n 'InsertLeft': 'Insert column Left',\n 'MergeCell': 'Merge Cell',\n 'SplitCell': 'Split Cell',\n 'DeleteRow': 'Delete Row',\n 'DeleteColumn': 'Delete Column',\n 'DeleteTable': 'Delete table',\n 'BackgroundColor': 'Set background color',\n 'BorderColor': 'Set border color',\n}\n"],"names":[],"mappings":";;AAAO,MAAM,QAAQ;AAAA,EAEnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,eAAe;AAAA,EACf,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EAET,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EAET,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,eAAe;AAAA,EACf,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,QAAQ;AAAA,EAER,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,sBACE;AAAA,EACF,UACE;AAAA,EAEF,WAAW;AAAA,EACX,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBACE;AAAA,EAEF,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,sBAAsB;AAAA;AAAA,EAGtB,SAAS;AAAA,EACT,cAAc;AAAA,EACd,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,aAAa;AAAA,EACb,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AAAA,EACT,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,iCAAiC;AAAA,EACjC,eAAe;AAAA,EACf,gBAAgB;AAAA;AAAA,EAEhB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,0BAA0B;AAAA,EAC1B,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EACf,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,eAAe;AACjB;;"}
|
|
@@ -32,19 +32,6 @@ const ZH_CN = {
|
|
|
32
32
|
"scroll-table": "水平滚动表格",
|
|
33
33
|
"mouse-wheel": "鼠标滚轮",
|
|
34
34
|
"save": "保存",
|
|
35
|
-
"copy-cells": "复制",
|
|
36
|
-
"copy-table": "复制表格",
|
|
37
|
-
"cut-cells": "剪切",
|
|
38
|
-
"empty-cells": "清空内容",
|
|
39
|
-
"insert-row-up": "上插入行",
|
|
40
|
-
"insert-row-down": "下插入行",
|
|
41
|
-
"insert-column-left": "左插入列",
|
|
42
|
-
"insert-column-right": "右插入列",
|
|
43
|
-
"merge-cells": "合并单元格",
|
|
44
|
-
"unmerge-cells": "拆分单元格",
|
|
45
|
-
"delete-row": "删除当前行",
|
|
46
|
-
"delete-column": "删除当前列",
|
|
47
|
-
"delete-table": "删除表格",
|
|
48
35
|
"default-link-text": "链接",
|
|
49
36
|
"basicblock": "卡片",
|
|
50
37
|
"linkplaceholder": "请输入链接地址,按回车键确认",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-cn.cjs.js","sources":["../../../../src/config/i18n/zh-cn.ts"],"sourcesContent":["export const ZH_CN = {\
|
|
1
|
+
{"version":3,"file":"zh-cn.cjs.js","sources":["../../../../src/config/i18n/zh-cn.ts"],"sourcesContent":["export const ZH_CN = {\n\n 'header': '段落格式',\n 'normal': '正文',\n 'h1': '标题1',\n 'h2': '标题2',\n 'h3': '标题3',\n 'h4': '标题4',\n 'h5': '标题5',\n 'h6': '标题6',\n\n 'line-height': '行距',\n 'songti': '宋体',\n 'yahei': '微软雅黑',\n 'kaiti': '楷体',\n 'heiti': '黑体',\n 'lishu': '隶书',\n\n 'left': '左对齐',\n 'center': '居中对齐',\n 'right': '右对齐',\n\n 'codeblock': '代码块',\n 'globallink': '全局链接',\n\n 'exit-fullscreen': '退出全屏',\n 'help': '帮助',\n 'more': '更多',\n\n 'help-format': '格式',\n 'help-insert': '插入',\n 'help-operation': '操作',\n 'mention': '提及某人',\n 'quick-menu': '快捷菜单',\n 'toggle-help-panel': '打开/关闭帮助面板',\n 'scroll-table': '水平滚动表格',\n 'mouse-wheel': '鼠标滚轮',\n 'save': '保存',\n\n 'default-link-text': '链接',\n 'basicblock': '卡片',\n 'linkplaceholder': '请输入链接地址,按回车键确认',\n 'counter-template': '{{count}}/{{totalCount}}',\n 'char': '字符',\n 'word': '单词',\n 'counter-limit-tips': '{{countUnit}}数超出最大允许值',\n 'ie-msg': '为了有更好的体验,推荐使用最新版Chrome浏览器。',\n\n 'loading': '正在加载中...',\n 'pasting': '您粘贴的内容较多,正在努力加载中,请耐心等待...',\n 'img-error': '图片复制出错',\n 'img-error-info':\n '此图片不支持复制,请将原图下载至本地后点击工具栏【插入图片】,重新上传。',\n\n 'last-modified': '最后修改时间:',\n 'screenshot': '截图',\n 'uploading': '上传中...',\n 'sub-title-bg-color': '背景颜色',\n\n // blot tip name\n 'emoji': '表情',\n 'fullscreen': '全屏',\n 'blockquote': '引用',\n 'undo': '撤销',\n 'redo': '重做',\n 'clean': '清除格式',\n 'bold': '粗体',\n 'italic': '斜体',\n 'underline': '下划线',\n 'strike': '删除线',\n 'image': '图片',\n 'file': '文件',\n 'link': '超链接',\n 'divider': '分割线',\n 'code': '行内代码',\n 'table': '表格',\n 'table-up': '表格',\n 'code-block': '代码块',\n 'formula': '公式',\n 'format-painter': '格式刷',\n 'video': '视频',\n 'color': '字体颜色',\n 'background': '背景色',\n 'font': '字体',\n 'size': '字号',\n 'list': '列表',\n 'list-ordered': '有序列表',\n 'list-bullet': '无序列表',\n 'list-check': '任务列表',\n 'align-left': '左对齐',\n 'align-center': '居中对齐',\n 'align-right': '右对齐',\n 'align-justify': '两端对齐',\n 'direction-ltr': '文本方向左到右',\n 'direction-rtl': '文本方向右到左',\n 'indent--1': '减少缩进',\n 'indent-+1': '增加缩进',\n 'script-super': '上标',\n 'script-sub': '下标',\n 'header-normal': '正文',\n 'header-1': '标题1',\n 'header-2': '标题2',\n 'header-3': '标题3',\n 'header-4': '标题4',\n 'header-5': '标题5',\n 'header-6': '标题6',\n 'header-list': '标题列表',\n 'input-recall-menu-placeholder': '输入 / 唤起菜单',\n 'clear-color': '清除颜色',\n 'custom-color': '选择颜色',\n // table-up texts\n 'fullCheckboxText': '插入满宽度表格',\n 'customBtnText': '自定义行列数',\n 'confirmText': '确认',\n 'cancelText': '取消',\n 'rowText': '行数',\n 'colText': '列数',\n 'notPositiveNumberError': '请输入正整数',\n 'custom': '自定义',\n 'clear': '清除',\n 'transparent': '透明',\n 'perWidthInsufficient': '百分比宽度不足, 如需完成操作需要转换表格为固定宽度,是否继续?',\n 'CopyCell': '复制单元格',\n 'CutCell': '剪切单元格',\n 'InsertTop': '向上插入一行',\n 'InsertRight': '向右插入一列',\n 'InsertBottom': '向下插入一行',\n 'InsertLeft': '向左插入一列',\n 'MergeCell': '合并单元格',\n 'SplitCell': '拆分单元格',\n 'DeleteRow': '删除当前行',\n 'DeleteColumn': '删除当前列',\n 'DeleteTable': '删除当前表格',\n 'BackgroundColor': '设置背景颜色',\n 'BorderColor': '设置边框颜色',\n\n}\n"],"names":[],"mappings":";;AAAO,MAAM,QAAQ;AAAA,EAEnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,eAAe;AAAA,EACf,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EAET,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EAET,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,eAAe;AAAA,EACf,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,QAAQ;AAAA,EAER,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,sBAAsB;AAAA,EACtB,UAAU;AAAA,EAEV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,aAAa;AAAA,EACb,kBACE;AAAA,EAEF,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,sBAAsB;AAAA;AAAA,EAGtB,SAAS;AAAA,EACT,cAAc;AAAA,EACd,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,aAAa;AAAA,EACb,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,iCAAiC;AAAA,EACjC,eAAe;AAAA,EACf,gBAAgB;AAAA;AAAA,EAEhB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,0BAA0B;AAAA,EAC1B,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EACf,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,eAAe;AAEjB;;"}
|
package/lib/config/index.cjs.js
CHANGED
|
@@ -2,23 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const editor_utils = require("./editor.utils.cjs.js");
|
|
4
4
|
const editor_config = require("./editor.config.cjs.js");
|
|
5
|
+
require("./types/index.cjs.js");
|
|
5
6
|
function inputFile(type, accept) {
|
|
6
|
-
|
|
7
|
-
const defaultMIMETypes = this.quill.uploader.options[type].join(", ");
|
|
8
|
-
const mimeTypes = accept || defaultMIMETypes;
|
|
7
|
+
if (accept.length <= 0) return;
|
|
9
8
|
let fileInput = this.container.querySelector(`input.ql-${type}[type=file]`);
|
|
10
|
-
this.quill.uploader.options.enableMultiUpload = (_a = this.quill.options.uploadOption) == null ? void 0 : _a.multiple;
|
|
11
9
|
if (editor_utils.isNullOrUndefined(fileInput)) {
|
|
12
10
|
fileInput = document.createElement("input");
|
|
11
|
+
fileInput.style.display = "none";
|
|
13
12
|
fileInput.classList.add(`ql-${type}`);
|
|
14
13
|
fileInput.setAttribute("type", "file");
|
|
15
|
-
fileInput.setAttribute("accept",
|
|
16
|
-
|
|
17
|
-
fileInput.setAttribute("multiple", "");
|
|
18
|
-
}
|
|
14
|
+
fileInput.setAttribute("accept", accept.map((mime) => mime === "*" ? `${type}/*` : mime).join(","));
|
|
15
|
+
fileInput.setAttribute("multiple", "");
|
|
19
16
|
fileInput.addEventListener("change", () => {
|
|
20
17
|
const range = this.quill.getSelection(true);
|
|
21
|
-
this.quill.uploader.upload(range, fileInput.files
|
|
18
|
+
this.quill.uploader.upload(range, fileInput.files);
|
|
22
19
|
fileInput.value = "";
|
|
23
20
|
});
|
|
24
21
|
this.container.appendChild(fileInput);
|
|
@@ -46,7 +43,6 @@ exports.imageFileToUrl = editor_utils.imageFileToUrl;
|
|
|
46
43
|
exports.imageUrlToFile = editor_utils.imageUrlToFile;
|
|
47
44
|
exports.isInside = editor_utils.isInside;
|
|
48
45
|
exports.isNullOrUndefined = editor_utils.isNullOrUndefined;
|
|
49
|
-
exports.isPureIE = editor_utils.isPureIE;
|
|
50
46
|
exports.omit = editor_utils.omit;
|
|
51
47
|
exports.replaceDeltaImage = editor_utils.replaceDeltaImage;
|
|
52
48
|
exports.sanitize = editor_utils.sanitize;
|
|
@@ -58,7 +54,6 @@ exports.COMPRESSED_UPLOADER_MIME_TYPES = editor_config.COMPRESSED_UPLOADER_MIME_
|
|
|
58
54
|
exports.DOC_UPLOADER_MIME_TYPES = editor_config.DOC_UPLOADER_MIME_TYPES;
|
|
59
55
|
exports.FILE_UPLOADER_MIME_TYPES = editor_config.FILE_UPLOADER_MIME_TYPES;
|
|
60
56
|
exports.IMAGE_UPLOADER_MIME_TYPES = editor_config.IMAGE_UPLOADER_MIME_TYPES;
|
|
61
|
-
exports.LANG_CONF = editor_config.LANG_CONF;
|
|
62
57
|
exports.OTHER_FILE_UPLOADER_MIME_TYPES = editor_config.OTHER_FILE_UPLOADER_MIME_TYPES;
|
|
63
58
|
exports.PPT_UPLOADER_MIME_TYPES = editor_config.PPT_UPLOADER_MIME_TYPES;
|
|
64
59
|
exports.XSL_UPLOADER_MIME_TYPES = editor_config.XSL_UPLOADER_MIME_TYPES;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../src/config/index.ts"],"sourcesContent":["import { isNullOrUndefined } from './editor.utils'\
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../src/config/index.ts"],"sourcesContent":["import { isNullOrUndefined } from './editor.utils'\n\nexport * from './editor.config'\nexport * from './editor.utils'\nexport * from './types'\n\n// 触发上传\nexport function inputFile(type: 'image' | 'video' | 'file', accept: string[]) {\n if (accept.length <= 0) return\n let fileInput = this.container.querySelector(`input.ql-${type}[type=file]`)\n if (isNullOrUndefined(fileInput)) {\n fileInput = document.createElement('input')\n fileInput.style.display = 'none'\n fileInput.classList.add(`ql-${type}`)\n fileInput.setAttribute('type', 'file')\n fileInput.setAttribute('accept', accept.map(mime => mime === '*' ? `${type}/*` : mime).join(','))\n fileInput.setAttribute('multiple', '')\n fileInput.addEventListener('change', () => {\n const range = this.quill.getSelection(true)\n this.quill.uploader.upload(range, fileInput.files)\n fileInput.value = ''\n })\n this.container.appendChild(fileInput)\n }\n fileInput.click()\n}\n\nexport function getListValue(value, preListValue) {\n let curListValue = value\n if (preListValue && preListValue === value) {\n curListValue = false\n }\n else if (value === 'check') {\n if (preListValue === 'checked' || preListValue === 'unchecked') {\n curListValue = false\n }\n else {\n curListValue = 'unchecked'\n }\n }\n return curListValue\n}\n/** css namespace */\nexport const namespace = 'fe'\n"],"names":["isNullOrUndefined"],"mappings":";;;;;AAOgB,SAAA,UAAU,MAAkC,QAAkB;AACxE,MAAA,OAAO,UAAU,EAAG;AACxB,MAAI,YAAY,KAAK,UAAU,cAAc,YAAY,IAAI,aAAa;AACtE,MAAAA,aAAAA,kBAAkB,SAAS,GAAG;AACpB,gBAAA,SAAS,cAAc,OAAO;AAC1C,cAAU,MAAM,UAAU;AAC1B,cAAU,UAAU,IAAI,MAAM,IAAI,EAAE;AAC1B,cAAA,aAAa,QAAQ,MAAM;AACrC,cAAU,aAAa,UAAU,OAAO,IAAI,UAAQ,SAAS,MAAM,GAAG,IAAI,OAAO,IAAI,EAAE,KAAK,GAAG,CAAC;AACtF,cAAA,aAAa,YAAY,EAAE;AAC3B,cAAA,iBAAiB,UAAU,MAAM;AACzC,YAAM,QAAQ,KAAK,MAAM,aAAa,IAAI;AAC1C,WAAK,MAAM,SAAS,OAAO,OAAO,UAAU,KAAK;AACjD,gBAAU,QAAQ;AAAA,IAAA,CACnB;AACI,SAAA,UAAU,YAAY,SAAS;AAAA,EAAA;AAEtC,YAAU,MAAM;AAClB;AAEgB,SAAA,aAAa,OAAO,cAAc;AAChD,MAAI,eAAe;AACf,MAAA,gBAAgB,iBAAiB,OAAO;AAC3B,mBAAA;AAAA,EAAA,WAER,UAAU,SAAS;AACtB,QAAA,iBAAiB,aAAa,iBAAiB,aAAa;AAC/C,qBAAA;AAAA,IAAA,OAEZ;AACY,qBAAA;AAAA,IAAA;AAAA,EACjB;AAEK,SAAA;AACT;AAEO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
require("./additional-toolbar-item.interface.cjs.js");
|
|
3
|
-
require("./content-change.interface.cjs.js");
|
|
4
|
-
require("./content-save.interface.cjs.js");
|
|
5
|
-
require("./counter-option.interface.cjs.js");
|
|
6
2
|
require("./editor-config.interface.cjs.js");
|
|
7
3
|
require("./editor-modules.interface.cjs.js");
|
|
8
|
-
require("./editor-toolbar.interface.cjs.js");
|
|
9
|
-
require("./file-operation.interface.cjs.js");
|
|
10
|
-
require("./focus-change.interface.cjs.js");
|
|
11
|
-
require("./fullscreen-module.interface.cjs.js");
|
|
12
|
-
require("./help-panel-option.interface.cjs.js");
|
|
13
|
-
require("./image-module.interface.cjs.js");
|
|
14
|
-
require("./image-upload.interface.cjs.js");
|
|
15
|
-
require("./load-on-demand-module.interface.cjs.js");
|
|
16
|
-
require("./mention-module.interface.cjs.js");
|
|
17
|
-
require("./paste-change.interface.cjs.js");
|
|
18
|
-
require("./quick-menu-module.interface.cjs.js");
|
|
19
|
-
require("./range.interface.cjs.js");
|
|
20
|
-
require("./registry-options.interface.cjs.js");
|
|
21
|
-
require("./selection-change.interface.cjs.js");
|
|
22
|
-
require("./toolbar-item.interface.cjs.js");
|
|
23
4
|
require("./type.cjs.js");
|
|
24
|
-
require("./validate-error.interface.cjs.js");
|
|
25
5
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2
5
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
6
|
const Quill = require("quill");
|
|
4
7
|
require("../config/index.cjs.js");
|
|
8
|
+
const i18n = require("../modules/i18n.cjs.js");
|
|
5
9
|
const editor_config = require("../config/editor.config.cjs.js");
|
|
6
10
|
class FluentEditor extends Quill {
|
|
7
11
|
constructor(container, options = {}) {
|
|
8
12
|
super(container, options);
|
|
9
|
-
this
|
|
13
|
+
__publicField(this, "isFullscreen", false);
|
|
10
14
|
}
|
|
11
15
|
static register(...args) {
|
|
12
16
|
super.register(...args);
|
|
@@ -16,9 +20,7 @@ class FluentEditor extends Quill {
|
|
|
16
20
|
return i18nModule ? i18nModule.options.lang : editor_config.defaultLanguage;
|
|
17
21
|
}
|
|
18
22
|
getLangText(name) {
|
|
19
|
-
|
|
20
|
-
if (!i18nModule) return editor_config.LANG_CONF[editor_config.defaultLanguage][name];
|
|
21
|
-
return i18nModule.options.langText[name];
|
|
23
|
+
return i18n.I18N.parserText(name, this.lang);
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
exports.default = FluentEditor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluent-editor.cjs.js","sources":["../../../src/core/fluent-editor.ts"],"sourcesContent":["import type { ExpandedQuillOptions } from 'quill'\
|
|
1
|
+
{"version":3,"file":"fluent-editor.cjs.js","sources":["../../../src/core/fluent-editor.ts"],"sourcesContent":["import type { ExpandedQuillOptions } from 'quill'\nimport type { IEditorConfig } from '../config/types'\nimport type { FileUploader } from '../modules/custom-uploader'\nimport Quill from 'quill'\nimport { defaultLanguage } from '../config'\nimport I18N from '../modules/i18n'\n\nclass FluentEditor extends Quill {\n isFullscreen: boolean = false\n declare options: IEditorConfig & ExpandedQuillOptions\n declare uploader: FileUploader\n\n static register(...args: any[]): void {\n super.register(...args as Parameters<typeof Quill.register>)\n }\n\n get lang() {\n const i18nModule = this.getModule('i18n') as I18N\n return i18nModule ? i18nModule.options.lang : defaultLanguage\n }\n\n constructor(container: HTMLElement | string, options: IEditorConfig = {}) {\n super(container, options)\n }\n\n getLangText(name: string) {\n return I18N.parserText(name, this.lang)\n }\n}\n\nexport default FluentEditor\n"],"names":["defaultLanguage","I18N"],"mappings":";;;;;;;;;AAOA,MAAM,qBAAqB,MAAM;AAAA,EAc/B,YAAY,WAAiC,UAAyB,IAAI;AACxE,UAAM,WAAW,OAAO;AAd1B,wCAAwB;AAAA,EAcE;AAAA,EAV1B,OAAO,YAAY,MAAmB;AAC9B,UAAA,SAAS,GAAG,IAAyC;AAAA,EAAA;AAAA,EAG7D,IAAI,OAAO;AACH,UAAA,aAAa,KAAK,UAAU,MAAM;AACjC,WAAA,aAAa,WAAW,QAAQ,OAAOA,cAAA;AAAA,EAAA;AAAA,EAOhD,YAAY,MAAc;AACxB,WAAOC,KAAK,KAAA,WAAW,MAAM,KAAK,IAAI;AAAA,EAAA;AAE1C;;"}
|
package/lib/fluent-editor.cjs.js
CHANGED
|
@@ -1,32 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
require("./attributors/index.cjs.js");
|
|
4
|
+
const enUs = require("./config/i18n/en-us.cjs.js");
|
|
5
|
+
const zhCn = require("./config/i18n/zh-cn.cjs.js");
|
|
4
6
|
const fluentEditor = require("./core/fluent-editor.cjs.js");
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const video = require("./formats/video.cjs.js");
|
|
7
|
+
require("./formats/index.cjs.js");
|
|
8
|
+
const index = require("./modules/ai/index.cjs.js");
|
|
8
9
|
const counter = require("./modules/counter.cjs.js");
|
|
9
10
|
const customClipboard = require("./modules/custom-clipboard.cjs.js");
|
|
10
|
-
|
|
11
|
+
require("./modules/custom-image/index.cjs.js");
|
|
11
12
|
const customUploader = require("./modules/custom-uploader.cjs.js");
|
|
12
13
|
const divider = require("./modules/divider.cjs.js");
|
|
13
|
-
const
|
|
14
|
-
|
|
14
|
+
const emoji$1 = require("./modules/emoji.cjs.js");
|
|
15
|
+
require("./modules/file/index.cjs.js");
|
|
15
16
|
const i18n = require("./modules/i18n.cjs.js");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
const index$5 = require("./modules/shortcut-key/index.cjs.js");
|
|
17
|
+
require("./modules/link/index.cjs.js");
|
|
18
|
+
require("./modules/mathlive/index.cjs.js");
|
|
19
|
+
require("./modules/mention/index.cjs.js");
|
|
20
|
+
const index$1 = require("./modules/shortcut-key/index.cjs.js");
|
|
21
21
|
const syntax = require("./modules/syntax.cjs.js");
|
|
22
|
-
|
|
22
|
+
require("./modules/toolbar/index.cjs.js");
|
|
23
23
|
const betterPicker = require("./modules/toolbar/better-picker.cjs.js");
|
|
24
24
|
const snow = require("./themes/snow.cjs.js");
|
|
25
25
|
const icons = require("./ui/icons.cjs.js");
|
|
26
26
|
const fontStyle = require("./attributors/font-style.cjs.js");
|
|
27
27
|
const fontSize = require("./attributors/font-size.cjs.js");
|
|
28
28
|
const lineHeight = require("./attributors/line-height.cjs.js");
|
|
29
|
+
const emoji = require("./formats/emoji.cjs.js");
|
|
30
|
+
const softBreak = require("./formats/soft-break.cjs.js");
|
|
31
|
+
const strike = require("./formats/strike.cjs.js");
|
|
29
32
|
const textIndent = require("./attributors/text-indent.cjs.js");
|
|
33
|
+
const video = require("./formats/video.cjs.js");
|
|
34
|
+
const link = require("./modules/link/formats/link.cjs.js");
|
|
35
|
+
const fileModule = require("./modules/file/modules/file-module.cjs.js");
|
|
36
|
+
const blotFormatter = require("./modules/custom-image/blot-formatter.cjs.js");
|
|
37
|
+
const module$1 = require("./modules/mathlive/module.cjs.js");
|
|
38
|
+
const mention = require("./modules/mention/mention.cjs.js");
|
|
39
|
+
const betterToolbar = require("./modules/toolbar/better-toolbar.cjs.js");
|
|
40
|
+
i18n.I18N.register(
|
|
41
|
+
{
|
|
42
|
+
"en-US": enUs.EN_US,
|
|
43
|
+
"zh-CN": zhCn.ZH_CN
|
|
44
|
+
},
|
|
45
|
+
true
|
|
46
|
+
);
|
|
30
47
|
fluentEditor.default.register(
|
|
31
48
|
{
|
|
32
49
|
"attributors/style/font": fontStyle.FontStyle,
|
|
@@ -35,27 +52,26 @@ fluentEditor.default.register(
|
|
|
35
52
|
"formats/font": fontStyle.FontStyle,
|
|
36
53
|
"formats/line-height": lineHeight.LineHeightStyle,
|
|
37
54
|
"formats/size": fontSize.SizeStyle,
|
|
38
|
-
"formats/emoji":
|
|
39
|
-
|
|
40
|
-
"formats/
|
|
41
|
-
"formats/strike": strike.default,
|
|
55
|
+
"formats/emoji": emoji.EmojiBlot,
|
|
56
|
+
"formats/softBreak": softBreak.SoftBreak,
|
|
57
|
+
"formats/strike": strike.StrikeBlot,
|
|
42
58
|
"formats/text-indent": textIndent.TextIndentStyle,
|
|
43
|
-
"formats/video": video.
|
|
44
|
-
"
|
|
59
|
+
"formats/video": video.Video,
|
|
60
|
+
"formats/divider": divider.DividerBlot,
|
|
61
|
+
"formats/link": link.LinkBlot,
|
|
62
|
+
"modules/clipboard": customClipboard.CustomClipboard,
|
|
45
63
|
"modules/counter": counter.default,
|
|
46
|
-
"modules/
|
|
47
|
-
"modules/
|
|
48
|
-
"modules/
|
|
49
|
-
"modules/
|
|
50
|
-
"modules/
|
|
51
|
-
"modules/
|
|
52
|
-
"modules/
|
|
53
|
-
"modules/mathlive": index$3.default,
|
|
54
|
-
"modules/mention": Mention.default,
|
|
64
|
+
"modules/emoji": emoji$1.EmojiModule,
|
|
65
|
+
"modules/file": fileModule.FileModule,
|
|
66
|
+
"modules/i18n": i18n.I18N,
|
|
67
|
+
"modules/image": blotFormatter.BlotFormatter,
|
|
68
|
+
"modules/mathlive": module$1.MathliveModule,
|
|
69
|
+
"modules/ai": index.AI,
|
|
70
|
+
"modules/mention": mention.Mention,
|
|
55
71
|
"modules/syntax": syntax.default,
|
|
56
|
-
"modules/toolbar":
|
|
57
|
-
"modules/uploader": customUploader.
|
|
58
|
-
"modules/shortcut-key": index$
|
|
72
|
+
"modules/toolbar": betterToolbar.BetterToolbar,
|
|
73
|
+
"modules/uploader": customUploader.FileUploader,
|
|
74
|
+
"modules/shortcut-key": index$1.ShortCutKey,
|
|
59
75
|
"themes/snow": snow.default,
|
|
60
76
|
"ui/icons": icons.default,
|
|
61
77
|
"ui/picker": betterPicker.Picker,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluent-editor.cjs.js","sources":["../../src/fluent-editor.ts"],"sourcesContent":["import { FontStyle, LineHeightStyle, SizeStyle, TextIndentStyle } from './attributors'\
|
|
1
|
+
{"version":3,"file":"fluent-editor.cjs.js","sources":["../../src/fluent-editor.ts"],"sourcesContent":["import { FontStyle, LineHeightStyle, SizeStyle, TextIndentStyle } from './attributors'\nimport { EN_US } from './config/i18n/en-us'\nimport { ZH_CN } from './config/i18n/zh-cn'\nimport FluentEditor from './core/fluent-editor'\nimport { EmojiBlot, SoftBreak, StrikeBlot, Video } from './formats'\nimport { AI } from './modules/ai' // AI\nimport Counter from './modules/counter' // 字符统计\nimport { CustomClipboard } from './modules/custom-clipboard' // 粘贴板\nimport { BlotFormatter } from './modules/custom-image' // 图片\nimport { FileUploader } from './modules/custom-uploader' // 上传\nimport { DividerBlot } from './modules/divider' // 分割线\nimport { EmojiModule } from './modules/emoji'\nimport { FileModule } from './modules/file' // 文件\nimport I18N from './modules/i18n'\nimport { LinkBlot } from './modules/link' // 超链接\nimport { MathliveModule } from './modules/mathlive' // latex公式\nimport { Mention } from './modules/mention' // @提醒\nimport { ShortCutKey } from './modules/shortcut-key'\nimport Syntax from './modules/syntax' // 代码块高亮\nimport { BetterToolbar } from './modules/toolbar' // 工具栏\nimport { ColorPicker, Picker } from './modules/toolbar/better-picker'\nimport SnowTheme from './themes/snow'\nimport Icons from './ui/icons'\n\nI18N.register(\n {\n 'en-US': EN_US,\n 'zh-CN': ZH_CN,\n },\n true,\n)\nFluentEditor.register(\n {\n 'attributors/style/font': FontStyle,\n 'attributors/style/size': SizeStyle,\n 'attributors/style/line-height': LineHeightStyle,\n\n 'formats/font': FontStyle,\n 'formats/line-height': LineHeightStyle,\n 'formats/size': SizeStyle,\n 'formats/emoji': EmojiBlot,\n 'formats/softBreak': SoftBreak,\n 'formats/strike': StrikeBlot,\n 'formats/text-indent': TextIndentStyle,\n 'formats/video': Video,\n 'formats/divider': DividerBlot,\n 'formats/link': LinkBlot,\n\n 'modules/clipboard': CustomClipboard,\n 'modules/counter': Counter,\n 'modules/emoji': EmojiModule,\n 'modules/file': FileModule,\n 'modules/i18n': I18N,\n 'modules/image': BlotFormatter,\n 'modules/mathlive': MathliveModule,\n 'modules/ai': AI,\n 'modules/mention': Mention,\n 'modules/syntax': Syntax,\n 'modules/toolbar': BetterToolbar,\n 'modules/uploader': FileUploader,\n 'modules/shortcut-key': ShortCutKey,\n\n 'themes/snow': SnowTheme,\n\n 'ui/icons': Icons,\n 'ui/picker': Picker,\n 'ui/color-picker': ColorPicker,\n },\n true, // 覆盖内部模块\n)\n\nexport default FluentEditor\n"],"names":["I18N","EN_US","ZH_CN","FluentEditor","FontStyle","SizeStyle","LineHeightStyle","EmojiBlot","SoftBreak","StrikeBlot","TextIndentStyle","Video","DividerBlot","LinkBlot","CustomClipboard","Counter","EmojiModule","FileModule","BlotFormatter","MathliveModule","AI","Mention","Syntax","BetterToolbar","FileUploader","ShortCutKey","SnowTheme","Icons","Picker","ColorPicker"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBAA,KAAAA,KAAK;AAAA,EACH;AAAA,IACE,SAASC,KAAA;AAAA,IACT,SAASC,KAAAA;AAAAA,EACX;AAAA,EACA;AACF;AACAC,aAAAA,QAAa;AAAA,EACX;AAAA,IACE,0BAA0BC,UAAA;AAAA,IAC1B,0BAA0BC,SAAA;AAAA,IAC1B,iCAAiCC,WAAA;AAAA,IAEjC,gBAAgBF,UAAA;AAAA,IAChB,uBAAuBE,WAAA;AAAA,IACvB,gBAAgBD,SAAA;AAAA,IAChB,iBAAiBE,MAAA;AAAA,IACjB,qBAAqBC,UAAA;AAAA,IACrB,kBAAkBC,OAAA;AAAA,IAClB,uBAAuBC,WAAA;AAAA,IACvB,iBAAiBC,MAAA;AAAA,IACjB,mBAAmBC,QAAA;AAAA,IACnB,gBAAgBC,KAAA;AAAA,IAEhB,qBAAqBC,gBAAA;AAAA,IACrB,mBAAmBC,QAAA;AAAA,IACnB,iBAAiBC,QAAA;AAAA,IACjB,gBAAgBC,WAAA;AAAA,IAChB,gBAAgBjB,KAAA;AAAA,IAChB,iBAAiBkB,cAAA;AAAA,IACjB,oBAAoBC,SAAA;AAAA,IACpB,cAAcC,MAAA;AAAA,IACd,mBAAmBC,QAAA;AAAA,IACnB,kBAAkBC,OAAA;AAAA,IAClB,mBAAmBC,cAAA;AAAA,IACnB,oBAAoBC,eAAA;AAAA,IACpB,wBAAwBC,QAAA;AAAA,IAExB,eAAeC,KAAA;AAAA,IAEf,YAAYC,MAAA;AAAA,IACZ,aAAaC,aAAA;AAAA,IACb,mBAAmBC,aAAAA;AAAAA,EACrB;AAAA,EACA;AAAA;AACF;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
6
|
+
const Quill = require("quill");
|
|
7
|
+
const Inline = Quill.import("blots/inline");
|
|
8
|
+
class EmojiBlot extends Inline {
|
|
9
|
+
}
|
|
10
|
+
__publicField(EmojiBlot, "blotName", "emoji");
|
|
11
|
+
__publicField(EmojiBlot, "tagName", "span");
|
|
12
|
+
__publicField(EmojiBlot, "className", "ql-emoji-format");
|
|
13
|
+
exports.EmojiBlot = EmojiBlot;
|
|
14
|
+
//# sourceMappingURL=emoji.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emoji.cjs.js","sources":["../../../src/formats/emoji.ts"],"sourcesContent":["import type TypeInline from 'quill/blots/inline'\nimport Quill from 'quill'\n\nconst Inline = Quill.import('blots/inline') as typeof TypeInline\n\nexport class EmojiBlot extends Inline {\n static blotName = 'emoji'\n static tagName = 'span'\n static className = 'ql-emoji-format'\n}\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,SAAS,MAAM,OAAO,cAAc;AAEnC,MAAM,kBAAkB,OAAO;AAItC;AAHE,cADW,WACJ,YAAW;AAClB,cAFW,WAEJ,WAAU;AACjB,cAHW,WAGJ,aAAY;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const emoji = require("./emoji.cjs.js");
|
|
4
|
+
const softBreak = require("./soft-break.cjs.js");
|
|
5
|
+
const strike = require("./strike.cjs.js");
|
|
6
|
+
const video = require("./video.cjs.js");
|
|
7
|
+
exports.EmojiBlot = emoji.EmojiBlot;
|
|
8
|
+
exports.SoftBreak = softBreak.SoftBreak;
|
|
9
|
+
exports.StrikeBlot = strike.StrikeBlot;
|
|
10
|
+
exports.Video = video.Video;
|
|
11
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
6
|
const Quill = require("quill");
|
|
4
|
-
const Embed = Quill.
|
|
7
|
+
const Embed = Quill.import("blots/embed");
|
|
5
8
|
class SoftBreak extends Embed {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
__publicField(this, "remove");
|
|
12
|
+
}
|
|
6
13
|
static create() {
|
|
7
14
|
const node = super.create();
|
|
8
15
|
return node;
|
|
@@ -16,8 +23,8 @@ class SoftBreak extends Embed {
|
|
|
16
23
|
return 1;
|
|
17
24
|
}
|
|
18
25
|
}
|
|
19
|
-
SoftBreak
|
|
20
|
-
SoftBreak
|
|
21
|
-
SoftBreak
|
|
22
|
-
exports.
|
|
26
|
+
__publicField(SoftBreak, "blotName", "soft-break");
|
|
27
|
+
__publicField(SoftBreak, "tagName", "BR");
|
|
28
|
+
__publicField(SoftBreak, "className", "ql-soft-break");
|
|
29
|
+
exports.SoftBreak = SoftBreak;
|
|
23
30
|
//# sourceMappingURL=soft-break.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soft-break.cjs.js","sources":["../../../src/formats/soft-break.ts"],"sourcesContent":["import Quill from 'quill'\
|
|
1
|
+
{"version":3,"file":"soft-break.cjs.js","sources":["../../../src/formats/soft-break.ts"],"sourcesContent":["import type TypeEmbed from 'quill/blots/embed'\nimport Quill from 'quill'\n\nconst Embed = Quill.import('blots/embed') as typeof TypeEmbed\n\nexport class SoftBreak extends Embed {\n static blotName = 'soft-break'\n static tagName = 'BR'\n static className = 'ql-soft-break'\n remove: () => void\n\n static create() {\n const node = super.create()\n return node\n }\n\n optimize() {\n // li的开头结尾,移除软回车\n if (this.prev === null) {\n this.remove()\n }\n }\n\n length() {\n return 1\n }\n}\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,QAAQ,MAAM,OAAO,aAAa;AAEjC,MAAM,kBAAkB,MAAM;AAAA,EAA9B;AAAA;AAIL;AAAA;AAAA,EAEA,OAAO,SAAS;AACR,UAAA,OAAO,MAAM,OAAO;AACnB,WAAA;AAAA,EAAA;AAAA,EAGT,WAAW;AAEL,QAAA,KAAK,SAAS,MAAM;AACtB,WAAK,OAAO;AAAA,IAAA;AAAA,EACd;AAAA,EAGF,SAAS;AACA,WAAA;AAAA,EAAA;AAEX;AApBE,cADW,WACJ,YAAW;AAClB,cAFW,WAEJ,WAAU;AACjB,cAHW,WAGJ,aAAY;;"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
6
|
const Quill = require("quill");
|
|
4
|
-
const Inline = Quill.
|
|
7
|
+
const Inline = Quill.import("blots/inline");
|
|
5
8
|
class StrikeBlot extends Inline {
|
|
6
9
|
// 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法
|
|
7
10
|
}
|
|
8
|
-
StrikeBlot
|
|
9
|
-
StrikeBlot
|
|
10
|
-
StrikeBlot
|
|
11
|
-
exports.
|
|
11
|
+
__publicField(StrikeBlot, "blotName", "strike");
|
|
12
|
+
__publicField(StrikeBlot, "tagName", "u");
|
|
13
|
+
__publicField(StrikeBlot, "className", "ql-custom-strike");
|
|
14
|
+
exports.StrikeBlot = StrikeBlot;
|
|
12
15
|
//# sourceMappingURL=strike.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strike.cjs.js","sources":["../../../src/formats/strike.ts"],"sourcesContent":["import Quill from 'quill'\
|
|
1
|
+
{"version":3,"file":"strike.cjs.js","sources":["../../../src/formats/strike.ts"],"sourcesContent":["import type TypeInline from 'quill/blots/inline'\nimport Quill from 'quill'\n\nconst Inline = Quill.import('blots/inline') as typeof TypeInline\n\nexport class StrikeBlot extends Inline {\n static blotName = 'strike'\n static tagName = 'u'\n static className = 'ql-custom-strike'\n // 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法\n}\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,SAAS,MAAM,OAAO,cAAc;AAEnC,MAAM,mBAAmB,OAAO;AAAA;AAKvC;AAJE,cADW,YACJ,YAAW;AAClB,cAFW,YAEJ,WAAU;AACjB,cAHW,YAGJ,aAAY;;"}
|