jodit-pro 4.6.10 → 4.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +1275 -1328
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +65 -65
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +110 -110
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +7 -7
- package/es2015/plugins/change-case/change-case.min.js +2 -2
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +37 -37
- package/es2015/plugins/color-picker/color-picker.min.js +2 -2
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +47 -47
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +18 -18
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +452 -452
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +265 -265
- package/es2015/plugins/google-maps/google-maps.min.js +2 -2
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +2 -2
- package/es2015/plugins/highlight-signature/highlight-signature.js +23 -23
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +40 -40
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +60 -60
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +26 -26
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +27 -27
- package/es2015/plugins/page-break/page-break.min.js +2 -2
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +51 -51
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2015/plugins/show-blocks/show-blocks.js +27 -27
- package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +62 -62
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +62 -62
- package/es2015/plugins/translate/translate.min.js +2 -2
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +50 -50
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +1120 -1118
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +64 -64
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +110 -110
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.js +7 -7
- package/es2018/plugins/change-case/change-case.min.js +2 -2
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +37 -37
- package/es2018/plugins/color-picker/color-picker.min.js +2 -2
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +45 -45
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +446 -446
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +262 -262
- package/es2018/plugins/google-maps/google-maps.min.js +2 -2
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +2 -2
- package/es2018/plugins/highlight-signature/highlight-signature.js +23 -23
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +40 -40
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +60 -60
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.js +26 -26
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.js +27 -27
- package/es2018/plugins/page-break/page-break.min.js +2 -2
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +49 -49
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2018/plugins/show-blocks/show-blocks.js +27 -27
- package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +62 -62
- package/es2018/plugins/todo-list/todo-list.min.js +2 -2
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +61 -61
- package/es2018/plugins/translate/translate.min.js +2 -2
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +50 -50
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +1120 -1118
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +64 -64
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +110 -110
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +7 -7
- package/es2021/plugins/change-case/change-case.min.js +2 -2
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +37 -37
- package/es2021/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +45 -45
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +446 -446
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +262 -262
- package/es2021/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +2 -2
- package/es2021/plugins/highlight-signature/highlight-signature.js +23 -23
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +40 -40
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +60 -60
- package/es2021/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.js +26 -26
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +27 -27
- package/es2021/plugins/page-break/page-break.min.js +2 -2
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +49 -49
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021/plugins/show-blocks/show-blocks.js +27 -27
- package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +62 -62
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +61 -61
- package/es2021/plugins/translate/translate.min.js +2 -2
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +50 -50
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +1120 -1118
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +64 -64
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +110 -110
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +7 -7
- package/es2021.en/plugins/change-case/change-case.min.js +2 -2
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +37 -37
- package/es2021.en/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +45 -45
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +446 -446
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +262 -262
- package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +2 -2
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +23 -23
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +40 -40
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +60 -60
- package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.js +26 -26
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +27 -27
- package/es2021.en/plugins/page-break/page-break.min.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +49 -49
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021.en/plugins/show-blocks/show-blocks.js +27 -27
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +62 -62
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +61 -61
- package/es2021.en/plugins/translate/translate.min.js +2 -2
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +50 -50
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1458 -1568
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +80 -80
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +137 -137
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +17 -17
- package/es5/plugins/change-case/change-case.min.js +2 -2
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +40 -40
- package/es5/plugins/color-picker/color-picker.min.js +2 -2
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +54 -54
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +21 -21
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +495 -495
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +299 -299
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +17 -17
- package/es5/plugins/google-search/google-search.min.js +2 -2
- package/es5/plugins/highlight-signature/highlight-signature.js +26 -26
- package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +43 -43
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +62 -62
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +28 -28
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +29 -29
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +55 -55
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es5/plugins/show-blocks/show-blocks.js +28 -28
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +64 -64
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +77 -77
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +65 -65
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/esm/index.js +1 -1
- package/esm/jodit-pro.js +1 -1
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/backup/backup.js +1 -1
- package/esm/plugins/backup/modules/store.js +1 -1
- package/esm/plugins/backup/ui/list.js +1 -1
- package/esm/plugins/button-generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.js +1 -1
- package/esm/plugins/button-generator/ui/form/form.js +1 -1
- package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/preview/preview.js +1 -1
- package/esm/plugins/change-case/change-case.js +1 -1
- package/esm/plugins/color-picker/ui/input/color-input.js +1 -1
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/emoji/emoji.js +1 -1
- package/esm/plugins/emoji/ui/emoji.js +1 -1
- package/esm/plugins/export-docs/export-docs.js +1 -1
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/finder.js +1 -1
- package/esm/plugins/finder/helpers/context-menu.js +1 -1
- package/esm/plugins/finder/helpers/helpers.js +1 -1
- package/esm/plugins/finder/helpers/loading-manager.js +1 -1
- package/esm/plugins/finder/helpers/persistent-store.js +1 -1
- package/esm/plugins/finder/helpers/state-manager.js +1 -1
- package/esm/plugins/finder/ui/folder/folder.js +1 -1
- package/esm/plugins/finder/ui/header/header.js +1 -1
- package/esm/plugins/finder/ui/item/item.js +1 -1
- package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
- package/esm/plugins/finder/ui/panel/panel.js +1 -1
- package/esm/plugins/finder/ui/preview/preview.js +1 -1
- package/esm/plugins/finder/ui/progress/progress.js +1 -1
- package/esm/plugins/finder/ui/settings/settings.js +1 -1
- package/esm/plugins/finder/ui/source/source.js +1 -1
- package/esm/plugins/finder/ui/sources/sources.js +1 -1
- package/esm/plugins/finder/ui/tree/tree.js +1 -1
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
- package/esm/plugins/google-maps/google-maps.js +1 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -1
- package/esm/plugins/google-maps/helpers/helpers.js +1 -1
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -1
- package/esm/plugins/google-maps/ui/editors/base.js +1 -1
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -1
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
- package/esm/plugins/highlight-signature/highlight-signature.js +1 -1
- package/esm/plugins/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
- package/esm/plugins/license/helpers/helpers.js +1 -1
- package/esm/plugins/license/license.js +1 -1
- package/esm/plugins/mobile-view/mobile-view.js +1 -1
- package/esm/plugins/page-break/page-break.js +1 -1
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-from-word/cases/clean-styles.js +1 -1
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -1
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
- package/esm/plugins/paste-from-word/cases/process-image.js +1 -1
- package/esm/plugins/paste-from-word/element/checkers.js +1 -1
- package/esm/plugins/paste-from-word/element/element.js +1 -1
- package/esm/plugins/paste-from-word/element/render.js +1 -1
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
- package/esm/plugins/paste-from-word/helpers/helpers.js +1 -1
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -1
- package/esm/plugins/show-blocks/show-blocks.js +1 -1
- package/esm/plugins/todo-list/config.js +1 -1
- package/esm/plugins/todo-list/todo-list.js +1 -1
- package/esm/plugins/translate/providers/google/google.js +1 -1
- package/esm/plugins/translate/translate.js +1 -1
- package/esm/plugins/translate/ui/list/list.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.6.
|
|
4
|
+
* Version: v4.6.12
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
"use strict";!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var f in t)("object"==typeof exports?exports:e)[f]=t[f]}}(self,
|
|
10
|
+
"use strict";!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var f in t)("object"==typeof exports?exports:e)[f]=t[f]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[504],{},function(e){return e(e.s=89377)}])});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.6.
|
|
4
|
+
* Version: v4.6.12
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -25,9 +25,9 @@ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).pus
|
|
|
25
25
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26
26
|
/* harmony export */ k: function() { return /* binding */ UIBackupItem; }
|
|
27
27
|
/* harmony export */ });
|
|
28
|
-
/* harmony import */ var
|
|
29
|
-
/* harmony import */ var
|
|
30
|
-
/* harmony import */ var
|
|
28
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
29
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
|
|
30
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67510);
|
|
31
31
|
/*!
|
|
32
32
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
33
33
|
* See LICENSE.md in the project root for license information.
|
|
@@ -38,12 +38,12 @@ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).pus
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
var UIBackupItem = /** @class */ (function (_super) {
|
|
41
|
-
(0,
|
|
41
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(UIBackupItem, _super);
|
|
42
42
|
function UIBackupItem(jodit, data) {
|
|
43
43
|
var _this = _super.call(this, jodit) || this;
|
|
44
44
|
_this.data = data;
|
|
45
45
|
_this.container.innerHTML = _this.formatDate(data.created);
|
|
46
|
-
(0,
|
|
46
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(_this.container, 'tabIndex', 0);
|
|
47
47
|
return _this;
|
|
48
48
|
}
|
|
49
49
|
/** @override */
|
|
@@ -52,8 +52,8 @@ var UIBackupItem = /** @class */ (function (_super) {
|
|
|
52
52
|
};
|
|
53
53
|
UIBackupItem.prototype.formatDate = function (timestamp) {
|
|
54
54
|
var now = new Date();
|
|
55
|
-
var date = (0,
|
|
56
|
-
if ((0,
|
|
55
|
+
var date = (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isString)(timestamp) ? new Date(timestamp) : timestamp, diff = (now.getTime() - date.getTime()) / 1000;
|
|
56
|
+
if ((0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(this.j.o.backup.formatDate)) {
|
|
57
57
|
return this.j.o.backup.formatDate(date);
|
|
58
58
|
}
|
|
59
59
|
if (diff < 0.2) {
|
|
@@ -74,7 +74,7 @@ var UIBackupItem = /** @class */ (function (_super) {
|
|
|
74
74
|
this.container.focus();
|
|
75
75
|
};
|
|
76
76
|
return UIBackupItem;
|
|
77
|
-
}(
|
|
77
|
+
}(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UIElement */ .D$));
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
@@ -87,10 +87,10 @@ var UIBackupItem = /** @class */ (function (_super) {
|
|
|
87
87
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
88
88
|
/* harmony export */ Y: function() { return /* binding */ UIBackupBox; }
|
|
89
89
|
/* harmony export */ });
|
|
90
|
-
/* harmony import */ var
|
|
91
|
-
/* harmony import */ var
|
|
92
|
-
/* harmony import */ var
|
|
93
|
-
/* harmony import */ var
|
|
90
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
91
|
+
/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27848);
|
|
92
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65478);
|
|
93
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
94
94
|
/*!
|
|
95
95
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
96
96
|
* See LICENSE.md in the project root for license information.
|
|
@@ -102,10 +102,10 @@ var UIBackupItem = /** @class */ (function (_super) {
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
var UIBackupBox = /** @class */ (function (_super) {
|
|
105
|
-
(0,
|
|
105
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(UIBackupBox, _super);
|
|
106
106
|
function UIBackupBox(jodit) {
|
|
107
107
|
var _this = _super.call(this, jodit) || this;
|
|
108
|
-
_this.list = new
|
|
108
|
+
_this.list = new _list__WEBPACK_IMPORTED_MODULE_1__/* .UIBackupList */ .n(_this.j);
|
|
109
109
|
_this.preview = _this.j.c.div(_this.getFullElName('preview'));
|
|
110
110
|
_this.container.appendChild(_this.list.container);
|
|
111
111
|
_this.container.appendChild(_this.preview);
|
|
@@ -147,17 +147,17 @@ var UIBackupBox = /** @class */ (function (_super) {
|
|
|
147
147
|
UIBackupBox.prototype.chooseSelected = function () {
|
|
148
148
|
this.onChooseItem(this.latestSelected);
|
|
149
149
|
};
|
|
150
|
-
(0,
|
|
151
|
-
|
|
150
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
151
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
152
152
|
], UIBackupBox.prototype, "onSelectItem", null);
|
|
153
|
-
(0,
|
|
154
|
-
|
|
153
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
154
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
155
155
|
], UIBackupBox.prototype, "onChooseItem", null);
|
|
156
|
-
UIBackupBox = (0,
|
|
157
|
-
|
|
156
|
+
UIBackupBox = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
157
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__.component
|
|
158
158
|
], UIBackupBox);
|
|
159
159
|
return UIBackupBox;
|
|
160
|
-
}(
|
|
160
|
+
}(jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D));
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
@@ -185,12 +185,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
185
185
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
186
186
|
/* harmony export */ n: function() { return /* binding */ UIBackupList; }
|
|
187
187
|
/* harmony export */ });
|
|
188
|
-
/* harmony import */ var
|
|
189
|
-
/* harmony import */ var
|
|
190
|
-
/* harmony import */ var
|
|
191
|
-
/* harmony import */ var
|
|
192
|
-
/* harmony import */ var
|
|
193
|
-
/* harmony import */ var
|
|
188
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
189
|
+
/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2175);
|
|
190
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82758);
|
|
191
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65478);
|
|
192
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
193
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67510);
|
|
194
194
|
/*!
|
|
195
195
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
196
196
|
* See LICENSE.md in the project root for license information.
|
|
@@ -203,22 +203,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
var UIBackupList = /** @class */ (function (_super) {
|
|
206
|
-
(0,
|
|
206
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(UIBackupList, _super);
|
|
207
207
|
function UIBackupList(jodit) {
|
|
208
208
|
var _this = _super.call(this, jodit) || this;
|
|
209
209
|
_this.elements = [];
|
|
210
210
|
_this.currentSelection = -1;
|
|
211
211
|
jodit.e.on(_this.container, 'keydown', function (e) {
|
|
212
212
|
switch (e.key) {
|
|
213
|
-
case
|
|
213
|
+
case jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ENTER:
|
|
214
214
|
e.preventDefault();
|
|
215
215
|
e.stopPropagation();
|
|
216
216
|
_this.onChoose(_this.currentSelection);
|
|
217
217
|
break;
|
|
218
|
-
case
|
|
218
|
+
case jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_DOWN:
|
|
219
219
|
_this.selectNext();
|
|
220
220
|
break;
|
|
221
|
-
case
|
|
221
|
+
case jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_UP:
|
|
222
222
|
_this.selectPrevious();
|
|
223
223
|
break;
|
|
224
224
|
}
|
|
@@ -232,14 +232,14 @@ var UIBackupList = /** @class */ (function (_super) {
|
|
|
232
232
|
/** @override */
|
|
233
233
|
UIBackupList.prototype.createContainer = function (options) {
|
|
234
234
|
var div = _super.prototype.createContainer.call(this, options);
|
|
235
|
-
(0,
|
|
235
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(div, 'tabIndex', '-1');
|
|
236
236
|
return div;
|
|
237
237
|
};
|
|
238
238
|
UIBackupList.prototype.build = function (items) {
|
|
239
239
|
var _this = this;
|
|
240
240
|
this.clear();
|
|
241
241
|
items.forEach(function (data, index) {
|
|
242
|
-
var item = new
|
|
242
|
+
var item = new _item__WEBPACK_IMPORTED_MODULE_1__/* .UIBackupItem */ .k(_this.jodit, data);
|
|
243
243
|
_this.append(item);
|
|
244
244
|
_this.j.e
|
|
245
245
|
.on(item.container, 'focus', function () { return _this.onSelect(index); })
|
|
@@ -278,20 +278,20 @@ var UIBackupList = /** @class */ (function (_super) {
|
|
|
278
278
|
this.currentSelection = this.elements.length - 1;
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
(0,
|
|
282
|
-
(0,
|
|
281
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
282
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('currentSelection')
|
|
283
283
|
], UIBackupList.prototype, "onChangeCurrentSelection", null);
|
|
284
|
-
(0,
|
|
285
|
-
|
|
284
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
285
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
286
286
|
], UIBackupList.prototype, "onSelect", null);
|
|
287
|
-
(0,
|
|
288
|
-
|
|
287
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
288
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
289
289
|
], UIBackupList.prototype, "onChoose", null);
|
|
290
|
-
UIBackupList = (0,
|
|
291
|
-
|
|
290
|
+
UIBackupList = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
291
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
|
|
292
292
|
], UIBackupList);
|
|
293
293
|
return UIBackupList;
|
|
294
|
-
}(
|
|
294
|
+
}(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UIGroup */ .Ue));
|
|
295
295
|
|
|
296
296
|
|
|
297
297
|
|
|
@@ -303,10 +303,10 @@ var UIBackupList = /** @class */ (function (_super) {
|
|
|
303
303
|
"use strict";
|
|
304
304
|
/* harmony import */ var _assets_restore_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68583);
|
|
305
305
|
/* harmony import */ var _assets_restore_svg__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_assets_restore_svg__WEBPACK_IMPORTED_MODULE_0__);
|
|
306
|
-
/* harmony import */ var
|
|
307
|
-
/* harmony import */ var
|
|
308
|
-
/* harmony import */ var
|
|
309
|
-
/* harmony import */ var
|
|
306
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15441);
|
|
307
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6441);
|
|
308
|
+
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
309
|
+
/* harmony import */ var jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
|
|
310
310
|
/*!
|
|
311
311
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
312
312
|
* See LICENSE.md in the project root for license information.
|
|
@@ -318,13 +318,13 @@ var UIBackupList = /** @class */ (function (_super) {
|
|
|
318
318
|
|
|
319
319
|
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.backup = {
|
|
322
322
|
interval: 30,
|
|
323
323
|
limit: 50,
|
|
324
324
|
dialogWidth: 700,
|
|
325
325
|
hotkeys: ['ctrl+shift+b', 'cmd+shift+b']
|
|
326
326
|
};
|
|
327
|
-
|
|
327
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.backup = {
|
|
328
328
|
store: {
|
|
329
329
|
command: 'saveBackup',
|
|
330
330
|
text: 'Save backup now'
|
|
@@ -337,8 +337,8 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
|
-
|
|
341
|
-
(0,
|
|
340
|
+
jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('restore', (_assets_restore_svg__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
341
|
+
(0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_3__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_1__);
|
|
342
342
|
|
|
343
343
|
|
|
344
344
|
/***/ }),
|
|
@@ -358,14 +358,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
358
358
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
359
359
|
/* harmony export */ backup: function() { return /* binding */ backup; }
|
|
360
360
|
/* harmony export */ });
|
|
361
|
-
/* harmony import */ var
|
|
362
|
-
/* harmony import */ var
|
|
363
|
-
/* harmony import */ var
|
|
364
|
-
/* harmony import */ var
|
|
365
|
-
/* harmony import */ var
|
|
366
|
-
/* harmony import */ var
|
|
367
|
-
/* harmony import */ var
|
|
368
|
-
/* harmony import */ var
|
|
361
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
362
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31737);
|
|
363
|
+
/* harmony import */ var _modules_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90564);
|
|
364
|
+
/* harmony import */ var _ui_box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9371);
|
|
365
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65478);
|
|
366
|
+
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
|
|
367
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
|
|
368
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(34013);
|
|
369
369
|
/*!
|
|
370
370
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
371
371
|
* See LICENSE.md in the project root for license information.
|
|
@@ -380,12 +380,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
380
380
|
|
|
381
381
|
|
|
382
382
|
var backup = /** @class */ (function (_super) {
|
|
383
|
-
(0,
|
|
383
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(backup, _super);
|
|
384
384
|
function backup() {
|
|
385
385
|
var _a;
|
|
386
|
-
var _this = _super.apply(this, (0,
|
|
386
|
+
var _this = _super.apply(this, (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .fX)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .zs)(arguments), false)) || this;
|
|
387
387
|
/** @override */
|
|
388
|
-
_this.hasStyle = !
|
|
388
|
+
_this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_7__/* .JoditPro */ .A.fatMode;
|
|
389
389
|
/** @override */
|
|
390
390
|
_this.buttons = [
|
|
391
391
|
{
|
|
@@ -393,9 +393,9 @@ var backup = /** @class */ (function (_super) {
|
|
|
393
393
|
group: 'history'
|
|
394
394
|
}
|
|
395
395
|
];
|
|
396
|
-
_this.__box = new
|
|
396
|
+
_this.__box = new _ui_box__WEBPACK_IMPORTED_MODULE_3__/* .UIBackupBox */ .Y(_this.j);
|
|
397
397
|
_this.__dialog = null;
|
|
398
|
-
_this.__storage = (_a = _this.jodit.o.backup.remoteStore) !== null && _a !== void 0 ? _a : new
|
|
398
|
+
_this.__storage = (_a = _this.jodit.o.backup.remoteStore) !== null && _a !== void 0 ? _a : new _modules_store__WEBPACK_IMPORTED_MODULE_2__/* .DefaultStorage */ .h(_this.jodit);
|
|
399
399
|
_this.timeout = 0;
|
|
400
400
|
return _this;
|
|
401
401
|
}
|
|
@@ -440,9 +440,9 @@ var backup = /** @class */ (function (_super) {
|
|
|
440
440
|
});
|
|
441
441
|
};
|
|
442
442
|
backup.prototype.onOpenBackupDialog = function () {
|
|
443
|
-
return (0,
|
|
443
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__awaiter */ .sH)(this, void 0, Promise, function () {
|
|
444
444
|
var __dialog, items;
|
|
445
|
-
return (0,
|
|
445
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__generator */ .YH)(this, function (_a) {
|
|
446
446
|
switch (_a.label) {
|
|
447
447
|
case 0:
|
|
448
448
|
this.prepareDialog();
|
|
@@ -454,12 +454,12 @@ var backup = /** @class */ (function (_super) {
|
|
|
454
454
|
return [4 /*yield*/, this.__storage.items()];
|
|
455
455
|
case 1:
|
|
456
456
|
items = _a.sent();
|
|
457
|
-
this.__box.build((0,
|
|
457
|
+
this.__box.build((0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .fX)([
|
|
458
458
|
{
|
|
459
459
|
created: new Date(),
|
|
460
460
|
html: this.j.value
|
|
461
461
|
}
|
|
462
|
-
], (0,
|
|
462
|
+
], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .zs)(items), false));
|
|
463
463
|
__dialog.calcAutoSize();
|
|
464
464
|
__dialog.setPosition();
|
|
465
465
|
return [2 /*return*/];
|
|
@@ -477,16 +477,16 @@ var backup = /** @class */ (function (_super) {
|
|
|
477
477
|
var _this = this;
|
|
478
478
|
var _a;
|
|
479
479
|
var jodit = this.jodit;
|
|
480
|
-
var ok = (0,
|
|
480
|
+
var ok = (0,jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .Button */ .$n)(jodit, {
|
|
481
481
|
name: 'ok',
|
|
482
482
|
tabIndex: 0,
|
|
483
483
|
variant: 'primary',
|
|
484
484
|
text: 'Ok'
|
|
485
|
-
}), cancel = (0,
|
|
485
|
+
}), cancel = (0,jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .Button */ .$n)(jodit, {
|
|
486
486
|
variant: 'secondary',
|
|
487
487
|
tabIndex: 0,
|
|
488
488
|
text: 'Cancel'
|
|
489
|
-
}), clear = (0,
|
|
489
|
+
}), clear = (0,jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .Button */ .$n)(jodit, {
|
|
490
490
|
name: 'clear',
|
|
491
491
|
tabIndex: 0,
|
|
492
492
|
variant: 'secondary',
|
|
@@ -508,7 +508,7 @@ var backup = /** @class */ (function (_super) {
|
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
510
|
});
|
|
511
|
-
var block = new
|
|
511
|
+
var block = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIBlock */ .Yh(jodit, [clear, cancel, ok]);
|
|
512
512
|
block.container.style.margin = '0';
|
|
513
513
|
block.container.style.justifyContent = 'flex-end';
|
|
514
514
|
block.container.style.width = '100%';
|
|
@@ -527,19 +527,19 @@ var backup = /** @class */ (function (_super) {
|
|
|
527
527
|
};
|
|
528
528
|
/** @override */
|
|
529
529
|
backup.requires = ['license'];
|
|
530
|
-
(0,
|
|
531
|
-
|
|
530
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
531
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.autobind
|
|
532
532
|
], backup.prototype, "onSaveBackup", null);
|
|
533
|
-
(0,
|
|
534
|
-
|
|
533
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
534
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.autobind
|
|
535
535
|
], backup.prototype, "onOpenBackupDialog", null);
|
|
536
|
-
(0,
|
|
537
|
-
|
|
536
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
537
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.autobind
|
|
538
538
|
], backup.prototype, "onSelectItem", null);
|
|
539
539
|
return backup;
|
|
540
|
-
}(
|
|
540
|
+
}(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */ .k));
|
|
541
541
|
|
|
542
|
-
|
|
542
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_7__/* .JoditPro */ .A.plugins.add('backup', backup);
|
|
543
543
|
|
|
544
544
|
|
|
545
545
|
/***/ }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.6.
|
|
4
|
+
* Version: v4.6.12
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(self,
|
|
10
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[736],{2175:function(t,e,o){"use strict";o.d(e,{k:function(){return r}});var n=o(31635),i=o(21537),r=function(t){function e(e,o){var n=t.call(this,e)||this;return n.data=o,n.container.innerHTML=n.formatDate(o.created),(0,i.attr)(n.container,"tabIndex",0),n}return(0,n.C6)(e,t),e.prototype.className=function(){return"UIBackupItem"},e.prototype.formatDate=function(t){var e=new Date,o=(0,i.isString)(t)?new Date(t):t,n=(e.getTime()-o.getTime())/1e3;return(0,i.isFunction)(this.j.o.backup.formatDate)?this.j.o.backup.formatDate(o):.2>n?this.j.i18n("Current"):60>n?this.j.i18n("Less minute"):n>3600?n>86400?"".concat(o.toDateString()," ").concat(o.toLocaleTimeString()):this.j.i18n("%s hours ago",Math.floor(n/3600)):this.j.i18n("%s minutes ago",Math.floor(n/60))},e.prototype.focus=function(){this.container.focus()},e}(o(67510).D$)},9371:function(t,e,o){"use strict";o.d(e,{Y:function(){return s}});var n=o(31635),i=o(27848),r=o(65478),s=function(t){function e(e){var o=t.call(this,e)||this;return o.list=new i.n(o.j),o.preview=o.j.c.div(o.getFullElName("preview")),o.container.appendChild(o.list.container),o.container.appendChild(o.preview),o.list.container.classList.add(o.getFullElName("list")),e.e.on(o.list,"select",o.onSelectItem).on(o.list,"choose",o.onChooseItem),o}return(0,n.C6)(e,t),e.prototype.className=function(){return"UIBackupBox"},e.prototype.build=function(t){this.preview.innerHTML="",this.list.build(t)},e.prototype.destruct=function(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),t.prototype.destruct.call(this)},e.prototype.onSelectItem=function(t){this.latestSelected=t,this.preview.innerHTML=t.html||'<div class="'.concat(this.getFullElName("empty"),'">').concat(this.j.i18n("Empty"),"</div>")},e.prototype.onChooseItem=function(t){this.j.e.fire(this,"choose",t)},e.prototype.chooseSelected=function(){this.onChooseItem(this.latestSelected)},(0,n.Cg)([r.autobind],e.prototype,"onSelectItem",null),(0,n.Cg)([r.autobind],e.prototype,"onChooseItem",null),(0,n.Cg)([r.component],e)}(o(48538).D)},15441:function(t,e,o){"use strict";o.r(e)},27848:function(t,e,o){"use strict";o.d(e,{n:function(){return a}});var n=o(31635),i=o(2175),r=o(82758),s=o(65478),c=o(21537),a=function(t){function e(e){var o=t.call(this,e)||this;return o.elements=[],o.currentSelection=-1,e.e.on(o.container,"keydown",function(t){switch(t.key){case r.KEY_ENTER:t.preventDefault(),t.stopPropagation(),o.onChoose(o.currentSelection);break;case r.KEY_DOWN:o.selectNext();break;case r.KEY_UP:o.selectPrevious()}}),o}return(0,n.C6)(e,t),e.prototype.className=function(){return"UIBackupList"},e.prototype.createContainer=function(e){var o=t.prototype.createContainer.call(this,e);return(0,c.attr)(o,"tabIndex","-1"),o},e.prototype.build=function(t){var e=this;this.clear(),t.forEach(function(t,o){var n=new i.k(e.jodit,t);e.append(n),e.j.e.on(n.container,"focus",function(){return e.onSelect(o)}).on(n.container,"click",function(){return e.onSelect(o)}).on(n.container,"dblclick",function(){return e.onChoose(o)})}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)},e.prototype.onChangeCurrentSelection=function(t,e,o){var n,i,r;null===(n=this.elements[e])||void 0===n||n.setMod("active",!1),null===(i=this.elements[o])||void 0===i||i.setMod("active",!0),null===(r=this.elements[o])||void 0===r||r.focus(),this.j.e.fire(this,"select",this.elements[o].data)},e.prototype.onSelect=function(t){this.currentSelection=t},e.prototype.onChoose=function(t){this.j.e.fire(this,"choose",this.elements[null!=t?t:this.currentSelection].data)},e.prototype.selectNext=function(){this.currentSelection+1>this.elements.length-1?this.currentSelection=0:this.currentSelection+=1},e.prototype.selectPrevious=function(){0>this.currentSelection-1?this.currentSelection=this.elements.length-1:this.currentSelection-=1},(0,n.Cg)([(0,s.watch)("currentSelection")],e.prototype,"onChangeCurrentSelection",null),(0,n.Cg)([s.autobind],e.prototype,"onSelect",null),(0,n.Cg)([s.autobind],e.prototype,"onChoose",null),(0,n.Cg)([s.component],e)}(o(67510).Ue)},31737:function(t,e,o){"use strict";var n=o(68583),i=o.n(n),r=o(15441),s=o(6441),c=o(580),a=o(12153);s.T.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},s.T.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec:function(t){t.execCommand("openBackupDialog")}}},a.I.set("restore",i()),(0,c.JW)(r)},68583:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><title/><g id="Upload"><path d="M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z"/><path d="M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z"/></g></svg>'},75145:function(t,e,o){"use strict";o.r(e),o.d(e,{backup:function(){return l}});var n=o(31635),i=(o(31737),o(90564)),r=o(9371),s=o(65478),c=o(50911),a=o(67510),u=o(34013),l=function(t){function e(){var e,o=t.apply(this,(0,n.fX)([],(0,n.zs)(arguments),!1))||this;return o.hasStyle=!u.A.fatMode,o.buttons=[{name:"backup.restore",group:"history"}],o.__box=new r.Y(o.j),o.__dialog=null,o.__storage=null!==(e=o.jodit.o.backup.remoteStore)&&void 0!==e?e:new i.h(o.jodit),o.timeout=0,o}return(0,n.C6)(e,t),e.prototype.afterInit=function(t){var e=this;t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});var o=function(){e.timeout=t.async.setTimeout(function(){e.onSaveBackup(),o()},1e3*t.o.backup.interval)};o(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",function(){e.onSaveBackup()})},e.prototype.prepareDialog=function(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()},e.prototype.onSaveBackup=function(){this.__storage.add({created:new Date,html:this.j.value})},e.prototype.onOpenBackupDialog=function(){return(0,n.sH)(this,void 0,Promise,function(){var t,e;return(0,n.YH)(this,function(o){switch(o.label){case 0:return this.prepareDialog(),(t=this.__dialog)?(t.open().setModal(!0),[4,this.__storage.items()]):[2];case 1:return e=o.sent(),this.__box.build((0,n.fX)([{created:new Date,html:this.j.value}],(0,n.zs)(e),!1)),t.calcAutoSize(),t.setPosition(),[2]}})})},e.prototype.onSelectItem=function(t){var e;null===(e=this.__dialog)||void 0===e||e.close(),this.j.value=t.html,this.j.s.focus()},e.prototype.addButtonsToDialog=function(){var t,e=this,o=this.jodit,n=(0,a.$n)(o,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),i=(0,a.$n)(o,{variant:"secondary",tabIndex:0,text:"Cancel"}),r=(0,a.$n)(o,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});n.onAction(function(){e.__box.chooseSelected()}),i.onAction(function(){var t;null===(t=e.__dialog)||void 0===t||t.close()}),r.onAction(function(){o.confirm("Are you sure?",void 0,function(t){var o;t&&(e.__storage.clear(),null===(o=e.__dialog)||void 0===o||o.close())})});var s=new a.Yh(o,[r,i,n]);s.container.style.margin="0",s.container.style.justifyContent="flex-end",s.container.style.width="100%",null===(t=this.__dialog)||void 0===t||t.setFooter(s)},e.prototype.beforeDestruct=function(){var t,e=this.j;e.async.clearTimeout(this.timeout),e.e.off(this.__box,"choose",this.onSelectItem).off(e.ow,"beforeunload.backup"),this.__box.destruct(),null===(t=this.__dialog)||void 0===t||t.destruct()},e.requires=["license"],(0,n.Cg)([s.autobind],e.prototype,"onSaveBackup",null),(0,n.Cg)([s.autobind],e.prototype,"onOpenBackupDialog",null),(0,n.Cg)([s.autobind],e.prototype,"onSelectItem",null),e}(c.k);u.A.plugins.add("backup",l)},90564:function(t,e,o){"use strict";o.d(e,{h:function(){return i}});var n=o(31635),i=function(){function t(t){this.jodit=t,this.key="backup.default.storage"}return t.prototype.add=function(t){return(0,n.sH)(this,void 0,Promise,function(){var e;return(0,n.YH)(this,function(o){return t.html.trim().length?((e=this.jodit.storage.get(this.key)||[]).find(function(e){return e.html===t.html})||(e.unshift(t),e.length>this.jodit.o.backup.limit&&(e.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,e)),[2,!1]):[2,!1]})})},t.prototype.items=function(){return Promise.resolve(this.jodit.storage.get(this.key)||[])},t.prototype.clear=function(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)},t}()}},function(t){return t(t.s=75145)}])});
|