jodit 4.0.0-beta.67 → 4.0.0-beta.69
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 +5 -4
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2 -2
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2 -2
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2 -2
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/config.d.ts +633 -0
- package/esm/config.js +2 -2
- package/esm/core/async/async.d.ts +73 -0
- package/esm/core/async/async.js +8 -8
- package/esm/core/async/index.d.ts +9 -0
- package/esm/core/async/index.js +1 -1
- package/esm/core/component/component.d.ts +121 -0
- package/esm/core/component/component.js +4 -4
- package/esm/core/component/index.d.ts +11 -0
- package/esm/core/component/index.js +3 -3
- package/esm/core/component/statuses.d.ts +14 -0
- package/esm/core/component/view-component.d.ts +29 -0
- package/esm/core/component/view-component.js +1 -1
- package/esm/core/constants.d.ts +128 -0
- package/esm/core/constants.js +8 -8
- package/esm/core/create/create.d.ts +58 -0
- package/esm/core/create/create.js +4 -4
- package/esm/core/create/index.d.ts +9 -0
- package/esm/core/create/index.js +1 -1
- package/esm/core/decorators/cache/cache.d.ts +16 -0
- package/esm/core/decorators/cache/cache.js +4 -4
- package/esm/core/decorators/component/component.d.ts +19 -0
- package/esm/core/decorators/debounce/debounce.d.ts +16 -0
- package/esm/core/decorators/debounce/debounce.js +4 -4
- package/esm/core/decorators/derive/derive.d.ts +6 -0
- package/esm/core/decorators/derive/derive.js +1 -1
- package/esm/core/decorators/hook/hook.d.ts +16 -0
- package/esm/core/decorators/hook/hook.js +2 -2
- package/esm/core/decorators/idle/idle.d.ts +12 -0
- package/esm/core/decorators/idle/idle.js +3 -3
- package/esm/core/decorators/index.d.ts +21 -0
- package/esm/core/decorators/index.js +11 -11
- package/esm/core/decorators/nonenumerable/nonenumerable.d.ts +11 -0
- package/esm/core/decorators/persistent/persistent.d.ts +12 -0
- package/esm/core/decorators/persistent/persistent.js +2 -2
- package/esm/core/decorators/wait/wait.d.ts +13 -0
- package/esm/core/decorators/wait/wait.js +3 -3
- package/esm/core/decorators/watch/watch.d.ts +20 -0
- package/esm/core/decorators/watch/watch.js +7 -7
- package/esm/core/dom/dom.d.ts +249 -0
- package/esm/core/dom/dom.js +6 -6
- package/esm/core/dom/index.d.ts +10 -0
- package/esm/core/dom/index.js +2 -2
- package/esm/core/dom/lazy-walker.d.ts +37 -0
- package/esm/core/dom/lazy-walker.js +9 -5
- package/esm/core/event-emitter/event-emitter.d.ts +138 -0
- package/esm/core/event-emitter/event-emitter.js +7 -7
- package/esm/core/event-emitter/eventify.d.ts +40 -0
- package/esm/core/event-emitter/index.d.ts +12 -0
- package/esm/core/event-emitter/index.js +4 -4
- package/esm/core/event-emitter/observable.d.ts +45 -0
- package/esm/core/event-emitter/observable.js +4 -4
- package/esm/core/event-emitter/store.d.ts +21 -0
- package/esm/core/event-emitter/store.js +2 -2
- package/esm/core/global.d.ts +27 -0
- package/esm/core/global.js +9 -9
- package/esm/core/helpers/array/as-array.d.ts +9 -0
- package/esm/core/helpers/array/as-array.js +1 -1
- package/esm/core/helpers/array/index.d.ts +11 -0
- package/esm/core/helpers/array/index.js +3 -3
- package/esm/core/helpers/array/split-array.d.ts +14 -0
- package/esm/core/helpers/array/to-array.d.ts +15 -0
- package/esm/core/helpers/array/to-array.js +2 -2
- package/esm/core/helpers/async/index.d.ts +9 -0
- package/esm/core/helpers/async/index.js +1 -1
- package/esm/core/helpers/async/set-timeout.d.ts +16 -0
- package/esm/core/helpers/checker/has-browser-color-picker.d.ts +12 -0
- package/esm/core/helpers/checker/index.d.ts +32 -0
- package/esm/core/helpers/checker/index.js +24 -24
- package/esm/core/helpers/checker/is-array.d.ts +12 -0
- package/esm/core/helpers/checker/is-boolean.d.ts +9 -0
- package/esm/core/helpers/checker/is-equal.d.ts +10 -0
- package/esm/core/helpers/checker/is-equal.js +1 -1
- package/esm/core/helpers/checker/is-function.d.ts +12 -0
- package/esm/core/helpers/checker/is-html-from-word.d.ts +12 -0
- package/esm/core/helpers/checker/is-html.d.ts +9 -0
- package/esm/core/helpers/checker/is-html.js +1 -1
- package/esm/core/helpers/checker/is-imp-interface.d.ts +21 -0
- package/esm/core/helpers/checker/is-imp-interface.js +3 -3
- package/esm/core/helpers/checker/is-int.d.ts +9 -0
- package/esm/core/helpers/checker/is-int.js +2 -2
- package/esm/core/helpers/checker/is-jodit-object.d.ts +13 -0
- package/esm/core/helpers/checker/is-jodit-object.js +1 -1
- package/esm/core/helpers/checker/is-license.d.ts +6 -0
- package/esm/core/helpers/checker/is-license.js +1 -1
- package/esm/core/helpers/checker/is-marker.d.ts +10 -0
- package/esm/core/helpers/checker/is-marker.js +2 -2
- package/esm/core/helpers/checker/is-native-function.d.ts +12 -0
- package/esm/core/helpers/checker/is-number.d.ts +12 -0
- package/esm/core/helpers/checker/is-numeric.d.ts +9 -0
- package/esm/core/helpers/checker/is-numeric.js +1 -1
- package/esm/core/helpers/checker/is-plain-object.d.ts +13 -0
- package/esm/core/helpers/checker/is-plain-object.js +1 -1
- package/esm/core/helpers/checker/is-promise.d.ts +9 -0
- package/esm/core/helpers/checker/is-set.d.ts +9 -0
- package/esm/core/helpers/checker/is-set.js +1 -1
- package/esm/core/helpers/checker/is-string.d.ts +13 -0
- package/esm/core/helpers/checker/is-string.js +1 -1
- package/esm/core/helpers/checker/is-url.d.ts +12 -0
- package/esm/core/helpers/checker/is-valid-name.d.ts +12 -0
- package/esm/core/helpers/checker/is-view-object.d.ts +13 -0
- package/esm/core/helpers/checker/is-view-object.js +1 -1
- package/esm/core/helpers/checker/is-void.d.ts +12 -0
- package/esm/core/helpers/checker/is-window.d.ts +9 -0
- package/esm/core/helpers/color/color-to-hex.d.ts +22 -0
- package/esm/core/helpers/color/index.d.ts +9 -0
- package/esm/core/helpers/color/index.js +1 -1
- package/esm/core/helpers/html/apply-styles.d.ts +11 -0
- package/esm/core/helpers/html/apply-styles.js +4 -4
- package/esm/core/helpers/html/clean-from-word.d.ts +10 -0
- package/esm/core/helpers/html/clean-from-word.js +3 -3
- package/esm/core/helpers/html/htmlspecialchars.d.ts +12 -0
- package/esm/core/helpers/html/index.d.ts +14 -0
- package/esm/core/helpers/html/index.js +6 -6
- package/esm/core/helpers/html/nl2br.d.ts +12 -0
- package/esm/core/helpers/html/safe-html.d.ts +15 -0
- package/esm/core/helpers/html/safe-html.js +2 -2
- package/esm/core/helpers/html/strip-tags.d.ts +13 -0
- package/esm/core/helpers/html/strip-tags.js +4 -4
- package/esm/core/helpers/index.d.ts +19 -0
- package/esm/core/helpers/index.js +9 -9
- package/esm/core/helpers/normalize/index.d.ts +16 -0
- package/esm/core/helpers/normalize/index.js +8 -8
- package/esm/core/helpers/normalize/normalize-color.d.ts +12 -0
- package/esm/core/helpers/normalize/normalize-color.js +2 -2
- package/esm/core/helpers/normalize/normalize-css-value.d.ts +8 -0
- package/esm/core/helpers/normalize/normalize-css-value.js +4 -4
- package/esm/core/helpers/normalize/normalize-key-aliases.d.ts +9 -0
- package/esm/core/helpers/normalize/normalize-key-aliases.js +2 -2
- package/esm/core/helpers/normalize/normalize-license.d.ts +9 -0
- package/esm/core/helpers/normalize/normalize-path.d.ts +9 -0
- package/esm/core/helpers/normalize/normalize-path.js +1 -1
- package/esm/core/helpers/normalize/normalize-relative-path.d.ts +9 -0
- package/esm/core/helpers/normalize/normalize-size.d.ts +12 -0
- package/esm/core/helpers/normalize/normalize-url.d.ts +9 -0
- package/esm/core/helpers/size/get-content-width.d.ts +9 -0
- package/esm/core/helpers/size/get-scroll-parent.d.ts +10 -0
- package/esm/core/helpers/size/get-scroll-parent.js +2 -2
- package/esm/core/helpers/size/index.d.ts +14 -0
- package/esm/core/helpers/size/index.js +6 -6
- package/esm/core/helpers/size/inner-width.d.ts +9 -0
- package/esm/core/helpers/size/object-size.d.ts +10 -0
- package/esm/core/helpers/size/object-size.js +1 -1
- package/esm/core/helpers/size/offset.d.ts +14 -0
- package/esm/core/helpers/size/position.d.ts +12 -0
- package/esm/core/helpers/size/position.js +1 -1
- package/esm/core/helpers/string/camel-case.d.ts +12 -0
- package/esm/core/helpers/string/fuzzy-search-index.d.ts +10 -0
- package/esm/core/helpers/string/fuzzy-search-index.js +1 -1
- package/esm/core/helpers/string/i18n.d.ts +39 -0
- package/esm/core/helpers/string/i18n.js +5 -5
- package/esm/core/helpers/string/index.d.ts +15 -0
- package/esm/core/helpers/string/index.js +7 -7
- package/esm/core/helpers/string/kebab-case.d.ts +10 -0
- package/esm/core/helpers/string/stringify.d.ts +12 -0
- package/esm/core/helpers/string/trim.d.ts +14 -0
- package/esm/core/helpers/string/trim.js +1 -1
- package/esm/core/helpers/string/ucfirst.d.ts +12 -0
- package/esm/core/helpers/utils/align.d.ts +21 -0
- package/esm/core/helpers/utils/align.js +2 -2
- package/esm/core/helpers/utils/append-script.d.ts +28 -0
- package/esm/core/helpers/utils/append-script.js +3 -3
- package/esm/core/helpers/utils/assert.d.ts +8 -0
- package/esm/core/helpers/utils/attr.d.ts +22 -0
- package/esm/core/helpers/utils/attr.js +3 -3
- package/esm/core/helpers/utils/browser.d.ts +20 -0
- package/esm/core/helpers/utils/build-query.d.ts +13 -0
- package/esm/core/helpers/utils/build-query.js +1 -1
- package/esm/core/helpers/utils/complete-url.d.ts +9 -0
- package/esm/core/helpers/utils/config-proto.d.ts +41 -0
- package/esm/core/helpers/utils/config-proto.js +7 -7
- package/esm/core/helpers/utils/convert-media-url-to-video-embed.d.ts +9 -0
- package/esm/core/helpers/utils/convert-media-url-to-video-embed.js +2 -2
- package/esm/core/helpers/utils/css.d.ts +17 -0
- package/esm/core/helpers/utils/css.js +5 -5
- package/esm/core/helpers/utils/ctrl-key.d.ts +13 -0
- package/esm/core/helpers/utils/data-bind.d.ts +10 -0
- package/esm/core/helpers/utils/data-bind.js +1 -1
- package/esm/core/helpers/utils/default-language.d.ts +9 -0
- package/esm/core/helpers/utils/default-language.js +1 -1
- package/esm/core/helpers/utils/error/error.d.ts +13 -0
- package/esm/core/helpers/utils/error/error.js +1 -1
- package/esm/core/helpers/utils/error/errors/abort-error.d.ts +11 -0
- package/esm/core/helpers/utils/error/errors/connection-error.d.ts +11 -0
- package/esm/core/helpers/utils/error/errors/index.d.ts +11 -0
- package/esm/core/helpers/utils/error/errors/index.js +3 -3
- package/esm/core/helpers/utils/error/errors/options-error.d.ts +11 -0
- package/esm/core/helpers/utils/error/index.d.ts +10 -0
- package/esm/core/helpers/utils/error/index.js +2 -2
- package/esm/core/helpers/utils/extend.d.ts +8 -0
- package/esm/core/helpers/utils/extend.js +1 -1
- package/esm/core/helpers/utils/get-class-name.d.ts +11 -0
- package/esm/core/helpers/utils/get-class-name.js +1 -1
- package/esm/core/helpers/utils/get.d.ts +29 -0
- package/esm/core/helpers/utils/get.js +2 -2
- package/esm/core/helpers/utils/human-size-to-bytes.d.ts +13 -0
- package/esm/core/helpers/utils/index.d.ts +36 -0
- package/esm/core/helpers/utils/index.js +28 -28
- package/esm/core/helpers/utils/mark-deprecated.d.ts +17 -0
- package/esm/core/helpers/utils/parse-query.d.ts +13 -0
- package/esm/core/helpers/utils/print.d.ts +16 -0
- package/esm/core/helpers/utils/print.js +5 -5
- package/esm/core/helpers/utils/reset.d.ts +18 -0
- package/esm/core/helpers/utils/reset.js +3 -3
- package/esm/core/helpers/utils/scroll-into-view.d.ts +14 -0
- package/esm/core/helpers/utils/scroll-into-view.js +1 -1
- package/esm/core/helpers/utils/selector.d.ts +41 -0
- package/esm/core/helpers/utils/selector.js +8 -8
- package/esm/core/helpers/utils/set.d.ts +23 -0
- package/esm/core/helpers/utils/set.js +4 -4
- package/esm/core/helpers/utils/stack.d.ts +17 -0
- package/esm/core/helpers/utils/utils.d.ts +39 -0
- package/esm/core/helpers/utils/utils.js +4 -4
- package/esm/core/helpers/utils/val.d.ts +9 -0
- package/esm/core/plugin/helpers/init-instance.d.ts +14 -0
- package/esm/core/plugin/helpers/init-instance.js +4 -4
- package/esm/core/plugin/helpers/load.d.ts +17 -0
- package/esm/core/plugin/helpers/load.js +4 -4
- package/esm/core/plugin/helpers/make-instance.d.ts +14 -0
- package/esm/core/plugin/helpers/make-instance.js +2 -2
- package/esm/core/plugin/helpers/utils.d.ts +9 -0
- package/esm/core/plugin/helpers/utils.js +1 -1
- package/esm/core/plugin/index.d.ts +10 -0
- package/esm/core/plugin/index.js +2 -2
- package/esm/core/plugin/interface.d.ts +14 -0
- package/esm/core/plugin/interface.js +0 -5
- package/esm/core/plugin/plugin-system.d.ts +46 -0
- package/esm/core/plugin/plugin-system.js +9 -9
- package/esm/core/plugin/plugin.d.ts +38 -0
- package/esm/core/plugin/plugin.js +9 -5
- package/esm/core/request/ajax.d.ts +28 -0
- package/esm/core/request/ajax.js +13 -9
- package/esm/core/request/config.d.ts +17 -0
- package/esm/core/request/config.js +1 -1
- package/esm/core/request/index.d.ts +10 -0
- package/esm/core/request/index.js +2 -2
- package/esm/core/request/response.d.ts +20 -0
- package/esm/core/selection/helpers/index.d.ts +10 -0
- package/esm/core/selection/helpers/index.js +2 -2
- package/esm/core/selection/helpers/move-node-inside-start.d.ts +15 -0
- package/esm/core/selection/helpers/move-node-inside-start.js +2 -2
- package/esm/core/selection/helpers/move-the-node-along-the-edge-outward.d.ts +10 -0
- package/esm/core/selection/helpers/move-the-node-along-the-edge-outward.js +1 -1
- package/esm/core/selection/index.d.ts +10 -0
- package/esm/core/selection/index.js +2 -2
- package/esm/core/selection/interface.d.ts +19 -0
- package/esm/core/selection/interface.js +0 -5
- package/esm/core/selection/selection.d.ts +231 -0
- package/esm/core/selection/selection.js +16 -12
- package/esm/core/selection/style/api/extract.d.ts +23 -0
- package/esm/core/selection/style/api/extract.js +4 -4
- package/esm/core/selection/style/api/finite-state-machine.d.ts +22 -0
- package/esm/core/selection/style/api/finite-state-machine.js +3 -3
- package/esm/core/selection/style/api/get-suit-child.d.ts +15 -0
- package/esm/core/selection/style/api/get-suit-child.js +3 -3
- package/esm/core/selection/style/api/get-suit-parent.d.ts +15 -0
- package/esm/core/selection/style/api/get-suit-parent.js +3 -3
- package/esm/core/selection/style/api/has-same-style.d.ts +15 -0
- package/esm/core/selection/style/api/has-same-style.js +5 -5
- package/esm/core/selection/style/api/index.d.ts +20 -0
- package/esm/core/selection/style/api/index.js +15 -15
- package/esm/core/selection/style/api/is-inside-invisible-element.d.ts +10 -0
- package/esm/core/selection/style/api/is-inside-invisible-element.js +1 -1
- package/esm/core/selection/style/api/is-normal-node.d.ts +11 -0
- package/esm/core/selection/style/api/is-normal-node.js +2 -2
- package/esm/core/selection/style/api/is-same-attributes.d.ts +12 -0
- package/esm/core/selection/style/api/is-same-attributes.js +4 -4
- package/esm/core/selection/style/api/is-suit-element.d.ts +28 -0
- package/esm/core/selection/style/api/is-suit-element.js +3 -3
- package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +11 -0
- package/esm/core/selection/style/api/list/toggle-ordered-list.js +6 -6
- package/esm/core/selection/style/api/list/wrap-list.d.ts +12 -0
- package/esm/core/selection/style/api/list/wrap-list.js +3 -3
- package/esm/core/selection/style/api/toggle-attributes.d.ts +11 -0
- package/esm/core/selection/style/api/toggle-attributes.js +10 -10
- package/esm/core/selection/style/api/unwrap-children.d.ts +11 -0
- package/esm/core/selection/style/api/unwrap-children.js +4 -4
- package/esm/core/selection/style/api/wrap-unwrapped-text.d.ts +11 -0
- package/esm/core/selection/style/api/wrap-unwrapped-text.js +2 -2
- package/esm/core/selection/style/api/wrap.d.ts +11 -0
- package/esm/core/selection/style/api/wrap.js +4 -4
- package/esm/core/selection/style/apply-style.d.ts +11 -0
- package/esm/core/selection/style/apply-style.js +3 -3
- package/esm/core/selection/style/commit-style.d.ts +36 -0
- package/esm/core/selection/style/commit-style.js +3 -3
- package/esm/core/selection/style/transactions.d.ts +30 -0
- package/esm/core/selection/style/transactions.js +6 -6
- package/esm/core/storage/engines/local-storage-provider.d.ts +25 -0
- package/esm/core/storage/engines/memory-storage-provider.d.ts +17 -0
- package/esm/core/storage/index.d.ts +11 -0
- package/esm/core/storage/index.js +3 -3
- package/esm/core/storage/storage.d.ts +23 -0
- package/esm/core/storage/storage.js +3 -3
- package/esm/core/traits/dlgs.d.ts +15 -0
- package/esm/core/traits/dlgs.js +3 -3
- package/esm/core/traits/elms.d.ts +19 -0
- package/esm/core/traits/elms.js +1 -1
- package/esm/core/traits/mods.d.ts +23 -0
- package/esm/core/traits/mods.js +1 -1
- package/esm/core/ui/button/button/button.d.ts +77 -0
- package/esm/core/ui/button/button/button.js +15 -12
- package/esm/core/ui/button/group/group.d.ts +37 -0
- package/esm/core/ui/button/group/group.js +10 -7
- package/esm/core/ui/button/index.d.ts +13 -0
- package/esm/core/ui/button/index.js +3 -3
- package/esm/core/ui/button/tooltip/tooltip.d.ts +33 -0
- package/esm/core/ui/button/tooltip/tooltip.js +13 -10
- package/esm/core/ui/element.d.ts +59 -0
- package/esm/core/ui/element.js +13 -9
- package/esm/core/ui/form/block/block.d.ts +29 -0
- package/esm/core/ui/form/block/block.js +9 -6
- package/esm/core/ui/form/form.d.ts +23 -0
- package/esm/core/ui/form/form.js +12 -8
- package/esm/core/ui/form/index.d.ts +11 -0
- package/esm/core/ui/form/index.js +3 -3
- package/esm/core/ui/form/inputs/area/area.d.ts +21 -0
- package/esm/core/ui/form/inputs/area/area.js +8 -5
- package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +26 -0
- package/esm/core/ui/form/inputs/checkbox/checkbox.js +9 -6
- package/esm/core/ui/form/inputs/file/file.d.ts +22 -0
- package/esm/core/ui/form/inputs/file/file.js +9 -6
- package/esm/core/ui/form/inputs/index.d.ts +13 -0
- package/esm/core/ui/form/inputs/index.js +5 -5
- package/esm/core/ui/form/inputs/input/input.d.ts +54 -0
- package/esm/core/ui/form/inputs/input/input.js +13 -10
- package/esm/core/ui/form/inputs/select/select.d.ts +28 -0
- package/esm/core/ui/form/inputs/select/select.js +10 -7
- package/esm/core/ui/form/validators/index.d.ts +10 -0
- package/esm/core/ui/form/validators/index.js +2 -2
- package/esm/core/ui/form/validators/input.d.ts +17 -0
- package/esm/core/ui/form/validators/input.js +2 -2
- package/esm/core/ui/form/validators/select.d.ts +13 -0
- package/esm/core/ui/form/validators/select.js +1 -1
- package/esm/core/ui/group/group.d.ts +57 -0
- package/esm/core/ui/group/group.js +12 -9
- package/esm/core/ui/group/index.d.ts +12 -0
- package/esm/core/ui/group/index.js +4 -4
- package/esm/core/ui/group/list.d.ts +38 -0
- package/esm/core/ui/group/list.js +16 -13
- package/esm/core/ui/group/separator.d.ts +12 -0
- package/esm/core/ui/group/separator.js +8 -4
- package/esm/core/ui/group/spacer.d.ts +12 -0
- package/esm/core/ui/group/spacer.js +8 -4
- package/esm/core/ui/helpers/buttons.d.ts +17 -0
- package/esm/core/ui/helpers/buttons.js +1 -1
- package/esm/core/ui/helpers/get-control-type.d.ts +18 -0
- package/esm/core/ui/helpers/get-control-type.js +2 -2
- package/esm/core/ui/helpers/get-strong-control-types.d.ts +13 -0
- package/esm/core/ui/helpers/get-strong-control-types.js +4 -4
- package/esm/core/ui/icon.d.ts +30 -0
- package/esm/core/ui/icon.js +3 -3
- package/esm/core/ui/index.d.ts +17 -0
- package/esm/core/ui/index.js +7 -7
- package/esm/core/ui/popup/index.d.ts +9 -0
- package/esm/core/ui/popup/index.js +1 -1
- package/esm/core/ui/popup/popup.d.ts +71 -0
- package/esm/core/ui/popup/popup.js +13 -10
- package/esm/core/ui/progress-bar/progress-bar.d.ts +26 -0
- package/esm/core/ui/progress-bar/progress-bar.js +2 -3
- package/esm/core/view/view-with-toolbar.d.ts +47 -0
- package/esm/core/view/view-with-toolbar.js +15 -12
- package/esm/core/view/view.d.ts +126 -0
- package/esm/core/view/view.js +16 -12
- package/esm/index.d.ts +17 -0
- package/esm/index.js +7 -16
- package/esm/jodit.d.ts +360 -0
- package/esm/jodit.js +15 -11
- package/esm/langs/ar.d.ts +212 -0
- package/esm/langs/cs_cz.d.ts +214 -0
- package/esm/langs/de.d.ts +217 -0
- package/esm/langs/en.d.ts +6 -0
- package/esm/langs/es.d.ts +217 -0
- package/esm/langs/fr.d.ts +209 -0
- package/esm/langs/he.d.ts +212 -0
- package/esm/langs/hu.d.ts +214 -0
- package/esm/langs/id.d.ts +214 -0
- package/esm/langs/it.d.ts +212 -0
- package/esm/langs/ja.d.ts +217 -0
- package/esm/langs/keys.d.ts +1 -0
- package/esm/langs/ko.d.ts +212 -0
- package/esm/langs/mn.d.ts +212 -0
- package/esm/langs/nl.d.ts +213 -0
- package/esm/langs/pl.d.ts +212 -0
- package/esm/langs/pt_br.d.ts +217 -0
- package/esm/langs/ru.d.ts +212 -0
- package/esm/langs/tr.d.ts +212 -0
- package/esm/langs/zh_cn.d.ts +213 -0
- package/esm/langs/zh_tw.d.ts +211 -0
- package/esm/languages.d.ts +13 -0
- package/esm/languages.js +22 -22
- package/esm/modules/context-menu/context-menu.d.ts +32 -0
- package/esm/modules/context-menu/context-menu.js +10 -7
- package/esm/modules/dialog/alert.d.ts +24 -0
- package/esm/modules/dialog/alert.js +5 -5
- package/esm/modules/dialog/confirm.d.ts +24 -0
- package/esm/modules/dialog/confirm.js +3 -3
- package/esm/modules/dialog/dialog.d.ts +181 -0
- package/esm/modules/dialog/dialog.js +19 -16
- package/esm/modules/dialog/index.d.ts +14 -0
- package/esm/modules/dialog/index.js +4 -4
- package/esm/modules/dialog/prompt.d.ts +27 -0
- package/esm/modules/dialog/prompt.js +4 -4
- package/esm/modules/file-browser/builders/context-menu.d.ts +11 -0
- package/esm/modules/file-browser/builders/context-menu.js +9 -9
- package/esm/modules/file-browser/builders/elements-map.d.ts +19 -0
- package/esm/modules/file-browser/builders/item.d.ts +23 -0
- package/esm/modules/file-browser/builders/item.js +1 -1
- package/esm/modules/file-browser/config.d.ts +11 -0
- package/esm/modules/file-browser/config.js +4 -4
- package/esm/modules/file-browser/data-provider.d.ts +112 -0
- package/esm/modules/file-browser/data-provider.js +11 -7
- package/esm/modules/file-browser/factories.d.ts +11 -0
- package/esm/modules/file-browser/factories.js +2 -2
- package/esm/modules/file-browser/fetch/delete-file.d.ts +14 -0
- package/esm/modules/file-browser/fetch/load-items.d.ts +14 -0
- package/esm/modules/file-browser/fetch/load-tree.d.ts +14 -0
- package/esm/modules/file-browser/fetch/load-tree.js +2 -2
- package/esm/modules/file-browser/file-browser.d.ts +76 -0
- package/esm/modules/file-browser/file-browser.js +26 -23
- package/esm/modules/file-browser/index.d.ts +11 -0
- package/esm/modules/file-browser/index.js +1 -1
- package/esm/modules/file-browser/listeners/native-listeners.d.ts +24 -0
- package/esm/modules/file-browser/listeners/native-listeners.js +5 -5
- package/esm/modules/file-browser/listeners/self-listeners.d.ts +13 -0
- package/esm/modules/file-browser/listeners/self-listeners.js +7 -7
- package/esm/modules/file-browser/listeners/state-listeners.d.ts +14 -0
- package/esm/modules/file-browser/listeners/state-listeners.js +5 -5
- package/esm/modules/file-browser/ui/files/files.d.ts +10 -0
- package/esm/modules/file-browser/ui/files/files.js +1 -2
- package/esm/modules/file-browser/ui/index.d.ts +10 -0
- package/esm/modules/file-browser/ui/index.js +2 -2
- package/esm/modules/file-browser/ui/tree/tree.d.ts +10 -0
- package/esm/modules/file-browser/ui/tree/tree.js +1 -2
- package/esm/modules/history/command.d.ts +19 -0
- package/esm/modules/history/history.d.ts +74 -0
- package/esm/modules/history/history.js +12 -8
- package/esm/modules/history/snapshot.d.ts +67 -0
- package/esm/modules/history/snapshot.js +3 -3
- package/esm/modules/history/stack.d.ts +26 -0
- package/esm/modules/image-editor/config.d.ts +11 -0
- package/esm/modules/image-editor/config.js +4 -4
- package/esm/modules/image-editor/image-editor.d.ts +120 -0
- package/esm/modules/image-editor/image-editor.js +14 -11
- package/esm/modules/image-editor/templates/form.d.ts +10 -0
- package/esm/modules/image-editor/templates/form.js +1 -1
- package/esm/modules/index.d.ts +37 -0
- package/esm/modules/index.js +26 -26
- package/esm/modules/messages/message.d.ts +17 -0
- package/esm/modules/messages/message.js +8 -4
- package/esm/modules/messages/messages.d.ts +36 -0
- package/esm/modules/messages/messages.js +10 -7
- package/esm/modules/status-bar/status-bar.d.ts +46 -0
- package/esm/modules/status-bar/status-bar.js +11 -8
- package/esm/modules/table/table.d.ts +91 -0
- package/esm/modules/table/table.js +12 -8
- package/esm/modules/toolbar/button/button.d.ts +84 -0
- package/esm/modules/toolbar/button/button.js +16 -13
- package/esm/modules/toolbar/button/content.d.ts +22 -0
- package/esm/modules/toolbar/button/content.js +10 -7
- package/esm/modules/toolbar/button/index.d.ts +10 -0
- package/esm/modules/toolbar/button/index.js +2 -2
- package/esm/modules/toolbar/collection/collection.d.ts +51 -0
- package/esm/modules/toolbar/collection/collection.js +10 -7
- package/esm/modules/toolbar/collection/editor-collection.d.ts +38 -0
- package/esm/modules/toolbar/collection/editor-collection.js +11 -7
- package/esm/modules/toolbar/factory.d.ts +19 -0
- package/esm/modules/toolbar/factory.js +5 -5
- package/esm/modules/uploader/config.d.ts +18 -0
- package/esm/modules/uploader/config.js +3 -3
- package/esm/modules/uploader/helpers/build-data.d.ts +10 -0
- package/esm/modules/uploader/helpers/build-data.js +1 -1
- package/esm/modules/uploader/helpers/data-uri-to-blob.d.ts +12 -0
- package/esm/modules/uploader/helpers/index.d.ts +16 -0
- package/esm/modules/uploader/helpers/index.js +5 -5
- package/esm/modules/uploader/helpers/process-old-browser-drag.d.ts +10 -0
- package/esm/modules/uploader/helpers/process-old-browser-drag.js +5 -5
- package/esm/modules/uploader/helpers/send-files.d.ts +13 -0
- package/esm/modules/uploader/helpers/send-files.js +2 -2
- package/esm/modules/uploader/helpers/send.d.ts +12 -0
- package/esm/modules/uploader/helpers/send.js +3 -3
- package/esm/modules/uploader/uploader.d.ts +60 -0
- package/esm/modules/uploader/uploader.js +6 -7
- package/esm/modules/widget/color-picker/color-picker.d.ts +30 -0
- package/esm/modules/widget/color-picker/color-picker.js +4 -5
- package/esm/modules/widget/file-selector/file-selector.d.ts +54 -0
- package/esm/modules/widget/file-selector/file-selector.js +4 -4
- package/esm/modules/widget/index.d.ts +13 -0
- package/esm/modules/widget/index.js +3 -3
- package/esm/modules/widget/tabs/tabs.d.ts +38 -0
- package/esm/modules/widget/tabs/tabs.js +5 -6
- package/esm/plugins/about/about.d.ts +11 -0
- package/esm/plugins/about/about.js +7 -8
- package/esm/plugins/add-new-line/add-new-line.d.ts +38 -0
- package/esm/plugins/add-new-line/add-new-line.js +11 -8
- package/esm/plugins/add-new-line/config.d.ts +36 -0
- package/esm/plugins/add-new-line/config.js +3 -3
- package/esm/plugins/backspace/backspace.d.ts +26 -0
- package/esm/plugins/backspace/backspace.js +9 -9
- package/esm/plugins/backspace/cases/check-join-neighbors.d.ts +14 -0
- package/esm/plugins/backspace/cases/check-join-neighbors.js +3 -3
- package/esm/plugins/backspace/cases/check-join-two-lists.d.ts +23 -0
- package/esm/plugins/backspace/cases/check-join-two-lists.js +3 -3
- package/esm/plugins/backspace/cases/check-not-collapsed.d.ts +23 -0
- package/esm/plugins/backspace/cases/check-remove-char.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-remove-char.js +4 -4
- package/esm/plugins/backspace/cases/check-remove-content-not-editable.d.ts +14 -0
- package/esm/plugins/backspace/cases/check-remove-content-not-editable.js +3 -3
- package/esm/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +23 -0
- package/esm/plugins/backspace/cases/check-remove-empty-neighbor.js +1 -1
- package/esm/plugins/backspace/cases/check-remove-empty-parent.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-remove-empty-parent.js +3 -3
- package/esm/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-remove-unbreakable-element.js +3 -3
- package/esm/plugins/backspace/cases/check-table-cell.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-table-cell.js +1 -1
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.js +2 -2
- package/esm/plugins/backspace/cases/index.d.ts +11 -0
- package/esm/plugins/backspace/cases/index.js +9 -9
- package/esm/plugins/backspace/config.d.ts +20 -0
- package/esm/plugins/backspace/config.js +1 -1
- package/esm/plugins/backspace/helpers.d.ts +19 -0
- package/esm/plugins/backspace/helpers.js +1 -1
- package/esm/plugins/backspace/interface.d.ts +49 -0
- package/esm/plugins/bold/bold.d.ts +17 -0
- package/esm/plugins/bold/bold.js +12 -12
- package/esm/plugins/bold/config.d.ts +6 -0
- package/esm/plugins/bold/config.js +1 -1
- package/esm/plugins/bold/interface.d.ts +33 -0
- package/esm/plugins/bold/interface.js +0 -5
- package/esm/plugins/class-span/class-span.d.ts +39 -0
- package/esm/plugins/class-span/class-span.js +7 -7
- package/esm/plugins/clean-html/clean-html.d.ts +40 -0
- package/esm/plugins/clean-html/clean-html.js +14 -10
- package/esm/plugins/clean-html/config.d.ts +96 -0
- package/esm/plugins/clean-html/config.js +3 -3
- package/esm/plugins/clean-html/helpers/get-hash.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/get-hash.js +2 -2
- package/esm/plugins/clean-html/helpers/index.d.ts +12 -0
- package/esm/plugins/clean-html/helpers/index.js +4 -4
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +19 -0
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js +2 -2
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +14 -0
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-selection.js +3 -3
- package/esm/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/allow-attributes.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +18 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/index.js +7 -7
- package/esm/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +3 -3
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.js +2 -2
- package/esm/plugins/clipboard/clipboard.d.ts +24 -0
- package/esm/plugins/clipboard/clipboard.js +4 -4
- package/esm/plugins/clipboard/config.d.ts +6 -0
- package/esm/plugins/clipboard/config.js +6 -6
- package/esm/plugins/color/color.d.ts +16 -0
- package/esm/plugins/color/color.js +3 -3
- package/esm/plugins/color/config.d.ts +6 -0
- package/esm/plugins/color/config.js +6 -6
- package/esm/plugins/copy-format/copy-format.d.ts +12 -0
- package/esm/plugins/copy-format/copy-format.js +7 -7
- package/esm/plugins/copy-format/langs/ar.d.ts +4 -0
- package/esm/plugins/copy-format/langs/cs_cz.d.ts +4 -0
- package/esm/plugins/copy-format/langs/de.d.ts +4 -0
- package/esm/plugins/copy-format/langs/es.d.ts +4 -0
- package/esm/plugins/copy-format/langs/fa.d.ts +4 -0
- package/esm/plugins/copy-format/langs/fr.d.ts +4 -0
- package/esm/plugins/copy-format/langs/he.d.ts +4 -0
- package/esm/plugins/copy-format/langs/hu.d.ts +4 -0
- package/esm/plugins/copy-format/langs/id.d.ts +4 -0
- package/esm/plugins/copy-format/langs/index.d.ts +26 -0
- package/esm/plugins/copy-format/langs/index.js +0 -25
- package/esm/plugins/copy-format/langs/it.d.ts +4 -0
- package/esm/plugins/copy-format/langs/ja.d.ts +4 -0
- package/esm/plugins/copy-format/langs/ko.d.ts +4 -0
- package/esm/plugins/copy-format/langs/mn.d.ts +4 -0
- package/esm/plugins/copy-format/langs/nl.d.ts +4 -0
- package/esm/plugins/copy-format/langs/pl.d.ts +4 -0
- package/esm/plugins/copy-format/langs/pt_br.d.ts +4 -0
- package/esm/plugins/copy-format/langs/ru.d.ts +4 -0
- package/esm/plugins/copy-format/langs/tr.d.ts +4 -0
- package/esm/plugins/copy-format/langs/zh_cn.d.ts +4 -0
- package/esm/plugins/copy-format/langs/zh_tw.d.ts +4 -0
- package/esm/plugins/debug/debug.d.ts +16 -0
- package/esm/plugins/delete/delete.d.ts +33 -0
- package/esm/plugins/delete/delete.js +6 -6
- package/esm/plugins/delete/interface.d.ts +13 -0
- package/esm/plugins/delete/interface.js +0 -5
- package/esm/plugins/drag-and-drop/drag-and-drop.d.ts +27 -0
- package/esm/plugins/drag-and-drop/drag-and-drop.js +13 -9
- package/esm/plugins/drag-and-drop-element/config.d.ts +14 -0
- package/esm/plugins/drag-and-drop-element/config.js +1 -1
- package/esm/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +50 -0
- package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +12 -8
- package/esm/plugins/dtd/after-insert/index.d.ts +10 -0
- package/esm/plugins/dtd/after-insert/index.js +1 -1
- package/esm/plugins/dtd/after-insert/remove-extra-br.d.ts +16 -0
- package/esm/plugins/dtd/after-insert/remove-extra-br.js +1 -1
- package/esm/plugins/dtd/before-insert/check-block-nesting.d.ts +16 -0
- package/esm/plugins/dtd/before-insert/check-block-nesting.js +1 -1
- package/esm/plugins/dtd/before-insert/index.d.ts +10 -0
- package/esm/plugins/dtd/before-insert/index.js +1 -1
- package/esm/plugins/dtd/config.d.ts +27 -0
- package/esm/plugins/dtd/config.js +1 -1
- package/esm/plugins/dtd/dtd.d.ts +6 -0
- package/esm/plugins/dtd/dtd.js +12 -8
- package/esm/plugins/enter/enter.d.ts +26 -0
- package/esm/plugins/enter/enter.js +14 -10
- package/esm/plugins/enter/helpers/check-br.d.ts +14 -0
- package/esm/plugins/enter/helpers/check-br.js +3 -3
- package/esm/plugins/enter/helpers/check-unsplittable-box.d.ts +14 -0
- package/esm/plugins/enter/helpers/check-unsplittable-box.js +1 -1
- package/esm/plugins/enter/helpers/get-block-wrapper.d.ts +14 -0
- package/esm/plugins/enter/helpers/get-block-wrapper.js +2 -2
- package/esm/plugins/enter/helpers/has-previous-block.d.ts +13 -0
- package/esm/plugins/enter/helpers/has-previous-block.js +1 -1
- package/esm/plugins/enter/helpers/index.d.ts +17 -0
- package/esm/plugins/enter/helpers/index.js +9 -9
- package/esm/plugins/enter/helpers/insert-paragraph.d.ts +14 -0
- package/esm/plugins/enter/helpers/insert-paragraph.js +2 -2
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +14 -0
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.js +1 -1
- package/esm/plugins/enter/helpers/process-empty-li-leaf.d.ts +14 -0
- package/esm/plugins/enter/helpers/process-empty-li-leaf.js +3 -3
- package/esm/plugins/enter/helpers/split-fragment.d.ts +15 -0
- package/esm/plugins/enter/helpers/split-fragment.js +3 -3
- package/esm/plugins/enter/helpers/wrap-text.d.ts +15 -0
- package/esm/plugins/enter/helpers/wrap-text.js +1 -1
- package/esm/plugins/enter/interface.d.ts +33 -0
- package/esm/plugins/enter/interface.js +0 -5
- package/esm/plugins/file/file.d.ts +12 -0
- package/esm/plugins/file/file.js +4 -4
- package/esm/plugins/focus/focus.d.ts +19 -0
- package/esm/plugins/focus/focus.js +3 -3
- package/esm/plugins/font/config.d.ts +11 -0
- package/esm/plugins/font/config.js +6 -6
- package/esm/plugins/font/font.d.ts +16 -0
- package/esm/plugins/font/font.js +3 -3
- package/esm/plugins/format-block/format-block.d.ts +15 -0
- package/esm/plugins/format-block/format-block.js +6 -6
- package/esm/plugins/fullsize/config.d.ts +34 -0
- package/esm/plugins/fullsize/config.js +5 -6
- package/esm/plugins/fullsize/fullsize.d.ts +17 -0
- package/esm/plugins/fullsize/fullsize.js +4 -5
- package/esm/plugins/hotkeys/config.d.ts +14 -0
- package/esm/plugins/hotkeys/config.js +1 -1
- package/esm/plugins/hotkeys/hotkeys.d.ts +26 -0
- package/esm/plugins/hotkeys/hotkeys.js +5 -5
- package/esm/plugins/hr/hr.d.ts +12 -0
- package/esm/plugins/hr/hr.js +5 -5
- package/esm/plugins/iframe/config.d.ts +65 -0
- package/esm/plugins/iframe/config.js +1 -1
- package/esm/plugins/iframe/iframe.d.ts +17 -0
- package/esm/plugins/iframe/iframe.js +5 -5
- package/esm/plugins/image/image.d.ts +12 -0
- package/esm/plugins/image/image.js +7 -7
- package/esm/plugins/image-processor/config.d.ts +16 -0
- package/esm/plugins/image-processor/config.js +1 -1
- package/esm/plugins/image-processor/image-processor.d.ts +29 -0
- package/esm/plugins/image-processor/image-processor.js +12 -8
- package/esm/plugins/image-properties/config.d.ts +89 -0
- package/esm/plugins/image-properties/config.js +1 -1
- package/esm/plugins/image-properties/image-properties.d.ts +72 -0
- package/esm/plugins/image-properties/image-properties.js +17 -14
- package/esm/plugins/image-properties/templates/form.d.ts +10 -0
- package/esm/plugins/image-properties/templates/form.js +1 -1
- package/esm/plugins/image-properties/templates/main-tab.d.ts +10 -0
- package/esm/plugins/image-properties/templates/main-tab.js +1 -1
- package/esm/plugins/image-properties/templates/position-tab.d.ts +10 -0
- package/esm/plugins/image-properties/templates/position-tab.js +1 -1
- package/esm/plugins/indent/config.d.ts +14 -0
- package/esm/plugins/indent/config.js +6 -6
- package/esm/plugins/indent/helpers.d.ts +10 -0
- package/esm/plugins/indent/helpers.js +1 -1
- package/esm/plugins/indent/indent.d.ts +16 -0
- package/esm/plugins/indent/indent.js +6 -6
- package/esm/plugins/index.d.ts +71 -0
- package/esm/plugins/index.js +17 -64
- package/esm/plugins/inline-popup/config/config.d.ts +18 -0
- package/esm/plugins/inline-popup/config/config.js +16 -16
- package/esm/plugins/inline-popup/config/items/a.d.ts +11 -0
- package/esm/plugins/inline-popup/config/items/a.js +1 -1
- package/esm/plugins/inline-popup/config/items/cells.d.ts +11 -0
- package/esm/plugins/inline-popup/config/items/cells.js +3 -3
- package/esm/plugins/inline-popup/config/items/iframe.d.ts +15 -0
- package/esm/plugins/inline-popup/config/items/iframe.js +1 -1
- package/esm/plugins/inline-popup/config/items/img.d.ts +12 -0
- package/esm/plugins/inline-popup/config/items/img.js +4 -4
- package/esm/plugins/inline-popup/config/items/toolbar.d.ts +10 -0
- package/esm/plugins/inline-popup/inline-popup.d.ts +71 -0
- package/esm/plugins/inline-popup/inline-popup.js +15 -12
- package/esm/plugins/justify/justify.d.ts +15 -0
- package/esm/plugins/justify/justify.js +7 -7
- package/esm/plugins/key-arrow-outside/key-arrow-outside.d.ts +20 -0
- package/esm/plugins/key-arrow-outside/key-arrow-outside.js +11 -7
- package/esm/plugins/limit/config.d.ts +22 -0
- package/esm/plugins/limit/config.js +1 -1
- package/esm/plugins/limit/limit.d.ts +39 -0
- package/esm/plugins/limit/limit.js +11 -7
- package/esm/plugins/line-height/config.d.ts +20 -0
- package/esm/plugins/line-height/config.js +4 -4
- package/esm/plugins/line-height/langs/ar.d.ts +4 -0
- package/esm/plugins/line-height/langs/cs_cz.d.ts +4 -0
- package/esm/plugins/line-height/langs/de.d.ts +4 -0
- package/esm/plugins/line-height/langs/es.d.ts +4 -0
- package/esm/plugins/line-height/langs/fa.d.ts +4 -0
- package/esm/plugins/line-height/langs/fr.d.ts +4 -0
- package/esm/plugins/line-height/langs/he.d.ts +4 -0
- package/esm/plugins/line-height/langs/hu.d.ts +4 -0
- package/esm/plugins/line-height/langs/id.d.ts +4 -0
- package/esm/plugins/line-height/langs/index.d.ts +26 -0
- package/esm/plugins/line-height/langs/index.js +0 -25
- package/esm/plugins/line-height/langs/it.d.ts +4 -0
- package/esm/plugins/line-height/langs/ja.d.ts +4 -0
- package/esm/plugins/line-height/langs/ko.d.ts +4 -0
- package/esm/plugins/line-height/langs/mn.d.ts +4 -0
- package/esm/plugins/line-height/langs/nl.d.ts +4 -0
- package/esm/plugins/line-height/langs/pl.d.ts +4 -0
- package/esm/plugins/line-height/langs/pt_br.d.ts +4 -0
- package/esm/plugins/line-height/langs/ru.d.ts +4 -0
- package/esm/plugins/line-height/langs/tr.d.ts +4 -0
- package/esm/plugins/line-height/langs/zh_cn.d.ts +4 -0
- package/esm/plugins/line-height/langs/zh_tw.d.ts +4 -0
- package/esm/plugins/line-height/line-height.d.ts +20 -0
- package/esm/plugins/line-height/line-height.js +13 -9
- package/esm/plugins/link/config.d.ts +57 -0
- package/esm/plugins/link/config.js +6 -6
- package/esm/plugins/link/link.d.ts +27 -0
- package/esm/plugins/link/link.js +12 -8
- package/esm/plugins/link/template.d.ts +10 -0
- package/esm/plugins/link/template.js +2 -2
- package/esm/plugins/media/config.d.ts +22 -0
- package/esm/plugins/media/config.js +1 -1
- package/esm/plugins/media/media.d.ts +16 -0
- package/esm/plugins/media/media.js +4 -4
- package/esm/plugins/mobile/config.d.ts +18 -0
- package/esm/plugins/mobile/config.js +5 -5
- package/esm/plugins/mobile/mobile.d.ts +16 -0
- package/esm/plugins/mobile/mobile.js +4 -4
- package/esm/plugins/ordered-list/config.d.ts +6 -0
- package/esm/plugins/ordered-list/config.js +5 -5
- package/esm/plugins/ordered-list/ordered-list.d.ts +22 -0
- package/esm/plugins/ordered-list/ordered-list.js +10 -6
- package/esm/plugins/paste/config.d.ts +34 -0
- package/esm/plugins/paste/config.js +3 -3
- package/esm/plugins/paste/helpers.d.ts +25 -0
- package/esm/plugins/paste/helpers.js +4 -4
- package/esm/plugins/paste/interface.d.ts +38 -0
- package/esm/plugins/paste/paste.d.ts +52 -0
- package/esm/plugins/paste/paste.js +14 -10
- package/esm/plugins/paste-from-word/config.d.ts +35 -0
- package/esm/plugins/paste-from-word/config.js +2 -2
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +27 -0
- package/esm/plugins/paste-from-word/paste-from-word.js +13 -9
- package/esm/plugins/paste-storage/paste-storage.d.ts +30 -0
- package/esm/plugins/paste-storage/paste-storage.js +6 -7
- package/esm/plugins/placeholder/config.d.ts +44 -0
- package/esm/plugins/placeholder/config.js +1 -1
- package/esm/plugins/placeholder/placeholder.d.ts +32 -0
- package/esm/plugins/placeholder/placeholder.js +16 -13
- package/esm/plugins/powered-by-jodit/powered-by-jodit.d.ts +20 -0
- package/esm/plugins/powered-by-jodit/powered-by-jodit.js +1 -1
- package/esm/plugins/preview/preview.d.ts +13 -0
- package/esm/plugins/preview/preview.js +4 -5
- package/esm/plugins/print/lib/generate-critical-css.d.ts +13 -0
- package/esm/plugins/print/lib/generate-critical-css.js +1 -1
- package/esm/plugins/print/print.d.ts +12 -0
- package/esm/plugins/print/print.js +10 -10
- package/esm/plugins/redo-undo/redo-undo.d.ts +21 -0
- package/esm/plugins/redo-undo/redo-undo.js +7 -7
- package/esm/plugins/resize-cells/config.d.ts +11 -0
- package/esm/plugins/resize-cells/config.js +1 -1
- package/esm/plugins/resize-cells/resize-cells.d.ts +79 -0
- package/esm/plugins/resize-cells/resize-cells.js +13 -10
- package/esm/plugins/resize-handler/config.d.ts +12 -0
- package/esm/plugins/resize-handler/config.js +1 -1
- package/esm/plugins/resize-handler/resize-handler.d.ts +45 -0
- package/esm/plugins/resize-handler/resize-handler.js +12 -8
- package/esm/plugins/resizer/config.d.ts +50 -0
- package/esm/plugins/resizer/config.js +1 -1
- package/esm/plugins/resizer/resizer.d.ts +69 -0
- package/esm/plugins/resizer/resizer.js +15 -12
- package/esm/plugins/search/config.d.ts +37 -0
- package/esm/plugins/search/config.js +4 -4
- package/esm/plugins/search/helpers/index.d.ts +10 -0
- package/esm/plugins/search/helpers/index.js +2 -2
- package/esm/plugins/search/helpers/sentence-finder.d.ts +21 -0
- package/esm/plugins/search/helpers/sentence-finder.js +1 -1
- package/esm/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +29 -0
- package/esm/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.js +2 -2
- package/esm/plugins/search/interface.d.ts +46 -0
- package/esm/plugins/search/interface.js +0 -5
- package/esm/plugins/search/search.d.ts +57 -0
- package/esm/plugins/search/search.js +15 -11
- package/esm/plugins/search/ui/search.d.ts +37 -0
- package/esm/plugins/search/ui/search.js +12 -9
- package/esm/plugins/select/config.d.ts +21 -0
- package/esm/plugins/select/config.js +1 -1
- package/esm/plugins/select/select.d.ts +36 -0
- package/esm/plugins/select/select.js +13 -9
- package/esm/plugins/select-cells/config.d.ts +11 -0
- package/esm/plugins/select-cells/config.js +1 -1
- package/esm/plugins/select-cells/select-cells.d.ts +59 -0
- package/esm/plugins/select-cells/select-cells.js +14 -10
- package/esm/plugins/size/config.d.ts +15 -0
- package/esm/plugins/size/config.js +1 -1
- package/esm/plugins/size/size.d.ts +46 -0
- package/esm/plugins/size/size.js +12 -9
- package/esm/plugins/source/config.d.ts +46 -0
- package/esm/plugins/source/config.js +4 -4
- package/esm/plugins/source/editor/engines/ace.d.ts +41 -0
- package/esm/plugins/source/editor/engines/ace.js +3 -3
- package/esm/plugins/source/editor/engines/area.d.ts +28 -0
- package/esm/plugins/source/editor/engines/area.js +3 -3
- package/esm/plugins/source/editor/engines/index.d.ts +10 -0
- package/esm/plugins/source/editor/engines/index.js +2 -2
- package/esm/plugins/source/editor/factory.d.ts +10 -0
- package/esm/plugins/source/editor/factory.js +2 -2
- package/esm/plugins/source/editor/sourceEditor.d.ts +27 -0
- package/esm/plugins/source/source.d.ts +56 -0
- package/esm/plugins/source/source.js +15 -12
- package/esm/plugins/speech-recognize/config.d.ts +60 -0
- package/esm/plugins/speech-recognize/config.js +7 -7
- package/esm/plugins/speech-recognize/constants.d.ts +11 -0
- package/esm/plugins/speech-recognize/helpers/api.d.ts +10 -0
- package/esm/plugins/speech-recognize/helpers/exec-spell-command.d.ts +10 -0
- package/esm/plugins/speech-recognize/helpers/recognize-manager.d.ts +48 -0
- package/esm/plugins/speech-recognize/helpers/recognize-manager.js +10 -6
- package/esm/plugins/speech-recognize/helpers/sound.d.ts +14 -0
- package/esm/plugins/speech-recognize/helpers/sound.js +1 -1
- package/esm/plugins/speech-recognize/interface.d.ts +42 -0
- package/esm/plugins/speech-recognize/langs/ar.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/cs_cz.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/de.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/es.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/fa.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/fr.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/he.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/hu.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/id.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/index.d.ts +26 -0
- package/esm/plugins/speech-recognize/langs/index.js +0 -26
- package/esm/plugins/speech-recognize/langs/it.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/ja.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/ko.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/mn.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/nl.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/pl.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/pt_br.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/ru.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/tr.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/zh_cn.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/zh_tw.d.ts +9 -0
- package/esm/plugins/speech-recognize/speech-recognize.d.ts +24 -0
- package/esm/plugins/speech-recognize/speech-recognize.js +16 -13
- package/esm/plugins/spellcheck/config.d.ts +15 -0
- package/esm/plugins/spellcheck/config.js +3 -3
- package/esm/plugins/spellcheck/langs/ar.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/cs_cz.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/de.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/es.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/fa.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/fr.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/he.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/hu.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/id.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/index.d.ts +26 -0
- package/esm/plugins/spellcheck/langs/index.js +0 -25
- package/esm/plugins/spellcheck/langs/it.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/ja.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/ko.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/mn.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/nl.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/pl.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/pt_br.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/ru.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/tr.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/zh_cn.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/zh_tw.d.ts +1 -0
- package/esm/plugins/spellcheck/spellcheck.d.ts +20 -0
- package/esm/plugins/spellcheck/spellcheck.js +12 -8
- package/esm/plugins/stat/config.d.ts +13 -0
- package/esm/plugins/stat/config.js +1 -1
- package/esm/plugins/stat/stat.d.ts +20 -0
- package/esm/plugins/stat/stat.js +5 -5
- package/esm/plugins/sticky/config.d.ts +32 -0
- package/esm/plugins/sticky/config.js +1 -1
- package/esm/plugins/sticky/sticky.d.ts +38 -0
- package/esm/plugins/sticky/sticky.js +13 -10
- package/esm/plugins/symbols/config.d.ts +12 -0
- package/esm/plugins/symbols/config.js +3 -3
- package/esm/plugins/symbols/langs/ar.d.ts +1 -0
- package/esm/plugins/symbols/langs/cs_cz.d.ts +1 -0
- package/esm/plugins/symbols/langs/de.d.ts +1 -0
- package/esm/plugins/symbols/langs/es.d.ts +1 -0
- package/esm/plugins/symbols/langs/fa.d.ts +1 -0
- package/esm/plugins/symbols/langs/fr.d.ts +1 -0
- package/esm/plugins/symbols/langs/he.d.ts +1 -0
- package/esm/plugins/symbols/langs/hu.d.ts +1 -0
- package/esm/plugins/symbols/langs/id.d.ts +1 -0
- package/esm/plugins/symbols/langs/index.d.ts +26 -0
- package/esm/plugins/symbols/langs/index.js +0 -25
- package/esm/plugins/symbols/langs/it.d.ts +1 -0
- package/esm/plugins/symbols/langs/ja.d.ts +1 -0
- package/esm/plugins/symbols/langs/ko.d.ts +1 -0
- package/esm/plugins/symbols/langs/mn.d.ts +1 -0
- package/esm/plugins/symbols/langs/nl.d.ts +1 -0
- package/esm/plugins/symbols/langs/pl.d.ts +1 -0
- package/esm/plugins/symbols/langs/pt_br.d.ts +1 -0
- package/esm/plugins/symbols/langs/ru.d.ts +1 -0
- package/esm/plugins/symbols/langs/tr.d.ts +1 -0
- package/esm/plugins/symbols/langs/zh_cn.d.ts +1 -0
- package/esm/plugins/symbols/langs/zh_tw.d.ts +1 -0
- package/esm/plugins/symbols/symbols.d.ts +27 -0
- package/esm/plugins/symbols/symbols.js +7 -8
- package/esm/plugins/tab/cases/index.d.ts +9 -0
- package/esm/plugins/tab/cases/index.js +1 -1
- package/esm/plugins/tab/cases/on-tab-inside-li.d.ts +15 -0
- package/esm/plugins/tab/cases/on-tab-inside-li.js +2 -2
- package/esm/plugins/tab/config.d.ts +16 -0
- package/esm/plugins/tab/config.js +1 -1
- package/esm/plugins/tab/tab.d.ts +6 -0
- package/esm/plugins/tab/tab.js +12 -8
- package/esm/plugins/table/config.d.ts +14 -0
- package/esm/plugins/table/config.js +6 -6
- package/esm/plugins/table/table.d.ts +14 -0
- package/esm/plugins/table/table.js +2 -3
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +15 -0
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +4 -4
- package/esm/plugins/video/config.d.ts +6 -0
- package/esm/plugins/video/config.js +7 -7
- package/esm/plugins/video/video.d.ts +6 -0
- package/esm/plugins/video/video.js +2 -2
- package/esm/plugins/wrap-nodes/config.d.ts +28 -0
- package/esm/plugins/wrap-nodes/config.js +1 -1
- package/esm/plugins/wrap-nodes/wrap-nodes.d.ts +6 -0
- package/esm/plugins/wrap-nodes/wrap-nodes.js +12 -8
- package/esm/plugins/xpath/config.d.ts +11 -0
- package/esm/plugins/xpath/config.js +1 -1
- package/esm/plugins/xpath/xpath.d.ts +12 -0
- package/esm/plugins/xpath/xpath.js +8 -9
- package/esm/styles/icons/index.d.ts +38 -0
- package/esm/styles/icons/index.js +27 -27
- package/esm/tsconfig.json +47 -0
- package/esm/types/ajax.d.ts +99 -0
- package/esm/types/async.d.ts +89 -0
- package/esm/types/context.d.ts +27 -0
- package/esm/types/core.d.ts +16 -0
- package/esm/types/create.d.ts +100 -0
- package/esm/types/dialog.d.ts +53 -0
- package/esm/types/events.d.ts +185 -0
- package/esm/types/file-browser.d.ts +346 -0
- package/esm/types/form.d.ts +14 -0
- package/esm/types/history.d.ts +56 -0
- package/esm/types/index.d.ts +33 -0
- package/esm/types/jodit.d.ts +171 -0
- package/esm/types/messages.d.ts +10 -0
- package/esm/types/plugin.d.ts +69 -0
- package/esm/types/popup.d.ts +40 -0
- package/esm/types/select.d.ts +96 -0
- package/esm/types/source.d.ts +33 -0
- package/esm/types/storage.d.ts +24 -0
- package/esm/types/style.d.ts +93 -0
- package/esm/types/toolbar.d.ts +383 -0
- package/esm/types/traits.d.ts +59 -0
- package/esm/types/types.d.ts +311 -0
- package/esm/types/ui.d.ts +196 -0
- package/esm/types/uploader.d.ts +158 -0
- package/esm/types/view.d.ts +164 -0
- package/esm/typings.d.ts +15 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isFunction, isString } from
|
|
6
|
+
import { isFunction, isString } from "../../../core/helpers/index.js";
|
|
7
7
|
export function buildData(uploader, data) {
|
|
8
8
|
if (isFunction(uploader.o.buildData)) {
|
|
9
9
|
return uploader.o.buildData.call(uploader, data);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/uploader
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Convert dataURI to Blob
|
|
11
|
+
*/
|
|
12
|
+
export declare function dataURItoBlob(dataURI: string): Blob;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/uploader
|
|
8
|
+
*/
|
|
9
|
+
import type { Nullable } from 'jodit/types';
|
|
10
|
+
export * from './process-old-browser-drag';
|
|
11
|
+
export * from './data-uri-to-blob';
|
|
12
|
+
export * from './build-data';
|
|
13
|
+
export * from './send';
|
|
14
|
+
export * from './send-files';
|
|
15
|
+
export declare function hasFiles(data: Nullable<DataTransfer>): data is DataTransfer;
|
|
16
|
+
export declare function hasItems(data: Nullable<DataTransfer>): data is DataTransfer;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
6
|
+
export * from "./process-old-browser-drag.js";
|
|
7
|
+
export * from "./data-uri-to-blob.js";
|
|
8
|
+
export * from "./build-data.js";
|
|
9
|
+
export * from "./send.js";
|
|
10
|
+
export * from "./send-files.js";
|
|
11
11
|
export function hasFiles(data) {
|
|
12
12
|
return Boolean(data && data.files && data.files.length > 0);
|
|
13
13
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/uploader
|
|
8
|
+
*/
|
|
9
|
+
import type { HandlerError, HandlerSuccess, IUploader } from 'jodit/types';
|
|
10
|
+
export declare function processOldBrowserDrag(self: IUploader, cData: DataTransfer | null, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError, onFinally?: () => void): void;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { TEXT_PLAIN } from
|
|
7
|
-
import { getContainer } from
|
|
8
|
-
import { attr, isJoditObject } from
|
|
9
|
-
import { Dom } from
|
|
10
|
-
import { dataURItoBlob, sendFiles } from
|
|
6
|
+
import { TEXT_PLAIN } from "../../../core/constants.js";
|
|
7
|
+
import { getContainer } from "../../../core/global.js";
|
|
8
|
+
import { attr, isJoditObject } from "../../../core/helpers/index.js";
|
|
9
|
+
import { Dom } from "../../../core/dom/index.js";
|
|
10
|
+
import { dataURItoBlob, sendFiles } from "./index.js";
|
|
11
11
|
export function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFinally) {
|
|
12
12
|
if (cData && (!cData.types.length || cData.types[0] !== TEXT_PLAIN)) {
|
|
13
13
|
const div = self.j.c.div('', {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/uploader
|
|
8
|
+
*/
|
|
9
|
+
import type { HandlerError, HandlerSuccess, IUploader } from 'jodit/types';
|
|
10
|
+
/**
|
|
11
|
+
* Send files to server
|
|
12
|
+
*/
|
|
13
|
+
export declare function sendFiles(uploader: IUploader, files: FileList | File[] | null, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError, process?: (form: FormData) => void): Promise<any>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { error, isFunction, isPlainObject, toArray } from
|
|
7
|
-
import { send } from
|
|
6
|
+
import { error, isFunction, isPlainObject, toArray } from "../../../core/helpers/index.js";
|
|
7
|
+
import { send } from "./send.js";
|
|
8
8
|
/**
|
|
9
9
|
* Send files to server
|
|
10
10
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/uploader
|
|
8
|
+
*/
|
|
9
|
+
import type { IDictionary, IUploader, IUploaderAnswer } from 'jodit/types';
|
|
10
|
+
import { Ajax } from 'jodit/core/request';
|
|
11
|
+
export declare const ajaxInstances: WeakMap<IUploader, Set<Ajax>>;
|
|
12
|
+
export declare function send(uploader: IUploader, data: FormData | IDictionary<string>): Promise<IUploaderAnswer>;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { Ajax } from
|
|
7
|
-
import { isFunction, isPromise } from
|
|
8
|
-
import { buildData } from
|
|
6
|
+
import { Ajax } from "../../../core/request/index.js";
|
|
7
|
+
import { isFunction, isPromise } from "../../../core/helpers/index.js";
|
|
8
|
+
import { buildData } from "./build-data.js";
|
|
9
9
|
export const ajaxInstances = new WeakMap();
|
|
10
10
|
export function send(uploader, data) {
|
|
11
11
|
const requestData = buildData(uploader, data);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/uploader/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/uploader
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { HandlerError, HandlerSuccess, IUploader, IUploaderOptions, IViewBased } from 'jodit/types';
|
|
13
|
+
import { ViewComponent } from 'jodit/core/component/';
|
|
14
|
+
import './config';
|
|
15
|
+
export declare class Uploader extends ViewComponent implements IUploader {
|
|
16
|
+
readonly jodit: IViewBased;
|
|
17
|
+
get j(): IViewBased;
|
|
18
|
+
/** @override */
|
|
19
|
+
className(): string;
|
|
20
|
+
path: string;
|
|
21
|
+
source: string;
|
|
22
|
+
readonly options: IUploaderOptions<IUploader>;
|
|
23
|
+
get o(): this['options'];
|
|
24
|
+
/**
|
|
25
|
+
* It sets the path for uploading files
|
|
26
|
+
*/
|
|
27
|
+
setPath(path: string): this;
|
|
28
|
+
/**
|
|
29
|
+
* It sets the source for connector
|
|
30
|
+
*/
|
|
31
|
+
setSource(source: string): this;
|
|
32
|
+
/**
|
|
33
|
+
* Set the handlers Drag and Drop to `$form`
|
|
34
|
+
*
|
|
35
|
+
* @param form - Form or any Node on which you can drag and drop the file. In addition will be processed
|
|
36
|
+
* <code><input type="file" ></code>
|
|
37
|
+
* @param handlerSuccess - The function be called when a successful uploading files
|
|
38
|
+
* to the server
|
|
39
|
+
* @param handlerError - The function that will be called during a failed download files a server
|
|
40
|
+
* @example
|
|
41
|
+
* ```javascript
|
|
42
|
+
* var $form = jQuery('<form><input type="text" typpe="file"></form>');
|
|
43
|
+
* jQuery('body').append($form);
|
|
44
|
+
* Jodit.editors.someidfoeditor.uploader.bind($form[0], function (files) {
|
|
45
|
+
* var i;
|
|
46
|
+
* for (i = 0; i < data.files.length; i += 1) {
|
|
47
|
+
* parent.s.insertImage(data.files[i])
|
|
48
|
+
* }
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
bind(form: HTMLElement, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError): void;
|
|
53
|
+
private attachEvents;
|
|
54
|
+
/**
|
|
55
|
+
* Upload images to a server by its URL, making it through the connector server.
|
|
56
|
+
*/
|
|
57
|
+
uploadRemoteImage(url: string, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError): void;
|
|
58
|
+
constructor(editor: IViewBased, options?: IUploaderOptions<Uploader>);
|
|
59
|
+
destruct(): any;
|
|
60
|
+
}
|
|
@@ -8,13 +8,12 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/uploader
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import './config';
|
|
11
|
+
import { Config } from "../../config.js";
|
|
12
|
+
import { IS_ES_NEXT, IS_IE } from "../../core/constants.js";
|
|
13
|
+
import { error, isJoditObject, isFunction, ConfigProto } from "../../core/helpers/index.js";
|
|
14
|
+
import { ViewComponent, STATUSES } from "../../core/component/index.js";
|
|
15
|
+
import { ajaxInstances, hasFiles, hasItems, processOldBrowserDrag, send, sendFiles } from "./helpers/index.js";
|
|
16
|
+
import "./config.js";
|
|
18
17
|
export class Uploader extends ViewComponent {
|
|
19
18
|
get j() {
|
|
20
19
|
return this.jodit;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/widget/color-picker/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/widget/color-picker
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { IJodit } from 'jodit/types';
|
|
13
|
+
/**
|
|
14
|
+
* Build color picker
|
|
15
|
+
*
|
|
16
|
+
* @param callback - Callback 'function (color) \{\}'
|
|
17
|
+
* @param coldColor - Color value ex. #fff or rgb(123, 123, 123) or rgba(123, 123, 123, 1)
|
|
18
|
+
* @example
|
|
19
|
+
* ```javascript
|
|
20
|
+
* $tabs = TabsWidget(editor, {
|
|
21
|
+
* 'Text' : ColorPickerWidget(editor, function (color) {
|
|
22
|
+
* box.style.color = color;
|
|
23
|
+
* }, box.style.color),
|
|
24
|
+
* 'Background' : ColorPickerWidget(editor, function (color) {
|
|
25
|
+
* box.style.backgroundColor = color;
|
|
26
|
+
* }, box.style.backgroundColor),
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare const ColorPickerWidget: (editor: IJodit, callback: (newColor: string) => void, coldColor: string) => HTMLDivElement;
|
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/widget/color-picker
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import paletteIcon from './palette.svg';
|
|
11
|
+
import { normalizeColor, hasBrowserColorPicker, isPlainObject, attr, isFunction, isArray, refs } from "../../../core/helpers/index.js";
|
|
12
|
+
import { Icon } from "../../../core/ui/index.js";
|
|
13
|
+
import { Dom } from "../../../core/dom/index.js";
|
|
14
|
+
import paletteIcon from "./palette.svg.js";
|
|
16
15
|
Icon.set('palette', paletteIcon);
|
|
17
16
|
/**
|
|
18
17
|
* Build color picker
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/widget/file-selector/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/widget/file-selector
|
|
10
|
+
*/
|
|
11
|
+
import type { IFileBrowserCallBackData, IJodit } from 'jodit/types';
|
|
12
|
+
interface ImageSelectorCallbacks {
|
|
13
|
+
/**
|
|
14
|
+
* Function that will be called when the user enters the URL of the tab image and alternative text for images
|
|
15
|
+
*/
|
|
16
|
+
url?: (this: IJodit, url: string, alt: string) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Function that will be called when the user clicks on the file browser tab,
|
|
19
|
+
* and then choose any image in the window that opens
|
|
20
|
+
*/
|
|
21
|
+
filebrowser?: (data: IFileBrowserCallBackData) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Function that will be called when the user selects a file or using drag and drop files to the `Upload` tab
|
|
24
|
+
*/
|
|
25
|
+
upload?: ((this: IJodit, data: IFileBrowserCallBackData) => void) | true;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Generate 3 tabs
|
|
29
|
+
* upload - Use Drag and Drop
|
|
30
|
+
* url - By specifying the image url
|
|
31
|
+
* filebrowser - After opening the file browser . In the absence of one of the parameters will be less tabs
|
|
32
|
+
*
|
|
33
|
+
* @param callbacks - Object with keys `url`, `upload` and `filebrowser`, values which are callback
|
|
34
|
+
* functions with different parameters
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```javascript
|
|
38
|
+
* let widget = new Jodit.modules.Widget(editor);
|
|
39
|
+
*
|
|
40
|
+
* return widget.c('ImageSelector', {
|
|
41
|
+
* url: function (url, alt) {
|
|
42
|
+
* editor.selections.insertImage(url);
|
|
43
|
+
* },
|
|
44
|
+
* upload: function (images) {
|
|
45
|
+
* editor.selections.insertImage(images[0]);
|
|
46
|
+
* },
|
|
47
|
+
* filebrowser: function (images) {
|
|
48
|
+
* editor.selections.insertImage(images[0]);
|
|
49
|
+
* }
|
|
50
|
+
* }, image);
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare const FileSelectorWidget: (editor: IJodit, callbacks: ImageSelectorCallbacks, elm: HTMLElement | null, close: () => void, isImage?: boolean) => HTMLDivElement;
|
|
54
|
+
export {};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isFunction, $$, attr, val } from
|
|
7
|
-
import { Dom } from
|
|
8
|
-
import { UIBlock, UIForm, UIInput, UIButton } from
|
|
9
|
-
import { TabsWidget } from
|
|
6
|
+
import { isFunction, $$, attr, val } from "../../../core/helpers/index.js";
|
|
7
|
+
import { Dom } from "../../../core/dom/dom.js";
|
|
8
|
+
import { UIBlock, UIForm, UIInput, UIButton } from "../../../core/ui/index.js";
|
|
9
|
+
import { TabsWidget } from "../tabs/tabs.js";
|
|
10
10
|
/**
|
|
11
11
|
* Generate 3 tabs
|
|
12
12
|
* upload - Use Drag and Drop
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/widget/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/widget
|
|
10
|
+
*/
|
|
11
|
+
export * from './color-picker/color-picker';
|
|
12
|
+
export * from './tabs/tabs';
|
|
13
|
+
export * from './file-selector/file-selector';
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/widget
|
|
10
10
|
*/
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
11
|
+
export * from "./color-picker/color-picker.js";
|
|
12
|
+
export * from "./tabs/tabs.js";
|
|
13
|
+
export * from "./file-selector/file-selector.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/widget/tabs/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/widget/tabs
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { IJodit } from 'jodit/types';
|
|
13
|
+
import { UIElement } from 'jodit/core/ui';
|
|
14
|
+
export interface TabOption {
|
|
15
|
+
icon?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
content: HTMLElement | ((this: IJodit) => void) | UIElement;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Build tabs system
|
|
21
|
+
*
|
|
22
|
+
* @param tabs - PlainObject where 'key' will be tab's Title and `value` is tab's content
|
|
23
|
+
* @param state - You can use for this param any HTML element for remembering active tab
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```javascript
|
|
27
|
+
* let tabs = Jodit.modules.TabsWidget(editor, [
|
|
28
|
+
* {name: 'Images', content: '<div>Images</div>'},
|
|
29
|
+
* {name: 'Title 2': Jodit.modules.Helpers.dom('<div>Some content</div>')},
|
|
30
|
+
* {name: 'Color Picker': ColorPickerWidget(editor, function (color) {
|
|
31
|
+
* box.style.color = color;
|
|
32
|
+
* }, box.style.color)},
|
|
33
|
+
* ]);
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const TabsWidget: (jodit: IJodit, tabs: TabOption[], state?: {
|
|
37
|
+
__activeTab: string;
|
|
38
|
+
}) => HTMLDivElement;
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/widget/tabs
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { Dom } from 'jodit/core/dom/dom';
|
|
11
|
+
import { $$ } from "../../../core/helpers/index.js";
|
|
12
|
+
import { isFunction } from "../../../core/helpers/checker/is-function.js";
|
|
13
|
+
import { Button, UIElement } from "../../../core/ui/index.js";
|
|
14
|
+
import { Component } from "../../../core/component/index.js";
|
|
15
|
+
import { Dom } from "../../../core/dom/dom.js";
|
|
17
16
|
/**
|
|
18
17
|
* Build tabs system
|
|
19
18
|
*
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:plugins/about/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module plugins/about
|
|
10
|
+
*/
|
|
11
|
+
|
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module plugins/about
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import aboutIcon from './about.svg';
|
|
11
|
+
import { Config } from "../../config.js";
|
|
12
|
+
import { css, isLicense, normalizeLicense } from "../../core/helpers/index.js";
|
|
13
|
+
import * as constants from "../../core/constants.js";
|
|
14
|
+
import { pluginSystem } from "../../core/global.js";
|
|
15
|
+
import { Icon } from "../../core/ui/icon.js";
|
|
16
|
+
import { HOMEPAGE } from "../../core/constants.js";
|
|
17
|
+
import aboutIcon from "./about.svg.js";
|
|
19
18
|
Config.prototype.controls.about = {
|
|
20
19
|
exec: (editor) => {
|
|
21
20
|
const dialog = editor.dlg(), i = editor.i18n.bind(editor);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:plugins/add-new-line/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module plugins/add-new-line
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { IJodit } from 'jodit/types';
|
|
13
|
+
import { Plugin } from 'jodit/modules';
|
|
14
|
+
import './config';
|
|
15
|
+
/**
|
|
16
|
+
* Create helper for adding new paragraph(Jodit.defaultOptions.enter tag) before iframe, table or image
|
|
17
|
+
*/
|
|
18
|
+
export declare class addNewLine extends Plugin {
|
|
19
|
+
private line;
|
|
20
|
+
private isMatchedTag;
|
|
21
|
+
private timeout;
|
|
22
|
+
private preview;
|
|
23
|
+
private current;
|
|
24
|
+
private lineInFocus;
|
|
25
|
+
private isShown;
|
|
26
|
+
private show;
|
|
27
|
+
private hideForce;
|
|
28
|
+
protected onLock(isLocked: true): void;
|
|
29
|
+
private hide;
|
|
30
|
+
private canGetFocus;
|
|
31
|
+
protected afterInit(editor: IJodit): void;
|
|
32
|
+
private addEventListeners;
|
|
33
|
+
private onClickLine;
|
|
34
|
+
protected onDblClickEditor(e: MouseEvent): void;
|
|
35
|
+
private onMouseMove;
|
|
36
|
+
/** @override */
|
|
37
|
+
protected beforeDestruct(): void;
|
|
38
|
+
}
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
-
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if (d = decorators[i])
|
|
13
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
15
|
};
|
|
12
16
|
/**
|
|
@@ -14,12 +18,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
18
|
* @packageDocumentation
|
|
15
19
|
* @module plugins/add-new-line
|
|
16
20
|
*/
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import './config';
|
|
21
|
+
import { Dom, Icon, Plugin } from "../../modules/index.js";
|
|
22
|
+
import { offset, position, call, scrollIntoViewIfNeeded } from "../../core/helpers/index.js";
|
|
23
|
+
import { autobind, debounce, watch } from "../../core/decorators/index.js";
|
|
24
|
+
import { pluginSystem } from "../../core/global.js";
|
|
25
|
+
import "./config.js";
|
|
23
26
|
const ns = 'addnewline';
|
|
24
27
|
/**
|
|
25
28
|
* Create helper for adding new paragraph(Jodit.defaultOptions.enter tag) before iframe, table or image
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module plugins/add-new-line
|
|
8
|
+
*/
|
|
9
|
+
import type { HTMLTagNames } from 'jodit/types';
|
|
10
|
+
declare module 'jodit/config' {
|
|
11
|
+
interface Config {
|
|
12
|
+
/**
|
|
13
|
+
* Create helper
|
|
14
|
+
*/
|
|
15
|
+
addNewLine: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* What kind of tags it will be impact
|
|
18
|
+
*/
|
|
19
|
+
addNewLineTagsTriggers: HTMLTagNames[];
|
|
20
|
+
/**
|
|
21
|
+
* On dbl click on empty space of editor it add new P element
|
|
22
|
+
* @example
|
|
23
|
+
* ```js
|
|
24
|
+
* Jodit.make('#editor', {
|
|
25
|
+
* addNewLineOnDBLClick: false // disable
|
|
26
|
+
* })
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
addNewLineOnDBLClick: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Absolute delta between cursor position and edge(top or bottom)
|
|
32
|
+
* of element when show line
|
|
33
|
+
*/
|
|
34
|
+
addNewLineDeltaShow: number;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { Config } from
|
|
7
|
-
import { Icon } from
|
|
8
|
-
import enterIcon from
|
|
6
|
+
import { Config } from "../../config.js";
|
|
7
|
+
import { Icon } from "../../core/ui/icon.js";
|
|
8
|
+
import enterIcon from "./enter.svg.js";
|
|
9
9
|
Config.prototype.addNewLine = true;
|
|
10
10
|
Config.prototype.addNewLineOnDBLClick = true;
|
|
11
11
|
Config.prototype.addNewLineTagsTriggers = [
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:plugins/backspace/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module plugins/backspace
|
|
10
|
+
*/
|
|
11
|
+
import type { IJodit } from 'jodit/types';
|
|
12
|
+
import { Plugin } from 'jodit/core/plugin';
|
|
13
|
+
import './config';
|
|
14
|
+
export declare class backspace extends Plugin {
|
|
15
|
+
static requires: string[];
|
|
16
|
+
protected afterInit(jodit: IJodit): void;
|
|
17
|
+
protected beforeDestruct(jodit: IJodit): void;
|
|
18
|
+
/**
|
|
19
|
+
* Listener BackSpace or Delete button
|
|
20
|
+
*/
|
|
21
|
+
private onDelete;
|
|
22
|
+
/**
|
|
23
|
+
* Remove node and replace cursor position out of it
|
|
24
|
+
*/
|
|
25
|
+
private safeRemoveEmptyNode;
|
|
26
|
+
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { Plugin } from
|
|
7
|
-
import { Dom } from
|
|
8
|
-
import { INVISIBLE_SPACE, IS_PROD } from
|
|
9
|
-
import { isFunction } from
|
|
10
|
-
import { moveNodeInsideStart } from
|
|
11
|
-
import { pluginSystem } from
|
|
12
|
-
import { cases } from
|
|
13
|
-
import { checkNotCollapsed } from
|
|
14
|
-
import
|
|
6
|
+
import { Plugin } from "../../core/plugin/index.js";
|
|
7
|
+
import { Dom } from "../../core/dom/index.js";
|
|
8
|
+
import { INVISIBLE_SPACE, IS_PROD } from "../../core/constants.js";
|
|
9
|
+
import { isFunction } from "../../core/helpers/checker/is-function.js";
|
|
10
|
+
import { moveNodeInsideStart } from "../../core/selection/helpers/index.js";
|
|
11
|
+
import { pluginSystem } from "../../core/global.js";
|
|
12
|
+
import { cases } from "./cases/index.js";
|
|
13
|
+
import { checkNotCollapsed } from "./cases/check-not-collapsed.js";
|
|
14
|
+
import "./config.js";
|
|
15
15
|
export class backspace extends Plugin {
|
|
16
16
|
afterInit(jodit) {
|
|
17
17
|
jodit
|