jodit 4.0.0-beta.40 → 4.0.0-beta.44
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/CHANGELOG.md +12 -6
- package/README.md +54 -12
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.js +5185 -4742
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +8 -8
- package/es2015/plugins/debug/debug.min.js +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +33 -17
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.css +4896 -0
- package/es2018/jodit.js +38811 -0
- package/es2018/jodit.min.css +1 -0
- package/es2018/jodit.min.js +10 -0
- package/es2018/plugins/debug/debug.js +97 -0
- package/es2018/plugins/debug/debug.min.js +10 -0
- package/es2018/plugins/speech-recognize/speech-recognize.css +42 -0
- package/es2018/plugins/speech-recognize/speech-recognize.js +1023 -0
- package/es2018/plugins/speech-recognize/speech-recognize.min.css +1 -0
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +10 -0
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.js +5185 -4742
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +8 -8
- package/es2021/plugins/debug/debug.min.js +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +33 -17
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.js +5185 -4742
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +8 -8
- package/es2021.en/plugins/debug/debug.min.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +33 -17
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.js +6295 -671
- package/es5/jodit.min.css +1 -1
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +9 -9
- package/es5/plugins/debug/debug.min.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +35 -19
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/esm/core/constants.js +2 -1
- package/esm/core/view/view.js +2 -1
- package/esm/index.js +0 -5
- package/esm/langs/index.js +20 -20
- package/esm/plugins/copy-format/langs/index.js +0 -25
- package/esm/plugins/index.js +0 -44
- package/esm/plugins/line-height/langs/index.js +0 -25
- package/esm/plugins/speech-recognize/langs/index.js +0 -25
- package/esm/plugins/spellcheck/langs/index.js +0 -25
- package/esm/plugins/symbols/langs/index.js +0 -25
- package/package.json +3 -6
- package/types/config.d.ts +558 -0
- package/types/core/async/async.d.ts +32 -0
- package/types/core/async/index.d.ts +3 -0
- package/types/core/component/component.d.ts +81 -0
- package/types/core/component/index.d.ts +3 -0
- package/types/core/component/statuses.d.ts +3 -0
- package/types/core/component/view-component.d.ts +13 -0
- package/types/core/constants.d.ts +62 -1
- package/types/core/create/create.d.ts +32 -0
- package/types/core/create/index.d.ts +3 -0
- package/types/core/decorators/cache/cache.d.ts +5 -0
- package/types/core/decorators/component/component.d.ts +9 -0
- package/types/core/decorators/debounce/debounce.d.ts +8 -0
- package/types/core/decorators/hook/hook.d.ts +8 -0
- package/types/core/decorators/idle/idle.d.ts +5 -0
- package/types/core/decorators/index.d.ts +5 -0
- package/types/core/decorators/nonenumerable/nonenumerable.d.ts +5 -0
- package/types/core/decorators/persistent/persistent.d.ts +5 -0
- package/types/core/decorators/wait/wait.d.ts +5 -0
- package/types/core/decorators/watch/watch.d.ts +8 -0
- package/types/core/dom/dom.d.ts +180 -0
- package/types/core/dom/index.d.ts +3 -0
- package/types/core/dom/lazy-walker.d.ts +3 -0
- package/types/core/event-emitter/event-emitter.d.ts +99 -0
- package/types/core/event-emitter/eventify.d.ts +25 -0
- package/types/core/event-emitter/index.d.ts +3 -0
- package/types/core/event-emitter/observable.d.ts +38 -0
- package/types/core/event-emitter/store.d.ts +3 -0
- package/types/core/global.d.ts +12 -0
- package/types/core/helpers/array/as-array.d.ts +3 -0
- package/types/core/helpers/array/index.d.ts +3 -0
- package/types/core/helpers/array/split-array.d.ts +6 -0
- package/types/core/helpers/array/to-array.d.ts +4 -0
- package/types/core/helpers/async/index.d.ts +3 -0
- package/types/core/helpers/async/set-timeout.d.ts +9 -0
- package/types/core/helpers/checker/has-browser-color-picker.d.ts +6 -0
- package/types/core/helpers/checker/index.d.ts +3 -0
- package/types/core/helpers/checker/is-array.d.ts +6 -0
- package/types/core/helpers/checker/is-boolean.d.ts +3 -0
- package/types/core/helpers/checker/is-equal.d.ts +3 -0
- package/types/core/helpers/checker/is-function.d.ts +6 -0
- package/types/core/helpers/checker/is-html-from-word.d.ts +6 -0
- package/types/core/helpers/checker/is-html.d.ts +3 -0
- package/types/core/helpers/checker/is-imp-interface.d.ts +12 -0
- package/types/core/helpers/checker/is-int.d.ts +3 -0
- package/types/core/helpers/checker/is-jodit-object.d.ts +6 -0
- package/types/core/helpers/checker/is-marker.d.ts +3 -0
- package/types/core/helpers/checker/is-native-function.d.ts +6 -0
- package/types/core/helpers/checker/is-number.d.ts +6 -0
- package/types/core/helpers/checker/is-numeric.d.ts +3 -0
- package/types/core/helpers/checker/is-plain-object.d.ts +6 -0
- package/types/core/helpers/checker/is-promise.d.ts +3 -0
- package/types/core/helpers/checker/is-set.d.ts +3 -0
- package/types/core/helpers/checker/is-string.d.ts +6 -0
- package/types/core/helpers/checker/is-url.d.ts +6 -0
- package/types/core/helpers/checker/is-valid-name.d.ts +6 -0
- package/types/core/helpers/checker/is-view-object.d.ts +6 -0
- package/types/core/helpers/checker/is-void.d.ts +6 -0
- package/types/core/helpers/checker/is-window.d.ts +3 -0
- package/types/core/helpers/color/color-to-hex.d.ts +16 -0
- package/types/core/helpers/color/index.d.ts +3 -0
- package/types/core/helpers/html/apply-styles.d.ts +5 -0
- package/types/core/helpers/html/clean-from-word.d.ts +4 -0
- package/types/core/helpers/html/htmlspecialchars.d.ts +7 -0
- package/types/core/helpers/html/index.d.ts +3 -0
- package/types/core/helpers/html/nl2br.d.ts +6 -0
- package/types/core/helpers/html/safe-html.d.ts +3 -0
- package/types/core/helpers/html/strip-tags.d.ts +6 -0
- package/types/core/helpers/index.d.ts +5 -0
- package/types/core/helpers/normalize/index.d.ts +3 -0
- package/types/core/helpers/normalize/normalize-color.d.ts +6 -0
- package/types/core/helpers/normalize/normalize-key-aliases.d.ts +3 -0
- package/types/core/helpers/normalize/normalize-license.d.ts +3 -0
- package/types/core/helpers/normalize/normalize-path.d.ts +3 -0
- package/types/core/helpers/normalize/normalize-relative-path.d.ts +3 -0
- package/types/core/helpers/normalize/normalize-size.d.ts +6 -0
- package/types/core/helpers/normalize/normalize-url.d.ts +3 -0
- package/types/core/helpers/size/get-content-width.d.ts +3 -0
- package/types/core/helpers/size/get-scroll-parent.d.ts +3 -0
- package/types/core/helpers/size/index.d.ts +3 -0
- package/types/core/helpers/size/inner-width.d.ts +3 -0
- package/types/core/helpers/size/object-size.d.ts +3 -0
- package/types/core/helpers/size/offset.d.ts +7 -0
- package/types/core/helpers/size/position.d.ts +3 -0
- package/types/core/helpers/string/camel-case.d.ts +6 -0
- package/types/core/helpers/string/fuzzy-search-index.d.ts +4 -0
- package/types/core/helpers/string/i18n.d.ts +31 -0
- package/types/core/helpers/string/index.d.ts +3 -0
- package/types/core/helpers/string/kebab-case.d.ts +3 -0
- package/types/core/helpers/string/stringify.d.ts +3 -0
- package/types/core/helpers/string/trim.d.ts +7 -0
- package/types/core/helpers/string/ucfirst.d.ts +6 -0
- package/types/core/helpers/utils/align.d.ts +12 -0
- package/types/core/helpers/utils/append-script.d.ts +12 -0
- package/types/core/helpers/utils/assert.d.ts +1 -0
- package/types/core/helpers/utils/attr.d.ts +12 -0
- package/types/core/helpers/utils/browser.d.ts +14 -0
- package/types/core/helpers/utils/build-query.d.ts +6 -0
- package/types/core/helpers/utils/complete-url.d.ts +3 -0
- package/types/core/helpers/utils/config-proto.d.ts +33 -0
- package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +3 -0
- package/types/core/helpers/utils/css.d.ts +6 -0
- package/types/core/helpers/utils/ctrl-key.d.ts +7 -0
- package/types/core/helpers/utils/data-bind.d.ts +3 -0
- package/types/core/helpers/utils/default-language.d.ts +3 -0
- package/types/core/helpers/utils/error/error.d.ts +3 -0
- package/types/core/helpers/utils/error/errors/abort-error.d.ts +3 -0
- package/types/core/helpers/utils/error/errors/connection-error.d.ts +3 -0
- package/types/core/helpers/utils/error/errors/index.d.ts +3 -0
- package/types/core/helpers/utils/error/errors/options-error.d.ts +3 -0
- package/types/core/helpers/utils/error/index.d.ts +3 -0
- package/types/core/helpers/utils/get-class-name.d.ts +3 -0
- package/types/core/helpers/utils/get.d.ts +22 -0
- package/types/core/helpers/utils/human-size-to-bytes.d.ts +7 -0
- package/types/core/helpers/utils/index.d.ts +3 -0
- package/types/core/helpers/utils/mark-deprecated.d.ts +10 -0
- package/types/core/helpers/utils/parse-query.d.ts +6 -0
- package/types/core/helpers/utils/print.d.ts +9 -0
- package/types/core/helpers/utils/reset.d.ts +10 -0
- package/types/core/helpers/utils/scroll-into-view.d.ts +6 -0
- package/types/core/helpers/utils/selector.d.ts +29 -0
- package/types/core/helpers/utils/set.d.ts +16 -0
- package/types/core/helpers/utils/stack.d.ts +3 -0
- package/types/core/helpers/utils/utils.d.ts +24 -0
- package/types/core/helpers/utils/val.d.ts +3 -0
- package/types/core/plugin/helpers/init-instance.d.ts +11 -0
- package/types/core/plugin/helpers/load.d.ts +9 -0
- package/types/core/plugin/helpers/make-instance.d.ts +7 -0
- package/types/core/plugin/helpers/utils.d.ts +3 -0
- package/types/core/plugin/index.d.ts +3 -0
- package/types/core/plugin/interface.d.ts +4 -0
- package/types/core/plugin/plugin-system.d.ts +30 -0
- package/types/core/plugin/plugin.d.ts +10 -0
- package/types/core/request/ajax.d.ts +5 -0
- package/types/core/request/config.d.ts +6 -0
- package/types/core/request/index.d.ts +3 -0
- package/types/core/request/response.d.ts +3 -0
- package/types/core/selection/helpers/index.d.ts +3 -0
- package/types/core/selection/helpers/move-node-inside-start.d.ts +8 -0
- package/types/core/selection/helpers/move-the-node-along-the-edge-outward.d.ts +4 -0
- package/types/core/selection/index.d.ts +3 -0
- package/types/core/selection/interface.d.ts +9 -0
- package/types/core/selection/selection.d.ts +196 -0
- package/types/core/selection/style/api/extract.d.ts +16 -0
- package/types/core/selection/style/api/finite-state-machine.d.ts +3 -0
- package/types/core/selection/style/api/get-suit-child.d.ts +8 -0
- package/types/core/selection/style/api/get-suit-parent.d.ts +8 -0
- package/types/core/selection/style/api/has-same-style.d.ts +7 -0
- package/types/core/selection/style/api/is-inside-invisible-element.d.ts +4 -0
- package/types/core/selection/style/api/is-normal-node.d.ts +4 -0
- package/types/core/selection/style/api/is-same-attributes.d.ts +4 -0
- package/types/core/selection/style/api/is-suit-element.d.ts +24 -0
- package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +4 -0
- package/types/core/selection/style/api/list/wrap-list.d.ts +5 -0
- package/types/core/selection/style/api/toggle-attributes.d.ts +4 -0
- package/types/core/selection/style/api/unwrap-children.d.ts +4 -0
- package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +4 -0
- package/types/core/selection/style/api/wrap.d.ts +4 -0
- package/types/core/selection/style/apply-style.d.ts +4 -0
- package/types/core/selection/style/commit-style.d.ts +9 -0
- package/types/core/storage/engines/local-storage-provider.d.ts +9 -0
- package/types/core/storage/engines/memory-storage-provider.d.ts +3 -0
- package/types/core/storage/index.d.ts +3 -0
- package/types/core/storage/storage.d.ts +5 -0
- package/types/core/traits/dlgs.d.ts +3 -0
- package/types/core/traits/elms.d.ts +9 -0
- package/types/core/traits/mods.d.ts +11 -0
- package/types/core/ui/button/button/button.d.ts +35 -0
- package/types/core/ui/button/group/group.d.ts +6 -0
- package/types/core/ui/button/index.d.ts +5 -0
- package/types/core/ui/button/tooltip/tooltip.d.ts +5 -0
- package/types/core/ui/element.d.ts +27 -0
- package/types/core/ui/form/block/block.d.ts +4 -0
- package/types/core/ui/form/form.d.ts +7 -0
- package/types/core/ui/form/index.d.ts +3 -0
- package/types/core/ui/form/inputs/area/area.d.ts +6 -0
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +8 -0
- package/types/core/ui/form/inputs/file/file.d.ts +4 -0
- package/types/core/ui/form/inputs/index.d.ts +3 -0
- package/types/core/ui/form/inputs/input/input.d.ts +18 -0
- package/types/core/ui/form/inputs/select/select.d.ts +10 -0
- package/types/core/ui/form/validators/index.d.ts +3 -0
- package/types/core/ui/form/validators/input.d.ts +9 -0
- package/types/core/ui/form/validators/select.d.ts +6 -0
- package/types/core/ui/group/group.d.ts +32 -0
- package/types/core/ui/group/index.d.ts +3 -0
- package/types/core/ui/group/list.d.ts +16 -0
- package/types/core/ui/group/separator.d.ts +3 -0
- package/types/core/ui/group/spacer.d.ts +3 -0
- package/types/core/ui/helpers/buttons.d.ts +9 -0
- package/types/core/ui/helpers/get-control-type.d.ts +10 -0
- package/types/core/ui/helpers/get-strong-control-types.d.ts +6 -0
- package/types/core/ui/icon.d.ts +15 -0
- package/types/core/ui/index.d.ts +5 -0
- package/types/core/ui/popup/index.d.ts +3 -0
- package/types/core/ui/popup/popup.d.ts +35 -0
- package/types/core/ui/progress-bar/progress-bar.d.ts +10 -0
- package/types/core/view/view-with-toolbar.d.ts +22 -0
- package/types/core/view/view.d.ts +66 -1
- package/types/index.d.ts +5 -0
- package/types/jodit.d.ts +248 -0
- package/types/langs/index.d.ts +5 -0
- package/types/modules/context-menu/context-menu.d.ts +20 -0
- package/types/modules/dialog/alert.d.ts +17 -0
- package/types/modules/dialog/confirm.d.ts +17 -0
- package/types/modules/dialog/dialog.d.ts +115 -0
- package/types/modules/dialog/index.d.ts +5 -0
- package/types/modules/dialog/prompt.d.ts +20 -0
- package/types/modules/file-browser/builders/context-menu.d.ts +3 -0
- package/types/modules/file-browser/builders/elements-map.d.ts +7 -0
- package/types/modules/file-browser/builders/item.d.ts +3 -0
- package/types/modules/file-browser/data-provider.d.ts +72 -0
- package/types/modules/file-browser/factories.d.ts +3 -0
- package/types/modules/file-browser/fetch/delete-file.d.ts +7 -0
- package/types/modules/file-browser/fetch/load-items.d.ts +7 -0
- package/types/modules/file-browser/fetch/load-tree.d.ts +7 -0
- package/types/modules/file-browser/file-browser.d.ts +39 -0
- package/types/modules/file-browser/index.d.ts +5 -0
- package/types/modules/file-browser/listeners/native-listeners.d.ts +12 -0
- package/types/modules/file-browser/listeners/self-listeners.d.ts +6 -0
- package/types/modules/file-browser/listeners/state-listeners.d.ts +7 -0
- package/types/modules/file-browser/ui/index.d.ts +3 -0
- package/types/modules/history/command.d.ts +3 -0
- package/types/modules/history/history.d.ts +37 -0
- package/types/modules/history/snapshot.d.ts +40 -0
- package/types/modules/history/stack.d.ts +3 -0
- package/types/modules/image-editor/image-editor.d.ts +54 -1
- package/types/modules/image-editor/templates/form.d.ts +3 -0
- package/types/modules/index.d.ts +5 -0
- package/types/modules/messages/message.d.ts +3 -0
- package/types/modules/messages/messages.d.ts +8 -0
- package/types/modules/status-bar/status-bar.d.ts +20 -0
- package/types/modules/table/table.d.ts +57 -0
- package/types/modules/toolbar/button/button.d.ts +34 -1
- package/types/modules/toolbar/button/content.d.ts +6 -0
- package/types/modules/toolbar/button/index.d.ts +3 -0
- package/types/modules/toolbar/collection/collection.d.ts +23 -0
- package/types/modules/toolbar/collection/editor-collection.d.ts +19 -0
- package/types/modules/toolbar/factory.d.ts +11 -0
- package/types/modules/uploader/config.d.ts +6 -0
- package/types/modules/uploader/helpers/build-data.d.ts +3 -0
- package/types/modules/uploader/helpers/data-uri-to-blob.d.ts +6 -0
- package/types/modules/uploader/helpers/index.d.ts +3 -0
- package/types/modules/uploader/helpers/process-old-browser-drag.d.ts +3 -0
- package/types/modules/uploader/helpers/send-files.d.ts +6 -0
- package/types/modules/uploader/helpers/send.d.ts +3 -0
- package/types/modules/uploader/uploader.d.ts +35 -0
- package/types/modules/widget/color-picker/color-picker.d.ts +22 -0
- package/types/modules/widget/file-selector/file-selector.d.ts +41 -0
- package/types/modules/widget/index.d.ts +5 -0
- package/types/modules/widget/tabs/tabs.d.ts +22 -0
- package/types/plugins/about/about.d.ts +5 -0
- package/types/plugins/add-new-line/add-new-line.d.ts +9 -0
- package/types/plugins/add-new-line/config.d.ts +22 -0
- package/types/plugins/backspace/backspace.d.ts +11 -0
- package/types/plugins/backspace/cases/check-join-neighbors.d.ts +7 -0
- package/types/plugins/backspace/cases/check-join-two-lists.d.ts +16 -0
- package/types/plugins/backspace/cases/check-not-collapsed.d.ts +16 -0
- package/types/plugins/backspace/cases/check-remove-char.d.ts +16 -0
- package/types/plugins/backspace/cases/check-remove-content-not-editable.d.ts +7 -0
- package/types/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +16 -0
- package/types/plugins/backspace/cases/check-remove-empty-parent.d.ts +17 -0
- package/types/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +17 -0
- package/types/plugins/backspace/cases/check-table-cell.d.ts +17 -0
- package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +17 -0
- package/types/plugins/backspace/cases/index.d.ts +3 -0
- package/types/plugins/backspace/helpers.d.ts +11 -0
- package/types/plugins/backspace/interface.d.ts +27 -0
- package/types/plugins/bold/bold.d.ts +8 -0
- package/types/plugins/bold/interface.d.ts +18 -0
- package/types/plugins/class-span/class-span.d.ts +27 -0
- package/types/plugins/clean-html/clean-html.d.ts +17 -0
- package/types/plugins/clean-html/config.d.ts +73 -0
- package/types/plugins/clean-html/helpers/get-hash.d.ts +6 -0
- package/types/plugins/clean-html/helpers/index.d.ts +3 -0
- package/types/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +11 -0
- package/types/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +7 -0
- package/types/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +6 -0
- package/types/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +6 -0
- package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +6 -0
- package/types/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +6 -0
- package/types/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +6 -0
- package/types/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +6 -0
- package/types/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +6 -0
- package/types/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +6 -0
- package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +6 -0
- package/types/plugins/clipboard/clipboard.d.ts +10 -0
- package/types/plugins/color/color.d.ts +8 -0
- package/types/plugins/copy-format/copy-format.d.ts +5 -0
- package/types/plugins/debug/debug.d.ts +5 -0
- package/types/plugins/delete/delete.d.ts +14 -0
- package/types/plugins/delete/interface.d.ts +3 -0
- package/types/plugins/drag-and-drop/drag-and-drop.d.ts +5 -0
- package/types/plugins/drag-and-drop-element/config.d.ts +3 -0
- package/types/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +26 -0
- package/types/plugins/dtd/after-insert/index.d.ts +4 -0
- package/types/plugins/dtd/after-insert/remove-extra-br.d.ts +9 -0
- package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +9 -0
- package/types/plugins/dtd/before-insert/index.d.ts +4 -0
- package/types/plugins/dtd/config.d.ts +12 -0
- package/types/plugins/enter/enter.d.ts +11 -0
- package/types/plugins/enter/helpers/check-br.d.ts +7 -0
- package/types/plugins/enter/helpers/check-unsplittable-box.d.ts +7 -0
- package/types/plugins/enter/helpers/get-block-wrapper.d.ts +7 -0
- package/types/plugins/enter/helpers/has-previous-block.d.ts +6 -0
- package/types/plugins/enter/helpers/index.d.ts +3 -0
- package/types/plugins/enter/helpers/insert-paragraph.d.ts +7 -0
- package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +7 -0
- package/types/plugins/enter/helpers/process-empty-li-leaf.d.ts +7 -0
- package/types/plugins/enter/helpers/split-fragment.d.ts +8 -0
- package/types/plugins/enter/helpers/wrap-text.d.ts +8 -0
- package/types/plugins/enter/interface.d.ts +20 -0
- package/types/plugins/file/file.d.ts +5 -0
- package/types/plugins/focus/focus.d.ts +5 -0
- package/types/plugins/font/font.d.ts +8 -0
- package/types/plugins/format-block/format-block.d.ts +8 -0
- package/types/plugins/fullsize/config.d.ts +22 -0
- package/types/plugins/fullsize/fullsize.d.ts +8 -0
- package/types/plugins/hotkeys/config.d.ts +3 -0
- package/types/plugins/hotkeys/hotkeys.d.ts +10 -0
- package/types/plugins/hr/hr.d.ts +5 -0
- package/types/plugins/iframe/config.d.ts +49 -0
- package/types/plugins/iframe/iframe.d.ts +9 -0
- package/types/plugins/image/image.d.ts +5 -0
- package/types/plugins/image-processor/config.d.ts +3 -0
- package/types/plugins/image-processor/image-processor.d.ts +8 -0
- package/types/plugins/image-properties/config.d.ts +60 -0
- package/types/plugins/image-properties/image-properties.d.ts +42 -0
- package/types/plugins/image-properties/templates/form.d.ts +3 -0
- package/types/plugins/image-properties/templates/main-tab.d.ts +3 -0
- package/types/plugins/image-properties/templates/position-tab.d.ts +3 -0
- package/types/plugins/indent/config.d.ts +3 -0
- package/types/plugins/indent/helpers.d.ts +4 -0
- package/types/plugins/indent/indent.d.ts +8 -0
- package/types/plugins/index.d.ts +5 -0
- package/types/plugins/inline-popup/config/config.d.ts +3 -0
- package/types/plugins/inline-popup/config/items/a.d.ts +3 -0
- package/types/plugins/inline-popup/config/items/cells.d.ts +3 -0
- package/types/plugins/inline-popup/config/items/iframe.d.ts +3 -0
- package/types/plugins/inline-popup/config/items/img.d.ts +3 -0
- package/types/plugins/inline-popup/config/items/toolbar.d.ts +3 -0
- package/types/plugins/inline-popup/inline-popup.d.ts +36 -0
- package/types/plugins/justify/justify.d.ts +8 -0
- package/types/plugins/key-arrow-outside/key-arrow-outside.d.ts +8 -0
- package/types/plugins/limit/config.d.ts +9 -0
- package/types/plugins/limit/limit.d.ts +22 -0
- package/types/plugins/line-height/config.d.ts +9 -0
- package/types/plugins/line-height/line-height.d.ts +5 -0
- package/types/plugins/link/config.d.ts +33 -0
- package/types/plugins/link/link.d.ts +11 -0
- package/types/plugins/link/template.d.ts +3 -0
- package/types/plugins/media/config.d.ts +9 -0
- package/types/plugins/media/media.d.ts +8 -0
- package/types/plugins/mobile/config.d.ts +6 -0
- package/types/plugins/mobile/mobile.d.ts +8 -0
- package/types/plugins/ordered-list/ordered-list.d.ts +8 -0
- package/types/plugins/paste/config.d.ts +19 -0
- package/types/plugins/paste/helpers.d.ts +15 -0
- package/types/plugins/paste/interface.d.ts +15 -0
- package/types/plugins/paste/paste.d.ts +31 -0
- package/types/plugins/paste-from-word/config.d.ts +21 -0
- package/types/plugins/paste-from-word/paste-from-word.d.ts +11 -0
- package/types/plugins/paste-storage/paste-storage.d.ts +8 -0
- package/types/plugins/placeholder/config.d.ts +31 -0
- package/types/plugins/placeholder/placeholder.d.ts +12 -0
- package/types/plugins/powered-by-jodit/powered-by-jodit.d.ts +8 -0
- package/types/plugins/preview/preview.d.ts +5 -0
- package/types/plugins/print/lib/generate-critical-css.d.ts +6 -0
- package/types/plugins/print/print.d.ts +5 -0
- package/types/plugins/redo-undo/redo-undo.d.ts +9 -0
- package/types/plugins/resize-cells/resize-cells.d.ts +42 -0
- package/types/plugins/resize-handler/resize-handler.d.ts +26 -0
- package/types/plugins/resizer/config.d.ts +31 -0
- package/types/plugins/resizer/resizer.d.ts +22 -0
- package/types/plugins/search/config.d.ts +21 -0
- package/types/plugins/search/helpers/index.d.ts +3 -0
- package/types/plugins/search/helpers/sentence-finder.d.ts +3 -0
- package/types/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +18 -0
- package/types/plugins/search/interface.d.ts +23 -0
- package/types/plugins/search/search.d.ts +22 -0
- package/types/plugins/search/ui/search.d.ts +6 -0
- package/types/plugins/select/config.d.ts +8 -0
- package/types/plugins/select/select.d.ts +19 -0
- package/types/plugins/select-cells/select-cells.d.ts +34 -0
- package/types/plugins/size/size.d.ts +27 -0
- package/types/plugins/source/config.d.ts +25 -0
- package/types/plugins/source/editor/engines/ace.d.ts +6 -0
- package/types/plugins/source/editor/engines/area.d.ts +3 -0
- package/types/plugins/source/editor/engines/custom.d.ts +3 -0
- package/types/plugins/source/editor/engines/index.d.ts +3 -0
- package/types/plugins/source/editor/factory.d.ts +3 -0
- package/types/plugins/source/editor/sourceEditor.d.ts +6 -0
- package/types/plugins/source/source.d.ts +17 -0
- package/types/plugins/speech-recognize/config.d.ts +41 -0
- package/types/plugins/speech-recognize/constants.d.ts +4 -0
- package/types/plugins/speech-recognize/helpers/api.d.ts +3 -0
- package/types/plugins/speech-recognize/helpers/exec-spell-command.d.ts +3 -0
- package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +3 -0
- package/types/plugins/speech-recognize/helpers/sound.d.ts +3 -0
- package/types/plugins/speech-recognize/interface.d.ts +12 -0
- package/types/plugins/speech-recognize/speech-recognize.d.ts +5 -0
- package/types/plugins/spellcheck/config.d.ts +4 -0
- package/types/plugins/spellcheck/spellcheck.d.ts +5 -0
- package/types/plugins/stat/stat.d.ts +5 -0
- package/types/plugins/sticky/config.d.ts +19 -0
- package/types/plugins/sticky/sticky.d.ts +18 -0
- package/types/plugins/symbols/symbols.d.ts +11 -0
- package/types/plugins/tab/cases/index.d.ts +3 -0
- package/types/plugins/tab/cases/on-tab-inside-li.d.ts +8 -0
- package/types/plugins/tab/config.d.ts +3 -0
- package/types/plugins/table/table.d.ts +5 -0
- package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +8 -0
- package/types/plugins/wrap-nodes/config.d.ts +13 -0
- package/types/plugins/xpath/xpath.d.ts +5 -0
- package/types/styles/icons/index.d.ts +5 -0
- package/types/tsconfig.json +1 -1
|
@@ -3,6 +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
|
+
/**
|
|
7
|
+
* [[include:modules/uploader/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/uploader
|
|
10
|
+
*/
|
|
6
11
|
|
|
7
12
|
import type { HandlerError, HandlerSuccess, IUploader, IUploaderOptions, IViewBased } from "../../types";
|
|
8
13
|
import { ViewComponent } from "../../core/component";
|
|
@@ -10,15 +15,45 @@ import "./config";
|
|
|
10
15
|
export declare class Uploader extends ViewComponent implements IUploader {
|
|
11
16
|
readonly jodit: IViewBased;
|
|
12
17
|
get j(): IViewBased;
|
|
18
|
+
/** @override */
|
|
13
19
|
className(): string;
|
|
14
20
|
path: string;
|
|
15
21
|
source: string;
|
|
16
22
|
readonly options: IUploaderOptions<IUploader>;
|
|
17
23
|
get o(): this['options'];
|
|
24
|
+
/**
|
|
25
|
+
* It sets the path for uploading files
|
|
26
|
+
*/
|
|
18
27
|
setPath(path: string): this;
|
|
28
|
+
/**
|
|
29
|
+
* It sets the source for connector
|
|
30
|
+
*/
|
|
19
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
|
+
*/
|
|
20
52
|
bind(form: HTMLElement, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError): void;
|
|
21
53
|
private attachEvents;
|
|
54
|
+
/**
|
|
55
|
+
* Upload images to a server by its URL, making it through the connector server.
|
|
56
|
+
*/
|
|
22
57
|
uploadRemoteImage(url: string, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError): void;
|
|
23
58
|
constructor(editor: IViewBased, options?: IUploaderOptions<Uploader>);
|
|
24
59
|
destruct(): any;
|
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* [[include:modules/widget/color-picker/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/widget/color-picker
|
|
10
|
+
*/
|
|
6
11
|
|
|
7
12
|
import type { IJodit } from "../../../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
|
+
*/
|
|
8
30
|
export declare const ColorPickerWidget: (editor: IJodit, callback: (newColor: string) => void, coldColor: string) => HTMLDivElement;
|
|
@@ -3,11 +3,52 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* [[include:modules/widget/file-selector/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/widget/file-selector
|
|
10
|
+
*/
|
|
6
11
|
import type { IFileBrowserCallBackData, IJodit } from "../../../types";
|
|
7
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
|
+
*/
|
|
8
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
|
+
*/
|
|
9
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
|
+
*/
|
|
10
25
|
upload?: ((this: IJodit, data: IFileBrowserCallBackData) => void) | true;
|
|
11
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
|
+
*/
|
|
12
53
|
export declare const FileSelectorWidget: (editor: IJodit, callbacks: ImageSelectorCallbacks, elm: HTMLElement | null, close: () => void, isImage?: boolean) => HTMLDivElement;
|
|
13
54
|
export {};
|
|
@@ -3,6 +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
|
+
/**
|
|
7
|
+
* [[include:modules/widget/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/widget
|
|
10
|
+
*/
|
|
6
11
|
export * from "./color-picker/color-picker";
|
|
7
12
|
export * from "./tabs/tabs";
|
|
8
13
|
export * from "./file-selector/file-selector";
|
|
@@ -3,6 +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
|
+
/**
|
|
7
|
+
* [[include:modules/widget/tabs/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/widget/tabs
|
|
10
|
+
*/
|
|
6
11
|
|
|
7
12
|
import type { IJodit } from "../../../types";
|
|
8
13
|
import { UIElement } from "../../../core/ui";
|
|
@@ -11,6 +16,23 @@ export interface TabOption {
|
|
|
11
16
|
name: string;
|
|
12
17
|
content: HTMLElement | ((this: IJodit) => void) | UIElement;
|
|
13
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
|
+
*/
|
|
14
36
|
export declare const TabsWidget: (jodit: IJodit, tabs: TabOption[], state?: {
|
|
15
37
|
__activeTab: string;
|
|
16
38
|
}) => HTMLDivElement;
|
|
@@ -3,4 +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
|
+
/**
|
|
7
|
+
* [[include:plugins/about/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module plugins/about
|
|
10
|
+
*/
|
|
6
11
|
|
|
@@ -3,10 +3,18 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* [[include:plugins/add-new-line/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module plugins/add-new-line
|
|
10
|
+
*/
|
|
6
11
|
|
|
7
12
|
import type { IJodit } from "../../types";
|
|
8
13
|
import { Plugin } from "../../modules";
|
|
9
14
|
import "./config";
|
|
15
|
+
/**
|
|
16
|
+
* Create helper for adding new paragraph(Jodit.defaultOptions.enter tag) before iframe, table or image
|
|
17
|
+
*/
|
|
10
18
|
export declare class addNewLine extends Plugin {
|
|
11
19
|
private line;
|
|
12
20
|
private isMatchedTag;
|
|
@@ -25,5 +33,6 @@ export declare class addNewLine extends Plugin {
|
|
|
25
33
|
private onClickLine;
|
|
26
34
|
protected onDblClickEditor(e: MouseEvent): void;
|
|
27
35
|
private onMouseMove;
|
|
36
|
+
/** @override */
|
|
28
37
|
protected beforeDestruct(): void;
|
|
29
38
|
}
|
|
@@ -3,12 +3,34 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/add-new-line
|
|
8
|
+
*/
|
|
6
9
|
import type { HTMLTagNames } from "../../types";
|
|
7
10
|
declare module 'jodit/config' {
|
|
8
11
|
interface Config {
|
|
12
|
+
/**
|
|
13
|
+
* Create helper
|
|
14
|
+
*/
|
|
9
15
|
addNewLine: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* What kind of tags it will be impact
|
|
18
|
+
*/
|
|
10
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
|
+
*/
|
|
11
29
|
addNewLineOnDBLClick: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Absolute delta between cursor position and edge(top or bottom)
|
|
32
|
+
* of element when show line
|
|
33
|
+
*/
|
|
12
34
|
addNewLineDeltaShow: number;
|
|
13
35
|
}
|
|
14
36
|
}
|
|
@@ -3,6 +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
|
+
/**
|
|
7
|
+
* [[include:plugins/backspace/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module plugins/backspace
|
|
10
|
+
*/
|
|
6
11
|
import type { IJodit } from "../../types";
|
|
7
12
|
import { Plugin } from "../../core/plugin";
|
|
8
13
|
import "./config";
|
|
@@ -10,6 +15,12 @@ export declare class backspace extends Plugin {
|
|
|
10
15
|
requires: string[];
|
|
11
16
|
protected afterInit(jodit: IJodit): void;
|
|
12
17
|
protected beforeDestruct(jodit: IJodit): void;
|
|
18
|
+
/**
|
|
19
|
+
* Listener BackSpace or Delete button
|
|
20
|
+
*/
|
|
13
21
|
private onDelete;
|
|
22
|
+
/**
|
|
23
|
+
* Remove node and replace cursor position out of it
|
|
24
|
+
*/
|
|
14
25
|
private safeRemoveEmptyNode;
|
|
15
26
|
}
|
|
@@ -3,5 +3,12 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* Check if two separate elements can be connected
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
7
14
|
export declare function checkJoinNeighbors(jodit: IJodit, fakeNode: Node, backspace: boolean): boolean;
|
|
@@ -3,5 +3,21 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* Try join two UL elements
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <ul><li>one</li></ul>|<ol><li>two</li></ol>
|
|
16
|
+
* ```
|
|
17
|
+
* Result
|
|
18
|
+
* ```html
|
|
19
|
+
* <ul><li>one|</li><li>two</li></ul>
|
|
20
|
+
* ```
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
7
23
|
export declare function checkJoinTwoLists(jodit: IJodit, fakeNode: Node, backspace: boolean): boolean;
|
|
@@ -3,5 +3,21 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* On Not collapsed selection - should only remove whole selected content
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <p>first | stop</p><p>second | stop</p>
|
|
16
|
+
* ```
|
|
17
|
+
* result
|
|
18
|
+
* ```html
|
|
19
|
+
* <p>first | stop</p>
|
|
20
|
+
* ```
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
7
23
|
export declare function checkNotCollapsed(jodit: IJodit): boolean;
|
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
7
10
|
import type { DeleteMode } from "../interface";
|
|
11
|
+
/**
|
|
12
|
+
* Check possibility the char can be removed
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* te|st
|
|
17
|
+
* ```
|
|
18
|
+
* result
|
|
19
|
+
* ```html
|
|
20
|
+
* t|st
|
|
21
|
+
* ```
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
8
24
|
export declare function checkRemoveChar(jodit: IJodit, fakeNode: Node, backspace: boolean, mode: DeleteMode): boolean;
|
|
@@ -3,5 +3,12 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* Checks if a non-editable element can be deleted
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
7
14
|
export declare function checkRemoveContentNotEditable(jodit: IJodit, fakeNode: Text, backspace: boolean): boolean;
|
|
@@ -3,5 +3,21 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* Check if it is possible to remove an empty adjacent element.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <p><br></p><p>|second stop</p>
|
|
16
|
+
* ```
|
|
17
|
+
* result
|
|
18
|
+
* ```html
|
|
19
|
+
* <p>|second stop</p>
|
|
20
|
+
* ```
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
7
23
|
export declare function checkRemoveEmptyNeighbor(jodit: IJodit, fakeNode: Node, backspace: boolean): boolean;
|
|
@@ -3,5 +3,22 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* Check if the current empty item can be removed
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <p>first stop</p><p>|<br></p>
|
|
16
|
+
* ```
|
|
17
|
+
* result
|
|
18
|
+
* ```html
|
|
19
|
+
* <p>first stop|</p>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
7
24
|
export declare function checkRemoveEmptyParent(jodit: IJodit, fakeNode: Node, backspace: boolean): boolean;
|
|
@@ -3,5 +3,22 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* Check possibility inseparable Element can be removed (img, hr etc.)
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <p>first second <img>| stop</p>
|
|
16
|
+
* ```
|
|
17
|
+
* result
|
|
18
|
+
* ```html
|
|
19
|
+
* <p>first second | stop</p>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
7
24
|
export declare function checkRemoveUnbreakableElement(jodit: IJodit, fakeNode: Node, backspace: boolean): boolean;
|
|
@@ -3,5 +3,22 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* Inside the CELL table - nothing to do
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <table><tr><td>|test</td></tr></table>
|
|
16
|
+
* ```
|
|
17
|
+
* result
|
|
18
|
+
* ```html
|
|
19
|
+
* <table><tr><td>|test</td></tr></table>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
7
24
|
export declare function checkTableCell(jodit: IJodit, fakeNode: Node): boolean;
|
|
@@ -3,5 +3,22 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit } from "../../../types";
|
|
10
|
+
/**
|
|
11
|
+
* For first item in list on backspace try move his content in new P
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <ul><li>|first</li><li>second</li></ul>
|
|
16
|
+
* ```
|
|
17
|
+
* Result
|
|
18
|
+
* ```html
|
|
19
|
+
* <p>|first</p><ul><li>second</li></ul>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
7
24
|
export declare function checkUnwrapFirstListItem(jodit: IJodit, fakeNode: Node, backspace: boolean): boolean;
|
|
@@ -5,4 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { checkRemoveContentNotEditable } from "./check-remove-content-not-editable";
|
|
7
7
|
import { checkRemoveChar } from "./check-remove-char";
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
8
11
|
export declare const cases: (typeof checkRemoveContentNotEditable | typeof checkRemoveChar)[];
|
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit, Nullable } from "../../types";
|
|
10
|
+
/**
|
|
11
|
+
* Finds the nearest neighbor that would be in the maximum nesting depth.
|
|
12
|
+
* Ie if neighbor `<DIV><SPAN>Text` then return Text node.
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
7
15
|
export declare function findMostNestedNeighbor(node: Node, right: boolean, root: HTMLElement, onlyInlide?: boolean): Nullable<Node>;
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
8
19
|
export declare function getMoveFilter(jodit: IJodit): (node: Node) => boolean;
|
|
@@ -3,20 +3,47 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @module plugins/backspace
|
|
8
|
+
*/
|
|
6
9
|
export type DeleteMode = 'char' | 'word' | 'sentence';
|
|
7
10
|
declare module 'jodit/types/events' {
|
|
8
11
|
interface IEventEmitter {
|
|
12
|
+
/**
|
|
13
|
+
* Allows you to prepare the content before deletion or completely override the deletion logic if you return true
|
|
14
|
+
*/
|
|
9
15
|
on(event: 'backSpaceBeforeCases', callback: (backspace: boolean, fakeNode: Node) => void | true): this;
|
|
16
|
+
/**
|
|
17
|
+
* Emits after backspace or delete key pressed and were processed
|
|
18
|
+
*/
|
|
10
19
|
on(event: 'backSpaceAfterDelete', callback: (backspace: boolean, fakeNode: Node) => void): this;
|
|
11
20
|
}
|
|
12
21
|
}
|
|
13
22
|
declare module 'jodit/types/jodit' {
|
|
14
23
|
interface IJodit {
|
|
24
|
+
/**
|
|
25
|
+
* Backspace plugin: Remove next character or selected text
|
|
26
|
+
*/
|
|
15
27
|
execCommand(command: 'deleteButton'): void;
|
|
28
|
+
/**
|
|
29
|
+
* Backspace plugin: Remove previous character or selected text
|
|
30
|
+
*/
|
|
16
31
|
execCommand(command: 'backspaceButton'): void;
|
|
32
|
+
/**
|
|
33
|
+
* Backspace plugin: Remove next word or selected text
|
|
34
|
+
*/
|
|
17
35
|
execCommand(command: 'deleteWordButton'): void;
|
|
36
|
+
/**
|
|
37
|
+
* Backspace plugin: Remove previous word or selected text
|
|
38
|
+
*/
|
|
18
39
|
execCommand(command: 'backspaceWordButton'): void;
|
|
40
|
+
/**
|
|
41
|
+
* Backspace plugin: Remove next sentence or selected text
|
|
42
|
+
*/
|
|
19
43
|
execCommand(command: 'deleteSentenceButton'): void;
|
|
44
|
+
/**
|
|
45
|
+
* Backspace plugin: Remove previous sentence or selected text
|
|
46
|
+
*/
|
|
20
47
|
execCommand(command: 'backspaceSentenceButton'): void;
|
|
21
48
|
}
|
|
22
49
|
}
|
|
@@ -3,7 +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
|
+
/**
|
|
7
|
+
* [[include:plugins/bold/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module plugins/bold
|
|
10
|
+
*/
|
|
6
11
|
import type { IJodit } from "../../types";
|
|
7
12
|
import "./interface";
|
|
8
13
|
import "./config";
|
|
14
|
+
/**
|
|
15
|
+
* Adds `bold`,` strikethrough`, `underline` and` italic` buttons to Jodit
|
|
16
|
+
*/
|
|
9
17
|
export declare function bold(editor: IJodit): void;
|
|
@@ -5,11 +5,29 @@
|
|
|
5
5
|
*/
|
|
6
6
|
declare module 'jodit/types/jodit' {
|
|
7
7
|
interface IJodit {
|
|
8
|
+
/**
|
|
9
|
+
* Bold plugin: Make selected text bold
|
|
10
|
+
*/
|
|
8
11
|
execCommand(command: 'bold'): void;
|
|
12
|
+
/**
|
|
13
|
+
* Bold plugin: Make selected text style italic
|
|
14
|
+
*/
|
|
9
15
|
execCommand(command: 'italic'): void;
|
|
16
|
+
/**
|
|
17
|
+
* Bold plugin: Make selected text style underline
|
|
18
|
+
*/
|
|
10
19
|
execCommand(command: 'underline'): void;
|
|
20
|
+
/**
|
|
21
|
+
* Bold plugin: Make selected text style strikethrough
|
|
22
|
+
*/
|
|
11
23
|
execCommand(command: 'strikethrough'): void;
|
|
24
|
+
/**
|
|
25
|
+
* Bold plugin: Wrap selected text in SUB tag
|
|
26
|
+
*/
|
|
12
27
|
execCommand(command: 'subscript'): void;
|
|
28
|
+
/**
|
|
29
|
+
* Bold plugin: Wrap selected text in SUP tag
|
|
30
|
+
*/
|
|
13
31
|
execCommand(command: 'superscript'): void;
|
|
14
32
|
}
|
|
15
33
|
}
|
|
@@ -3,10 +3,37 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* [[include:plugins/class-span/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module plugins/class-span
|
|
10
|
+
*/
|
|
6
11
|
import type { IJodit } from "../../types";
|
|
7
12
|
import { Plugin } from "../../core/plugin";
|
|
13
|
+
/**
|
|
14
|
+
* Applying some className to selected text.
|
|
15
|
+
* @example
|
|
16
|
+
* ```js
|
|
17
|
+
* const editor = Jodit.make('#editor', {
|
|
18
|
+
* controls: {
|
|
19
|
+
* classSpan: {
|
|
20
|
+
* list: {
|
|
21
|
+
* class1: 'Classe 1',
|
|
22
|
+
* class2: 'Classe 2',
|
|
23
|
+
* class3: 'Classe 3',
|
|
24
|
+
* class4: 'Classe 4',
|
|
25
|
+
* class5: 'Classe 5'
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
8
32
|
export declare class classSpan extends Plugin {
|
|
33
|
+
/** @override */
|
|
9
34
|
buttons: Plugin['buttons'];
|
|
35
|
+
/** @override */
|
|
10
36
|
protected afterInit(jodit: IJodit): void;
|
|
37
|
+
/** @override */
|
|
11
38
|
protected beforeDestruct(): void;
|
|
12
39
|
}
|