jodit-pro 4.6.10 → 4.6.13
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 +1278 -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 +1123 -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 +1123 -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 +1123 -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 +1461 -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.13
|
|
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 a=e();for(var n in a)("object"==typeof exports?exports:t)[n]=a[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 a=e();for(var n in a)("object"==typeof exports?exports:t)[n]=a[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[954],{3407:function(t,e,a){"use strict";a.r(e),a.d(e,{Translate:function(){return g}});var n=a(31635),s=(a(97527),a(56903)),i=a(97195),o=a(65478),r=a(70799),l=(a(38837),a(96325)),c=a(50911),h=a(10830),u=a(34013);class g extends c.k{constructor(){super(...arguments),this.buttons=[{name:"translate.translate",group:"insert"}],this.state={sourceLang:this.jodit.o.translate.defaultSourceLang||"en",targetLang:this.jodit.o.translate.defaultTargetLang}}__getProvider(){const{provider:t}=this.jodit.options.translate;if((0,r.K)(t)){if("google"===t)return new s.l(this.j);throw new Error("Unknown provider")}return t(this.jodit)}afterInit(t){const e=(0,l.e)(t.o.language,u.A.defaultOptions.language),a=(0,l.e)(t.o.language,e),n=this.__getProvider();t.registerCommand("translateOptions",{exec:async()=>{let e=this.state;const a=t.dlg();a.setHeader("Translate options");const s=await n.supportedLanguages(),o=new i.g(a,this.state,{sourceList:s.langs,targetList:s.langs,onChange(t){e=t}});a.setContent(o),a.setFooter([(0,h.$n)(t,"cancel","Cancel").onAction(()=>a.close()),(0,h.$n)(t,"ok","Save","primary").onAction(()=>{this.state=e,a.close()})]),o.bindDestruct(a),a.setSize(500,400).open(!0)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:()=>{const e=t.s.html;if(e)return n.translate(e,this.state.sourceLang&&"auto"!==this.state.sourceLang?this.state.sourceLang:a,this.state.targetLang).then(e=>{t.s.range.deleteContents(),t.s.insertNode(t.createInside.text(e.text))}).catch(e=>{t.message.error((0,r.K)(e)?e:e.message)});t.message.error("Select text for translate")},hotkeys:t.o.translate.hotkeys.translateSelection})}beforeDestruct(t){}}g.requires=["license"],(0,n.Cg)([o.persistent],g.prototype,"state",void 0),u.A.plugins.add("translate",g)},17391:function(t,e,a){"use strict";a.d(e,{e:function(){return n}});const n={Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},34575:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},56903:function(t,e,a){"use strict";a.d(e,{l:function(){return s}}),a(82758),a(38837);var n=a(17391);class s{constructor(t){this.jodit=t}__fetch(t,e={}){const a=this.jodit.o.translate.googleProviderOptions;return this.jodit.fetch(a.url+"?key="+a.key,{method:"POST",data:{...e,ui:this.jodit.o.language},contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){}})}translate(t,e,a){return this.__fetch("translate",{q:t,source:e,target:a,format:"html"}).then(t=>({text:t.data.translations[0].translatedText}))}supportedLanguages(){return Promise.resolve({langs:n.e})}}},74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},76697:function(t,e,a){"use strict";a.d(e,{F:function(){return u}});var n=a(31635),s=a(82758),i=a(65478),o=a(2748),r=a(21537),l=a(29960),c=a(48538),h=a(80256);let u=class t extends c.D{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){const e=[];return Object.keys(t.list).sort().forEach(a=>{const n=t.list[a];e.push(`<a role='button' tabindex='0' class='&__item' data-lang='${n}'>\n\t\t\t\t\t\t<span class='&__item-key'>${n}</span>\n\t\t\t\t\t\t<span class='&__item-title'>${this.j.i18n(a)}</span>\n\t\t\t\t\t</a>`)}),`<div class='&'>\n\t\t\t<div class='&__input'></div>\n\t\t\t<div class='&__list'>${e.join("")}</div>\n\t\t</div>`}constructor(t,e){var a;super(t,e),this.options=e,this.state={active:""},this.state.active=e.active;const n=new h.t(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:this.__onChangeFilter,clearButton:!0});null===(a=this.getElm("input"))||void 0===a||a.appendChild(n.container),this.__onActiveChange()}__onChangeFilter(t){this.items.forEach(e=>{var a,n;const s=null!==(n=null===(a=e.textContent)||void 0===a?void 0:a.toLowerCase())&&void 0!==n?n:"";(0,l.C)(e,"data-hidden","true"!==(0,l.C)(e,"data-active")&&!s.includes(t.toLowerCase()))})}__scrollToActive(){const t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&(0,r.scrollIntoViewIfNeeded)(t,e,this.j.od)}onClickItem(t){if("keydown"===t.type&&"key"in t&&t.key!==s.KEY_ENTER)return;const e=t.target;if(o.J.isHTMLElement(e)&&e.getAttribute("data-lang")){const t=(0,l.C)(e,"data-lang");this.options.onChange(t),this.state.active=t}}__onActiveChange(){this.items.forEach(t=>(0,l.C)(t,"data-active",(0,l.C)(t,"data-lang")===this.state.active)),this.__scrollToActive()}};(0,n.Cg)([(0,i.debounce)()],u.prototype,"__onChangeFilter",null),(0,n.Cg)([(0,i.watch)(":afterOpen")],u.prototype,"__scrollToActive",null),(0,n.Cg)([(0,i.watch)(["container:click","container:keydown"])],u.prototype,"onClickItem",null),(0,n.Cg)([(0,i.watch)("state.active"),(0,i.debounce)()],u.prototype,"__onActiveChange",null),u=(0,n.Cg)([i.component],u)},97195:function(t,e,a){"use strict";a.d(e,{g:function(){return r}});var n=a(31635),s=a(65478),i=a(67510),o=a(76697);let r=class t extends i.D${className(){return"UITranslateSettings"}render(){return"<div>\n\t\t\t<div class='&__list &__source-list'></div>\n\t\t\t<div class='&__arrow'>\n\t\t\t\t<a class='&__arrow-swap'>*translate-swap*</a>\n\t\t\t</div>\n\t\t\t<div class='&__list &__target-list'></div>\n\t\t</div>"}constructor(t,e,a){var n,s;super(t),this.state=e,this.options=a,this.__sourceList=new o.F(t,{list:a.sourceList,active:e.sourceLang,onChange:t=>{this.state.sourceLang=t,this.options.onChange({...this.state})}}),null===(n=this.getElm("source-list"))||void 0===n||n.appendChild(this.__sourceList.container),this.__targetList=new o.F(t,{list:a.targetList,active:e.targetLang,onChange:t=>{this.state.targetLang=t,this.options.onChange({...this.state})}}),null===(s=this.getElm("target-list"))||void 0===s||s.appendChild(this.__targetList.container)}__onSwap(){const t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}};(0,n.Cg)([(0,s.watch)("arrow-swap:click")],r.prototype,"__onSwap",null),r=(0,n.Cg)([s.component],r)},97527:function(t,e,a){"use strict";var n=a(74922),s=a.n(n),i=a(34575),o=a.n(i),r=a(6441),l=a(12153);r.T.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},r.T.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,e,{control:a}){t.execCommand("translate"+a.name)},mods:{stroke:!1}}},l.I.set("translate",o()).set("translate-swap",s())}},function(t){return t(t.s=3407)}])});
|
|
@@ -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.13
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -26,12 +26,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26
26
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
/* harmony export */ tuneBlock: function() { return /* binding */ tuneBlock; }
|
|
28
28
|
/* harmony export */ });
|
|
29
|
-
/* harmony import */ var
|
|
30
|
-
/* harmony import */ var
|
|
31
|
-
/* harmony import */ var
|
|
32
|
-
/* harmony import */ var
|
|
33
|
-
/* harmony import */ var
|
|
34
|
-
/* harmony import */ var
|
|
29
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
30
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46217);
|
|
31
|
+
/* harmony import */ var _ui_tuner_tuner__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72193);
|
|
32
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65478);
|
|
33
|
+
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50911);
|
|
34
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34013);
|
|
35
35
|
/*!
|
|
36
36
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
37
37
|
* See LICENSE.md in the project root for license information.
|
|
@@ -46,9 +46,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46
46
|
/**
|
|
47
47
|
* Tune block with popup: move, align, change block tag, and another options
|
|
48
48
|
*/
|
|
49
|
-
class tuneBlock extends
|
|
49
|
+
class tuneBlock extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .k {
|
|
50
50
|
afterInit(jodit) {
|
|
51
|
-
this.tuner = new
|
|
51
|
+
this.tuner = new _ui_tuner_tuner__WEBPACK_IMPORTED_MODULE_2__/* .UITuner */ .f(jodit);
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Handler: click on an element outside the editor or the keyboard closes the tuner
|
|
@@ -75,17 +75,17 @@ class tuneBlock extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Pl
|
|
|
75
75
|
}
|
|
76
76
|
/** @override */
|
|
77
77
|
tuneBlock.requires = ['license'];
|
|
78
|
-
(0,
|
|
79
|
-
(0,
|
|
78
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
79
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':outsideClick :keydown')
|
|
80
80
|
], tuneBlock.prototype, "hideTuner", null);
|
|
81
|
-
(0,
|
|
82
|
-
(0,
|
|
83
|
-
(0,
|
|
81
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
82
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('j.ed:selectionchange'),
|
|
83
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.debounce)()
|
|
84
84
|
], tuneBlock.prototype, "onChangeSelection", null);
|
|
85
|
-
(0,
|
|
86
|
-
(0,
|
|
85
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
86
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':click')
|
|
87
87
|
], tuneBlock.prototype, "onClickInBlock", null);
|
|
88
|
-
|
|
88
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_5__/* .JoditPro */ .A.plugins.add('tune-block', tuneBlock);
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
/***/ }),
|
|
@@ -210,12 +210,12 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls
|
|
|
210
210
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
211
211
|
/* harmony export */ f: function() { return /* binding */ UITuner; }
|
|
212
212
|
/* harmony export */ });
|
|
213
|
-
/* harmony import */ var
|
|
214
|
-
/* harmony import */ var
|
|
215
|
-
/* harmony import */ var
|
|
216
|
-
/* harmony import */ var
|
|
217
|
-
/* harmony import */ var
|
|
218
|
-
/* harmony import */ var
|
|
213
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
214
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
215
|
+
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22732);
|
|
216
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
217
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67510);
|
|
218
|
+
/* harmony import */ var jodit_esm_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21491);
|
|
219
219
|
/*!
|
|
220
220
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
221
221
|
* See LICENSE.md in the project root for license information.
|
|
@@ -228,12 +228,12 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls
|
|
|
228
228
|
|
|
229
229
|
|
|
230
230
|
|
|
231
|
-
let UITuner = class UITuner extends
|
|
231
|
+
let UITuner = class UITuner extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__/* .UIElement */ .D$ {
|
|
232
232
|
constructor() {
|
|
233
233
|
super(...arguments);
|
|
234
234
|
this.isShown = false;
|
|
235
|
-
this.toolbar = (0,
|
|
236
|
-
this.popup = new
|
|
235
|
+
this.toolbar = (0,jodit_esm_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__/* .makeCollection */ .$K)(this.j, this);
|
|
236
|
+
this.popup = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__/* .Popup */ .zD(this.j, false);
|
|
237
237
|
}
|
|
238
238
|
className() {
|
|
239
239
|
return 'UITuner';
|
|
@@ -251,9 +251,9 @@ let UITuner = class UITuner extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3
|
|
|
251
251
|
if (!target) {
|
|
252
252
|
return this.hide();
|
|
253
253
|
}
|
|
254
|
-
const block =
|
|
254
|
+
const block = jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isBlock(target)
|
|
255
255
|
? target
|
|
256
|
-
:
|
|
256
|
+
: jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.closest(target, (node) => Boolean(node &&
|
|
257
257
|
this.j.o.tuneBlock.popup[node.nodeName.toLowerCase()]), this.j.editor);
|
|
258
258
|
if (!block ||
|
|
259
259
|
block === this.j.editor ||
|
|
@@ -274,7 +274,7 @@ let UITuner = class UITuner extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3
|
|
|
274
274
|
hide() {
|
|
275
275
|
if (this.isShown) {
|
|
276
276
|
this.isShown = false;
|
|
277
|
-
|
|
277
|
+
jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.container);
|
|
278
278
|
this.closeToolbar();
|
|
279
279
|
}
|
|
280
280
|
}
|
|
@@ -291,12 +291,12 @@ let UITuner = class UITuner extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3
|
|
|
291
291
|
*/
|
|
292
292
|
calcPosition() {
|
|
293
293
|
const offset = 15;
|
|
294
|
-
const marginLeft = (0,
|
|
295
|
-
const paddingLeft = (0,
|
|
296
|
-
const marginTop = (0,
|
|
294
|
+
const marginLeft = (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css)(this.j.editor, 'marginLeft');
|
|
295
|
+
const paddingLeft = (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css)(this.j.editor, 'paddingLeft');
|
|
296
|
+
const marginTop = (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css)(this.j.editor, 'marginTop');
|
|
297
297
|
const left = this.currentBlock.offsetWidth - offset + marginLeft + paddingLeft;
|
|
298
298
|
const top = this.currentBlock.offsetTop - this.j.editor.scrollTop + marginTop;
|
|
299
|
-
(0,
|
|
299
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css)(this.container, {
|
|
300
300
|
transform: `translate3d(${left}px, ${top}px, 0)`
|
|
301
301
|
});
|
|
302
302
|
if (this.popup.isOpened) {
|
|
@@ -336,7 +336,7 @@ let UITuner = class UITuner extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3
|
|
|
336
336
|
if (!this.popup.isOpened) {
|
|
337
337
|
const handle = this.getElm('handle');
|
|
338
338
|
void 0;
|
|
339
|
-
this.popup.open(() => (0,
|
|
339
|
+
this.popup.open(() => (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(handle));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
/**
|
|
@@ -350,28 +350,28 @@ let UITuner = class UITuner extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3
|
|
|
350
350
|
this.getMod('opened') ? this.closeToolbar() : this.openToolbar();
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
(0,
|
|
354
|
-
(0,
|
|
353
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
354
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':hideTuner.tune')
|
|
355
355
|
], UITuner.prototype, "hide", null);
|
|
356
|
-
(0,
|
|
357
|
-
(0,
|
|
358
|
-
(0,
|
|
356
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
357
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('j.editor:scroll'),
|
|
358
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.throttle)(10)
|
|
359
359
|
], UITuner.prototype, "onEditorScroll", null);
|
|
360
|
-
(0,
|
|
361
|
-
(0,
|
|
362
|
-
(0,
|
|
360
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
361
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterExecTune.tune'),
|
|
362
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.idle)()
|
|
363
363
|
], UITuner.prototype, "onAfterExecTune", null);
|
|
364
|
-
(0,
|
|
365
|
-
(0,
|
|
364
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
365
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('container:click container:mousedown')
|
|
366
366
|
], UITuner.prototype, "onClickPrevent", null);
|
|
367
|
-
(0,
|
|
368
|
-
(0,
|
|
367
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
368
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('handle:click')
|
|
369
369
|
], UITuner.prototype, "onTargetClick", null);
|
|
370
|
-
(0,
|
|
371
|
-
(0,
|
|
370
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
371
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':closeTuner.tune')
|
|
372
372
|
], UITuner.prototype, "closeToolbar", null);
|
|
373
|
-
UITuner = (0,
|
|
374
|
-
|
|
373
|
+
UITuner = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
374
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
375
375
|
], UITuner);
|
|
376
376
|
|
|
377
377
|
|
|
@@ -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.13
|
|
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,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,
|
|
10
|
+
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[576],{1233:function(e,t,o){o.r(t),o.d(t,{tuneBlock:function(){return l}});var n=o(31635),i=(o(46217),o(72193)),s=o(65478),r=o(50911),c=o(34013);class l extends r.k{afterInit(e){this.tuner=new i.f(e)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(e){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(e){this.tuner.destruct()}}l.requires=["license"],(0,n.Cg)([(0,s.watch)(":outsideClick :keydown")],l.prototype,"hideTuner",null),(0,n.Cg)([(0,s.watch)("j.ed:selectionchange"),(0,s.debounce)()],l.prototype,"onChangeSelection",null),(0,n.Cg)([(0,s.watch)(":click")],l.prototype,"onClickInBlock",null),c.A.plugins.add("tune-block",l)},46217:function(e,t,o){var n=o(6441),i=o(22732),s=o(21537);const r=["tune.up","tune.remove","tune.down"],c=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...r];function l(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive(t,o){var n;return(null===(n=null==o?void 0:o.target)||void 0===n?void 0:n.tagName.toLowerCase())===e},exec(t,o){if(o){t.selection.save();const n=i.J.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function h(e){const t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled(e,o){var n;return!(null===(n=null==o?void 0:o.target)||void 0===n?void 0:n[t])},exec(o,n){const r=null==n?void 0:n[t];return n&&r&&(o.selection.save(),(0,s.call)(e?i.J.before:i.J.after,r,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}n.T.prototype.tuneBlock={popup:{p:r,table:r,img:r,blockquote:r,div:r,pre:["tune.editPre",...r],h1:c,h2:c,h3:c,h4:c,h5:c,h6:c}},n.T.prototype.controls.tune={h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),up:h(!0),down:h(!1),editPre:{icon:"pencil",exec(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec(e,t){i.J.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}}},72193:function(e,t,o){o.d(t,{f:function(){return h}});var n=o(31635),i=o(65478),s=o(22732),r=o(21537),c=o(67510),l=o(21491);let h=class e extends c.D${constructor(){super(...arguments),this.isShown=!1,this.toolbar=(0,l.$K)(this.j,this),this.popup=new c.zD(this.j,!1)}className(){return"UITuner"}render(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"}show(){const e=this.j.s.current();if(!e)return this.hide();const t=s.J.isBlock(e)?e:s.J.closest(e,e=>Boolean(e&&this.j.o.tuneBlock.popup[e.nodeName.toLowerCase()]),this.j.editor);if(!t||t===this.j.editor||!this.j.o.tuneBlock.popup[t.tagName.toLowerCase()])return this.hide();this.currentBlock=t,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,s.J.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){const e=(0,r.css)(this.j.editor,"marginLeft"),t=(0,r.css)(this.j.editor,"paddingLeft"),o=(0,r.css)(this.j.editor,"marginTop");(0,r.css)(this.container,{transform:`translate3d(${this.currentBlock.offsetWidth-15+e+t}px, ${this.currentBlock.offsetTop-this.j.editor.scrollTop+o}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){const e=this.getElm("handle");this.popup.open(()=>(0,r.position)(e))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}};(0,n.Cg)([(0,i.watch)(":hideTuner.tune")],h.prototype,"hide",null),(0,n.Cg)([(0,i.watch)("j.editor:scroll"),(0,i.throttle)(10)],h.prototype,"onEditorScroll",null),(0,n.Cg)([(0,i.watch)(":afterExecTune.tune"),(0,i.idle)()],h.prototype,"onAfterExecTune",null),(0,n.Cg)([(0,i.watch)("container:click container:mousedown")],h.prototype,"onClickPrevent",null),(0,n.Cg)([(0,i.watch)("handle:click")],h.prototype,"onTargetClick",null),(0,n.Cg)([(0,i.watch)(":closeTuner.tune")],h.prototype,"closeToolbar",null),h=(0,n.Cg)([i.component],h)}},function(e){return e(e.s=1233)}])});
|