jodit 4.0.17 → 4.1.3
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/.nvmrc +1 -1
- package/CHANGELOG.md +72 -9
- package/es2015/jodit.css +3504 -3426
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +12106 -6608
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/debug/debug.js +14 -14
- package/es2015/plugins/debug/debug.min.js +3 -3
- package/es2015/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2018/jodit.css +3504 -3426
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.js +12077 -6579
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.js +14 -14
- package/es2018/plugins/debug/debug.min.js +3 -3
- package/es2018/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2021/jodit.css +3504 -3426
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +12077 -6579
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/debug/debug.js +14 -14
- package/es2021/plugins/debug/debug.min.js +3 -3
- package/es2021/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2021.en/jodit.css +3504 -3426
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +11824 -6379
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/debug/debug.js +14 -14
- package/es2021.en/plugins/debug/debug.min.js +3 -3
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +76 -81
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es5/jodit.css +4207 -4114
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +3 -3
- package/es5/jodit.js +7619 -7277
- package/es5/jodit.min.css +5 -5
- package/es5/jodit.min.js +3 -3
- package/es5/plugins/debug/debug.js +16 -16
- package/es5/plugins/debug/debug.min.js +3 -3
- package/es5/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.js +122 -127
- package/es5/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/esm/config.d.ts +6 -19
- package/esm/config.js +18 -5
- package/esm/core/async/async.js +4 -4
- package/esm/core/component/component.d.ts +2 -2
- package/esm/core/component/component.js +4 -4
- package/esm/core/component/index.d.ts +1 -1
- package/esm/core/component/index.js +1 -1
- package/esm/core/constants.d.ts +1 -0
- package/esm/core/constants.js +2 -1
- package/esm/core/create/create.d.ts +3 -2
- package/esm/core/create/create.js +5 -4
- package/esm/core/decorators/autobind/autobind.d.ts +6 -0
- package/esm/core/decorators/autobind/autobind.js +6 -0
- package/esm/core/decorators/cache/cache.d.ts +2 -2
- package/esm/core/decorators/cache/cache.js +4 -4
- package/esm/core/decorators/debounce/debounce.d.ts +1 -1
- package/esm/core/decorators/debounce/debounce.js +2 -2
- package/esm/core/decorators/index.d.ts +3 -3
- package/esm/core/decorators/index.js +3 -3
- package/esm/core/decorators/wait/wait.js +1 -1
- package/esm/core/decorators/watch/watch.js +3 -3
- package/esm/core/dom/dom.js +2 -2
- package/esm/core/dom/lazy-walker.js +1 -1
- package/esm/core/event-emitter/event-emitter.js +4 -4
- package/esm/core/event-emitter/observable.d.ts +1 -1
- package/esm/core/event-emitter/observable.js +1 -1
- package/esm/core/event-emitter/store.js +1 -1
- package/esm/core/global.d.ts +1 -1
- package/esm/core/global.js +7 -7
- package/esm/core/helpers/array/as-array.d.ts +1 -1
- package/esm/core/helpers/array/to-array.js +1 -1
- package/esm/core/helpers/checker/index.d.ts +3 -3
- package/esm/core/helpers/checker/index.js +3 -3
- package/esm/core/helpers/checker/is-imp-interface.js +1 -1
- package/esm/core/helpers/checker/is-marker.js +1 -1
- package/esm/core/helpers/checker/is-url.d.ts +1 -1
- package/esm/core/helpers/checker/is-url.js +1 -1
- package/esm/core/helpers/checker/is-view-object.d.ts +1 -1
- package/esm/core/helpers/checker/is-view-object.js +1 -1
- package/esm/core/helpers/html/apply-styles.js +2 -2
- package/esm/core/helpers/html/clean-from-word.js +1 -1
- package/esm/core/helpers/html/index.d.ts +2 -2
- package/esm/core/helpers/html/index.js +2 -2
- package/esm/core/helpers/html/safe-html.js +1 -1
- package/esm/core/helpers/html/strip-tags.d.ts +1 -1
- package/esm/core/helpers/html/strip-tags.js +2 -2
- package/esm/core/helpers/index.d.ts +1 -1
- package/esm/core/helpers/index.js +1 -1
- package/esm/core/helpers/normalize/index.d.ts +2 -2
- package/esm/core/helpers/normalize/index.js +2 -2
- package/esm/core/helpers/normalize/normalize-css-value.js +2 -2
- package/esm/core/helpers/normalize/normalize-key-aliases.js +1 -1
- package/esm/core/helpers/size/get-scroll-parent.js +1 -1
- package/esm/core/helpers/size/index.d.ts +1 -1
- package/esm/core/helpers/size/index.js +1 -1
- package/esm/core/helpers/string/i18n.js +3 -3
- package/esm/core/helpers/string/trim.js +1 -1
- package/esm/core/helpers/utils/append-script.js +1 -1
- package/esm/core/helpers/utils/attr.js +1 -1
- package/esm/core/helpers/utils/config-proto.js +3 -3
- package/esm/core/helpers/utils/css.js +2 -2
- package/esm/core/helpers/utils/data-bind.d.ts +1 -1
- package/esm/core/helpers/utils/index.d.ts +1 -1
- package/esm/core/helpers/utils/index.js +1 -1
- package/esm/core/helpers/utils/print.js +2 -2
- package/esm/core/helpers/utils/reset.js +2 -2
- package/esm/core/helpers/utils/selector.d.ts +7 -6
- package/esm/core/helpers/utils/selector.js +6 -8
- package/esm/core/helpers/utils/set.js +2 -2
- package/esm/core/helpers/utils/utils.d.ts +4 -4
- package/esm/core/helpers/utils/utils.js +2 -2
- package/esm/core/plugin/helpers/init-instance.d.ts +1 -1
- package/esm/core/plugin/helpers/init-instance.js +3 -3
- package/esm/core/plugin/helpers/load.js +2 -2
- package/esm/core/plugin/helpers/make-instance.js +1 -1
- package/esm/core/plugin/index.d.ts +1 -1
- package/esm/core/plugin/index.js +1 -1
- package/esm/core/plugin/plugin-system.js +5 -5
- package/esm/core/plugin/plugin.js +1 -1
- package/esm/core/request/ajax.d.ts +1 -1
- package/esm/core/request/ajax.js +5 -5
- package/esm/core/selection/helpers/move-node-inside-start.js +1 -1
- package/esm/core/selection/index.d.ts +1 -1
- package/esm/core/selection/index.js +1 -1
- package/esm/core/selection/selection.js +5 -5
- package/esm/core/selection/style/api/extract.js +2 -2
- package/esm/core/selection/style/api/finite-state-machine.js +3 -2
- package/esm/core/selection/style/api/get-suit-child.d.ts +1 -1
- package/esm/core/selection/style/api/get-suit-parent.d.ts +1 -1
- package/esm/core/selection/style/api/has-same-style.js +2 -2
- package/esm/core/selection/style/api/index.d.ts +5 -5
- package/esm/core/selection/style/api/index.js +5 -5
- package/esm/core/selection/style/api/is-same-attributes.js +1 -1
- package/esm/core/selection/style/api/is-suit-element.d.ts +1 -1
- package/esm/core/selection/style/api/is-suit-element.js +1 -1
- package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
- package/esm/core/selection/style/api/list/toggle-ordered-list.js +1 -1
- package/esm/core/selection/style/api/list/wrap-list.d.ts +1 -1
- package/esm/core/selection/style/api/list/wrap-list.js +1 -1
- package/esm/core/selection/style/api/toggle-attributes.d.ts +1 -1
- package/esm/core/selection/style/api/toggle-attributes.js +6 -6
- package/esm/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
- package/esm/core/selection/style/api/wrap.d.ts +1 -1
- package/esm/core/selection/style/api/wrap.js +1 -1
- package/esm/core/selection/style/apply-style.d.ts +1 -1
- package/esm/core/selection/style/apply-style.js +1 -1
- package/esm/core/selection/style/commit-style.d.ts +2 -2
- package/esm/core/selection/style/commit-style.js +1 -1
- package/esm/core/selection/style/transactions.d.ts +1 -1
- package/esm/core/selection/style/transactions.js +3 -4
- package/esm/core/storage/index.d.ts +1 -1
- package/esm/core/storage/index.js +1 -1
- package/esm/core/traits/dlgs.d.ts +1 -1
- package/esm/core/traits/dlgs.js +1 -1
- package/esm/core/traits/mods.d.ts +1 -1
- package/esm/core/ui/button/button/button.d.ts +4 -4
- package/esm/core/ui/button/button/button.js +8 -11
- package/esm/core/ui/button/group/group.d.ts +1 -1
- package/esm/core/ui/button/group/group.js +2 -5
- package/esm/core/ui/button/tooltip/tooltip.d.ts +1 -1
- package/esm/core/ui/button/tooltip/tooltip.js +4 -9
- package/esm/core/ui/element.d.ts +1 -1
- package/esm/core/ui/element.js +4 -4
- package/esm/core/ui/form/block/block.d.ts +1 -1
- package/esm/core/ui/form/block/block.js +2 -5
- package/esm/core/ui/form/form.d.ts +1 -1
- package/esm/core/ui/form/form.js +5 -4
- package/esm/core/ui/form/index.d.ts +1 -1
- package/esm/core/ui/form/index.js +1 -1
- package/esm/core/ui/form/inputs/area/area.d.ts +2 -2
- package/esm/core/ui/form/inputs/area/area.js +2 -5
- package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
- package/esm/core/ui/form/inputs/checkbox/checkbox.js +2 -5
- package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
- package/esm/core/ui/form/inputs/file/file.js +1 -4
- package/esm/core/ui/form/inputs/index.d.ts +2 -2
- package/esm/core/ui/form/inputs/index.js +2 -2
- package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
- package/esm/core/ui/form/inputs/input/input.js +5 -8
- package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
- package/esm/core/ui/form/inputs/select/select.js +1 -4
- package/esm/core/ui/group/group.d.ts +2 -3
- package/esm/core/ui/group/group.js +3 -8
- package/esm/core/ui/group/list.d.ts +2 -2
- package/esm/core/ui/group/list.js +4 -7
- package/esm/core/ui/group/separator.d.ts +0 -3
- package/esm/core/ui/group/separator.js +1 -1
- package/esm/core/ui/group/spacer.d.ts +0 -3
- package/esm/core/ui/group/spacer.js +1 -1
- package/esm/core/ui/helpers/get-strong-control-types.js +2 -2
- package/esm/core/ui/icon.js +3 -3
- package/esm/core/ui/index.d.ts +3 -3
- package/esm/core/ui/index.js +3 -3
- package/esm/core/ui/popup/popup.d.ts +1 -1
- package/esm/core/ui/popup/popup.js +4 -9
- package/esm/core/ui/progress-bar/progress-bar.d.ts +1 -1
- package/esm/core/ui/progress-bar/progress-bar.js +0 -5
- package/esm/core/view/view-with-toolbar.d.ts +5 -5
- package/esm/core/view/view-with-toolbar.js +11 -13
- package/esm/core/view/view.d.ts +6 -6
- package/esm/core/view/view.js +15 -8
- package/esm/index.d.ts +2 -7
- package/esm/index.js +11 -4
- package/esm/jodit.d.ts +8 -8
- package/esm/jodit.js +14 -14
- package/esm/languages.js +2 -2
- package/esm/modules/context-menu/context-menu.d.ts +3 -3
- package/esm/modules/context-menu/context-menu.js +4 -9
- package/esm/modules/dialog/alert.js +2 -2
- package/esm/modules/dialog/confirm.js +1 -1
- package/esm/modules/dialog/dialog.d.ts +2 -2
- package/esm/modules/dialog/dialog.js +9 -12
- package/esm/modules/dialog/index.d.ts +2 -2
- package/esm/modules/dialog/index.js +2 -2
- package/esm/modules/dialog/prompt.js +1 -1
- package/esm/modules/file-browser/builders/context-menu.d.ts +1 -1
- package/esm/modules/file-browser/builders/context-menu.js +3 -3
- package/esm/modules/file-browser/config.d.ts +3 -0
- package/esm/modules/file-browser/config.js +2 -5
- package/esm/modules/file-browser/data-provider.d.ts +1 -1
- package/esm/modules/file-browser/data-provider.js +2 -2
- package/esm/modules/file-browser/file-browser.d.ts +3 -3
- package/esm/modules/file-browser/file-browser.js +13 -16
- package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -1
- package/esm/modules/file-browser/listeners/native-listeners.js +1 -1
- package/esm/modules/file-browser/listeners/self-listeners.js +4 -4
- package/esm/modules/file-browser/ui/files/files.d.ts +1 -1
- package/esm/modules/file-browser/ui/tree/tree.d.ts +1 -1
- package/esm/modules/history/history.d.ts +1 -1
- package/esm/modules/history/history.js +3 -3
- package/esm/modules/history/snapshot.js +1 -1
- package/esm/modules/image-editor/config.js +1 -1
- package/esm/modules/image-editor/image-editor.d.ts +2 -2
- package/esm/modules/image-editor/image-editor.js +4 -9
- package/esm/modules/index.d.ts +13 -12
- package/esm/modules/index.js +13 -12
- package/esm/modules/messages/message.js +1 -1
- package/esm/modules/messages/messages.d.ts +1 -1
- package/esm/modules/messages/messages.js +1 -6
- package/esm/modules/status-bar/status-bar.d.ts +3 -3
- package/esm/modules/status-bar/status-bar.js +3 -8
- package/esm/modules/table/table.js +3 -3
- package/esm/modules/toolbar/button/button.d.ts +3 -3
- package/esm/modules/toolbar/button/button.js +9 -14
- package/esm/modules/toolbar/button/content.d.ts +1 -1
- package/esm/modules/toolbar/button/content.js +3 -6
- package/esm/modules/toolbar/button/select/select.d.ts +1 -1
- package/esm/modules/toolbar/button/select/select.js +0 -3
- package/esm/modules/toolbar/collection/collection.d.ts +4 -4
- package/esm/modules/toolbar/collection/collection.js +3 -8
- package/esm/modules/toolbar/collection/editor-collection.d.ts +1 -1
- package/esm/modules/toolbar/collection/editor-collection.js +2 -5
- package/esm/modules/toolbar/factory.js +2 -2
- package/esm/modules/uploader/config.js +1 -1
- package/esm/modules/uploader/helpers/index.d.ts +2 -2
- package/esm/modules/uploader/helpers/index.js +2 -2
- package/esm/modules/uploader/helpers/process-old-browser-drag.js +1 -1
- package/esm/modules/uploader/helpers/send.js +1 -2
- package/esm/modules/uploader/uploader.d.ts +1 -1
- package/esm/modules/uploader/uploader.js +3 -8
- package/esm/modules/widget/color-picker/color-picker.d.ts +3 -3
- package/esm/modules/widget/color-picker/color-picker.js +4 -9
- package/esm/modules/widget/file-selector/file-selector.js +2 -2
- package/esm/modules/widget/index.d.ts +1 -1
- package/esm/modules/widget/index.js +1 -1
- package/esm/modules/widget/tabs/tabs.d.ts +1 -1
- package/esm/modules/widget/tabs/tabs.js +2 -7
- package/esm/plugins/about/about.d.ts +0 -5
- package/esm/plugins/about/about.js +3 -8
- package/esm/plugins/add-new-line/add-new-line.d.ts +1 -1
- package/esm/plugins/add-new-line/add-new-line.js +2 -7
- package/esm/plugins/add-new-line/config.js +1 -1
- package/esm/plugins/ai-assistant/ai-assistant.d.ts +27 -0
- package/esm/plugins/ai-assistant/ai-assistant.js +104 -0
- package/esm/plugins/ai-assistant/ai-assistant.svg.js +1 -0
- package/esm/plugins/ai-assistant/chat-bot.svg.js +1 -0
- package/esm/plugins/ai-assistant/config.d.ts +72 -0
- package/esm/plugins/ai-assistant/config.js +94 -0
- package/esm/plugins/ai-assistant/langs/en.d.ts +9 -0
- package/esm/plugins/ai-assistant/langs/en.js +14 -0
- package/esm/plugins/ai-assistant/langs/es.d.ts +40 -0
- package/esm/plugins/ai-assistant/langs/es.js +45 -0
- package/esm/plugins/ai-assistant/langs/index.d.ts +8 -0
- package/esm/plugins/ai-assistant/langs/index.js +8 -0
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +141 -0
- package/esm/plugins/backspace/backspace.js +5 -5
- package/esm/plugins/backspace/cases/check-join-neighbors.js +2 -2
- package/esm/plugins/backspace/cases/check-remove-char.js +2 -2
- package/esm/plugins/backspace/cases/check-remove-empty-parent.js +1 -1
- package/esm/plugins/backspace/cases/check-remove-unbreakable-element.js +1 -1
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.js +1 -1
- package/esm/plugins/backspace/cases/index.d.ts +1 -1
- package/esm/plugins/backspace/cases/index.js +6 -6
- package/esm/plugins/bold/bold.js +4 -4
- package/esm/plugins/class-span/class-span.js +3 -3
- package/esm/plugins/clean-html/clean-html.js +5 -5
- package/esm/plugins/clean-html/config.js +1 -1
- package/esm/plugins/clean-html/helpers/get-hash.js +1 -1
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/index.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.js +1 -1
- package/esm/plugins/clipboard/clipboard.js +1 -1
- package/esm/plugins/clipboard/config.js +1 -1
- package/esm/plugins/color/color.js +1 -1
- package/esm/plugins/color/config.js +3 -3
- package/esm/plugins/copy-format/copy-format.js +2 -2
- package/esm/plugins/delete/delete.js +2 -2
- package/esm/plugins/drag-and-drop/drag-and-drop.js +2 -2
- package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +3 -3
- package/esm/plugins/dtd/dtd.js +3 -3
- package/esm/plugins/enter/enter.js +5 -5
- package/esm/plugins/enter/helpers/check-br.js +2 -2
- package/esm/plugins/enter/helpers/index.d.ts +2 -2
- package/esm/plugins/enter/helpers/index.js +2 -2
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
- package/esm/plugins/enter/helpers/split-fragment.js +1 -1
- package/esm/plugins/file/file.js +2 -2
- package/esm/plugins/focus/focus.js +1 -1
- package/esm/plugins/font/config.js +4 -4
- package/esm/plugins/font/font.js +1 -1
- package/esm/plugins/format-block/config.js +2 -2
- package/esm/plugins/fullsize/config.d.ts +0 -3
- package/esm/plugins/fullsize/config.js +1 -4
- package/esm/plugins/fullsize/fullsize.d.ts +1 -1
- package/esm/plugins/fullsize/fullsize.js +2 -7
- package/esm/plugins/hotkeys/hotkeys.js +2 -2
- package/esm/plugins/hr/hr.js +1 -1
- package/esm/plugins/iframe/iframe.js +2 -2
- package/esm/plugins/image/image.js +3 -3
- package/esm/plugins/image-processor/image-processor.js +3 -3
- package/esm/plugins/image-properties/image-properties.d.ts +1 -1
- package/esm/plugins/image-properties/image-properties.js +6 -11
- package/esm/plugins/indent/config.js +2 -2
- package/esm/plugins/indent/indent.js +1 -1
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/inline-popup/config/config.js +9 -11
- package/esm/plugins/inline-popup/config/items/a.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/cells.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/img.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/img.js +1 -1
- package/esm/plugins/inline-popup/inline-popup.d.ts +1 -1
- package/esm/plugins/inline-popup/inline-popup.js +6 -11
- package/esm/plugins/justify/justify.js +3 -3
- package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
- package/esm/plugins/limit/limit.js +1 -1
- package/esm/plugins/line-height/config.js +1 -1
- package/esm/plugins/line-height/line-height.js +3 -3
- package/esm/plugins/link/config.d.ts +1 -1
- package/esm/plugins/link/config.js +2 -2
- package/esm/plugins/link/link.js +2 -2
- package/esm/plugins/link/template.js +1 -1
- package/esm/plugins/media/media.js +1 -1
- package/esm/plugins/mobile/config.d.ts +3 -0
- package/esm/plugins/mobile/config.js +2 -5
- package/esm/plugins/mobile/mobile.js +1 -1
- package/esm/plugins/ordered-list/config.js +1 -1
- package/esm/plugins/ordered-list/ordered-list.js +1 -1
- package/esm/plugins/paste/config.js +3 -1
- package/esm/plugins/paste/helpers.js +2 -2
- package/esm/plugins/paste/paste.js +4 -4
- package/esm/plugins/paste-from-word/config.js +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.js +3 -3
- package/esm/plugins/paste-storage/paste-storage.d.ts +1 -6
- package/esm/plugins/paste-storage/paste-storage.js +2 -7
- package/esm/plugins/placeholder/placeholder.d.ts +1 -1
- package/esm/plugins/placeholder/placeholder.js +5 -10
- package/esm/plugins/preview/preview.d.ts +1 -1
- package/esm/plugins/preview/preview.js +1 -6
- package/esm/plugins/print/print.js +4 -5
- package/esm/plugins/redo-undo/redo-undo.js +2 -2
- package/esm/plugins/resize-cells/resize-cells.d.ts +1 -1
- package/esm/plugins/resize-cells/resize-cells.js +2 -7
- package/esm/plugins/resize-handler/resize-handler.js +3 -3
- package/esm/plugins/resizer/resizer.d.ts +1 -1
- package/esm/plugins/resizer/resizer.js +3 -9
- package/esm/plugins/search/config.js +2 -2
- package/esm/plugins/search/helpers/index.d.ts +1 -1
- package/esm/plugins/search/helpers/index.js +1 -1
- package/esm/plugins/search/search.d.ts +1 -1
- package/esm/plugins/search/search.js +6 -6
- package/esm/plugins/search/ui/search.d.ts +1 -1
- package/esm/plugins/search/ui/search.js +2 -5
- package/esm/plugins/select/select.js +3 -3
- package/esm/plugins/select-cells/select-cells.js +4 -4
- package/esm/plugins/size/config.js +1 -1
- package/esm/plugins/size/size.d.ts +1 -1
- package/esm/plugins/size/size.js +2 -7
- package/esm/plugins/source/config.js +1 -1
- package/esm/plugins/source/editor/engines/area.js +1 -1
- package/esm/plugins/source/editor/engines/index.d.ts +1 -1
- package/esm/plugins/source/editor/engines/index.js +1 -1
- package/esm/plugins/source/source.d.ts +1 -1
- package/esm/plugins/source/source.js +4 -9
- package/esm/plugins/speech-recognize/config.js +3 -3
- package/esm/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
- package/esm/plugins/speech-recognize/helpers/recognize-manager.js +2 -2
- package/esm/plugins/speech-recognize/speech-recognize.d.ts +1 -1
- package/esm/plugins/speech-recognize/speech-recognize.js +5 -10
- package/esm/plugins/spellcheck/config.js +1 -1
- package/esm/plugins/spellcheck/spellcheck.js +3 -3
- package/esm/plugins/stat/stat.js +1 -1
- package/esm/plugins/sticky/sticky.d.ts +1 -1
- package/esm/plugins/sticky/sticky.js +3 -8
- package/esm/plugins/symbols/config.js +1 -1
- package/esm/plugins/symbols/symbols.d.ts +1 -1
- package/esm/plugins/symbols/symbols.js +3 -8
- package/esm/plugins/tab/tab.js +3 -3
- package/esm/plugins/table/config.js +2 -2
- package/esm/plugins/table/table.d.ts +1 -1
- package/esm/plugins/table/table.js +0 -5
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
- package/esm/plugins/video/config.js +3 -3
- package/esm/plugins/wrap-nodes/config.d.ts +1 -1
- package/esm/plugins/wrap-nodes/wrap-nodes.js +3 -3
- package/esm/plugins/xpath/xpath.d.ts +1 -6
- package/esm/plugins/xpath/xpath.js +4 -9
- package/esm/polyfills.d.ts +10 -0
- package/esm/types/view.d.ts +1 -1
- package/package.json +2 -2
- package/types/config.d.ts +6 -19
- package/types/core/component/component.d.ts +2 -2
- package/types/core/component/index.d.ts +1 -1
- package/types/core/constants.d.ts +1 -0
- package/types/core/create/create.d.ts +3 -2
- package/types/core/decorators/autobind/autobind.d.ts +6 -0
- package/types/core/decorators/cache/cache.d.ts +2 -2
- package/types/core/decorators/debounce/debounce.d.ts +1 -1
- package/types/core/decorators/index.d.ts +3 -3
- package/types/core/event-emitter/observable.d.ts +1 -1
- package/types/core/global.d.ts +1 -1
- package/types/core/helpers/array/as-array.d.ts +1 -1
- package/types/core/helpers/checker/index.d.ts +3 -3
- package/types/core/helpers/checker/is-url.d.ts +1 -1
- package/types/core/helpers/checker/is-view-object.d.ts +1 -1
- package/types/core/helpers/html/index.d.ts +2 -2
- package/types/core/helpers/html/strip-tags.d.ts +1 -1
- package/types/core/helpers/index.d.ts +1 -1
- package/types/core/helpers/normalize/index.d.ts +2 -2
- package/types/core/helpers/size/index.d.ts +1 -1
- package/types/core/helpers/utils/data-bind.d.ts +1 -1
- package/types/core/helpers/utils/index.d.ts +1 -1
- package/types/core/helpers/utils/selector.d.ts +7 -6
- package/types/core/helpers/utils/utils.d.ts +4 -4
- package/types/core/plugin/helpers/init-instance.d.ts +1 -1
- package/types/core/plugin/index.d.ts +1 -1
- package/types/core/request/ajax.d.ts +1 -1
- package/types/core/selection/index.d.ts +1 -1
- package/types/core/selection/style/api/get-suit-child.d.ts +1 -1
- package/types/core/selection/style/api/get-suit-parent.d.ts +1 -1
- package/types/core/selection/style/api/index.d.ts +5 -5
- package/types/core/selection/style/api/is-suit-element.d.ts +1 -1
- package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
- package/types/core/selection/style/api/list/wrap-list.d.ts +1 -1
- package/types/core/selection/style/api/toggle-attributes.d.ts +1 -1
- package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
- package/types/core/selection/style/api/wrap.d.ts +1 -1
- package/types/core/selection/style/apply-style.d.ts +1 -1
- package/types/core/selection/style/commit-style.d.ts +2 -2
- package/types/core/selection/style/transactions.d.ts +1 -1
- package/types/core/storage/index.d.ts +1 -1
- package/types/core/traits/dlgs.d.ts +1 -1
- package/types/core/traits/mods.d.ts +1 -1
- package/types/core/ui/button/button/button.d.ts +4 -4
- package/types/core/ui/button/group/group.d.ts +1 -1
- package/types/core/ui/button/tooltip/tooltip.d.ts +1 -1
- package/types/core/ui/element.d.ts +1 -1
- package/types/core/ui/form/block/block.d.ts +1 -1
- package/types/core/ui/form/form.d.ts +1 -1
- package/types/core/ui/form/index.d.ts +1 -1
- package/types/core/ui/form/inputs/area/area.d.ts +2 -2
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
- package/types/core/ui/form/inputs/file/file.d.ts +1 -1
- package/types/core/ui/form/inputs/index.d.ts +2 -2
- package/types/core/ui/form/inputs/input/input.d.ts +1 -1
- package/types/core/ui/form/inputs/select/select.d.ts +1 -1
- package/types/core/ui/group/group.d.ts +2 -3
- package/types/core/ui/group/list.d.ts +2 -2
- package/types/core/ui/group/separator.d.ts +0 -3
- package/types/core/ui/group/spacer.d.ts +0 -3
- package/types/core/ui/index.d.ts +3 -3
- package/types/core/ui/popup/popup.d.ts +1 -1
- package/types/core/ui/progress-bar/progress-bar.d.ts +1 -1
- package/types/core/view/view-with-toolbar.d.ts +5 -5
- package/types/core/view/view.d.ts +6 -6
- package/types/index.d.ts +2 -7
- package/types/jodit.d.ts +8 -8
- package/types/modules/context-menu/context-menu.d.ts +3 -3
- package/types/modules/dialog/dialog.d.ts +2 -2
- package/types/modules/dialog/index.d.ts +2 -2
- package/types/modules/file-browser/builders/context-menu.d.ts +1 -1
- package/types/modules/file-browser/config.d.ts +3 -0
- package/types/modules/file-browser/data-provider.d.ts +1 -1
- package/types/modules/file-browser/file-browser.d.ts +3 -3
- package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -1
- package/types/modules/file-browser/ui/files/files.d.ts +1 -1
- package/types/modules/file-browser/ui/tree/tree.d.ts +1 -1
- package/types/modules/history/history.d.ts +1 -1
- package/types/modules/image-editor/image-editor.d.ts +2 -2
- package/types/modules/index.d.ts +13 -12
- package/types/modules/messages/messages.d.ts +1 -1
- package/types/modules/status-bar/status-bar.d.ts +3 -3
- package/types/modules/toolbar/button/button.d.ts +3 -3
- package/types/modules/toolbar/button/content.d.ts +1 -1
- package/types/modules/toolbar/button/select/select.d.ts +1 -1
- package/types/modules/toolbar/collection/collection.d.ts +4 -4
- package/types/modules/toolbar/collection/editor-collection.d.ts +1 -1
- package/types/modules/uploader/helpers/index.d.ts +2 -2
- package/types/modules/uploader/uploader.d.ts +1 -1
- package/types/modules/widget/color-picker/color-picker.d.ts +3 -3
- package/types/modules/widget/index.d.ts +1 -1
- package/types/modules/widget/tabs/tabs.d.ts +1 -1
- package/types/plugins/about/about.d.ts +0 -5
- package/types/plugins/add-new-line/add-new-line.d.ts +1 -1
- package/types/plugins/ai-assistant/ai-assistant.d.ts +27 -0
- package/types/plugins/ai-assistant/config.d.ts +72 -0
- package/types/plugins/ai-assistant/langs/en.d.ts +9 -0
- package/types/plugins/ai-assistant/langs/es.d.ts +40 -0
- package/types/plugins/ai-assistant/langs/index.d.ts +8 -0
- package/types/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
- package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
- package/types/plugins/backspace/cases/index.d.ts +1 -1
- package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
- package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
- package/types/plugins/enter/helpers/index.d.ts +2 -2
- package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
- package/types/plugins/fullsize/config.d.ts +0 -3
- package/types/plugins/fullsize/fullsize.d.ts +1 -1
- package/types/plugins/image-properties/image-properties.d.ts +1 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/inline-popup/config/items/a.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/cells.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/img.d.ts +1 -1
- package/types/plugins/inline-popup/inline-popup.d.ts +1 -1
- package/types/plugins/link/config.d.ts +1 -1
- package/types/plugins/mobile/config.d.ts +3 -0
- package/types/plugins/paste-from-word/paste-from-word.d.ts +1 -1
- package/types/plugins/paste-storage/paste-storage.d.ts +1 -6
- package/types/plugins/placeholder/placeholder.d.ts +1 -1
- package/types/plugins/preview/preview.d.ts +1 -1
- package/types/plugins/resize-cells/resize-cells.d.ts +1 -1
- package/types/plugins/resizer/resizer.d.ts +1 -1
- package/types/plugins/search/helpers/index.d.ts +1 -1
- package/types/plugins/search/search.d.ts +1 -1
- package/types/plugins/search/ui/search.d.ts +1 -1
- package/types/plugins/size/size.d.ts +1 -1
- package/types/plugins/source/editor/engines/index.d.ts +1 -1
- package/types/plugins/source/source.d.ts +1 -1
- package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
- package/types/plugins/speech-recognize/speech-recognize.d.ts +1 -1
- package/types/plugins/sticky/sticky.d.ts +1 -1
- package/types/plugins/symbols/symbols.d.ts +1 -1
- package/types/plugins/table/table.d.ts +1 -1
- package/types/plugins/wrap-nodes/config.d.ts +1 -1
- package/types/plugins/xpath/xpath.d.ts +1 -6
- package/types/polyfills.d.ts +10 -0
- package/types/types/view.d.ts +1 -1
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module view
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
import type { IViewWithToolbar, IToolbarCollection, IDictionary, IPluginButton, IViewOptions } from "jodit/esm/types";
|
|
9
|
+
import type { IDictionary, IPluginButton, IToolbarCollection, IViewOptions, IViewWithToolbar } from "jodit/esm/types";
|
|
11
10
|
import { View } from "jodit/esm/core/view/view";
|
|
11
|
+
|
|
12
12
|
export declare abstract class ViewWithToolbar extends View implements IViewWithToolbar {
|
|
13
13
|
TOOLBAR: IToolbarCollection;
|
|
14
14
|
toolbar: this['TOOLBAR'];
|
|
@@ -22,18 +22,18 @@ export declare abstract class ViewWithToolbar extends View implements IViewWithT
|
|
|
22
22
|
*/
|
|
23
23
|
setPanel(element: HTMLElement | string): void;
|
|
24
24
|
/**
|
|
25
|
-
* Helper for
|
|
25
|
+
* Helper for appended toolbar in its place
|
|
26
26
|
*/
|
|
27
27
|
protected buildToolbar(): void;
|
|
28
28
|
registeredButtons: Set<IPluginButton>;
|
|
29
29
|
private groupToButtons;
|
|
30
30
|
getRegisteredButtonGroups(): IDictionary<string[]>;
|
|
31
31
|
/**
|
|
32
|
-
* Register button for group
|
|
32
|
+
* Register button for a group
|
|
33
33
|
*/
|
|
34
34
|
registerButton(btn: IPluginButton): this;
|
|
35
35
|
/**
|
|
36
|
-
* Remove button from group
|
|
36
|
+
* Remove button from a group
|
|
37
37
|
*/
|
|
38
38
|
unregisterButton(btn: IPluginButton): this;
|
|
39
39
|
/**
|
|
@@ -13,18 +13,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
import { isString } from "jodit/esm/core/helpers/checker/index.js";
|
|
16
|
+
import { STATUSES } from "jodit/esm/core/component/statuses.js";
|
|
17
|
+
import { autobind } from "jodit/esm/core/decorators/autobind/autobind.js";
|
|
18
|
+
import { watch } from "jodit/esm/core/decorators/watch/watch.js";
|
|
19
|
+
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
21
20
|
import { splitArray } from "jodit/esm/core/helpers/array/index.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { makeCollection } from "jodit/esm/modules/toolbar/factory.js";
|
|
25
|
-
import { STATUSES } from "jodit/esm/core/component/index.js";
|
|
21
|
+
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
22
|
+
import { resolveElement } from "jodit/esm/core/helpers/utils/selector.js";
|
|
26
23
|
import { isButtonGroup } from "jodit/esm/core/ui/helpers/buttons.js";
|
|
27
|
-
import {
|
|
24
|
+
import { View } from "jodit/esm/core/view/view.js";
|
|
25
|
+
import { makeCollection } from "jodit/esm/modules/toolbar/factory.js";
|
|
28
26
|
export class ViewWithToolbar extends View {
|
|
29
27
|
/**
|
|
30
28
|
* Container for toolbar
|
|
@@ -46,7 +44,7 @@ export class ViewWithToolbar extends View {
|
|
|
46
44
|
this.buildToolbar();
|
|
47
45
|
}
|
|
48
46
|
/**
|
|
49
|
-
* Helper for
|
|
47
|
+
* Helper for appended toolbar in its place
|
|
50
48
|
*/
|
|
51
49
|
buildToolbar() {
|
|
52
50
|
if (!this.o.toolbar) {
|
|
@@ -64,7 +62,7 @@ export class ViewWithToolbar extends View {
|
|
|
64
62
|
return this.groupToButtons;
|
|
65
63
|
}
|
|
66
64
|
/**
|
|
67
|
-
* Register button for group
|
|
65
|
+
* Register button for a group
|
|
68
66
|
*/
|
|
69
67
|
registerButton(btn) {
|
|
70
68
|
this.registeredButtons.add(btn);
|
|
@@ -81,7 +79,7 @@ export class ViewWithToolbar extends View {
|
|
|
81
79
|
return this;
|
|
82
80
|
}
|
|
83
81
|
/**
|
|
84
|
-
* Remove button from group
|
|
82
|
+
* Remove button from a group
|
|
85
83
|
*/
|
|
86
84
|
unregisterButton(btn) {
|
|
87
85
|
this.registeredButtons.delete(btn);
|
package/esm/core/view/view.d.ts
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module view
|
|
10
10
|
*/
|
|
11
|
-
import type { IComponent, ICreate,
|
|
12
|
-
import { Component } from "jodit/esm/
|
|
13
|
-
import { Mods } from "jodit/esm/core/traits/mods";
|
|
11
|
+
import type { IComponent, ICreate, IDictionary, IEventEmitter, IMessages, IProgressBar, IStorage, IViewBased, IViewOptions, Nullable } from "jodit/esm/types";
|
|
12
|
+
import { Component } from "jodit/esm/core/component/component";
|
|
14
13
|
import { Elms } from "jodit/esm/core/traits/elms";
|
|
14
|
+
import { Mods } from "jodit/esm/core/traits/mods";
|
|
15
15
|
export interface View extends Mods, Elms {
|
|
16
16
|
}
|
|
17
17
|
export declare abstract class View extends Component implements IViewBased, Mods, Elms {
|
|
@@ -20,7 +20,7 @@ export declare abstract class View extends Component implements IViewBased, Mods
|
|
|
20
20
|
parent: Nullable<IViewBased>;
|
|
21
21
|
readonly mods: IDictionary<string | boolean | null>;
|
|
22
22
|
/**
|
|
23
|
-
* ID attribute for source element, id add `{id}_editor` it's editor's id
|
|
23
|
+
* ID attribute for a source element, id add `{id}_editor` it's editor's id
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
26
|
/**
|
|
@@ -28,7 +28,7 @@ export declare abstract class View extends Component implements IViewBased, Mods
|
|
|
28
28
|
*/
|
|
29
29
|
readonly components: Set<IComponent>;
|
|
30
30
|
/**
|
|
31
|
-
* Get path for loading extra staff
|
|
31
|
+
* Get a path for loading extra staff
|
|
32
32
|
*/
|
|
33
33
|
get basePath(): string;
|
|
34
34
|
static readonly ES: 'es5' | 'es2015' | 'es2018' | 'es2021';
|
|
@@ -36,7 +36,7 @@ export declare abstract class View extends Component implements IViewBased, Mods
|
|
|
36
36
|
static readonly esNext: boolean;
|
|
37
37
|
static readonly esModern: boolean;
|
|
38
38
|
/**
|
|
39
|
-
* Return default timeout period in milliseconds for some debounce or throttle functions.
|
|
39
|
+
* Return a default timeout period in milliseconds for some debounce or throttle functions.
|
|
40
40
|
* By default, `{history.timeout}` options
|
|
41
41
|
*/
|
|
42
42
|
get defaultTimeout(): number;
|
package/esm/core/view/view.js
CHANGED
|
@@ -14,19 +14,26 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
16
|
var View_1;
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { ViewComponent } from "jodit/esm/core/component/index.js";
|
|
18
|
+
import { Component } from "jodit/esm/core/component/component.js";
|
|
19
|
+
import { STATUSES } from "jodit/esm/core/component/statuses.js";
|
|
19
20
|
import { APP_VERSION, BASE_PATH, ES, IS_ES_MODERN, IS_ES_NEXT } from "jodit/esm/core/constants.js";
|
|
20
|
-
import {
|
|
21
|
+
import { Create } from "jodit/esm/core/create/create.js";
|
|
22
|
+
import { cache } from "jodit/esm/core/decorators/cache/cache.js";
|
|
23
|
+
import { derive } from "jodit/esm/core/decorators/derive/derive.js";
|
|
24
|
+
import { hook } from "jodit/esm/core/decorators/hook/hook.js";
|
|
25
|
+
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
26
|
+
import { EventEmitter } from "jodit/esm/core/event-emitter/index.js";
|
|
21
27
|
import { modules } from "jodit/esm/core/global.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
28
|
+
import { camelCase, ConfigProto, error, i18n, isDestructable, isFunction, isVoid } from "jodit/esm/core/helpers/index.js";
|
|
29
|
+
import { Storage } from "jodit/esm/core/storage/storage.js";
|
|
24
30
|
import { Elms } from "jodit/esm/core/traits/elms.js";
|
|
25
|
-
import {
|
|
31
|
+
import { Mods } from "jodit/esm/core/traits/mods.js";
|
|
32
|
+
import { ProgressBar } from "jodit/esm/core/ui/progress-bar/progress-bar.js";
|
|
26
33
|
import { UIMessages } from "jodit/esm/modules/messages/messages.js";
|
|
27
34
|
let View = View_1 = class View extends Component {
|
|
28
35
|
/**
|
|
29
|
-
* Get path for loading extra staff
|
|
36
|
+
* Get a path for loading extra staff
|
|
30
37
|
*/
|
|
31
38
|
get basePath() {
|
|
32
39
|
if (this.o.basePath) {
|
|
@@ -35,7 +42,7 @@ let View = View_1 = class View extends Component {
|
|
|
35
42
|
return BASE_PATH;
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
|
-
* Return default timeout period in milliseconds for some debounce or throttle functions.
|
|
45
|
+
* Return a default timeout period in milliseconds for some debounce or throttle functions.
|
|
39
46
|
* By default, `{history.timeout}` options
|
|
40
47
|
*/
|
|
41
48
|
get defaultTimeout() {
|
package/esm/index.d.ts
CHANGED
|
@@ -3,14 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* [[include:README.md]]
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
* @module jodit
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import { Jodit as DefaultJodit } from "./jodit";
|
|
13
6
|
import "jodit/esm/plugins/index";
|
|
7
|
+
import { Jodit as DefaultJodit } from "./jodit";
|
|
8
|
+
|
|
14
9
|
|
|
15
10
|
export { DefaultJodit as Jodit };
|
|
16
11
|
export declare class CommitMode {
|
package/esm/index.js
CHANGED
|
@@ -8,14 +8,21 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module jodit
|
|
10
10
|
*/
|
|
11
|
-
import * as constants from "./core/constants";
|
|
12
|
-
import { Jodit as DefaultJodit } from "./jodit";
|
|
13
|
-
import Languages from "./languages";
|
|
14
11
|
import { isFunction, isString } from "jodit/esm/core/helpers/checker/index.js";
|
|
12
|
+
import "jodit/esm/plugins/index.js";
|
|
13
|
+
import * as constants from "./core/constants";
|
|
15
14
|
import * as decorators from "./core/decorators";
|
|
16
15
|
import * as Modules from "./modules/";
|
|
17
16
|
import * as Icons from "./styles/icons/";
|
|
18
|
-
|
|
17
|
+
// JODIT-SECTION-END:POLYFILLS
|
|
18
|
+
import { Jodit as DefaultJodit } from "./jodit";
|
|
19
|
+
import Languages from "./languages";
|
|
20
|
+
// JODIT-SECTION-START:POLYFILLS
|
|
21
|
+
if (typeof process !== 'undefined' &&
|
|
22
|
+
constants.ES === 'es5' &&
|
|
23
|
+
typeof window !== 'undefined') {
|
|
24
|
+
require("./polyfills");
|
|
25
|
+
}
|
|
19
26
|
// copy constants in Jodit
|
|
20
27
|
Object.keys(constants).forEach((key) => {
|
|
21
28
|
DefaultJodit[key] = constants[key];
|
package/esm/jodit.d.ts
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module jodit
|
|
10
10
|
*/
|
|
11
|
-
import type {
|
|
11
|
+
import type { AjaxOptions, CanPromise, CustomCommand, ICreate, IDictionary, IFileBrowser, IHistory, IJodit, IMessages, IPluginSystem, IResponse, IStatusBar, IUploader, IWorkPlace, Modes } from "jodit/esm/types";
|
|
12
12
|
import type * as Modules from "jodit/esm/modules";
|
|
13
|
-
import { Config } from "jodit/esm/config";
|
|
14
13
|
import * as constants from "jodit/esm/core/constants";
|
|
15
|
-
import { Selection, ViewWithToolbar } from "jodit/esm/modules";
|
|
16
14
|
import { Dlgs } from "jodit/esm/core/traits/dlgs";
|
|
15
|
+
import { Selection, ViewWithToolbar } from "jodit/esm/modules";
|
|
16
|
+
import { Config } from "jodit/esm/config";
|
|
17
17
|
/**
|
|
18
18
|
* Class Jodit. Main class
|
|
19
19
|
*/
|
|
@@ -44,7 +44,7 @@ export declare class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
|
|
|
44
44
|
*/
|
|
45
45
|
get text(): string;
|
|
46
46
|
/**
|
|
47
|
-
* Return default timeout period in milliseconds for some debounce or throttle functions.
|
|
47
|
+
* Return a default timeout period in milliseconds for some debounce or throttle functions.
|
|
48
48
|
* By default, `{history.timeout}` options
|
|
49
49
|
*/
|
|
50
50
|
get defaultTimeout(): number;
|
|
@@ -178,7 +178,7 @@ export declare class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
|
|
|
178
178
|
private __callChangeCount;
|
|
179
179
|
/**
|
|
180
180
|
* Set editor html value and if set sync fill source element value
|
|
181
|
-
* When method was called without arguments - it is simple way to synchronize editor to element
|
|
181
|
+
* When method was called without arguments - it is a simple way to synchronize editor to element
|
|
182
182
|
*/
|
|
183
183
|
setEditorValue(value?: string): void;
|
|
184
184
|
/**
|
|
@@ -207,7 +207,7 @@ export declare class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
|
|
|
207
207
|
*
|
|
208
208
|
* jodit.execCommand('replaceString', 'test', 'stop');
|
|
209
209
|
*
|
|
210
|
-
* console.log(jodit.value); // stop test
|
|
210
|
+
* console.log(jodit.value); // stop test
|
|
211
211
|
*
|
|
212
212
|
* // and you can add hotkeys for command
|
|
213
213
|
* jodit.registerCommand('replaceString', {
|
|
@@ -292,7 +292,7 @@ export declare class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
|
|
|
292
292
|
toggleMode(): void;
|
|
293
293
|
/**
|
|
294
294
|
* Switch on/off the editor into the disabled state.
|
|
295
|
-
* When
|
|
295
|
+
* When disabled, the user is not able to change the editor content
|
|
296
296
|
* This function firing the `disabled` event.
|
|
297
297
|
*/
|
|
298
298
|
setDisabled(isDisabled: boolean): void;
|
|
@@ -320,7 +320,7 @@ export declare class Jodit extends ViewWithToolbar implements IJodit, Dlgs {
|
|
|
320
320
|
/**
|
|
321
321
|
* Hook after init
|
|
322
322
|
*/
|
|
323
|
-
protected afterInitHook(): void
|
|
323
|
+
protected afterInitHook(): CanPromise<void>;
|
|
324
324
|
/** @override **/
|
|
325
325
|
protected initOptions(options?: object): void;
|
|
326
326
|
/** @override **/
|
package/esm/jodit.js
CHANGED
|
@@ -14,15 +14,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
16
|
var Jodit_1;
|
|
17
|
-
import { Config } from "jodit/esm/config.js";
|
|
18
17
|
import * as constants from "jodit/esm/core/constants.js";
|
|
19
|
-
import { Create, Dom, History, Plugin, Selection, StatusBar, STATUSES, ViewWithToolbar } from "jodit/esm/modules/index.js";
|
|
20
|
-
import { asArray, css, isPromise, normalizeKeyAliases, error, isString, attr, isFunction, resolveElement, isVoid, callPromise, toArray, markAsAtomic, ConfigProto, kebabCase, isJoditObject, isNumber, ucfirst } from "jodit/esm/core/helpers/index.js";
|
|
21
18
|
import { FAT_MODE, IS_PROD, lang } from "jodit/esm/core/constants.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
19
|
+
import { autobind, cache, derive, throttle, watch } from "jodit/esm/core/decorators/index.js";
|
|
20
|
+
import { eventEmitter, instances, modules, pluginSystem } from "jodit/esm/core/global.js";
|
|
21
|
+
import { asArray, attr, callPromise, ConfigProto, css, error, isFunction, isJoditObject, isNumber, isPromise, isString, isVoid, kebabCase, markAsAtomic, normalizeKeyAliases, resolveElement, toArray, ucfirst } from "jodit/esm/core/helpers/index.js";
|
|
25
22
|
import { Ajax } from "jodit/esm/core/request/index.js";
|
|
23
|
+
import { Dlgs } from "jodit/esm/core/traits/dlgs.js";
|
|
24
|
+
import { Create, Dom, History, Plugin, Selection, StatusBar, STATUSES, ViewWithToolbar } from "jodit/esm/modules/index.js";
|
|
25
|
+
import { Config } from "jodit/esm/config.js";
|
|
26
26
|
const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
|
|
27
27
|
const __defaultClassesKey = 'data-jodit-default-classes';
|
|
28
28
|
let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
@@ -66,7 +66,7 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
66
66
|
return div.innerText || '';
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
* Return default timeout period in milliseconds for some debounce or throttle functions.
|
|
69
|
+
* Return a default timeout period in milliseconds for some debounce or throttle functions.
|
|
70
70
|
* By default, `{history.timeout}` options
|
|
71
71
|
*/
|
|
72
72
|
get defaultTimeout() {
|
|
@@ -299,7 +299,7 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
299
299
|
getEditorValue(removeSelectionMarkers = true, consumer) {
|
|
300
300
|
/**
|
|
301
301
|
* Triggered before getEditorValue executed.
|
|
302
|
-
* If returned not undefined getEditorValue will return this value
|
|
302
|
+
* If returned not undefined, getEditorValue will return this value
|
|
303
303
|
* @example
|
|
304
304
|
* ```javascript
|
|
305
305
|
* var editor = Jodit.make("#redactor");
|
|
@@ -338,7 +338,7 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
* Set editor html value and if set sync fill source element value
|
|
341
|
-
* When method was called without arguments - it is simple way to synchronize editor to element
|
|
341
|
+
* When method was called without arguments - it is a simple way to synchronize editor to element
|
|
342
342
|
*/
|
|
343
343
|
setEditorValue(value) {
|
|
344
344
|
/**
|
|
@@ -444,7 +444,7 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
444
444
|
*
|
|
445
445
|
* jodit.execCommand('replaceString', 'test', 'stop');
|
|
446
446
|
*
|
|
447
|
-
* console.log(jodit.value); // stop test
|
|
447
|
+
* console.log(jodit.value); // stop test
|
|
448
448
|
*
|
|
449
449
|
* // and you can add hotkeys for command
|
|
450
450
|
* jodit.registerCommand('replaceString', {
|
|
@@ -529,7 +529,7 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
529
529
|
* parent.s.insertNode(p)
|
|
530
530
|
* parent.s.setCursorIn(p);
|
|
531
531
|
* p.style.textAlign = 'justyfy';
|
|
532
|
-
* return false; // break
|
|
532
|
+
* return false; // break executes native command
|
|
533
533
|
* }
|
|
534
534
|
* })
|
|
535
535
|
* ```
|
|
@@ -734,7 +734,7 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
734
734
|
}
|
|
735
735
|
/**
|
|
736
736
|
* Switch on/off the editor into the disabled state.
|
|
737
|
-
* When
|
|
737
|
+
* When disabled, the user is not able to change the editor content
|
|
738
738
|
* This function firing the `disabled` event.
|
|
739
739
|
*/
|
|
740
740
|
setDisabled(isDisabled) {
|
|
@@ -806,7 +806,7 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
806
806
|
}
|
|
807
807
|
/** @override **/
|
|
808
808
|
initOwners() {
|
|
809
|
-
// in iframe it can be changed
|
|
809
|
+
// in iframe, it can be changed
|
|
810
810
|
this.editorWindow = this.o.ownerWindow;
|
|
811
811
|
this.ownerWindow = this.o.ownerWindow;
|
|
812
812
|
}
|
|
@@ -882,7 +882,7 @@ let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
882
882
|
if (this.e) {
|
|
883
883
|
this.e.fire('afterInit', this);
|
|
884
884
|
}
|
|
885
|
-
this.afterInitHook();
|
|
885
|
+
callPromise(this.afterInitHook());
|
|
886
886
|
this.setStatus(STATUSES.ready);
|
|
887
887
|
this.e.fire('afterConstructor', this);
|
|
888
888
|
};
|
package/esm/languages.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
import { isArray } from "jodit/esm/core/helpers/checker/is-array.js";
|
|
7
|
-
import en from "jodit/esm/langs/en.js";
|
|
8
7
|
import ar from "jodit/esm/langs/ar.js";
|
|
9
8
|
import cs_cz from "jodit/esm/langs/cs_cz.js";
|
|
10
9
|
import de from "jodit/esm/langs/de.js";
|
|
10
|
+
import en from "jodit/esm/langs/en.js";
|
|
11
11
|
import es from "jodit/esm/langs/es.js";
|
|
12
12
|
import fi from "jodit/esm/langs/fi.js";
|
|
13
13
|
import fr from "jodit/esm/langs/fr.js";
|
|
@@ -16,6 +16,7 @@ import hu from "jodit/esm/langs/hu.js";
|
|
|
16
16
|
import id from "jodit/esm/langs/id.js";
|
|
17
17
|
import it from "jodit/esm/langs/it.js";
|
|
18
18
|
import ja from "jodit/esm/langs/ja.js";
|
|
19
|
+
import keys from "jodit/esm/langs/keys.js";
|
|
19
20
|
import ko from "jodit/esm/langs/ko.js";
|
|
20
21
|
import mn from "jodit/esm/langs/mn.js";
|
|
21
22
|
import nl from "jodit/esm/langs/nl.js";
|
|
@@ -25,7 +26,6 @@ import ru from "jodit/esm/langs/ru.js";
|
|
|
25
26
|
import tr from "jodit/esm/langs/tr.js";
|
|
26
27
|
import zh_cn from "jodit/esm/langs/zh_cn.js";
|
|
27
28
|
import zh_tw from "jodit/esm/langs/zh_tw.js";
|
|
28
|
-
import keys from "jodit/esm/langs/keys.js";
|
|
29
29
|
let exp = {};
|
|
30
30
|
exp = {
|
|
31
31
|
ar,
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/context-menu
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
11
|
import type { IContextMenu, IContextMenuAction } from "jodit/esm/types";
|
|
13
|
-
import { Popup } from "jodit/esm/core/ui/popup";
|
|
12
|
+
import { Popup } from "jodit/esm/core/ui/popup/popup";
|
|
13
|
+
|
|
14
14
|
/**
|
|
15
15
|
* Module to generate context menu
|
|
16
16
|
*/
|
|
@@ -25,7 +25,7 @@ export declare class ContextMenu extends Popup implements IContextMenu {
|
|
|
25
25
|
* @param actions - Array with plain objects `{icon: 'bin', title: 'Delete', exec: function () {}}`
|
|
26
26
|
* @example
|
|
27
27
|
* ```javascript
|
|
28
|
-
* parent.show(e.clientX, e.clientY, [{icon: 'bin', title: 'Delete', exec: function () { alert(1) }]);
|
|
28
|
+
* parent.show(e.clientX, e.clientY, [{icon: 'bin', title: 'Delete', exec: function () { alert(1) }}]);
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
show(x: number, y: number, actions: Array<false | IContextMenuAction>): void;
|
|
@@ -13,15 +13,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
* [[include:modules/context-menu/README.md]]
|
|
18
|
-
* @packageDocumentation
|
|
19
|
-
* @module modules/context-menu
|
|
20
|
-
*/
|
|
21
|
-
import { Popup } from "jodit/esm/core/ui/popup/index.js";
|
|
22
|
-
import { Button } from "jodit/esm/core/ui/button/index.js";
|
|
23
|
-
import { isArray } from "jodit/esm/core/helpers/checker/index.js";
|
|
24
16
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
17
|
+
import { isArray } from "jodit/esm/core/helpers/checker/is-array.js";
|
|
18
|
+
import { Button } from "jodit/esm/core/ui/button/button/button.js";
|
|
19
|
+
import { Popup } from "jodit/esm/core/ui/popup/popup.js";
|
|
25
20
|
/**
|
|
26
21
|
* Module to generate context menu
|
|
27
22
|
*/
|
|
@@ -38,7 +33,7 @@ let ContextMenu = class ContextMenu extends Popup {
|
|
|
38
33
|
* @param actions - Array with plain objects `{icon: 'bin', title: 'Delete', exec: function () {}}`
|
|
39
34
|
* @example
|
|
40
35
|
* ```javascript
|
|
41
|
-
* parent.show(e.clientX, e.clientY, [{icon: 'bin', title: 'Delete', exec: function () { alert(1) }]);
|
|
36
|
+
* parent.show(e.clientX, e.clientY, [{icon: 'bin', title: 'Delete', exec: function () { alert(1) }}]);
|
|
42
37
|
* ```
|
|
43
38
|
*/
|
|
44
39
|
show(x, y, actions) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isFunction } from "jodit/esm/core/helpers/checker/is-function.js";
|
|
7
|
-
import { asArray } from "jodit/esm/core/helpers/array/as-array.js";
|
|
8
6
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
7
|
+
import { asArray } from "jodit/esm/core/helpers/array/as-array.js";
|
|
8
|
+
import { isFunction } from "jodit/esm/core/helpers/checker/is-function.js";
|
|
9
9
|
import { Button } from "jodit/esm/core/ui/button/button/button.js";
|
|
10
10
|
import { Dialog } from "./dialog";
|
|
11
11
|
/**
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { Dialog } from "jodit/esm/modules/dialog/dialog.js";
|
|
7
6
|
import { isFunction } from "jodit/esm/core/helpers/checker/is-function.js";
|
|
8
7
|
import { Button } from "jodit/esm/core/ui/button/button/button.js";
|
|
8
|
+
import { Dialog } from "jodit/esm/modules/dialog/dialog.js";
|
|
9
9
|
/**
|
|
10
10
|
* Show `confirm` dialog. Work without Jodit object
|
|
11
11
|
*
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module modules/dialog
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
import type { IToolbarCollection, IDialog, Content, IDialogOptions } from "jodit/esm/types";
|
|
9
|
+
import type { Content, IDialog, IDialogOptions, IToolbarCollection } from "jodit/esm/types";
|
|
11
10
|
import { ViewWithToolbar } from "jodit/esm/core/view/view-with-toolbar";
|
|
11
|
+
|
|
12
12
|
declare module 'jodit/config' {
|
|
13
13
|
interface Config {
|
|
14
14
|
dialog: IDialogOptions;
|
|
@@ -14,22 +14,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
16
|
var Dialog_1;
|
|
17
|
-
|
|
18
|
-
* @module modules/dialog
|
|
19
|
-
*/
|
|
20
|
-
import { Config } from "jodit/esm/config.js";
|
|
17
|
+
import { STATUSES } from "jodit/esm/core/component/index.js";
|
|
21
18
|
import { KEY_ESC } from "jodit/esm/core/constants.js";
|
|
22
|
-
import {
|
|
19
|
+
import { autobind, component, hook } from "jodit/esm/core/decorators/index.js";
|
|
20
|
+
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
21
|
+
import { eventEmitter, pluginSystem } from "jodit/esm/core/global.js";
|
|
23
22
|
import { asArray, splitArray, toArray } from "jodit/esm/core/helpers/array/index.js";
|
|
23
|
+
import { hasContainer, isArray, isBoolean, isFunction, isString, isVoid } from "jodit/esm/core/helpers/checker/index.js";
|
|
24
24
|
import { $$, attr, ConfigProto, css } from "jodit/esm/core/helpers/utils/index.js";
|
|
25
25
|
import { assert } from "jodit/esm/core/helpers/utils/assert.js";
|
|
26
|
-
import { ViewWithToolbar } from "jodit/esm/core/view/view-with-toolbar.js";
|
|
27
|
-
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
28
|
-
import { STATUSES } from "jodit/esm/core/component/index.js";
|
|
29
|
-
import { eventEmitter, pluginSystem } from "jodit/esm/core/global.js";
|
|
30
|
-
import { component, autobind, hook } from "jodit/esm/core/decorators/index.js";
|
|
31
|
-
import { View } from "jodit/esm/core/view/view.js";
|
|
32
26
|
import { Icon } from "jodit/esm/core/ui/index.js";
|
|
27
|
+
import { View } from "jodit/esm/core/view/view.js";
|
|
28
|
+
import { ViewWithToolbar } from "jodit/esm/core/view/view-with-toolbar.js";
|
|
29
|
+
import { Config } from "jodit/esm/config.js";
|
|
33
30
|
Config.prototype.dialog = {
|
|
34
31
|
namespace: '',
|
|
35
32
|
extraButtons: [],
|
|
@@ -101,7 +98,7 @@ let Dialog = Dialog_1 = class Dialog extends ViewWithToolbar {
|
|
|
101
98
|
if (this.e) {
|
|
102
99
|
this.removeGlobalResizeListeners();
|
|
103
100
|
/**
|
|
104
|
-
* Fired when dialog box is finished to resizing
|
|
101
|
+
* Fired when the dialog box is finished to resizing
|
|
105
102
|
*/
|
|
106
103
|
this.e.fire(this, 'endResize endMove');
|
|
107
104
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/dialog
|
|
10
10
|
*/
|
|
11
|
-
export { Dialog } from "./dialog";
|
|
12
11
|
export { Alert } from "./alert";
|
|
13
|
-
export { Prompt } from "./prompt";
|
|
14
12
|
export { Confirm } from "./confirm";
|
|
13
|
+
export { Dialog } from "./dialog";
|
|
14
|
+
export { Prompt } from "./prompt";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/dialog
|
|
10
10
|
*/
|
|
11
|
-
export { Dialog } from "./dialog";
|
|
12
11
|
export { Alert } from "./alert";
|
|
13
|
-
export { Prompt } from "./prompt";
|
|
14
12
|
export { Confirm } from "./confirm";
|
|
13
|
+
export { Dialog } from "./dialog";
|
|
14
|
+
export { Prompt } from "./prompt";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { Button } from "jodit/esm/core/ui/button/button/button.js";
|
|
7
6
|
import { isFunction } from "jodit/esm/core/helpers/checker/is-function.js";
|
|
8
7
|
import { attr } from "jodit/esm/core/helpers/utils/attr.js";
|
|
8
|
+
import { Button } from "jodit/esm/core/ui/button/button/button.js";
|
|
9
9
|
import { Dialog } from "./dialog";
|
|
10
10
|
/**
|
|
11
11
|
* Show `Prompt` dialog. Work without Jodit object
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* @module modules/file-browser
|
|
8
8
|
*/
|
|
9
9
|
import type { IFileBrowser } from "jodit/esm/types";
|
|
10
|
-
declare const _default: (self: IFileBrowser) => (e: DragEvent) => boolean | void;
|
|
10
|
+
declare const _default: (self: IFileBrowser) => ((e: DragEvent) => boolean | void);
|
|
11
11
|
export default _default;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
7
7
|
import { attr, error } from "jodit/esm/core/helpers/utils/index.js";
|
|
8
8
|
import { Icon } from "jodit/esm/core/ui/icon.js";
|
|
9
|
-
import { openImageEditor } from "jodit/esm/modules/image-editor/image-editor.js";
|
|
10
|
-
import { makeContextMenu } from "jodit/esm/modules/file-browser/factories.js";
|
|
11
9
|
import { elementsMap } from "jodit/esm/modules/file-browser/builders/elements-map.js";
|
|
12
|
-
import {
|
|
10
|
+
import { makeContextMenu } from "jodit/esm/modules/file-browser/factories.js";
|
|
13
11
|
import { deleteFile } from "jodit/esm/modules/file-browser/fetch/delete-file.js";
|
|
12
|
+
import { loadTree } from "jodit/esm/modules/file-browser/fetch/load-tree.js";
|
|
14
13
|
import { elementToItem, getItem } from "jodit/esm/modules/file-browser/listeners/native-listeners.js";
|
|
14
|
+
import { openImageEditor } from "jodit/esm/modules/image-editor/image-editor.js";
|
|
15
15
|
const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = 'next', right = 'right') => `<div class="${CLASS_PREVIEW}__navigation ${CLASS_PREVIEW}__navigation_arrow_${next}">` +
|
|
16
16
|
'' +
|
|
17
17
|
Icon.get('angle-' + right) +
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/file-browser
|
|
8
|
+
*/
|
|
6
9
|
import type { IFileBrowserOptions } from "jodit/esm/types";
|
|
7
10
|
declare module 'jodit/config' {
|
|
8
11
|
interface Config {
|
|
@@ -3,13 +3,10 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module modules/file-browser
|
|
8
|
-
*/
|
|
9
|
-
import { Config } from "jodit/esm/config.js";
|
|
10
6
|
import { isArray, isString } from "jodit/esm/core/helpers/checker/index.js";
|
|
11
|
-
import { UIFileInput } from "jodit/esm/core/ui/form/inputs/file/file.js";
|
|
12
7
|
import { humanSizeToBytes } from "jodit/esm/core/helpers/utils/human-size-to-bytes.js";
|
|
8
|
+
import { UIFileInput } from "jodit/esm/core/ui/form/inputs/file/file.js";
|
|
9
|
+
import { Config } from "jodit/esm/config.js";
|
|
13
10
|
Config.prototype.filebrowser = {
|
|
14
11
|
namespace: '',
|
|
15
12
|
cache: true,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module modules/file-browser
|
|
8
8
|
*/
|
|
9
|
-
import type { IFileBrowserAnswer,
|
|
9
|
+
import type { IFileBrowserAnswer, IFileBrowserDataProvider, IFileBrowserDataProviderItemsMods, IFileBrowserItem, IFileBrowserOptions, ImageBox, IPermissions, ISourcesFiles, IViewBased, Nullable } from "jodit/esm/types";
|
|
10
10
|
export declare const DEFAULT_SOURCE_NAME = "default";
|
|
11
11
|
export default class DataProvider implements IFileBrowserDataProvider {
|
|
12
12
|
readonly parent: IViewBased;
|