jodit 3.11.2 → 3.12.4
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/.github/workflows/docs.yml +16 -0
- package/.github/workflows/tests.yml +1 -2
- package/.idea/workspace.xml +314 -300
- package/CHANGELOG.MD +35 -2
- package/LICENSE.txt +1 -1
- package/README.md +6 -4
- package/build/jodit.css +150 -114
- package/build/jodit.es2018.css +135 -103
- package/build/jodit.es2018.en.css +135 -103
- package/build/jodit.es2018.en.js +2281 -2129
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +2447 -2295
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +3496 -3320
- package/build/jodit.min.css +2 -2
- package/build/jodit.min.js +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -1
- package/src/README.md +55 -0
- package/src/config.ts +5 -1
- package/src/core/async/README.md +147 -0
- package/src/core/{async.ts → async/async.ts} +12 -7
- package/src/core/async/index.ts +11 -0
- package/src/core/component/README.md +110 -0
- package/src/core/component/component.ts +7 -1
- package/src/core/component/index.ts +5 -1
- package/src/core/component/statuses.ts +5 -1
- package/src/core/component/view-component.ts +5 -1
- package/src/core/constants.ts +5 -1
- package/src/core/create/README.md +57 -0
- package/src/core/{create.ts → create/create.ts} +11 -5
- package/src/core/create/index.ts +11 -0
- package/src/core/decorators/README.md +4 -0
- package/src/core/decorators/cache/README.md +17 -0
- package/src/core/decorators/{cache.ts → cache/cache.ts} +9 -3
- package/src/core/decorators/component/README.md +65 -0
- package/src/core/decorators/{component.ts → component/component.ts} +8 -2
- package/src/core/decorators/debounce/README.md +44 -0
- package/src/core/decorators/{debounce.ts → debounce/debounce.ts} +11 -8
- package/src/core/decorators/hook/README.md +16 -0
- package/src/core/decorators/{hook.ts → hook/hook.ts} +11 -4
- package/src/core/decorators/idle/README.md +1 -0
- package/src/core/decorators/{idle.ts → idle/idle.ts} +11 -7
- package/src/core/decorators/index.ts +16 -10
- package/src/core/decorators/nonenumerable/README.md +15 -0
- package/src/core/decorators/{nonenumerable.ts → nonenumerable/nonenumerable.ts} +5 -2
- package/src/core/decorators/persistent/README.md +23 -0
- package/src/core/decorators/{persistent.ts → persistent/persistent.ts} +9 -6
- package/src/core/decorators/wait/README.md +20 -0
- package/src/core/decorators/{wait.ts → wait/wait.ts} +9 -6
- package/src/core/decorators/watch/README.md +125 -0
- package/src/core/decorators/{watch.ts → watch/watch.ts} +16 -14
- package/src/core/dom/README.md +13 -0
- package/src/core/{dom.ts → dom/dom.ts} +12 -6
- package/src/core/dom/index.ts +11 -0
- package/src/core/event-emitter/README.md +39 -0
- package/src/core/{events → event-emitter}/event-emitter.ts +13 -13
- package/src/core/{events → event-emitter}/index.ts +5 -1
- package/src/core/{events → event-emitter}/observe-object.ts +17 -8
- package/src/core/{events → event-emitter}/store.ts +5 -1
- package/src/core/global.ts +10 -10
- package/src/core/helpers/README.md +31 -0
- package/src/core/helpers/array/as-array.ts +5 -1
- package/src/core/helpers/array/index.ts +5 -1
- package/src/core/helpers/array/split-array.ts +5 -1
- package/src/core/helpers/array/to-array.ts +5 -1
- package/src/core/helpers/async/index.ts +5 -1
- package/src/core/helpers/async/set-timeout.ts +5 -1
- package/src/core/helpers/checker/has-browser-color-picker.ts +5 -1
- package/src/core/helpers/checker/index.ts +5 -1
- package/src/core/helpers/checker/is-array.ts +5 -1
- package/src/core/helpers/checker/is-boolean.ts +5 -1
- package/src/core/helpers/checker/is-equal.ts +5 -1
- package/src/core/helpers/checker/is-function.ts +5 -1
- package/src/core/helpers/checker/is-html-from-word.ts +5 -1
- package/src/core/helpers/checker/is-html.ts +5 -1
- package/src/core/helpers/checker/is-imp-interface.ts +5 -1
- package/src/core/helpers/checker/is-int.ts +5 -1
- package/src/core/helpers/checker/is-jodit-object.ts +5 -1
- package/src/core/helpers/checker/is-license.ts +5 -1
- package/src/core/helpers/checker/is-native-function.ts +5 -1
- package/src/core/helpers/checker/is-number.ts +5 -1
- package/src/core/helpers/checker/is-numeric.ts +5 -1
- package/src/core/helpers/checker/is-plain-object.ts +5 -1
- package/src/core/helpers/checker/is-promise.ts +5 -1
- package/src/core/helpers/checker/is-string.ts +5 -1
- package/src/core/helpers/checker/is-url.ts +5 -1
- package/src/core/helpers/checker/is-valid-name.ts +5 -1
- package/src/core/helpers/checker/is-void.ts +5 -1
- package/src/core/helpers/checker/is-window.ts +5 -1
- package/src/core/helpers/color/color-to-hex.ts +5 -1
- package/src/core/helpers/color/index.ts +5 -1
- package/src/core/helpers/html/apply-styles.ts +6 -2
- package/src/core/helpers/html/clean-from-word.ts +5 -1
- package/src/core/helpers/html/htmlspecialchars.ts +5 -1
- package/src/core/helpers/html/index.ts +5 -1
- package/src/core/helpers/html/nl2br.ts +6 -2
- package/src/core/helpers/html/strip-tags.ts +6 -2
- package/src/core/helpers/index.ts +7 -22
- package/src/core/helpers/normalize/index.ts +5 -1
- package/src/core/helpers/normalize/normalize-color.ts +5 -1
- package/src/core/helpers/normalize/normalize-css-value.ts +5 -1
- package/src/core/helpers/normalize/normalize-key-aliases.ts +5 -1
- package/src/core/helpers/normalize/normalize-license.ts +5 -1
- package/src/core/helpers/normalize/normalize-node.ts +5 -1
- package/src/core/helpers/normalize/normalize-path.ts +5 -1
- package/src/core/helpers/normalize/normalize-relative-path.ts +5 -1
- package/src/core/helpers/normalize/normalize-size.ts +5 -1
- package/src/core/helpers/normalize/normalize-url.ts +5 -1
- package/src/core/helpers/size/get-content-width.ts +3 -2
- package/src/core/helpers/size/get-scroll-parent.ts +11 -5
- package/src/core/helpers/size/index.ts +5 -1
- package/src/core/helpers/size/inner-width.ts +5 -1
- package/src/core/helpers/size/object-size.ts +5 -1
- package/src/core/helpers/size/offset.ts +5 -1
- package/src/core/helpers/size/position.ts +5 -1
- package/src/core/helpers/string/camel-case.ts +5 -1
- package/src/core/helpers/string/i18n.ts +6 -2
- package/src/core/helpers/string/index.ts +5 -1
- package/src/core/helpers/string/kebab-case.ts +5 -1
- package/src/core/helpers/string/stringify.ts +5 -1
- package/src/core/helpers/string/trim.ts +5 -1
- package/src/core/helpers/string/ucfirst.ts +5 -1
- package/src/core/helpers/{append-script.ts → utils/append-script.ts} +7 -3
- package/src/core/helpers/{browser.ts → utils/browser.ts} +5 -1
- package/src/core/helpers/{build-query.ts → utils/build-query.ts} +7 -3
- package/src/core/helpers/{complete-url.ts → utils/complete-url.ts} +5 -1
- package/src/core/helpers/{config-proto.ts → utils/config-proto.ts} +8 -4
- package/src/core/helpers/{convert-media-url-to-video-embed.ts → utils/convert-media-url-to-video-embed.ts} +6 -2
- package/src/core/helpers/{css.ts → utils/css.ts} +9 -5
- package/src/core/helpers/{ctrl-key.ts → utils/ctrl-key.ts} +5 -1
- package/src/core/helpers/{data-bind.ts → utils/data-bind.ts} +8 -4
- package/src/core/helpers/{default-language.ts → utils/default-language.ts} +6 -2
- package/src/core/helpers/{type.ts → utils/error.ts} +5 -1
- package/src/core/helpers/{extend.ts → utils/extend.ts} +6 -2
- package/src/core/helpers/utils/get-class-name.ts +5 -1
- package/src/core/helpers/utils/get.ts +5 -1
- package/src/core/helpers/{human-size-to-bytes.ts → utils/human-size-to-bytes.ts} +5 -1
- package/src/core/helpers/utils/index.ts +22 -1
- package/src/core/helpers/utils/mark-deprecated.ts +5 -1
- package/src/core/helpers/{parse-query.ts → utils/parse-query.ts} +6 -2
- package/src/core/helpers/{scroll-into-view.ts → utils/scroll-into-view.ts} +5 -1
- package/src/core/helpers/{selector.ts → utils/selector.ts} +13 -9
- package/src/core/helpers/utils/set.ts +5 -1
- package/src/core/helpers/utils/stack.ts +6 -1
- package/src/core/helpers/utils/utils.ts +7 -3
- package/src/core/helpers/{val.ts → utils/val.ts} +5 -1
- package/src/core/plugin/README.md +133 -0
- package/src/core/plugin/index.ts +12 -0
- package/src/core/{plugin-system.ts → plugin/plugin-system.ts} +7 -3
- package/src/core/{plugin.ts → plugin/plugin.ts} +11 -5
- package/src/core/request/README.md +11 -0
- package/src/core/request/ajax.ts +18 -12
- package/src/core/request/config.ts +5 -1
- package/src/core/request/index.ts +5 -1
- package/src/core/request/response.ts +5 -1
- package/src/core/selection/README.md +20 -0
- package/src/core/selection/index.ts +5 -1
- package/src/core/selection/select.ts +10 -4
- package/src/core/selection/style/api/element-has-same-style.ts +2 -1
- package/src/core/selection/style/api/extract.ts +2 -1
- package/src/core/selection/style/api/finite-state-machine.ts +1 -1
- package/src/core/selection/style/api/get-suit-child.ts +2 -1
- package/src/core/selection/style/api/get-suit-parent.ts +2 -1
- package/src/core/selection/style/api/index.ts +1 -1
- package/src/core/selection/style/api/is-inside-invisible-element.ts +2 -1
- package/src/core/selection/style/api/is-normal-node.ts +2 -1
- package/src/core/selection/style/api/is-suit-element.ts +3 -2
- package/src/core/selection/style/api/toggle/toggle-css.ts +2 -1
- package/src/core/selection/style/api/toggle/toggle-ordered-list.ts +2 -1
- package/src/core/selection/style/api/toggle-commit-styles.ts +2 -1
- package/src/core/selection/style/api/unwrap-children.ts +2 -1
- package/src/core/selection/style/api/wrap-and-commit-style.ts +2 -1
- package/src/core/selection/style/api/wrap-ordered-list.ts +2 -1
- package/src/core/selection/style/api/wrap-unwrapped-text.ts +2 -1
- package/src/core/selection/style/apply-style.ts +5 -1
- package/src/core/selection/style/commit-style.ts +5 -1
- package/src/core/storage/README.md +13 -0
- package/src/core/storage/engines/local-storage-provider.ts +5 -1
- package/src/core/storage/engines/memory-storage-provider.ts +5 -1
- package/src/core/storage/index.ts +5 -1
- package/src/core/storage/storage.ts +7 -1
- package/src/core/traits/elms.ts +5 -1
- package/src/core/traits/index.ts +5 -1
- package/src/core/traits/mods.ts +5 -1
- package/src/core/ui/README.md +51 -0
- package/src/core/ui/button/README.md +3 -0
- package/src/core/ui/button/button/button.less +1 -1
- package/src/core/ui/button/button/button.ts +6 -2
- package/src/core/ui/button/group/group.ts +6 -2
- package/src/core/ui/button/index.ts +7 -1
- package/src/core/ui/element.ts +5 -1
- package/src/core/ui/form/README.md +22 -0
- package/src/core/ui/form/block/block.ts +6 -2
- package/src/core/ui/form/form.ts +8 -2
- package/src/core/ui/form/index.ts +5 -1
- package/src/core/ui/form/inputs/area/area.ts +5 -1
- package/src/core/ui/form/inputs/checkbox/checkbox.ts +5 -1
- package/src/core/ui/form/inputs/file/file.ts +5 -1
- package/src/core/ui/form/inputs/index.ts +5 -1
- package/src/core/ui/form/inputs/input/input.ts +5 -1
- package/src/core/ui/form/inputs/select/select.ts +5 -1
- package/src/core/ui/form/validators/index.ts +5 -1
- package/src/core/ui/form/validators/input.ts +5 -1
- package/src/core/ui/form/validators/select.ts +5 -1
- package/src/core/ui/group/README.md +1 -0
- package/src/core/ui/{list → group}/group.less +1 -1
- package/src/core/ui/{list → group}/group.ts +7 -1
- package/src/core/ui/{list → group}/index.ts +5 -1
- package/src/core/ui/{list → group}/list.less +1 -1
- package/src/core/ui/{list → group}/list.ts +5 -1
- package/src/core/ui/{list → group}/separator.ts +5 -1
- package/src/core/ui/{list → group}/spacer.ts +5 -1
- package/src/core/ui/helpers/buttons.ts +5 -1
- package/src/core/ui/helpers/get-control-type.ts +5 -1
- package/src/core/ui/helpers/get-strong-control-types.ts +5 -1
- package/src/core/ui/icon.ts +6 -2
- package/src/core/ui/index.ts +8 -2
- package/src/core/ui/popup/README.md +15 -0
- package/src/core/ui/popup/index.ts +5 -1
- package/src/core/ui/popup/popup.less +1 -1
- package/src/core/ui/popup/popup.ts +7 -1
- package/src/core/ui/progress-bar/README.md +1 -0
- package/src/core/ui/progress-bar/progress-bar.less +1 -1
- package/src/core/ui/progress-bar/progress-bar.ts +7 -1
- package/src/core/view/README.md +24 -0
- package/src/core/view/view-with-toolbar.less +1 -1
- package/src/core/view/view-with-toolbar.ts +5 -1
- package/src/core/view/view.ts +11 -4
- package/src/header.js +1 -1
- package/src/index.ts +7 -1
- package/src/jodit.ts +7 -1
- package/src/langs/README.md +1 -0
- package/src/langs/ar.js +1 -1
- package/src/langs/cs_cz.js +1 -1
- package/src/langs/de.js +1 -1
- package/src/langs/en.js +1 -1
- package/src/langs/es.js +1 -1
- package/src/langs/fa.js +1 -1
- package/src/langs/fr.js +1 -1
- package/src/langs/he.js +1 -1
- package/src/langs/hu.js +1 -1
- package/src/langs/id.js +1 -1
- package/src/langs/index.ts +8 -1
- package/src/langs/it.js +1 -1
- package/src/langs/ja.js +1 -1
- package/src/langs/ko.js +1 -1
- package/src/langs/nl.js +1 -1
- package/src/langs/pl.js +1 -1
- package/src/langs/pt_br.js +1 -1
- package/src/langs/ru.js +1 -1
- package/src/langs/tr.js +1 -1
- package/src/langs/zh_cn.js +1 -1
- package/src/langs/zh_tw.js +1 -1
- package/src/modules/README.md +1 -0
- package/src/modules/context-menu/README.md +1 -0
- package/src/modules/context-menu/context-menu.less +1 -1
- package/src/modules/context-menu/context-menu.ts +7 -1
- package/src/modules/dialog/README.md +45 -0
- package/src/modules/dialog/alert.ts +5 -1
- package/src/modules/dialog/confirm.ts +5 -1
- package/src/modules/dialog/dialog.less +1 -1
- package/src/modules/dialog/dialog.ts +6 -2
- package/src/modules/dialog/index.ts +7 -1
- package/src/modules/dialog/prompt.ts +5 -1
- package/src/modules/file-browser/{README.MD → README.md} +189 -79
- package/src/modules/file-browser/builders/context-menu.ts +23 -11
- package/src/modules/file-browser/builders/elements-map.ts +31 -0
- package/src/modules/file-browser/builders/item.ts +5 -1
- package/src/modules/file-browser/config.ts +5 -1
- package/src/modules/file-browser/data-provider.ts +7 -3
- package/src/modules/file-browser/factories.ts +5 -1
- package/src/modules/file-browser/fetch/delete-file.ts +27 -0
- package/src/modules/file-browser/fetch/load-items.ts +32 -0
- package/src/modules/file-browser/fetch/load-tree.ts +49 -0
- package/src/modules/file-browser/file-browser.ts +69 -109
- package/src/modules/file-browser/index.ts +13 -0
- package/src/modules/file-browser/listeners/native-listeners.ts +19 -15
- package/src/modules/file-browser/listeners/self-listeners.ts +25 -17
- package/src/modules/file-browser/listeners/state-listeners.ts +19 -12
- package/src/modules/file-browser/styles/file-browser.less +25 -19
- package/src/modules/file-browser/styles/index.less +1 -1
- package/src/modules/file-browser/styles/preview.less +1 -1
- package/src/modules/file-browser/ui/files/files.less +5 -0
- package/src/modules/file-browser/ui/files/files.ts +1 -1
- package/src/modules/file-browser/ui/index.ts +5 -1
- package/src/modules/file-browser/ui/tree/tree.less +5 -0
- package/src/modules/file-browser/ui/tree/tree.ts +1 -1
- package/src/modules/image-editor/README.md +1 -0
- package/src/modules/image-editor/image-editor.less +1 -1
- package/src/modules/image-editor/image-editor.ts +13 -12
- package/src/modules/image-editor/templates/form.ts +5 -1
- package/src/modules/index.ts +12 -6
- package/src/modules/observer/README.md +0 -0
- package/src/modules/observer/command.ts +5 -1
- package/src/modules/observer/observer.ts +7 -1
- package/src/modules/observer/snapshot.ts +5 -1
- package/src/modules/observer/stack.ts +5 -1
- package/src/modules/status-bar/README.md +1 -0
- package/src/modules/status-bar/status-bar.less +1 -1
- package/src/modules/status-bar/status-bar.ts +7 -1
- package/src/modules/table/README.md +3 -0
- package/src/modules/{table.ts → table/table.ts} +20 -13
- package/src/modules/toolbar/README.md +1 -0
- package/src/modules/toolbar/button/README.md +1 -0
- package/src/modules/toolbar/button/button.less +1 -1
- package/src/modules/toolbar/button/button.ts +7 -1
- package/src/modules/toolbar/button/content.less +1 -1
- package/src/modules/toolbar/button/content.ts +5 -1
- package/src/modules/toolbar/button/index.ts +5 -1
- package/src/modules/toolbar/collection/README.md +1 -0
- package/src/modules/toolbar/collection/collection.less +2 -2
- package/src/modules/toolbar/collection/collection.ts +7 -1
- package/src/modules/toolbar/collection/editor-collection.ts +5 -1
- package/src/modules/toolbar/factory.ts +7 -1
- package/src/modules/uploader/README.md +1 -0
- package/src/modules/uploader/uploader.less +1 -1
- package/src/modules/uploader/uploader.ts +13 -7
- package/src/modules/widget/README.md +1 -0
- package/src/modules/widget/color-picker/README.md +1 -0
- package/src/modules/widget/color-picker/color-picker.less +1 -1
- package/src/modules/widget/color-picker/color-picker.ts +7 -1
- package/src/modules/widget/file-selector/README.md +1 -0
- package/src/modules/widget/file-selector/file-selector.ts +7 -1
- package/src/modules/widget/index.ts +7 -1
- package/src/modules/widget/tabs/README.md +1 -0
- package/src/modules/widget/tabs/tabs.less +1 -1
- package/src/modules/widget/tabs/tabs.ts +7 -1
- package/src/modules/widget/widget.less +1 -1
- package/src/plugins/README.md +3 -0
- package/src/plugins/about/about.less +1 -1
- package/src/plugins/about/about.ts +5 -1
- package/src/plugins/add-new-line/README.md +6 -0
- package/src/plugins/add-new-line/add-new-line.less +1 -1
- package/src/plugins/add-new-line/add-new-line.ts +13 -1
- package/src/plugins/{bold.ts → bold/bold.ts} +9 -5
- package/src/plugins/class-span/class-span.ts +5 -1
- package/src/plugins/clipboard/clipboard.ts +5 -1
- package/src/plugins/clipboard/config.ts +13 -1
- package/src/plugins/clipboard/copy-format.ts +5 -1
- package/src/plugins/clipboard/drag-and-drop-element.ts +5 -1
- package/src/plugins/clipboard/drag-and-drop.ts +7 -8
- package/src/plugins/clipboard/index.ts +5 -1
- package/src/plugins/clipboard/paste/CHANGELOG.md +17 -0
- package/src/plugins/clipboard/paste/README.md +8 -0
- package/src/plugins/clipboard/paste/helpers.ts +5 -1
- package/src/plugins/clipboard/paste/paste.ts +20 -12
- package/src/plugins/clipboard/paste-storage/paste-storage.less +1 -1
- package/src/plugins/clipboard/paste-storage/paste-storage.ts +5 -1
- package/src/plugins/{color.ts → color/color.ts} +10 -6
- package/src/plugins/error-messages/error-messages.ts +5 -1
- package/src/plugins/error-messages/errors-messages.less +1 -1
- package/src/plugins/fix/clean-html.ts +6 -2
- package/src/plugins/fix/wrap-text-nodes.ts +5 -1
- package/src/plugins/focus/README.md +3 -0
- package/src/plugins/{focus.ts → focus/focus.ts} +11 -8
- package/src/plugins/{font.ts → font/font.ts} +10 -6
- package/src/plugins/format-block/CHANGELOG.md +16 -0
- package/src/plugins/format-block/README.md +40 -0
- package/src/plugins/{format-block.ts → format-block/format-block.ts} +18 -6
- package/src/plugins/fullsize/fullsize.less +2 -2
- package/src/plugins/fullsize/fullsize.ts +5 -1
- package/src/plugins/{iframe.ts → iframe/iframe.ts} +13 -9
- package/src/plugins/image/helpers.ts +5 -1
- package/src/plugins/image/image-processor.ts +5 -1
- package/src/plugins/image/image-properties/image-properties.less +1 -1
- package/src/plugins/image/image-properties/image-properties.ts +5 -1
- package/src/plugins/image/image-properties/templates/form.ts +5 -1
- package/src/plugins/image/image-properties/templates/index.ts +7 -3
- package/src/plugins/image/image-properties/templates/{mainTab.ts → main-tab.ts} +5 -1
- package/src/plugins/image/image-properties/templates/{positionTab.ts → position-tab.ts} +5 -1
- package/src/plugins/image/image.ts +5 -1
- package/src/plugins/image/index.ts +5 -1
- package/src/plugins/{indent.ts → indent/indent.ts} +11 -7
- package/src/plugins/index.ts +22 -16
- package/src/plugins/inline-popup/config/config.ts +5 -1
- package/src/plugins/inline-popup/config/items/a.ts +5 -1
- package/src/plugins/inline-popup/config/items/cells.ts +5 -1
- package/src/plugins/inline-popup/config/items/iframe.ts +5 -1
- package/src/plugins/inline-popup/config/items/img.ts +5 -1
- package/src/plugins/inline-popup/config/items/toolbar.ts +5 -1
- package/src/plugins/inline-popup/inline-popup.less +1 -1
- package/src/plugins/inline-popup/inline-popup.ts +5 -1
- package/src/plugins/insert/hr.ts +5 -1
- package/src/plugins/insert/index.ts +5 -1
- package/src/plugins/{justify.ts → justify/justify.ts} +9 -5
- package/src/plugins/keyboard/backspace/backspace.ts +5 -1
- package/src/plugins/keyboard/backspace/cases/check-join-neighbors.ts +1 -1
- package/src/plugins/keyboard/backspace/cases/check-join-two-lists.ts +2 -1
- package/src/plugins/keyboard/backspace/cases/check-not-collapsed.ts +2 -1
- package/src/plugins/keyboard/backspace/cases/check-remove-char.ts +2 -1
- package/src/plugins/keyboard/backspace/cases/check-remove-content-not-editable.ts +3 -2
- package/src/plugins/keyboard/backspace/cases/check-remove-empty-neighbor.ts +2 -1
- package/src/plugins/keyboard/backspace/cases/check-remove-empty-parent.ts +3 -1
- package/src/plugins/keyboard/backspace/cases/check-remove-unbreakable-element.ts +3 -1
- package/src/plugins/keyboard/backspace/cases/check-table-cell.ts +3 -1
- package/src/plugins/keyboard/backspace/cases/check-unwrap-first-list-item.ts +3 -1
- package/src/plugins/keyboard/backspace/cases/index.ts +1 -1
- package/src/plugins/keyboard/backspace/config.ts +5 -1
- package/src/plugins/keyboard/backspace/interface.d.ts +5 -1
- package/src/plugins/keyboard/enter.ts +5 -1
- package/src/plugins/keyboard/helpers.ts +6 -1
- package/src/plugins/keyboard/hotkeys.ts +5 -1
- package/src/plugins/keyboard/key-arrow-outside.ts +6 -1
- package/src/plugins/{limit.ts → limit/limit.ts} +12 -8
- package/src/plugins/link/link.ts +5 -1
- package/src/plugins/link/template.ts +5 -1
- package/src/plugins/media/file.ts +5 -1
- package/src/plugins/media/index.ts +5 -1
- package/src/plugins/media/media.ts +5 -1
- package/src/plugins/media/video/config.ts +5 -1
- package/src/plugins/media/video/index.ts +5 -1
- package/src/plugins/{mobile.ts → mobile/mobile.ts} +14 -10
- package/src/plugins/{ordered-list.ts → ordered-list/ordered-list.ts} +11 -7
- package/src/plugins/placeholder/placeholder.less +1 -1
- package/src/plugins/placeholder/placeholder.ts +5 -1
- package/src/plugins/{powered-by-jodit.ts → powered-by-jodit/powered-by-jodit.ts} +10 -3
- package/src/plugins/print/index.ts +5 -1
- package/src/plugins/print/preview.ts +5 -1
- package/src/plugins/print/print.ts +5 -1
- package/src/plugins/{redo-undo.ts → redo-undo/redo-undo.ts} +9 -5
- package/src/plugins/resizer/resizer.less +1 -1
- package/src/plugins/resizer/resizer.ts +7 -3
- package/src/plugins/search/search.less +1 -1
- package/src/plugins/search/search.ts +5 -1
- package/src/plugins/{select.ts → select/select.ts} +11 -7
- package/src/plugins/size/config.ts +6 -1
- package/src/plugins/size/index.ts +5 -1
- package/src/plugins/size/resize-handler.ts +5 -1
- package/src/plugins/size/size.less +1 -1
- package/src/plugins/size/size.ts +5 -1
- package/src/plugins/source/README.md +60 -0
- package/src/plugins/source/config.ts +18 -3
- package/src/plugins/source/const.ts +5 -1
- package/src/plugins/source/editor/engines/ace.ts +5 -1
- package/src/plugins/source/editor/engines/area.ts +5 -1
- package/src/plugins/source/editor/engines/custom.ts +5 -1
- package/src/plugins/source/editor/engines/index.ts +5 -1
- package/src/plugins/source/editor/factory.ts +25 -16
- package/src/plugins/source/editor/sourceEditor.ts +5 -1
- package/src/plugins/source/index.ts +7 -1
- package/src/plugins/source/source.less +1 -1
- package/src/plugins/source/source.ts +5 -1
- package/src/plugins/{stat.ts → stat/stat.ts} +11 -7
- package/src/plugins/sticky/sticky.less +1 -1
- package/src/plugins/sticky/sticky.ts +5 -1
- package/src/plugins/symbols/config.ts +5 -1
- package/src/plugins/symbols/symbols.less +12 -14
- package/src/plugins/symbols/symbols.ts +6 -2
- package/src/plugins/table/config.ts +5 -1
- package/src/plugins/table/index.ts +5 -1
- package/src/plugins/table/resize-cells.ts +5 -1
- package/src/plugins/table/select-cells.ts +6 -2
- package/src/plugins/table/table-keyboard-navigation.ts +5 -1
- package/src/plugins/table/table.less +1 -1
- package/src/plugins/table/table.ts +5 -1
- package/src/plugins/tooltip/tooltip.less +1 -1
- package/src/plugins/tooltip/tooltip.ts +5 -1
- package/src/plugins/xpath/xpath.less +1 -1
- package/src/plugins/xpath/xpath.ts +5 -1
- package/src/polyfills.ts +1 -1
- package/src/styles/form.less +1 -1
- package/src/styles/icons/README.md +1 -0
- package/src/styles/icons/index.ts +7 -1
- package/src/styles/index.less +1 -1
- package/src/styles/jodit.less +1 -1
- package/src/styles/mixins.less +1 -1
- package/src/styles/modules/button-group.less +1 -1
- package/src/styles/modules/grid.less +1 -1
- package/src/styles/modules/icon.less +1 -1
- package/src/styles/modules/texticons.less +1 -1
- package/src/styles/reset.less +1 -1
- package/src/styles/themes/dark.less +1 -1
- package/src/styles/variables.less +1 -1
- package/src/types/ajax.d.ts +11 -7
- package/src/types/async.d.ts +5 -1
- package/src/types/context.d.ts +5 -1
- package/src/types/core.ts +5 -1
- package/src/types/create.d.ts +5 -1
- package/src/types/dialog.d.ts +5 -1
- package/src/types/events.d.ts +12 -8
- package/src/types/file-browser.d.ts +12 -5
- package/src/types/form.d.ts +5 -1
- package/src/types/index.d.ts +6 -2
- package/src/types/jodit.d.ts +5 -1
- package/src/types/{observe.d.ts → observer.d.ts} +7 -5
- package/src/types/plugin.d.ts +5 -1
- package/src/types/popup.d.ts +5 -1
- package/src/types/select.d.ts +5 -1
- package/src/types/source.d.ts +5 -1
- package/src/types/storage.ts +5 -1
- package/src/types/style.d.ts +5 -1
- package/src/types/toolbar.d.ts +5 -1
- package/src/types/traits.d.ts +5 -1
- package/src/types/types.d.ts +5 -1
- package/src/types/ui.d.ts +5 -1
- package/src/types/uploader.d.ts +5 -3
- package/src/types/view.d.ts +5 -1
- package/src/typings.d.ts +5 -1
- package/tsdoc.json +20 -0
- package/types/config.d.ts +4 -1
- package/types/core/{async.d.ts → async/async.d.ts} +10 -6
- package/types/core/async/index.d.ts +9 -0
- package/types/core/component/component.d.ts +6 -1
- package/types/core/component/index.d.ts +4 -1
- package/types/core/component/statuses.d.ts +4 -1
- package/types/core/component/view-component.d.ts +4 -1
- package/types/core/constants.d.ts +4 -1
- package/types/core/{create.d.ts → create/create.d.ts} +7 -2
- package/types/core/create/index.d.ts +9 -0
- package/types/core/decorators/{cache.d.ts → cache/cache.d.ts} +1 -1
- package/types/core/decorators/{component.d.ts → component/component.d.ts} +1 -1
- package/types/core/decorators/{debounce.d.ts → debounce/debounce.d.ts} +5 -3
- package/types/core/decorators/{hook.d.ts → hook/hook.d.ts} +8 -3
- package/types/core/decorators/{idle.d.ts → idle/idle.d.ts} +5 -3
- package/types/core/decorators/index.d.ts +15 -10
- package/types/core/decorators/{nonenumerable.d.ts → nonenumerable/nonenumerable.d.ts} +4 -2
- package/types/core/decorators/{persistent.d.ts → persistent/persistent.d.ts} +5 -3
- package/types/core/decorators/{wait.d.ts → wait/wait.d.ts} +5 -3
- package/types/core/decorators/{watch.d.ts → watch/watch.d.ts} +7 -2
- package/types/core/{dom.d.ts → dom/dom.d.ts} +7 -2
- package/types/core/dom/index.d.ts +9 -0
- package/types/core/{events → event-emitter}/event-emitter.d.ts +11 -11
- package/types/core/{events → event-emitter}/index.d.ts +4 -1
- package/types/core/{events → event-emitter}/observe-object.d.ts +7 -4
- package/types/core/{events → event-emitter}/store.d.ts +4 -1
- package/types/core/global.d.ts +6 -3
- package/types/core/helpers/array/as-array.d.ts +1 -1
- package/types/core/helpers/array/index.d.ts +4 -1
- package/types/core/helpers/array/split-array.d.ts +1 -1
- package/types/core/helpers/array/to-array.d.ts +1 -1
- package/types/core/helpers/async/index.d.ts +4 -1
- package/types/core/helpers/async/set-timeout.d.ts +4 -1
- package/types/core/helpers/checker/has-browser-color-picker.d.ts +4 -1
- package/types/core/helpers/checker/index.d.ts +4 -1
- package/types/core/helpers/checker/is-array.d.ts +4 -1
- package/types/core/helpers/checker/is-boolean.d.ts +4 -1
- package/types/core/helpers/checker/is-equal.d.ts +1 -1
- package/types/core/helpers/checker/is-function.d.ts +4 -1
- package/types/core/helpers/checker/is-html-from-word.d.ts +4 -1
- package/types/core/helpers/checker/is-html.d.ts +1 -1
- package/types/core/helpers/checker/is-imp-interface.d.ts +4 -1
- package/types/core/helpers/checker/is-int.d.ts +1 -1
- package/types/core/helpers/checker/is-jodit-object.d.ts +4 -1
- package/types/core/helpers/checker/is-license.d.ts +1 -1
- package/types/core/helpers/checker/is-native-function.d.ts +4 -1
- package/types/core/helpers/checker/is-number.d.ts +4 -1
- package/types/core/helpers/checker/is-numeric.d.ts +1 -1
- package/types/core/helpers/checker/is-plain-object.d.ts +4 -1
- package/types/core/helpers/checker/is-promise.d.ts +4 -1
- package/types/core/helpers/checker/is-string.d.ts +4 -1
- package/types/core/helpers/checker/is-url.d.ts +4 -1
- package/types/core/helpers/checker/is-valid-name.d.ts +4 -1
- package/types/core/helpers/checker/is-void.d.ts +4 -1
- package/types/core/helpers/checker/is-window.d.ts +4 -1
- package/types/core/helpers/color/color-to-hex.d.ts +4 -1
- package/types/core/helpers/color/index.d.ts +4 -1
- package/types/core/helpers/html/apply-styles.d.ts +1 -1
- package/types/core/helpers/html/clean-from-word.d.ts +1 -1
- package/types/core/helpers/html/htmlspecialchars.d.ts +4 -1
- package/types/core/helpers/html/index.d.ts +4 -1
- package/types/core/helpers/html/nl2br.d.ts +4 -1
- package/types/core/helpers/html/strip-tags.d.ts +1 -1
- package/types/core/helpers/index.d.ts +6 -19
- package/types/core/helpers/normalize/index.d.ts +4 -1
- package/types/core/helpers/normalize/normalize-color.d.ts +1 -1
- package/types/core/helpers/normalize/normalize-css-value.d.ts +1 -1
- package/types/core/helpers/normalize/normalize-key-aliases.d.ts +1 -1
- package/types/core/helpers/normalize/normalize-license.d.ts +4 -1
- package/types/core/helpers/normalize/normalize-node.d.ts +1 -1
- package/types/core/helpers/normalize/normalize-path.d.ts +1 -1
- package/types/core/helpers/normalize/normalize-relative-path.d.ts +4 -1
- package/types/core/helpers/normalize/normalize-size.d.ts +4 -1
- package/types/core/helpers/normalize/normalize-url.d.ts +4 -1
- package/types/core/helpers/size/get-content-width.d.ts +2 -2
- package/types/core/helpers/size/get-scroll-parent.d.ts +4 -1
- package/types/core/helpers/size/index.d.ts +4 -1
- package/types/core/helpers/size/inner-width.d.ts +4 -1
- package/types/core/helpers/size/object-size.d.ts +1 -1
- package/types/core/helpers/size/offset.d.ts +4 -1
- package/types/core/helpers/size/position.d.ts +4 -1
- package/types/core/helpers/string/camel-case.d.ts +4 -1
- package/types/core/helpers/string/i18n.d.ts +4 -1
- package/types/core/helpers/string/index.d.ts +4 -1
- package/types/core/helpers/string/kebab-case.d.ts +4 -1
- package/types/core/helpers/string/stringify.d.ts +1 -1
- package/types/core/helpers/string/trim.d.ts +1 -1
- package/types/core/helpers/string/ucfirst.d.ts +4 -1
- package/types/core/helpers/{append-script.d.ts → utils/append-script.d.ts} +5 -2
- package/types/core/helpers/{browser.d.ts → utils/browser.d.ts} +4 -1
- package/types/core/helpers/{build-query.d.ts → utils/build-query.d.ts} +5 -2
- package/types/core/helpers/{complete-url.d.ts → utils/complete-url.d.ts} +4 -1
- package/types/core/helpers/{config-proto.d.ts → utils/config-proto.d.ts} +5 -2
- package/types/core/helpers/{convert-media-url-to-video-embed.d.ts → utils/convert-media-url-to-video-embed.d.ts} +1 -1
- package/types/core/helpers/{css.d.ts → utils/css.d.ts} +5 -2
- package/types/core/helpers/{ctrl-key.d.ts → utils/ctrl-key.d.ts} +4 -1
- package/types/core/helpers/{data-bind.d.ts → utils/data-bind.d.ts} +5 -2
- package/types/core/helpers/{default-language.d.ts → utils/default-language.d.ts} +1 -1
- package/types/core/helpers/{type.d.ts → utils/error.d.ts} +4 -1
- package/types/core/helpers/{extend.d.ts → utils/extend.d.ts} +1 -1
- package/types/core/helpers/utils/get-class-name.d.ts +4 -1
- package/types/core/helpers/utils/get.d.ts +4 -1
- package/types/core/helpers/{human-size-to-bytes.d.ts → utils/human-size-to-bytes.d.ts} +4 -1
- package/types/core/helpers/utils/index.d.ts +21 -1
- package/types/core/helpers/utils/mark-deprecated.d.ts +4 -1
- package/types/core/helpers/{parse-query.d.ts → utils/parse-query.d.ts} +5 -2
- package/types/core/helpers/{scroll-into-view.d.ts → utils/scroll-into-view.d.ts} +4 -1
- package/types/core/helpers/{selector.d.ts → utils/selector.d.ts} +5 -2
- package/types/core/helpers/utils/set.d.ts +4 -1
- package/types/core/helpers/utils/stack.d.ts +4 -1
- package/types/core/helpers/utils/utils.d.ts +4 -1
- package/types/core/helpers/{val.d.ts → utils/val.d.ts} +4 -1
- package/types/core/plugin/index.d.ts +10 -0
- package/types/core/{plugin-system.d.ts → plugin/plugin-system.d.ts} +5 -2
- package/types/core/{plugin.d.ts → plugin/plugin.d.ts} +8 -3
- package/types/core/request/ajax.d.ts +7 -2
- package/types/core/request/config.d.ts +4 -1
- package/types/core/request/index.d.ts +4 -1
- package/types/core/request/response.d.ts +4 -1
- package/types/core/selection/index.d.ts +4 -1
- package/types/core/selection/select.d.ts +8 -3
- package/types/core/selection/style/api/element-has-same-style.d.ts +2 -1
- package/types/core/selection/style/api/extract.d.ts +2 -1
- package/types/core/selection/style/api/finite-state-machine.d.ts +1 -1
- package/types/core/selection/style/api/get-suit-child.d.ts +2 -1
- package/types/core/selection/style/api/get-suit-parent.d.ts +2 -1
- package/types/core/selection/style/api/index.d.ts +1 -1
- package/types/core/selection/style/api/is-inside-invisible-element.d.ts +2 -1
- package/types/core/selection/style/api/is-normal-node.d.ts +2 -1
- package/types/core/selection/style/api/is-suit-element.d.ts +3 -2
- package/types/core/selection/style/api/toggle/toggle-css.d.ts +2 -1
- package/types/core/selection/style/api/toggle/toggle-ordered-list.d.ts +2 -1
- package/types/core/selection/style/api/toggle-commit-styles.d.ts +2 -1
- package/types/core/selection/style/api/unwrap-children.d.ts +2 -1
- package/types/core/selection/style/api/wrap-and-commit-style.d.ts +2 -1
- package/types/core/selection/style/api/wrap-ordered-list.d.ts +2 -1
- package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +2 -1
- package/types/core/selection/style/apply-style.d.ts +4 -1
- package/types/core/selection/style/commit-style.d.ts +4 -1
- package/types/core/storage/engines/local-storage-provider.d.ts +4 -1
- package/types/core/storage/engines/memory-storage-provider.d.ts +4 -1
- package/types/core/storage/index.d.ts +4 -1
- package/types/core/storage/storage.d.ts +6 -1
- package/types/core/traits/elms.d.ts +4 -1
- package/types/core/traits/index.d.ts +4 -1
- package/types/core/traits/mods.d.ts +4 -1
- package/types/core/ui/button/button/button.d.ts +4 -1
- package/types/core/ui/button/group/group.d.ts +5 -2
- package/types/core/ui/button/index.d.ts +6 -1
- package/types/core/ui/element.d.ts +4 -1
- package/types/core/ui/form/block/block.d.ts +5 -2
- package/types/core/ui/form/form.d.ts +7 -2
- package/types/core/ui/form/index.d.ts +4 -1
- package/types/core/ui/form/inputs/area/area.d.ts +4 -1
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +4 -1
- package/types/core/ui/form/inputs/file/file.d.ts +4 -1
- package/types/core/ui/form/inputs/index.d.ts +4 -1
- package/types/core/ui/form/inputs/input/input.d.ts +4 -1
- package/types/core/ui/form/inputs/select/select.d.ts +4 -1
- package/types/core/ui/form/validators/index.d.ts +4 -1
- package/types/core/ui/form/validators/input.d.ts +4 -1
- package/types/core/ui/form/validators/select.d.ts +4 -1
- package/types/core/ui/{list → group}/group.d.ts +6 -1
- package/types/core/ui/{list → group}/index.d.ts +4 -1
- package/types/core/ui/{list → group}/list.d.ts +4 -1
- package/types/core/ui/{list → group}/separator.d.ts +4 -1
- package/types/core/ui/{list → group}/spacer.d.ts +4 -1
- package/types/core/ui/helpers/buttons.d.ts +4 -1
- package/types/core/ui/helpers/get-control-type.d.ts +4 -1
- package/types/core/ui/helpers/get-strong-control-types.d.ts +4 -1
- package/types/core/ui/icon.d.ts +4 -1
- package/types/core/ui/index.d.ts +7 -2
- package/types/core/ui/popup/index.d.ts +4 -1
- package/types/core/ui/popup/popup.d.ts +6 -1
- package/types/core/ui/progress-bar/progress-bar.d.ts +6 -1
- package/types/core/view/view-with-toolbar.d.ts +4 -1
- package/types/core/view/view.d.ts +9 -4
- package/types/index.d.ts +6 -1
- package/types/jodit.d.ts +6 -1
- package/types/langs/index.d.ts +6 -1
- package/types/modules/context-menu/context-menu.d.ts +6 -1
- package/types/modules/dialog/alert.d.ts +4 -1
- package/types/modules/dialog/confirm.d.ts +4 -1
- package/types/modules/dialog/dialog.d.ts +4 -1
- package/types/modules/dialog/index.d.ts +6 -1
- package/types/modules/dialog/prompt.d.ts +4 -1
- package/types/modules/file-browser/builders/context-menu.d.ts +6 -3
- package/types/modules/file-browser/builders/elements-map.d.ts +18 -0
- package/types/modules/file-browser/builders/item.d.ts +4 -1
- package/types/modules/file-browser/config.d.ts +1 -1
- package/types/modules/file-browser/data-provider.d.ts +6 -3
- package/types/modules/file-browser/factories.d.ts +4 -1
- package/types/modules/file-browser/fetch/delete-file.d.ts +13 -0
- package/types/modules/file-browser/fetch/load-items.d.ts +13 -0
- package/types/modules/file-browser/fetch/load-tree.d.ts +13 -0
- package/types/modules/file-browser/file-browser.d.ts +12 -13
- package/types/modules/file-browser/index.d.ts +11 -0
- package/types/modules/file-browser/listeners/native-listeners.d.ts +6 -4
- package/types/modules/file-browser/listeners/self-listeners.d.ts +6 -3
- package/types/modules/file-browser/listeners/state-listeners.d.ts +6 -3
- package/types/modules/file-browser/ui/files/files.d.ts +1 -1
- package/types/modules/file-browser/ui/index.d.ts +4 -1
- package/types/modules/file-browser/ui/tree/tree.d.ts +1 -1
- package/types/modules/image-editor/image-editor.d.ts +13 -11
- package/types/modules/image-editor/templates/form.d.ts +4 -1
- package/types/modules/index.d.ts +11 -6
- package/types/modules/observer/command.d.ts +4 -1
- package/types/modules/observer/observer.d.ts +6 -1
- package/types/modules/observer/snapshot.d.ts +4 -1
- package/types/modules/observer/stack.d.ts +4 -1
- package/types/modules/status-bar/status-bar.d.ts +6 -1
- package/types/modules/{table.d.ts → table/table.d.ts} +7 -7
- package/types/modules/toolbar/button/button.d.ts +6 -1
- package/types/modules/toolbar/button/content.d.ts +4 -1
- package/types/modules/toolbar/button/index.d.ts +4 -1
- package/types/modules/toolbar/collection/collection.d.ts +6 -1
- package/types/modules/toolbar/collection/editor-collection.d.ts +4 -1
- package/types/modules/toolbar/factory.d.ts +6 -1
- package/types/modules/uploader/uploader.d.ts +9 -4
- package/types/modules/widget/color-picker/color-picker.d.ts +6 -1
- package/types/modules/widget/file-selector/file-selector.d.ts +6 -1
- package/types/modules/widget/index.d.ts +6 -1
- package/types/modules/widget/tabs/tabs.d.ts +6 -1
- package/types/plugins/about/about.d.ts +4 -1
- package/types/plugins/add-new-line/add-new-line.d.ts +12 -1
- package/types/plugins/{bold.d.ts → bold/bold.d.ts} +6 -3
- package/types/plugins/class-span/class-span.d.ts +4 -1
- package/types/plugins/clipboard/clipboard.d.ts +4 -1
- package/types/plugins/clipboard/config.d.ts +6 -1
- package/types/plugins/clipboard/copy-format.d.ts +4 -1
- package/types/plugins/clipboard/drag-and-drop-element.d.ts +1 -1
- package/types/plugins/clipboard/drag-and-drop.d.ts +1 -1
- package/types/plugins/clipboard/index.d.ts +4 -1
- package/types/plugins/clipboard/paste/helpers.d.ts +4 -1
- package/types/plugins/clipboard/paste/paste.d.ts +7 -8
- package/types/plugins/clipboard/paste-storage/paste-storage.d.ts +4 -1
- package/types/plugins/{color.d.ts → color/color.d.ts} +5 -2
- package/types/plugins/error-messages/error-messages.d.ts +4 -1
- package/types/plugins/fix/clean-html.d.ts +5 -2
- package/types/plugins/fix/wrap-text-nodes.d.ts +4 -1
- package/types/plugins/{focus.d.ts → focus/focus.d.ts} +8 -6
- package/types/plugins/{font.d.ts → font/font.d.ts} +6 -3
- package/types/plugins/{format-block.d.ts → format-block/format-block.d.ts} +7 -2
- package/types/plugins/fullsize/fullsize.d.ts +4 -1
- package/types/plugins/{iframe.d.ts → iframe/iframe.d.ts} +6 -3
- package/types/plugins/image/helpers.d.ts +1 -1
- package/types/plugins/image/image-processor.d.ts +4 -1
- package/types/plugins/image/image-properties/image-properties.d.ts +4 -1
- package/types/plugins/image/image-properties/templates/form.d.ts +4 -1
- package/types/plugins/image/image-properties/templates/index.d.ts +6 -3
- package/types/plugins/image/image-properties/templates/{mainTab.d.ts → main-tab.d.ts} +4 -1
- package/types/plugins/image/image-properties/templates/{positionTab.d.ts → position-tab.d.ts} +4 -1
- package/types/plugins/image/image.d.ts +4 -1
- package/types/plugins/image/index.d.ts +4 -1
- package/types/plugins/{indent.d.ts → indent/indent.d.ts} +6 -3
- package/types/plugins/index.d.ts +21 -16
- package/types/plugins/inline-popup/config/config.d.ts +4 -1
- package/types/plugins/inline-popup/inline-popup.d.ts +4 -1
- package/types/plugins/insert/hr.d.ts +4 -1
- package/types/plugins/insert/index.d.ts +4 -1
- package/types/plugins/{justify.d.ts → justify/justify.d.ts} +5 -2
- package/types/plugins/keyboard/backspace/backspace.d.ts +4 -1
- package/types/plugins/keyboard/backspace/cases/check-join-neighbors.d.ts +1 -1
- package/types/plugins/keyboard/backspace/cases/check-join-two-lists.d.ts +2 -1
- package/types/plugins/keyboard/backspace/cases/check-not-collapsed.d.ts +2 -1
- package/types/plugins/keyboard/backspace/cases/check-remove-char.d.ts +2 -1
- package/types/plugins/keyboard/backspace/cases/check-remove-content-not-editable.d.ts +3 -2
- package/types/plugins/keyboard/backspace/cases/check-remove-empty-neighbor.d.ts +2 -1
- package/types/plugins/keyboard/backspace/cases/check-remove-empty-parent.d.ts +3 -1
- package/types/plugins/keyboard/backspace/cases/check-remove-unbreakable-element.d.ts +3 -1
- package/types/plugins/keyboard/backspace/cases/check-table-cell.d.ts +3 -1
- package/types/plugins/keyboard/backspace/cases/check-unwrap-first-list-item.d.ts +3 -1
- package/types/plugins/keyboard/backspace/cases/index.d.ts +1 -1
- package/types/plugins/keyboard/backspace/config.d.ts +1 -1
- package/types/plugins/keyboard/enter.d.ts +4 -1
- package/types/plugins/keyboard/helpers.d.ts +4 -1
- package/types/plugins/keyboard/hotkeys.d.ts +4 -1
- package/types/plugins/keyboard/key-arrow-outside.d.ts +4 -1
- package/types/plugins/{limit.d.ts → limit/limit.d.ts} +7 -4
- package/types/plugins/link/link.d.ts +4 -1
- package/types/plugins/link/template.d.ts +4 -1
- package/types/plugins/media/file.d.ts +4 -1
- package/types/plugins/media/index.d.ts +4 -1
- package/types/plugins/media/media.d.ts +4 -1
- package/types/plugins/media/video/config.d.ts +1 -1
- package/types/plugins/media/video/index.d.ts +4 -1
- package/types/plugins/{mobile.d.ts → mobile/mobile.d.ts} +6 -3
- package/types/plugins/{ordered-list.d.ts → ordered-list/ordered-list.d.ts} +6 -3
- package/types/plugins/placeholder/placeholder.d.ts +4 -1
- package/types/plugins/{powered-by-jodit.d.ts → powered-by-jodit/powered-by-jodit.d.ts} +9 -3
- package/types/plugins/print/index.d.ts +4 -1
- package/types/plugins/print/preview.d.ts +4 -1
- package/types/plugins/print/print.d.ts +4 -1
- package/types/plugins/{redo-undo.d.ts → redo-undo/redo-undo.d.ts} +6 -3
- package/types/plugins/resizer/resizer.d.ts +6 -3
- package/types/plugins/search/search.d.ts +4 -1
- package/types/plugins/{select.d.ts → select/select.d.ts} +6 -3
- package/types/plugins/size/config.d.ts +5 -0
- package/types/plugins/size/index.d.ts +4 -1
- package/types/plugins/size/resize-handler.d.ts +4 -1
- package/types/plugins/size/size.d.ts +4 -1
- package/types/plugins/source/config.d.ts +16 -3
- package/types/plugins/source/const.d.ts +4 -1
- package/types/plugins/source/editor/engines/ace.d.ts +4 -1
- package/types/plugins/source/editor/engines/area.d.ts +4 -1
- package/types/plugins/source/editor/engines/index.d.ts +4 -1
- package/types/plugins/source/editor/factory.d.ts +5 -2
- package/types/plugins/source/editor/sourceEditor.d.ts +4 -1
- package/types/plugins/source/index.d.ts +6 -1
- package/types/plugins/source/source.d.ts +4 -1
- package/types/plugins/{stat.d.ts → stat/stat.d.ts} +3 -3
- package/types/plugins/sticky/sticky.d.ts +4 -1
- package/types/plugins/symbols/config.d.ts +1 -1
- package/types/plugins/symbols/symbols.d.ts +4 -1
- package/types/plugins/table/config.d.ts +1 -1
- package/types/plugins/table/index.d.ts +4 -1
- package/types/plugins/table/resize-cells.d.ts +4 -1
- package/types/plugins/table/select-cells.d.ts +4 -1
- package/types/plugins/table/table-keyboard-navigation.d.ts +4 -1
- package/types/plugins/table/table.d.ts +4 -1
- package/types/plugins/tooltip/tooltip.d.ts +4 -1
- package/types/plugins/xpath/xpath.d.ts +4 -1
- package/types/styles/icons/index.d.ts +6 -1
- package/types/types/core.d.ts +4 -1
- package/types/types/storage.d.ts +4 -1
- package/types/types/types/ajax.d.ts +11 -7
- package/types/types/types/async.d.ts +5 -1
- package/types/types/types/context.d.ts +5 -1
- package/types/types/types/core.ts +5 -1
- package/types/types/types/create.d.ts +5 -1
- package/types/types/types/dialog.d.ts +5 -1
- package/types/types/types/events.d.ts +12 -8
- package/types/types/types/file-browser.d.ts +12 -5
- package/types/types/types/form.d.ts +5 -1
- package/types/types/types/index.d.ts +6 -2
- package/types/types/types/jodit.d.ts +5 -1
- package/types/types/types/{observe.d.ts → observer.d.ts} +7 -5
- package/types/types/types/plugin.d.ts +5 -1
- package/types/types/types/popup.d.ts +5 -1
- package/types/types/types/select.d.ts +5 -1
- package/types/types/types/source.d.ts +5 -1
- package/types/types/types/storage.ts +5 -1
- package/types/types/types/style.d.ts +5 -1
- package/types/types/types/toolbar.d.ts +5 -1
- package/types/types/types/traits.d.ts +5 -1
- package/types/types/types/types.d.ts +5 -1
- package/types/types/types/ui.d.ts +5 -1
- package/types/types/types/uploader.d.ts +5 -3
- package/types/types/types/view.d.ts +5 -1
- package/src/core/decorators/spy.ts +0 -55
- package/src/core/helpers/each.ts +0 -61
- package/types/core/helpers/each.d.ts +0 -20
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { IStyle, StyleValue } from '../../../types';
|
|
12
|
+
import { isPlainObject, isNumeric, isVoid, isBoolean } from '../checker/';
|
|
13
|
+
import { normalizeCssValue } from '../normalize/';
|
|
14
|
+
import { camelCase, kebabCase } from '../string/';
|
|
11
15
|
|
|
12
16
|
export function css(
|
|
13
17
|
element: HTMLElement,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
/**
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { IEventEmitter, IViewComponent, Nullable } from '../../../types';
|
|
12
|
+
import { ViewComponent } from '../../component';
|
|
13
|
+
import { isViewObject } from '../checker';
|
|
10
14
|
|
|
11
15
|
const store = new WeakMap();
|
|
12
16
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { isString } from '../checker';
|
|
8
12
|
|
|
9
13
|
/**
|
|
10
14
|
* Try define user language
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
/**
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { stringify } from '../string/stringify';
|
|
8
12
|
|
|
9
13
|
export function isAtom(obj: unknown): boolean {
|
|
10
14
|
return obj && (obj as any).isAtom;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
import type { IDictionary } from '../../../types';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
import type { IDictionary, Nullable } from '../../../types';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
/**
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
export * from './mark-deprecated';
|
|
@@ -10,3 +14,20 @@ export * from './get';
|
|
|
10
14
|
export * from './set';
|
|
11
15
|
export * from './get-class-name';
|
|
12
16
|
export * from './stack';
|
|
17
|
+
export * from './append-script';
|
|
18
|
+
export * from './browser';
|
|
19
|
+
export * from './build-query';
|
|
20
|
+
export * from './complete-url';
|
|
21
|
+
export * from './config-proto';
|
|
22
|
+
export * from './convert-media-url-to-video-embed';
|
|
23
|
+
export * from './css';
|
|
24
|
+
export * from './ctrl-key';
|
|
25
|
+
export * from './data-bind';
|
|
26
|
+
export * from './default-language';
|
|
27
|
+
export * from './extend';
|
|
28
|
+
export * from './human-size-to-bytes';
|
|
29
|
+
export * from './parse-query';
|
|
30
|
+
export * from './scroll-into-view';
|
|
31
|
+
export * from './selector';
|
|
32
|
+
export * from './error';
|
|
33
|
+
export * from './val';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
/**
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { IDictionary } from '../../../types';
|
|
8
12
|
|
|
9
13
|
/**
|
|
10
14
|
* Parse query string
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
export const inView = (
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
import type {
|
|
@@ -9,15 +13,15 @@ import type {
|
|
|
9
13
|
IDictionary,
|
|
10
14
|
IUIElement,
|
|
11
15
|
Nullable
|
|
12
|
-
} from '
|
|
13
|
-
import { IS_IE } from '
|
|
14
|
-
import { isString } from '
|
|
16
|
+
} from '../../../types/';
|
|
17
|
+
import { IS_IE } from '../../constants';
|
|
18
|
+
import { isString } from '../checker';
|
|
15
19
|
import { attr } from './utils';
|
|
16
|
-
import { error } from './
|
|
17
|
-
import { Dom } from '
|
|
18
|
-
import { camelCase } from '
|
|
19
|
-
import { toArray } from '
|
|
20
|
-
import { UIElement } from '
|
|
20
|
+
import { error } from './error';
|
|
21
|
+
import { Dom } from '../../dom';
|
|
22
|
+
import { camelCase } from '../string';
|
|
23
|
+
import { toArray } from '../array';
|
|
24
|
+
import { UIElement } from '../../ui';
|
|
21
25
|
|
|
22
26
|
let temp = 1;
|
|
23
27
|
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
import type { IDictionary } from '../../../types';
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
9
|
+
*/
|
|
10
|
+
|
|
6
11
|
import type { CanUndef } from '../../../types';
|
|
7
12
|
|
|
8
13
|
export class LimitedStack<T> {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
import type {
|
|
@@ -16,10 +20,10 @@ import type {
|
|
|
16
20
|
import { isFunction } from '../checker/is-function';
|
|
17
21
|
import { isPromise } from '../checker/is-promise';
|
|
18
22
|
import { get } from './get';
|
|
19
|
-
import { dataBind } from '
|
|
23
|
+
import { dataBind } from './data-bind';
|
|
20
24
|
import { isVoid } from '../checker/is-void';
|
|
21
25
|
import { isPlainObject, isString } from '../checker';
|
|
22
|
-
import { css } from '
|
|
26
|
+
import { css } from './css';
|
|
23
27
|
import { CamelCaseToKebabCase } from '../string';
|
|
24
28
|
|
|
25
29
|
/**
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module helpers/utils
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
export const val = (
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Jodit plugins are designed to extend the basic functionality of the editor.
|
|
2
|
+
There are built-in plugins, without which the editor will not work correctly. There are plugins that add completely new functionality.
|
|
3
|
+
You can write your own plugin that will either change the current behavior of the editor or add a new function.
|
|
4
|
+
|
|
5
|
+
Plugins can be both simple functions and complex classes.
|
|
6
|
+
|
|
7
|
+
In the simplest case, it's just a function that receives a Jodit instance as input.
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
Jodit.plugins.add('alertMyId', function (jodit) {
|
|
11
|
+
alert(jodit.id);
|
|
12
|
+
});
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The moment you create an instance of Jodit, all plugins are initialized.
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const editor = Jodit.make('#editorId'); // alert('editorId')
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This is usually not what you expect. You probably want the plugin to take action on certain events.
|
|
22
|
+
The [EventEmiter](https://github.com/xdan/jodit/blob/master/src/types/events.d.ts#L9) editor will help you with this.
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
Jodit.plugins.add('keyLogger', function (jodit) {
|
|
26
|
+
jodit.events.on('keydown', (e) => {
|
|
27
|
+
sendAnalytics('keydown', e.key);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
As mentioned above, plugins can be more complex than just a function. A plugin can be a class:
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
class resizeEditor {
|
|
36
|
+
hasStyle = true;
|
|
37
|
+
|
|
38
|
+
buttons = [
|
|
39
|
+
{
|
|
40
|
+
name: 'custom',
|
|
41
|
+
group: 'other'
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
requires = ['enter', 'drag-and-drop'];
|
|
46
|
+
|
|
47
|
+
init(jodit: IJodit): void {
|
|
48
|
+
jodit.events.on('afterInit', () => {
|
|
49
|
+
Jodit.ns.Helpers.css(jodit.editor, {
|
|
50
|
+
width: 400
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
destruct() {
|
|
56
|
+
Jodit.ns.Helpers.css(this.jodit.editor, {
|
|
57
|
+
width: null
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
Jodit.plugins.add('resizeEditor', resizeEditor);
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### hasStyle
|
|
66
|
+
|
|
67
|
+
- Type: boolean
|
|
68
|
+
- Default: false
|
|
69
|
+
|
|
70
|
+
Jodit will try to load the styles along the same path as the plugin is loaded.
|
|
71
|
+
|
|
72
|
+
### buttons
|
|
73
|
+
|
|
74
|
+
- Type: Array<IPluginButton>
|
|
75
|
+
- Default: `[]`
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
export interface IPluginButton {
|
|
79
|
+
name: string;
|
|
80
|
+
group?: ButtonGroup;
|
|
81
|
+
position?: number;
|
|
82
|
+
options?: IControlType;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type ButtonGroup =
|
|
86
|
+
| string
|
|
87
|
+
| 'source'
|
|
88
|
+
| 'font-style'
|
|
89
|
+
| 'script'
|
|
90
|
+
| 'list'
|
|
91
|
+
| 'indent'
|
|
92
|
+
| 'font'
|
|
93
|
+
| 'color'
|
|
94
|
+
| 'media'
|
|
95
|
+
| 'state'
|
|
96
|
+
| 'clipboard'
|
|
97
|
+
| 'insert'
|
|
98
|
+
| 'history'
|
|
99
|
+
| 'search'
|
|
100
|
+
| 'other'
|
|
101
|
+
| 'info';
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Buttons to be automatically added to the editor's button groups.
|
|
105
|
+
Those. if the plugin is connected, the button will appear in the list, if not connected, it will disappear.
|
|
106
|
+
|
|
107
|
+
```js
|
|
108
|
+
Jodit.defaultOptions.controls.insertTime = {
|
|
109
|
+
icon: require('./icon.svg'),
|
|
110
|
+
tooltip: 'Insert Time',
|
|
111
|
+
exec: (editor: IJodit) => {
|
|
112
|
+
editor.s.insertHTML(new Date().toTimeString());
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
class insertTimePlugin {
|
|
117
|
+
buttons = [
|
|
118
|
+
{
|
|
119
|
+
name: 'insertTime',
|
|
120
|
+
group: 'insert'
|
|
121
|
+
}
|
|
122
|
+
];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
Jodit.plugins.add('insertTimePlugin', insertTimePlugin);
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### requires
|
|
129
|
+
|
|
130
|
+
- Type: Array<string>
|
|
131
|
+
- Default: []
|
|
132
|
+
|
|
133
|
+
If your plugin depends on other plugins, then it must be initialized after them.
|
|
@@ -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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module plugin
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export * from './plugin-system';
|
|
12
|
+
export * from './plugin';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module plugin
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
import type {
|
|
@@ -14,7 +18,7 @@ import type {
|
|
|
14
18
|
PluginType,
|
|
15
19
|
CanPromise,
|
|
16
20
|
CanUndef
|
|
17
|
-
} from '
|
|
21
|
+
} from '../../types';
|
|
18
22
|
|
|
19
23
|
import {
|
|
20
24
|
isInitable,
|
|
@@ -27,7 +31,7 @@ import {
|
|
|
27
31
|
kebabCase,
|
|
28
32
|
callPromise,
|
|
29
33
|
isArray
|
|
30
|
-
} from '
|
|
34
|
+
} from '../helpers';
|
|
31
35
|
|
|
32
36
|
/**
|
|
33
37
|
* Jodit plugin system
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/**
|
|
8
|
+
* [[include:core/plugin/README.md]]
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
* @module plugin
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { IJodit, IPlugin, IViewBased } from '../../types';
|
|
14
|
+
import { ViewComponent, STATUSES } from '../component';
|
|
15
|
+
import { autobind } from '../decorators';
|
|
16
|
+
import { isJoditObject } from '../helpers';
|
|
11
17
|
|
|
12
18
|
export abstract class Plugin<T extends IViewBased = IJodit>
|
|
13
19
|
extends ViewComponent<T>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
The module is responsible for sending requests over the network:
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
const ajax = new Jodit.modules.Ajax(jodit, {
|
|
5
|
+
url: 'https://xdsoft.net'
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
ajax.send().then((resp) => console.log(resp.text()));
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The second argument can be settings [[AjaxOptions]]
|
package/src/core/request/ajax.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* [[include:core/request/README.md]]
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
* @module request
|
|
5
11
|
*/
|
|
6
12
|
|
|
7
13
|
import type {
|
|
@@ -30,6 +36,17 @@ import { Response } from './response';
|
|
|
30
36
|
import './config';
|
|
31
37
|
|
|
32
38
|
export class Ajax<T extends object = any> implements IAjax<T> {
|
|
39
|
+
constructor(readonly jodit: IViewBased, options: Partial<AjaxOptions>) {
|
|
40
|
+
this.options = ConfigProto(
|
|
41
|
+
options || {},
|
|
42
|
+
Config.prototype.defaultAjaxOptions
|
|
43
|
+
) as AjaxOptions;
|
|
44
|
+
|
|
45
|
+
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
46
|
+
|
|
47
|
+
jodit && jodit.e && jodit.e.on('beforeDestruct', () => this.destruct());
|
|
48
|
+
}
|
|
49
|
+
|
|
33
50
|
static log: IRequest[] = [];
|
|
34
51
|
|
|
35
52
|
private readonly xhr!: XMLHttpRequest;
|
|
@@ -195,17 +212,6 @@ export class Ajax<T extends object = any> implements IAjax<T> {
|
|
|
195
212
|
return request;
|
|
196
213
|
}
|
|
197
214
|
|
|
198
|
-
constructor(readonly jodit: IViewBased, options: Partial<AjaxOptions>) {
|
|
199
|
-
this.options = ConfigProto(
|
|
200
|
-
options || {},
|
|
201
|
-
Config.prototype.defaultAjaxOptions
|
|
202
|
-
) as AjaxOptions;
|
|
203
|
-
|
|
204
|
-
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
205
|
-
|
|
206
|
-
jodit && jodit.e && jodit.e.on('beforeDestruct', () => this.destruct());
|
|
207
|
-
}
|
|
208
|
-
|
|
209
215
|
destruct(): void {
|
|
210
216
|
if (this.activated && !this.resolved) {
|
|
211
217
|
this.abort();
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module request
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
import type { AjaxOptions } from '../../types';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module request
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
export * from './ajax';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-
|
|
4
|
+
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @module request
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
11
|
import type { IRequest, IResponse } from '../../types';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
A module for working with the cursor, text selections, processing selections, inserting html in place of the cursor.
|
|
2
|
+
most obvious use case
|
|
3
|
+
|
|
4
|
+
## How to insert HTML into Jodit
|
|
5
|
+
|
|
6
|
+
There is a family of methods for this.[[Select.prototype.insertHTML]], [[Select.prototype.insertNode]], [[Select.prototype.insertImage]].
|
|
7
|
+
|
|
8
|
+
```js
|
|
9
|
+
const jodit = Jodit.make('#editor');
|
|
10
|
+
jodit.selection.insertHTML('<span>some html</span>')
|
|
11
|
+
jodit.selection.insertNode(document.createElement('div')) // don't do that =) see [[core/create]]
|
|
12
|
+
jodit.selection.insertImage('https://somesite.com/image.png')
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How to set focus in Jodit editor
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const jodit = Jodit.make('#editor');
|
|
19
|
+
jodit.selection.focus()
|
|
20
|
+
```
|