jodit-pro 2.0.0-beta.12 → 2.0.0-beta.21
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/es2015/jodit.css +19 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2121 -105
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +2 -448
- package/es2015/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +24 -19
- 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 +55 -46
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +10 -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 +10 -8
- 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 +20 -15
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +9 -6
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +6 -6
- package/es2015/plugins/finder/finder.js +215 -199
- package/es2015/plugins/finder/finder.min.css +1 -1
- 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 +149 -116
- package/es2015/plugins/google-maps/google-maps.min.js +2 -2
- package/es2015/plugins/google-search/google-search.js +7 -4
- package/es2015/plugins/google-search/google-search.min.js +2 -2
- package/es2015/plugins/highlight-signature/highlight-signature.js +9 -9
- 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 +17 -14
- 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 +36 -19
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +13 -10
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +9 -6
- 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 +9 -6
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- package/es2015/plugins/paste-from-word/paste-from-word.js +2 -1516
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2015/plugins/show-blocks/show-blocks.js +15 -10
- 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 +7 -4
- 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 +16 -10
- 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 +3 -3
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.css +19 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2119 -105
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +2 -446
- package/es2018/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +24 -19
- 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 +55 -46
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.js +10 -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 +10 -8
- 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 +20 -15
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.js +9 -6
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.css +6 -6
- package/es2018/plugins/finder/finder.js +214 -198
- package/es2018/plugins/finder/finder.min.css +1 -1
- 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 +131 -98
- package/es2018/plugins/google-maps/google-maps.min.js +2 -2
- package/es2018/plugins/google-search/google-search.js +7 -4
- package/es2018/plugins/google-search/google-search.min.js +2 -2
- package/es2018/plugins/highlight-signature/highlight-signature.js +9 -9
- 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 +17 -14
- 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 +36 -19
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.js +13 -10
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.js +9 -6
- 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 +9 -6
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- package/es2018/plugins/paste-from-word/paste-from-word.js +2 -1516
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2018/plugins/show-blocks/show-blocks.js +15 -10
- 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 +7 -4
- 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 +16 -10
- 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 +3 -3
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +19 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2098 -104
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +2 -438
- package/es2021/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +24 -19
- 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 +55 -46
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +10 -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 +10 -8
- 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 +20 -15
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +9 -6
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +6 -6
- package/es2021/plugins/finder/finder.js +214 -198
- package/es2021/plugins/finder/finder.min.css +1 -1
- 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 +131 -98
- package/es2021/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021/plugins/google-search/google-search.js +7 -4
- package/es2021/plugins/google-search/google-search.min.js +2 -2
- package/es2021/plugins/highlight-signature/highlight-signature.js +9 -9
- 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 +17 -14
- 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 +36 -19
- package/es2021/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.js +13 -10
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +9 -6
- 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 +9 -6
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021/plugins/paste-from-word/paste-from-word.js +2 -1503
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021/plugins/show-blocks/show-blocks.js +15 -10
- 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 +7 -4
- 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 +16 -10
- 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 +3 -3
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +19 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2098 -104
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +2 -438
- 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 +24 -19
- 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 +55 -46
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +10 -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 +10 -8
- 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 +20 -15
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +9 -6
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +6 -6
- package/es2021.en/plugins/finder/finder.js +214 -198
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- 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 +131 -98
- package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021.en/plugins/google-search/google-search.js +7 -4
- package/es2021.en/plugins/google-search/google-search.min.js +2 -2
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +9 -9
- 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 +17 -14
- 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 +36 -19
- package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.js +13 -10
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +9 -6
- 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 +9 -6
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +2 -1503
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021.en/plugins/show-blocks/show-blocks.js +15 -10
- 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 +7 -4
- 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 +16 -10
- 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 +3 -3
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +30 -51
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2320 -108
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +2 -511
- package/es5/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +26 -21
- 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 +59 -50
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +10 -7
- 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 +11 -9
- 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 +20 -15
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +9 -6
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +6 -6
- package/es5/plugins/finder/finder.js +238 -222
- package/es5/plugins/finder/finder.min.css +1 -1
- 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 +164 -131
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +9 -6
- package/es5/plugins/google-search/google-search.min.js +2 -2
- package/es5/plugins/highlight-signature/highlight-signature.js +9 -9
- 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 +18 -15
- 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 +37 -20
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +13 -10
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +9 -6
- 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 +9 -6
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +2 -1645
- package/es5/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es5/plugins/show-blocks/show-blocks.js +16 -11
- 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 +7 -4
- 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 +17 -11
- 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 +3 -3
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/esm/config.d.ts +11 -0
- package/esm/config.js +6 -0
- package/esm/core/ui/form/range/range.d.ts +23 -0
- package/esm/core/ui/form/range/range.js +6 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +6 -0
- package/esm/jodit-pro.d.ts +14 -0
- package/esm/jodit-pro.js +6 -0
- package/esm/plugins/autocomplete/autocomplete.d.ts +40 -0
- package/esm/plugins/autocomplete/autocomplete.js +6 -0
- package/esm/plugins/autocomplete/helpers.d.ts +25 -0
- package/esm/plugins/autocomplete/helpers.js +6 -0
- package/esm/plugins/autocomplete/interface.d.ts +19 -0
- package/esm/plugins/autocomplete/interface.js +6 -0
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +20 -0
- package/esm/plugins/autocomplete/ui/autocomplete.js +6 -0
- package/esm/plugins/autocomplete/ui/item.d.ts +14 -0
- package/esm/plugins/autocomplete/ui/item.js +6 -0
- package/esm/plugins/backup/assets/restore.svg.js +1 -0
- package/esm/plugins/backup/backup.d.ts +29 -0
- package/esm/plugins/backup/backup.js +6 -0
- package/esm/plugins/backup/config.d.ts +18 -0
- package/esm/plugins/backup/config.js +6 -0
- package/esm/plugins/backup/interface.d.ts +14 -0
- package/esm/plugins/backup/interface.js +6 -0
- package/esm/plugins/backup/langs/index.d.ts +6 -0
- package/esm/plugins/backup/langs/index.js +6 -0
- package/esm/plugins/backup/modules/store.d.ts +15 -0
- package/esm/plugins/backup/modules/store.js +6 -0
- package/esm/plugins/backup/ui/box.d.ts +29 -0
- package/esm/plugins/backup/ui/box.js +6 -0
- package/esm/plugins/backup/ui/item.d.ts +17 -0
- package/esm/plugins/backup/ui/item.js +6 -0
- package/esm/plugins/backup/ui/list.d.ts +24 -0
- package/esm/plugins/backup/ui/list.js +6 -0
- package/esm/plugins/button-generator/assets/check.svg.js +1 -0
- package/esm/plugins/button-generator/assets/styles.json +1162 -0
- package/esm/plugins/button-generator/assets/styles.json.js +1 -0
- package/esm/plugins/button-generator/button-generator.d.ts +25 -0
- package/esm/plugins/button-generator/button-generator.js +1 -0
- package/esm/plugins/button-generator/config.d.ts +6 -0
- package/esm/plugins/button-generator/config.js +6 -0
- package/esm/plugins/button-generator/icon.svg.js +1 -0
- package/esm/plugins/button-generator/ui/button/button.d.ts +21 -0
- package/esm/plugins/button-generator/ui/button/button.js +7 -0
- package/esm/plugins/button-generator/ui/form/form.d.ts +20 -0
- package/esm/plugins/button-generator/ui/form/form.js +6 -0
- package/esm/plugins/button-generator/ui/generator/button-generator.d.ts +22 -0
- package/esm/plugins/button-generator/ui/generator/button-generator.js +6 -0
- package/esm/plugins/button-generator/ui/preview/preview.d.ts +22 -0
- package/esm/plugins/button-generator/ui/preview/preview.js +6 -0
- package/esm/plugins/change-case/change-case.d.ts +22 -0
- package/esm/plugins/change-case/change-case.js +6 -0
- package/esm/plugins/change-case/config.d.ts +6 -0
- package/esm/plugins/change-case/config.js +6 -0
- package/esm/plugins/change-case/icon.svg.js +1 -0
- package/esm/plugins/color-picker/color-picker.d.ts +18 -0
- package/esm/plugins/color-picker/color-picker.js +6 -0
- package/esm/plugins/color-picker/ui/input/color-input.d.ts +19 -0
- package/esm/plugins/color-picker/ui/input/color-input.js +6 -0
- package/esm/plugins/emoji/config.d.ts +10 -0
- package/esm/plugins/emoji/config.js +1 -0
- package/esm/plugins/emoji/emoji.d.ts +22 -0
- package/esm/plugins/emoji/emoji.js +6 -0
- package/esm/plugins/emoji/emoji.json +5667 -0
- package/esm/plugins/emoji/emoji.json.js +1 -0
- package/esm/plugins/emoji/emoji.svg.js +1 -0
- package/esm/plugins/emoji/interface.d.ts +24 -0
- package/esm/plugins/emoji/interface.js +6 -0
- package/esm/plugins/emoji/ui/emoji.d.ts +54 -0
- package/esm/plugins/emoji/ui/emoji.js +6 -0
- package/esm/plugins/export-docs/assets/export.svg.js +1 -0
- package/esm/plugins/export-docs/config.d.ts +21 -0
- package/esm/plugins/export-docs/config.js +6 -0
- package/esm/plugins/export-docs/export-docs.d.ts +18 -0
- package/esm/plugins/export-docs/export-docs.js +6 -0
- package/esm/plugins/finder/browser.d.ts +70 -0
- package/esm/plugins/finder/browser.js +6 -0
- package/esm/plugins/finder/config.d.ts +6 -0
- package/esm/plugins/finder/config.js +6 -0
- package/esm/plugins/finder/finder.d.ts +19 -0
- package/esm/plugins/finder/finder.js +6 -0
- package/esm/plugins/finder/helpers/context-menu.d.ts +19 -0
- package/esm/plugins/finder/helpers/context-menu.js +6 -0
- package/esm/plugins/finder/helpers/helpers.d.ts +6 -0
- package/esm/plugins/finder/helpers/helpers.js +6 -0
- package/esm/plugins/finder/helpers/history-manager.d.ts +24 -0
- package/esm/plugins/finder/helpers/history-manager.js +6 -0
- package/esm/plugins/finder/helpers/loading-manager.d.ts +25 -0
- package/esm/plugins/finder/helpers/loading-manager.js +6 -0
- package/esm/plugins/finder/helpers/persistent-store.d.ts +32 -0
- package/esm/plugins/finder/helpers/persistent-store.js +6 -0
- package/esm/plugins/finder/helpers/state-manager.d.ts +21 -0
- package/esm/plugins/finder/helpers/state-manager.js +6 -0
- package/esm/plugins/finder/langs/index.d.ts +7 -0
- package/esm/plugins/finder/langs/ru.d.ts +22 -0
- package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -0
- package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -0
- package/esm/plugins/finder/ui/assets/icons/index.d.ts +1 -0
- package/esm/plugins/finder/ui/assets/icons/index.js +6 -0
- package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -0
- package/esm/plugins/finder/ui/folder/folder.d.ts +18 -0
- package/esm/plugins/finder/ui/folder/folder.js +6 -0
- package/esm/plugins/finder/ui/header/header.d.ts +21 -0
- package/esm/plugins/finder/ui/header/header.js +6 -0
- package/esm/plugins/finder/ui/item/item.d.ts +24 -0
- package/esm/plugins/finder/ui/item/item.js +6 -0
- package/esm/plugins/finder/ui/lightboox/lightbox.d.ts +27 -0
- package/esm/plugins/finder/ui/lightboox/lightbox.js +6 -0
- package/esm/plugins/finder/ui/panel/panel.d.ts +60 -0
- package/esm/plugins/finder/ui/panel/panel.js +6 -0
- package/esm/plugins/finder/ui/preview/preview.d.ts +25 -0
- package/esm/plugins/finder/ui/preview/preview.js +6 -0
- package/esm/plugins/finder/ui/progress/progress.d.ts +19 -0
- package/esm/plugins/finder/ui/progress/progress.js +6 -0
- package/esm/plugins/finder/ui/settings/settings.d.ts +25 -0
- package/esm/plugins/finder/ui/settings/settings.js +6 -0
- package/esm/plugins/finder/ui/sidebar/sidebar.d.ts +27 -0
- package/esm/plugins/finder/ui/sidebar/sidebar.js +6 -0
- package/esm/plugins/finder/ui/source/source.d.ts +19 -0
- package/esm/plugins/finder/ui/source/source.js +6 -0
- package/esm/plugins/finder/ui/sources/sources.d.ts +15 -0
- package/esm/plugins/finder/ui/sources/sources.js +6 -0
- package/esm/plugins/finder/ui/statusbar/statusbar.d.ts +14 -0
- package/esm/plugins/finder/ui/statusbar/statusbar.js +6 -0
- package/esm/plugins/finder/ui/tree/tree.d.ts +16 -0
- package/esm/plugins/finder/ui/tree/tree.js +6 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +32 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +6 -0
- package/esm/plugins/google-maps/assets/circle.svg.js +1 -0
- package/esm/plugins/google-maps/assets/hand.svg.js +1 -0
- package/esm/plugins/google-maps/assets/icon.svg.js +1 -0
- package/esm/plugins/google-maps/assets/index.d.ts +6 -0
- package/esm/plugins/google-maps/assets/index.js +6 -0
- package/esm/plugins/google-maps/assets/marker.svg.js +1 -0
- package/esm/plugins/google-maps/assets/polygon.svg.js +1 -0
- package/esm/plugins/google-maps/assets/polyline.svg.js +1 -0
- package/esm/plugins/google-maps/assets/text.svg.js +1 -0
- package/esm/plugins/google-maps/config.d.ts +45 -0
- package/esm/plugins/google-maps/config.js +6 -0
- package/esm/plugins/google-maps/google-maps.d.ts +29 -0
- package/esm/plugins/google-maps/google-maps.js +6 -0
- package/esm/plugins/google-maps/helpers/const.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/const.js +6 -0
- package/esm/plugins/google-maps/helpers/generate-js-script.d.ts +8 -0
- package/esm/plugins/google-maps/helpers/generate-js-script.js +1 -0
- package/esm/plugins/google-maps/helpers/generate-static-elements.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +6 -0
- package/esm/plugins/google-maps/helpers/helpers.d.ts +14 -0
- package/esm/plugins/google-maps/helpers/helpers.js +6 -0
- package/esm/plugins/google-maps/helpers/static-url.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/static-url.js +6 -0
- package/esm/plugins/google-maps/ui/combo-box/combo-box.d.ts +12 -0
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +6 -0
- package/esm/plugins/google-maps/ui/editors/base.d.ts +15 -0
- package/esm/plugins/google-maps/ui/editors/base.js +6 -0
- package/esm/plugins/google-maps/ui/editors/index.d.ts +8 -0
- package/esm/plugins/google-maps/ui/editors/index.js +6 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +6 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +6 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +6 -0
- package/esm/plugins/google-maps/ui/index.d.ts +10 -0
- package/esm/plugins/google-maps/ui/index.js +6 -0
- package/esm/plugins/google-maps/ui/map/map.d.ts +39 -0
- package/esm/plugins/google-maps/ui/map/map.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/index.d.ts +10 -0
- package/esm/plugins/google-maps/ui/map/modules/index.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/remove-element.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +6 -0
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +14 -0
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +6 -0
- package/esm/plugins/google-maps/ui/maps-props/maps-props.d.ts +19 -0
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +6 -0
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +13 -0
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +6 -0
- package/esm/plugins/google-search/google-search.d.ts +17 -0
- package/esm/plugins/google-search/google-search.js +6 -0
- package/esm/plugins/google-search/icon.svg.js +1 -0
- package/esm/plugins/highlight-signature/highlight-signature.d.ts +54 -0
- package/esm/plugins/highlight-signature/highlight-signature.js +6 -0
- package/esm/plugins/iframe-editor/config.d.ts +6 -0
- package/esm/plugins/iframe-editor/config.js +6 -0
- package/esm/plugins/iframe-editor/icon.svg.js +1 -0
- package/esm/plugins/iframe-editor/iframe-editor.d.ts +22 -0
- package/esm/plugins/iframe-editor/iframe-editor.js +6 -0
- package/esm/plugins/iframe-editor/interface.d.ts +15 -0
- package/esm/plugins/iframe-editor/interface.js +6 -0
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +14 -0
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +6 -0
- package/esm/plugins/index.d.ts +8 -0
- package/esm/plugins/index.js +6 -0
- package/esm/plugins/keyboard/config.d.ts +23 -0
- package/esm/plugins/keyboard/config.js +1 -0
- package/esm/plugins/keyboard/icon.svg.js +1 -0
- package/esm/plugins/keyboard/interface.d.ts +13 -0
- package/esm/plugins/keyboard/interface.js +6 -0
- package/esm/plugins/keyboard/keyboard.d.ts +27 -0
- package/esm/plugins/keyboard/keyboard.js +1 -0
- package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -0
- package/esm/plugins/keyboard/ui/keyboard/keyboard.d.ts +32 -0
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +6 -0
- package/esm/plugins/license/helpers/helpers.d.ts +14 -0
- package/esm/plugins/license/helpers/helpers.js +7 -0
- package/esm/plugins/license/license.d.ts +16 -0
- package/esm/plugins/license/license.js +6 -0
- package/esm/plugins/mobile-view/config.d.ts +14 -0
- package/esm/plugins/mobile-view/config.js +6 -0
- package/esm/plugins/mobile-view/icon.svg.js +1 -0
- package/esm/plugins/mobile-view/mobile-view.d.ts +6 -0
- package/esm/plugins/mobile-view/mobile-view.js +6 -0
- package/esm/plugins/page-break/assets/page-break.svg.js +1 -0
- package/esm/plugins/page-break/config.d.ts +13 -0
- package/esm/plugins/page-break/config.js +6 -0
- package/esm/plugins/page-break/page-break.css.d.ts +2 -0
- package/esm/plugins/page-break/page-break.css.js +6 -0
- package/esm/plugins/page-break/page-break.d.ts +23 -0
- package/esm/plugins/page-break/page-break.js +6 -0
- package/esm/plugins/paste-code/config.d.ts +36 -0
- package/esm/plugins/paste-code/config.js +6 -0
- package/esm/plugins/paste-code/icon.svg.js +1 -0
- package/esm/plugins/paste-code/paste-code.d.ts +30 -0
- package/esm/plugins/paste-code/paste-code.js +6 -0
- package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clean-styles.js +6 -0
- package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clear-attributes.js +6 -0
- package/esm/plugins/paste-from-word/cases/clear-class-name.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +6 -0
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +6 -0
- package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +11 -0
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +6 -0
- package/esm/plugins/paste-from-word/cases/index.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/index.js +6 -0
- package/esm/plugins/paste-from-word/cases/mark-page-break.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/mark-page-break.js +6 -0
- package/esm/plugins/paste-from-word/cases/normalize-image-props.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/normalize-image-props.js +6 -0
- package/esm/plugins/paste-from-word/cases/process-image.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/process-image.js +6 -0
- package/esm/plugins/paste-from-word/cases/process-links.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/process-links.js +6 -0
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.js +6 -0
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +6 -0
- package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/replace-old-tags.js +6 -0
- package/esm/plugins/paste-from-word/cases/table.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/table.js +6 -0
- package/esm/plugins/paste-from-word/config.d.ts +24 -0
- package/esm/plugins/paste-from-word/config.js +6 -0
- package/esm/plugins/paste-from-word/constants.d.ts +20 -0
- package/esm/plugins/paste-from-word/constants.js +6 -0
- package/esm/plugins/paste-from-word/element/checkers.d.ts +14 -0
- package/esm/plugins/paste-from-word/element/checkers.js +6 -0
- package/esm/plugins/paste-from-word/element/element.d.ts +34 -0
- package/esm/plugins/paste-from-word/element/element.js +6 -0
- package/esm/plugins/paste-from-word/element/index.d.ts +8 -0
- package/esm/plugins/paste-from-word/element/index.js +6 -0
- package/esm/plugins/paste-from-word/element/render.d.ts +9 -0
- package/esm/plugins/paste-from-word/element/render.js +6 -0
- package/esm/plugins/paste-from-word/element/style.d.ts +20 -0
- package/esm/plugins/paste-from-word/element/style.js +6 -0
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +7 -0
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +6 -0
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +7 -0
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +6 -0
- package/esm/plugins/paste-from-word/helpers/helpers.d.ts +19 -0
- package/esm/plugins/paste-from-word/helpers/helpers.js +6 -0
- package/esm/plugins/paste-from-word/helpers/index.d.ts +9 -0
- package/esm/plugins/paste-from-word/helpers/index.js +6 -0
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +8 -0
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +6 -0
- package/esm/plugins/paste-from-word/interface.d.ts +17 -0
- package/esm/plugins/paste-from-word/interface.js +6 -0
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +14 -0
- package/esm/plugins/paste-from-word/paste-from-word.js +6 -0
- package/esm/plugins/show-blocks/config.d.ts +15 -0
- package/esm/plugins/show-blocks/config.js +6 -0
- package/esm/plugins/show-blocks/langs/ar.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/cs_cz.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/de.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/es.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/fa.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/fr.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/he.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/hu.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/id.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/index.d.ts +25 -0
- package/esm/plugins/show-blocks/langs/index.js +6 -0
- package/esm/plugins/show-blocks/langs/it.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ja.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ko.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/nl.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/pl.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/pt_br.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ru.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/tr.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/zh_cn.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/zh_tw.d.ts +4 -0
- package/esm/plugins/show-blocks/show-blocks.d.ts +39 -0
- package/esm/plugins/show-blocks/show-blocks.js +6 -0
- package/esm/plugins/show-blocks/show-blocks.svg.js +1 -0
- package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -0
- package/esm/plugins/todo-list/config.d.ts +15 -0
- package/esm/plugins/todo-list/config.js +6 -0
- package/esm/plugins/todo-list/todo-list.d.ts +41 -0
- package/esm/plugins/todo-list/todo-list.js +6 -0
- package/esm/plugins/translate/assets/swap.svg.js +1 -0
- package/esm/plugins/translate/assets/translate.svg.js +1 -0
- package/esm/plugins/translate/config.d.ts +20 -0
- package/esm/plugins/translate/config.js +6 -0
- package/esm/plugins/translate/interface.d.ts +50 -0
- package/esm/plugins/translate/interface.js +6 -0
- package/esm/plugins/translate/providers/google/google.d.ts +14 -0
- package/esm/plugins/translate/providers/google/google.js +6 -0
- package/esm/plugins/translate/providers/languages.d.ts +140 -0
- package/esm/plugins/translate/providers/languages.js +6 -0
- package/esm/plugins/translate/translate.d.ts +20 -0
- package/esm/plugins/translate/translate.js +6 -0
- package/esm/plugins/translate/ui/list/list.d.ts +34 -0
- package/esm/plugins/translate/ui/list/list.js +6 -0
- package/esm/plugins/translate/ui/settings/settings.d.ts +35 -0
- package/esm/plugins/translate/ui/settings/settings.js +6 -0
- package/esm/plugins/tune-block/config.d.ts +13 -0
- package/esm/plugins/tune-block/config.js +6 -0
- package/esm/plugins/tune-block/tune-block.d.ts +30 -0
- package/esm/plugins/tune-block/tune-block.js +6 -0
- package/esm/plugins/tune-block/ui/tuner/icon.svg.js +1 -0
- package/esm/plugins/tune-block/ui/tuner/tuner.d.ts +53 -0
- package/esm/plugins/tune-block/ui/tuner/tuner.js +6 -0
- package/esm/traits/resize/resize.d.ts +17 -0
- package/esm/traits/resize/resize.js +6 -0
- package/esm/traits/select-items/select-items.d.ts +16 -0
- package/esm/traits/select-items/select-items.js +6 -0
- package/esm/tsconfig.json +19 -0
- package/esm/types/view.d.ts +9 -0
- package/esm/typings.d.ts +5 -0
- package/package.json +3 -2
- package/types/config.d.ts +11 -0
- package/types/core/ui/form/range/range.d.ts +23 -0
- package/types/index.d.ts +7 -0
- package/types/jodit-pro.d.ts +14 -0
- package/types/plugins/autocomplete/autocomplete.d.ts +40 -0
- package/types/plugins/autocomplete/helpers.d.ts +25 -0
- package/types/plugins/autocomplete/interface.d.ts +19 -0
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +20 -0
- package/types/plugins/autocomplete/ui/item.d.ts +14 -0
- package/types/plugins/backup/backup.d.ts +29 -0
- package/types/plugins/backup/config.d.ts +18 -0
- package/types/plugins/backup/interface.d.ts +14 -0
- package/types/plugins/backup/langs/index.d.ts +6 -0
- package/types/plugins/backup/modules/store.d.ts +15 -0
- package/types/plugins/backup/ui/box.d.ts +29 -0
- package/types/plugins/backup/ui/item.d.ts +17 -0
- package/types/plugins/backup/ui/list.d.ts +24 -0
- package/types/plugins/button-generator/button-generator.d.ts +25 -0
- package/types/plugins/button-generator/config.d.ts +6 -0
- package/types/plugins/button-generator/ui/button/button.d.ts +21 -0
- package/types/plugins/button-generator/ui/form/form.d.ts +20 -0
- package/types/plugins/button-generator/ui/generator/button-generator.d.ts +22 -0
- package/types/plugins/button-generator/ui/preview/preview.d.ts +22 -0
- package/types/plugins/change-case/change-case.d.ts +22 -0
- package/types/plugins/change-case/config.d.ts +6 -0
- package/types/plugins/color-picker/color-picker.d.ts +18 -0
- package/types/plugins/color-picker/ui/input/color-input.d.ts +19 -0
- package/types/plugins/emoji/config.d.ts +10 -0
- package/types/plugins/emoji/emoji.d.ts +22 -0
- package/types/plugins/emoji/interface.d.ts +24 -0
- package/types/plugins/emoji/ui/emoji.d.ts +54 -0
- package/types/plugins/export-docs/config.d.ts +21 -0
- package/types/plugins/export-docs/export-docs.d.ts +18 -0
- package/types/plugins/finder/browser.d.ts +70 -0
- package/types/plugins/finder/config.d.ts +6 -0
- package/types/plugins/finder/finder.d.ts +19 -0
- package/types/plugins/finder/helpers/context-menu.d.ts +19 -0
- package/types/plugins/finder/helpers/helpers.d.ts +6 -0
- package/types/plugins/finder/helpers/history-manager.d.ts +24 -0
- package/types/plugins/finder/helpers/loading-manager.d.ts +25 -0
- package/types/plugins/finder/helpers/persistent-store.d.ts +32 -0
- package/types/plugins/finder/helpers/state-manager.d.ts +21 -0
- package/types/plugins/finder/langs/index.d.ts +7 -0
- package/types/plugins/finder/langs/ru.d.ts +22 -0
- package/types/plugins/finder/ui/assets/icons/index.d.ts +1 -0
- package/types/plugins/finder/ui/folder/folder.d.ts +18 -0
- package/types/plugins/finder/ui/header/header.d.ts +21 -0
- package/types/plugins/finder/ui/item/item.d.ts +24 -0
- package/types/plugins/finder/ui/lightboox/lightbox.d.ts +27 -0
- package/types/plugins/finder/ui/panel/panel.d.ts +60 -0
- package/types/plugins/finder/ui/preview/preview.d.ts +25 -0
- package/types/plugins/finder/ui/progress/progress.d.ts +19 -0
- package/types/plugins/finder/ui/settings/settings.d.ts +25 -0
- package/types/plugins/finder/ui/sidebar/sidebar.d.ts +27 -0
- package/types/plugins/finder/ui/source/source.d.ts +19 -0
- package/types/plugins/finder/ui/sources/sources.d.ts +15 -0
- package/types/plugins/finder/ui/statusbar/statusbar.d.ts +14 -0
- package/types/plugins/finder/ui/tree/tree.d.ts +16 -0
- package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +32 -0
- package/types/plugins/google-maps/assets/index.d.ts +6 -0
- package/types/plugins/google-maps/config.d.ts +45 -0
- package/types/plugins/google-maps/google-maps.d.ts +29 -0
- package/types/plugins/google-maps/helpers/const.d.ts +7 -0
- package/types/plugins/google-maps/helpers/generate-js-script.d.ts +8 -0
- package/types/plugins/google-maps/helpers/generate-static-elements.d.ts +7 -0
- package/types/plugins/google-maps/helpers/helpers.d.ts +14 -0
- package/types/plugins/google-maps/helpers/static-url.d.ts +7 -0
- package/types/plugins/google-maps/ui/combo-box/combo-box.d.ts +12 -0
- package/types/plugins/google-maps/ui/editors/base.d.ts +15 -0
- package/types/plugins/google-maps/ui/editors/index.d.ts +8 -0
- package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +10 -0
- package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +10 -0
- package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +10 -0
- package/types/plugins/google-maps/ui/index.d.ts +10 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +39 -0
- package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/index.d.ts +10 -0
- package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +8 -0
- package/types/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +14 -0
- package/types/plugins/google-maps/ui/maps-props/maps-props.d.ts +19 -0
- package/types/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +13 -0
- package/types/plugins/google-search/google-search.d.ts +17 -0
- package/types/plugins/highlight-signature/highlight-signature.d.ts +54 -0
- package/types/plugins/iframe-editor/config.d.ts +6 -0
- package/types/plugins/iframe-editor/iframe-editor.d.ts +22 -0
- package/types/plugins/iframe-editor/interface.d.ts +15 -0
- package/types/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +14 -0
- package/types/plugins/index.d.ts +8 -0
- package/types/plugins/keyboard/config.d.ts +23 -0
- package/types/plugins/keyboard/interface.d.ts +13 -0
- package/types/plugins/keyboard/keyboard.d.ts +27 -0
- package/types/plugins/keyboard/ui/keyboard/keyboard.d.ts +32 -0
- package/types/plugins/license/helpers/helpers.d.ts +14 -0
- package/types/plugins/license/license.d.ts +16 -0
- package/types/plugins/mobile-view/config.d.ts +14 -0
- package/types/plugins/mobile-view/mobile-view.d.ts +6 -0
- package/types/plugins/page-break/config.d.ts +13 -0
- package/types/plugins/page-break/page-break.css.d.ts +2 -0
- package/types/plugins/page-break/page-break.d.ts +23 -0
- package/types/plugins/paste-code/config.d.ts +36 -0
- package/types/plugins/paste-code/paste-code.d.ts +30 -0
- package/types/plugins/paste-from-word/cases/clean-styles.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/clear-class-name.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +11 -0
- package/types/plugins/paste-from-word/cases/index.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/mark-page-break.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/normalize-image-props.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/process-image.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/process-links.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/table.d.ts +7 -0
- package/types/plugins/paste-from-word/config.d.ts +24 -0
- package/types/plugins/paste-from-word/constants.d.ts +20 -0
- package/types/plugins/paste-from-word/element/checkers.d.ts +14 -0
- package/types/plugins/paste-from-word/element/element.d.ts +34 -0
- package/types/plugins/paste-from-word/element/index.d.ts +8 -0
- package/types/plugins/paste-from-word/element/render.d.ts +9 -0
- package/types/plugins/paste-from-word/element/style.d.ts +20 -0
- package/types/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +7 -0
- package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +7 -0
- package/types/plugins/paste-from-word/helpers/helpers.d.ts +19 -0
- package/types/plugins/paste-from-word/helpers/index.d.ts +9 -0
- package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +8 -0
- package/types/plugins/paste-from-word/interface.d.ts +17 -0
- package/types/plugins/paste-from-word/paste-from-word.d.ts +14 -0
- package/types/plugins/show-blocks/config.d.ts +15 -0
- package/types/plugins/show-blocks/langs/ar.d.ts +4 -0
- package/types/plugins/show-blocks/langs/cs_cz.d.ts +4 -0
- package/types/plugins/show-blocks/langs/de.d.ts +4 -0
- package/types/plugins/show-blocks/langs/es.d.ts +4 -0
- package/types/plugins/show-blocks/langs/fa.d.ts +4 -0
- package/types/plugins/show-blocks/langs/fr.d.ts +4 -0
- package/types/plugins/show-blocks/langs/he.d.ts +4 -0
- package/types/plugins/show-blocks/langs/hu.d.ts +4 -0
- package/types/plugins/show-blocks/langs/id.d.ts +4 -0
- package/types/plugins/show-blocks/langs/index.d.ts +25 -0
- package/types/plugins/show-blocks/langs/it.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ja.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ko.d.ts +4 -0
- package/types/plugins/show-blocks/langs/nl.d.ts +4 -0
- package/types/plugins/show-blocks/langs/pl.d.ts +4 -0
- package/types/plugins/show-blocks/langs/pt_br.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ru.d.ts +4 -0
- package/types/plugins/show-blocks/langs/tr.d.ts +4 -0
- package/types/plugins/show-blocks/langs/zh_cn.d.ts +4 -0
- package/types/plugins/show-blocks/langs/zh_tw.d.ts +4 -0
- package/types/plugins/show-blocks/show-blocks.d.ts +39 -0
- package/types/plugins/todo-list/config.d.ts +15 -0
- package/types/plugins/todo-list/todo-list.d.ts +41 -0
- package/types/plugins/translate/config.d.ts +20 -0
- package/types/plugins/translate/interface.d.ts +50 -0
- package/types/plugins/translate/providers/google/google.d.ts +14 -0
- package/types/plugins/translate/providers/languages.d.ts +140 -0
- package/types/plugins/translate/translate.d.ts +20 -0
- package/types/plugins/translate/ui/list/list.d.ts +34 -0
- package/types/plugins/translate/ui/settings/settings.d.ts +35 -0
- package/types/plugins/tune-block/config.d.ts +13 -0
- package/types/plugins/tune-block/tune-block.d.ts +30 -0
- package/types/plugins/tune-block/ui/tuner/tuner.d.ts +53 -0
- package/types/traits/resize/resize.d.ts +17 -0
- package/types/traits/select-items/select-items.d.ts +16 -0
- package/types/tsconfig.json +19 -0
- package/types/types/view.d.ts +9 -0
- package/types/typings.d.ts +5 -0
- package/es2015/plugins/autocomplete/autocomplete.css +0 -26
- package/es2015/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2018/plugins/autocomplete/autocomplete.css +0 -26
- package/es2018/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2021/plugins/autocomplete/autocomplete.css +0 -26
- package/es2021/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +0 -26
- package/es2021.en/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es5/plugins/autocomplete/autocomplete.css +0 -26
- package/es5/plugins/autocomplete/autocomplete.min.css +0 -1
package/es2015/jodit.js
CHANGED
|
@@ -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: v2.0.0-beta.
|
|
4
|
+
* Version: v2.0.0-beta.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2401,7 +2401,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2401
2401
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2402
2402
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2403
2403
|
*/
|
|
2404
|
-
const APP_VERSION = "2.0.0-beta.
|
|
2404
|
+
const APP_VERSION = "2.0.0-beta.21";
|
|
2405
2405
|
// eslint-disable-next-line prettier/prettier
|
|
2406
2406
|
const ES = "es2015";
|
|
2407
2407
|
const IS_ES_MODERN = true;
|
|
@@ -3988,8 +3988,15 @@ class Dom {
|
|
|
3988
3988
|
static safeInsertNode(range, node) {
|
|
3989
3989
|
range.collapsed || range.deleteContents();
|
|
3990
3990
|
const child = Dom.isFragment(node) ? node.lastChild : node;
|
|
3991
|
-
range.
|
|
3992
|
-
|
|
3991
|
+
if (range.startContainer === range.endContainer &&
|
|
3992
|
+
range.collapsed &&
|
|
3993
|
+
Dom.isTag(range.startContainer, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
3994
|
+
Dom.after(range.startContainer, node);
|
|
3995
|
+
}
|
|
3996
|
+
else {
|
|
3997
|
+
range.insertNode(node);
|
|
3998
|
+
child && range.setStartBefore(child);
|
|
3999
|
+
}
|
|
3993
4000
|
range.collapse(true);
|
|
3994
4001
|
// https://developer.mozilla.org/en-US/docs/Web/API/Range/insertNode
|
|
3995
4002
|
// if the new node is to be added to a text Node, that Node is split at the
|
|
@@ -7981,8 +7988,13 @@ function attr(elm, keyOrAttributes, value) {
|
|
|
7981
7988
|
elm.hasAttribute(key) && elm.removeAttribute(key);
|
|
7982
7989
|
}
|
|
7983
7990
|
else {
|
|
7984
|
-
|
|
7985
|
-
|
|
7991
|
+
let replaceValue = value.toString();
|
|
7992
|
+
if (elm.nodeName === 'IMG' &&
|
|
7993
|
+
(key === 'width' || key === 'height')) {
|
|
7994
|
+
replaceValue = replaceValue.replace('px', '');
|
|
7995
|
+
}
|
|
7996
|
+
elm.setAttribute(key, replaceValue);
|
|
7997
|
+
return replaceValue;
|
|
7986
7998
|
}
|
|
7987
7999
|
}
|
|
7988
8000
|
return elm.getAttribute(key);
|
|
@@ -9274,25 +9286,29 @@ function reset(key) {
|
|
|
9274
9286
|
/**
|
|
9275
9287
|
* @module helpers/utils
|
|
9276
9288
|
*/
|
|
9277
|
-
|
|
9289
|
+
/**
|
|
9290
|
+
* Check if element is in view
|
|
9291
|
+
*/
|
|
9292
|
+
function inView(elm, root, doc) {
|
|
9278
9293
|
let rect = elm.getBoundingClientRect(), el = elm;
|
|
9279
9294
|
const top = rect.top, height = rect.height;
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
return false;
|
|
9286
|
-
}
|
|
9287
|
-
// Check if the element is out of view due to a container scrolling
|
|
9288
|
-
if (top + height <= rect.top) {
|
|
9289
|
-
return false;
|
|
9290
|
-
}
|
|
9295
|
+
while (el && el !== root && el.parentNode) {
|
|
9296
|
+
el = el.parentNode;
|
|
9297
|
+
rect = el.getBoundingClientRect();
|
|
9298
|
+
if (!(top <= rect.bottom)) {
|
|
9299
|
+
return false;
|
|
9291
9300
|
}
|
|
9292
|
-
|
|
9293
|
-
|
|
9301
|
+
// Check if the element is out of view due to a container scrolling
|
|
9302
|
+
if (top + height <= rect.top) {
|
|
9303
|
+
return false;
|
|
9304
|
+
}
|
|
9305
|
+
}
|
|
9306
|
+
// Check it's within the document viewport
|
|
9294
9307
|
return (top <= ((doc.documentElement && doc.documentElement.clientHeight) || 0));
|
|
9295
|
-
}
|
|
9308
|
+
}
|
|
9309
|
+
/**
|
|
9310
|
+
* Scroll element into view if it is not in view
|
|
9311
|
+
*/
|
|
9296
9312
|
function scrollIntoViewIfNeeded(elm, root, doc) {
|
|
9297
9313
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isHTMLElement */ .i.isHTMLElement(elm) && !inView(elm, root, doc)) {
|
|
9298
9314
|
if (root.clientHeight !== root.scrollHeight) {
|
|
@@ -10835,14 +10851,14 @@ class Selection {
|
|
|
10835
10851
|
const left = range.cloneRange();
|
|
10836
10852
|
left.collapse(true);
|
|
10837
10853
|
const fakeLeft = this.j.createInside.fake();
|
|
10838
|
-
|
|
10854
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(left, fakeLeft);
|
|
10839
10855
|
range.setStartBefore(fakeLeft);
|
|
10840
10856
|
const result = [fakeLeft];
|
|
10841
10857
|
if (!range.collapsed) {
|
|
10842
10858
|
const right = range.cloneRange();
|
|
10843
10859
|
right.collapse(false);
|
|
10844
10860
|
const fakeRight = this.j.createInside.fake();
|
|
10845
|
-
|
|
10861
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(right, fakeRight);
|
|
10846
10862
|
range.setEndAfter(fakeRight);
|
|
10847
10863
|
result.push(fakeRight);
|
|
10848
10864
|
}
|
|
@@ -11061,7 +11077,6 @@ class Selection {
|
|
|
11061
11077
|
}
|
|
11062
11078
|
const sel = this.sel;
|
|
11063
11079
|
this.j.history.snapshot.transaction(() => {
|
|
11064
|
-
var _a;
|
|
11065
11080
|
if (!this.isCollapsed()) {
|
|
11066
11081
|
this.j.execCommand('Delete');
|
|
11067
11082
|
}
|
|
@@ -11069,13 +11084,7 @@ class Selection {
|
|
|
11069
11084
|
if (sel && sel.rangeCount) {
|
|
11070
11085
|
const range = sel.getRangeAt(0);
|
|
11071
11086
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isOrContains */ .i.isOrContains(this.area, range.commonAncestorContainer)) {
|
|
11072
|
-
|
|
11073
|
-
range.collapsed) {
|
|
11074
|
-
(_a = range.startContainer.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(node, range.startContainer);
|
|
11075
|
-
}
|
|
11076
|
-
else {
|
|
11077
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
11078
|
-
}
|
|
11087
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
11079
11088
|
}
|
|
11080
11089
|
else {
|
|
11081
11090
|
this.area.appendChild(node);
|
|
@@ -11084,14 +11093,26 @@ class Selection {
|
|
|
11084
11093
|
else {
|
|
11085
11094
|
this.area.appendChild(node);
|
|
11086
11095
|
}
|
|
11096
|
+
const setCursor = (node) => {
|
|
11097
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isBlock */ .i.isBlock(node)) {
|
|
11098
|
+
const child = node.lastChild;
|
|
11099
|
+
if (child) {
|
|
11100
|
+
return setCursor(child);
|
|
11101
|
+
}
|
|
11102
|
+
}
|
|
11103
|
+
this.setCursorAfter(node);
|
|
11104
|
+
};
|
|
11087
11105
|
if (insertCursorAfter) {
|
|
11088
11106
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isFragment */ .i.isFragment(node)) {
|
|
11089
|
-
child &&
|
|
11107
|
+
child && setCursor(child);
|
|
11090
11108
|
}
|
|
11091
11109
|
else {
|
|
11092
|
-
|
|
11110
|
+
setCursor(node);
|
|
11093
11111
|
}
|
|
11094
11112
|
}
|
|
11113
|
+
if (this.j.o.scrollToPastedContent) {
|
|
11114
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(child !== null && child !== void 0 ? child : node, this.j.editor, this.doc);
|
|
11115
|
+
}
|
|
11095
11116
|
});
|
|
11096
11117
|
if (fireChange && this.j.events) {
|
|
11097
11118
|
this.j.__imdSynchronizeValues();
|
|
@@ -15767,6 +15788,13 @@ Icon.__cache = new Map();
|
|
|
15767
15788
|
|
|
15768
15789
|
|
|
15769
15790
|
|
|
15791
|
+
const EVENTS_FOR_AUTOCLOSE = [
|
|
15792
|
+
'escape',
|
|
15793
|
+
'cut',
|
|
15794
|
+
'delete',
|
|
15795
|
+
'backSpaceAfterDelete',
|
|
15796
|
+
'beforeCommandDelete'
|
|
15797
|
+
];
|
|
15770
15798
|
class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .u {
|
|
15771
15799
|
/** @override */
|
|
15772
15800
|
className() {
|
|
@@ -16001,7 +16029,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16001
16029
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.on */ .TB.on('closeAllPopups', this.close);
|
|
16002
16030
|
if (this.smart) {
|
|
16003
16031
|
this.j.e
|
|
16004
|
-
.on(
|
|
16032
|
+
.on(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
16005
16033
|
.on('mousedown touchstart', this.closeOnOutsideClick)
|
|
16006
16034
|
.on(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
16007
16035
|
}
|
|
@@ -16020,7 +16048,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16020
16048
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.off */ .TB.off('closeAllPopups', this.close);
|
|
16021
16049
|
if (this.smart) {
|
|
16022
16050
|
this.j.e
|
|
16023
|
-
.off(
|
|
16051
|
+
.off(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
16024
16052
|
.off('mousedown touchstart', this.closeOnOutsideClick)
|
|
16025
16053
|
.off(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
16026
16054
|
}
|
|
@@ -17211,7 +17239,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17211
17239
|
* })
|
|
17212
17240
|
* ```
|
|
17213
17241
|
*/
|
|
17214
|
-
result = this.e.fire(
|
|
17242
|
+
result = this.e.fire(`beforeCommand${(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ucfirst)(command)}`, showUI, value, ...args);
|
|
17243
|
+
if (result !== false) {
|
|
17244
|
+
result = this.e.fire('beforeCommand', command, showUI, value, ...args);
|
|
17245
|
+
}
|
|
17215
17246
|
if (result !== false) {
|
|
17216
17247
|
result = this.__execCustomCommands(command, showUI, value, ...args);
|
|
17217
17248
|
}
|
|
@@ -32558,7 +32589,7 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plug
|
|
|
32558
32589
|
* Hide opened popup
|
|
32559
32590
|
*/
|
|
32560
32591
|
hidePopup(type) {
|
|
32561
|
-
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type) {
|
|
32592
|
+
if (this.popup.isOpened && (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type)) {
|
|
32562
32593
|
this.popup.close();
|
|
32563
32594
|
}
|
|
32564
32595
|
}
|
|
@@ -32721,7 +32752,7 @@ inlinePopup.requires = ['select'];
|
|
|
32721
32752
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.wait)((ctx) => !ctx.j.isLocked)
|
|
32722
32753
|
], inlinePopup.prototype, "showPopup", null);
|
|
32723
32754
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
32724
|
-
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)(':clickEditor'),
|
|
32755
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)([':clickEditor', ':beforeCommandDelete', ':backSpaceAfterDelete']),
|
|
32725
32756
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.autobind
|
|
32726
32757
|
], inlinePopup.prototype, "hidePopup", null);
|
|
32727
32758
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
@@ -34775,6 +34806,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__/* .pluginSystem.add */ .pw.add('p
|
|
|
34775
34806
|
|
|
34776
34807
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.askBeforePasteHTML = true;
|
|
34777
34808
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.processPasteHTML = true;
|
|
34809
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.scrollToPastedContent = true;
|
|
34778
34810
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteHTMLActionList = [
|
|
34779
34811
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
34780
34812
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
@@ -35078,7 +35110,7 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
35078
35110
|
text = result;
|
|
35079
35111
|
}
|
|
35080
35112
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(text) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isNode */ .i.isNode(text)) {
|
|
35081
|
-
this.
|
|
35113
|
+
this.__insertByType(e, text, this.j.o.defaultActionOnPaste);
|
|
35082
35114
|
}
|
|
35083
35115
|
e.preventDefault();
|
|
35084
35116
|
e.stopPropagation();
|
|
@@ -35088,35 +35120,35 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
35088
35120
|
* Process usual HTML text fragment
|
|
35089
35121
|
*/
|
|
35090
35122
|
processHTML(e, html) {
|
|
35091
|
-
if (this.j.o.askBeforePasteHTML) {
|
|
35092
|
-
|
|
35093
|
-
|
|
35094
|
-
|
|
35095
|
-
|
|
35096
|
-
|
|
35097
|
-
|
|
35098
|
-
}
|
|
35099
|
-
if (this._isDialogOpened) {
|
|
35123
|
+
if (!this.j.o.askBeforePasteHTML) {
|
|
35124
|
+
return false;
|
|
35125
|
+
}
|
|
35126
|
+
if (this.j.o.memorizeChoiceWhenPasteFragment) {
|
|
35127
|
+
const cached = this.pasteStack.find(cachedItem => cachedItem.html === html);
|
|
35128
|
+
if (cached) {
|
|
35129
|
+
this.__insertByType(e, html, cached.action || this.j.o.defaultActionOnPaste);
|
|
35100
35130
|
return true;
|
|
35101
35131
|
}
|
|
35102
|
-
|
|
35103
|
-
|
|
35104
|
-
this.insertByType(e, html, insertType);
|
|
35105
|
-
}, this.j.o.pasteHTMLActionList);
|
|
35106
|
-
if (dialog) {
|
|
35107
|
-
this._isDialogOpened = true;
|
|
35108
|
-
dialog.e.on('beforeClose', () => {
|
|
35109
|
-
this._isDialogOpened = false;
|
|
35110
|
-
});
|
|
35111
|
-
}
|
|
35132
|
+
}
|
|
35133
|
+
if (this._isDialogOpened) {
|
|
35112
35134
|
return true;
|
|
35113
35135
|
}
|
|
35114
|
-
|
|
35136
|
+
const dialog = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .askInsertTypeDialog */ .$t)(this.j, 'Your code is similar to HTML. Keep as HTML?', 'Paste as HTML', insertType => {
|
|
35137
|
+
this._isDialogOpened = false;
|
|
35138
|
+
this.__insertByType(e, html, insertType);
|
|
35139
|
+
}, this.j.o.pasteHTMLActionList);
|
|
35140
|
+
if (dialog) {
|
|
35141
|
+
this._isDialogOpened = true;
|
|
35142
|
+
dialog.e.on('beforeClose', () => {
|
|
35143
|
+
this._isDialogOpened = false;
|
|
35144
|
+
});
|
|
35145
|
+
}
|
|
35146
|
+
return true;
|
|
35115
35147
|
}
|
|
35116
35148
|
/**
|
|
35117
35149
|
* Insert HTML by option type
|
|
35118
35150
|
*/
|
|
35119
|
-
|
|
35151
|
+
__insertByType(e, html, action) {
|
|
35120
35152
|
this.pasteStack.push({ html, action });
|
|
35121
35153
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(html)) {
|
|
35122
35154
|
this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.CLIPBOARD_ID, html);
|
|
@@ -41899,7 +41931,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41899
41931
|
|
|
41900
41932
|
/***/ }),
|
|
41901
41933
|
|
|
41902
|
-
/***/
|
|
41934
|
+
/***/ 68353:
|
|
41935
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
41936
|
+
|
|
41937
|
+
"use strict";
|
|
41938
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
41939
|
+
/*!
|
|
41940
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41941
|
+
* See LICENSE.md in the project root for license information.
|
|
41942
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41943
|
+
*/
|
|
41944
|
+
|
|
41945
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font.list = {
|
|
41946
|
+
'andale mono,monospace': 'Andale Mono',
|
|
41947
|
+
'arial,helvetica,sans-serif': 'Arial',
|
|
41948
|
+
'arial black,sans-serif': 'Arial Black',
|
|
41949
|
+
'book antiqua,palatino,serif': 'Book Antiqua',
|
|
41950
|
+
'comic sans ms,sans-serif': 'Comic Sans MS',
|
|
41951
|
+
'courier new,courier,monospace': 'Courier New',
|
|
41952
|
+
'georgia,palatino,serif': 'Georgia',
|
|
41953
|
+
'helvetica,arial,sans-serif': 'Helvetica',
|
|
41954
|
+
'impact,charcoal,sans-serif': 'Impact',
|
|
41955
|
+
'symbol,sans-serif': 'Symbol',
|
|
41956
|
+
'tahoma,arial,helvetica,sans-serif': 'Tahoma',
|
|
41957
|
+
'terminal,monaco,monospace': 'Terminal',
|
|
41958
|
+
'times new roman,times,serif': 'Times New Roman',
|
|
41959
|
+
'trebuchet ms,geneva,sans-serif': 'Trebuchet MS',
|
|
41960
|
+
'verdana,geneva,sans-serif': 'Verdana',
|
|
41961
|
+
webdings: 'Webdings',
|
|
41962
|
+
'wingdings,zapf dingbats': 'Wingdings'
|
|
41963
|
+
};
|
|
41964
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.loadExternalConfig = true;
|
|
41965
|
+
|
|
41966
|
+
|
|
41967
|
+
/***/ }),
|
|
41968
|
+
|
|
41969
|
+
/***/ 53852:
|
|
41903
41970
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41904
41971
|
|
|
41905
41972
|
"use strict";
|
|
@@ -41963,62 +42030,450 @@ class JoditPro extends jodit_index__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .h {
|
|
|
41963
42030
|
|
|
41964
42031
|
/***/ }),
|
|
41965
42032
|
|
|
41966
|
-
/***/
|
|
41967
|
-
/***/ (function(__unused_webpack_module,
|
|
42033
|
+
/***/ 93123:
|
|
42034
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41968
42035
|
|
|
41969
42036
|
"use strict";
|
|
41970
|
-
|
|
42037
|
+
__webpack_require__.r(__webpack_exports__);
|
|
42038
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42039
|
+
/* harmony export */ "autocomplete": function() { return /* binding */ autocomplete; }
|
|
42040
|
+
/* harmony export */ });
|
|
42041
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(97582);
|
|
42042
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
|
|
42043
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77628);
|
|
42044
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
|
|
42045
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95582);
|
|
42046
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44913);
|
|
42047
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19797);
|
|
42048
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11612);
|
|
42049
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77325);
|
|
42050
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53852);
|
|
42051
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(47325);
|
|
41971
42052
|
/*!
|
|
41972
42053
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41973
42054
|
* See LICENSE.md in the project root for license information.
|
|
41974
42055
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41975
42056
|
*/
|
|
41976
42057
|
|
|
41977
|
-
|
|
41978
|
-
|
|
41979
|
-
|
|
41980
|
-
|
|
41981
|
-
|
|
41982
|
-
|
|
41983
|
-
|
|
41984
|
-
|
|
41985
|
-
|
|
41986
|
-
|
|
41987
|
-
|
|
41988
|
-
|
|
41989
|
-
|
|
41990
|
-
|
|
41991
|
-
|
|
41992
|
-
|
|
41993
|
-
webdings: 'Webdings',
|
|
41994
|
-
'wingdings,zapf dingbats': 'Wingdings'
|
|
42058
|
+
|
|
42059
|
+
|
|
42060
|
+
|
|
42061
|
+
|
|
42062
|
+
|
|
42063
|
+
|
|
42064
|
+
|
|
42065
|
+
|
|
42066
|
+
|
|
42067
|
+
|
|
42068
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.autocomplete = {
|
|
42069
|
+
sources: [],
|
|
42070
|
+
maxItems: 50,
|
|
42071
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
42072
|
+
itemRenderer: (item) => { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
42073
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
41995
42074
|
};
|
|
41996
|
-
|
|
42075
|
+
class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
|
|
42076
|
+
constructor() {
|
|
42077
|
+
super(...arguments);
|
|
42078
|
+
/** @override */
|
|
42079
|
+
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.fatMode */ .y.fatMode;
|
|
42080
|
+
this.sources = [];
|
|
42081
|
+
}
|
|
42082
|
+
/** @override */
|
|
42083
|
+
afterInit(jodit) {
|
|
42084
|
+
this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .G(jodit);
|
|
42085
|
+
this.popup.setMod('padding', false);
|
|
42086
|
+
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .F(jodit);
|
|
42087
|
+
this.popup.setContent(this.list.container);
|
|
42088
|
+
jodit.e
|
|
42089
|
+
.on('select.autocomplete', (item) => {
|
|
42090
|
+
let insertValue = item.value;
|
|
42091
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(item.insertValueRenderer)) {
|
|
42092
|
+
insertValue = item.insertValueRenderer(item);
|
|
42093
|
+
}
|
|
42094
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom.isNode */ .i.isNode(insertValue)) {
|
|
42095
|
+
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
42096
|
+
}
|
|
42097
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .replaceTextLeftOfCursorAfterSpace */ .p)(jodit.s.range, insertValue);
|
|
42098
|
+
this.j.s.setCursorAfter(insertValue);
|
|
42099
|
+
this.j.synchronizeValues();
|
|
42100
|
+
this.popup.close();
|
|
42101
|
+
})
|
|
42102
|
+
.on('keydown.autocomplete', this.onKeyDown)
|
|
42103
|
+
.on('keydown.autocomplete', this.onKeyControlDown, {
|
|
42104
|
+
top: true
|
|
42105
|
+
})
|
|
42106
|
+
.on('beforeEnter.autocomplete', this.onEnter, { top: true })
|
|
42107
|
+
.on('autocomplete.autocomplete', this.onAutoComplete)
|
|
42108
|
+
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource);
|
|
42109
|
+
}
|
|
42110
|
+
registerAutocompleteSource(source) {
|
|
42111
|
+
this.sources.push(source);
|
|
42112
|
+
}
|
|
42113
|
+
static isControlKey(key) {
|
|
42114
|
+
return (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN ||
|
|
42115
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ||
|
|
42116
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ENTER ||
|
|
42117
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB);
|
|
42118
|
+
}
|
|
42119
|
+
onKeyDown(e) {
|
|
42120
|
+
var _a, _b;
|
|
42121
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__awaiter */ .mG)(this, void 0, void 0, function* () {
|
|
42122
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ESC) {
|
|
42123
|
+
this.popup.isOpened && this.popup.close();
|
|
42124
|
+
return;
|
|
42125
|
+
}
|
|
42126
|
+
const { s } = this.j;
|
|
42127
|
+
if (autocomplete.isControlKey(e.key) ||
|
|
42128
|
+
!s.isInsideArea ||
|
|
42129
|
+
!s.isCollapsed) {
|
|
42130
|
+
return;
|
|
42131
|
+
}
|
|
42132
|
+
const range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
|
|
42133
|
+
? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
|
|
42134
|
+
: null;
|
|
42135
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .getTextLeftOfCursor */ .Y)(range).split(' ').pop();
|
|
42136
|
+
if (query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length) {
|
|
42137
|
+
const result = yield this.onAutoComplete(query);
|
|
42138
|
+
if (result.length) {
|
|
42139
|
+
return this.openPopup(result);
|
|
42140
|
+
}
|
|
42141
|
+
}
|
|
42142
|
+
if (this.popup.isOpened) {
|
|
42143
|
+
this.popup.close();
|
|
42144
|
+
}
|
|
42145
|
+
});
|
|
42146
|
+
}
|
|
42147
|
+
onKeyControlDown(e) {
|
|
42148
|
+
if (this.popup.isOpened && autocomplete.isControlKey(e.key)) {
|
|
42149
|
+
switch (e.key) {
|
|
42150
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN:
|
|
42151
|
+
this.list.selectNext();
|
|
42152
|
+
break;
|
|
42153
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP:
|
|
42154
|
+
this.list.selectPrevious();
|
|
42155
|
+
break;
|
|
42156
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB:
|
|
42157
|
+
this.list.select();
|
|
42158
|
+
break;
|
|
42159
|
+
}
|
|
42160
|
+
this.j.e.stopPropagation(e.type);
|
|
42161
|
+
return false;
|
|
42162
|
+
}
|
|
42163
|
+
}
|
|
42164
|
+
onEnter() {
|
|
42165
|
+
if (this.popup.isOpened) {
|
|
42166
|
+
this.list.select();
|
|
42167
|
+
return false;
|
|
42168
|
+
}
|
|
42169
|
+
}
|
|
42170
|
+
onAutoComplete(query) {
|
|
42171
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__awaiter */ .mG)(this, void 0, void 0, function* () {
|
|
42172
|
+
const result = [];
|
|
42173
|
+
yield Promise.all(this.sources
|
|
42174
|
+
.concat(this.j.o.autocomplete.sources)
|
|
42175
|
+
.map((source) => (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__awaiter */ .mG)(this, void 0, void 0, function* () {
|
|
42176
|
+
result.push(...(yield this.resolveFeed(query, source)));
|
|
42177
|
+
})));
|
|
42178
|
+
return result;
|
|
42179
|
+
});
|
|
42180
|
+
}
|
|
42181
|
+
resolveFeed(query, feed, baseSource) {
|
|
42182
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__awaiter */ .mG)(this, void 0, void 0, function* () {
|
|
42183
|
+
let parts;
|
|
42184
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(feed)) {
|
|
42185
|
+
feed = yield feed;
|
|
42186
|
+
}
|
|
42187
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(feed)) {
|
|
42188
|
+
parts = yield feed(query);
|
|
42189
|
+
}
|
|
42190
|
+
else if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(feed)) {
|
|
42191
|
+
const arrayFeed = feed, { isMatchedQuery } = this.j.o.autocomplete;
|
|
42192
|
+
parts = arrayFeed
|
|
42193
|
+
.filter((item) => {
|
|
42194
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
42195
|
+
return isMatchedQuery(query, item);
|
|
42196
|
+
}
|
|
42197
|
+
return isMatchedQuery(query, item.value);
|
|
42198
|
+
})
|
|
42199
|
+
.map((item) => {
|
|
42200
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
42201
|
+
return { title: item, value: item };
|
|
42202
|
+
}
|
|
42203
|
+
return item;
|
|
42204
|
+
});
|
|
42205
|
+
}
|
|
42206
|
+
else {
|
|
42207
|
+
parts = yield this.resolveFeed(query, feed.feed, feed);
|
|
42208
|
+
}
|
|
42209
|
+
if (parts && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(parts)) {
|
|
42210
|
+
const { itemRenderer, insertValueRenderer, maxItems } = this.j.o.autocomplete;
|
|
42211
|
+
parts = parts.map((item) => {
|
|
42212
|
+
var _a, _b;
|
|
42213
|
+
return (Object.assign({ itemRenderer: (_a = baseSource === null || baseSource === void 0 ? void 0 : baseSource.itemRenderer) !== null && _a !== void 0 ? _a : itemRenderer, insertValueRenderer: (_b = baseSource === null || baseSource === void 0 ? void 0 : baseSource.insertValueRenderer) !== null && _b !== void 0 ? _b : insertValueRenderer }, item));
|
|
42214
|
+
});
|
|
42215
|
+
return parts.slice(0, maxItems);
|
|
42216
|
+
}
|
|
42217
|
+
return [];
|
|
42218
|
+
});
|
|
42219
|
+
}
|
|
42220
|
+
openPopup(result) {
|
|
42221
|
+
this.list.build(result);
|
|
42222
|
+
this.popup.open(() => {
|
|
42223
|
+
const { j } = this;
|
|
42224
|
+
const rect = j.s.range.getBoundingClientRect();
|
|
42225
|
+
const bound = {
|
|
42226
|
+
left: rect.left,
|
|
42227
|
+
top: rect.top,
|
|
42228
|
+
height: rect.height,
|
|
42229
|
+
width: rect.width
|
|
42230
|
+
};
|
|
42231
|
+
if (j.o.iframe && j.iframe) {
|
|
42232
|
+
const pos = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(j.iframe, j);
|
|
42233
|
+
bound.top += pos.top;
|
|
42234
|
+
bound.left += pos.left;
|
|
42235
|
+
}
|
|
42236
|
+
return bound;
|
|
42237
|
+
});
|
|
42238
|
+
}
|
|
42239
|
+
/** @override */
|
|
42240
|
+
beforeDestruct(jodit) {
|
|
42241
|
+
jodit.e
|
|
42242
|
+
.off(this.list)
|
|
42243
|
+
.off('keydown.autocomplete', this.onKeyDown)
|
|
42244
|
+
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
42245
|
+
.off('.autocomplete');
|
|
42246
|
+
this.list.destruct();
|
|
42247
|
+
this.popup.destruct();
|
|
42248
|
+
}
|
|
42249
|
+
}
|
|
42250
|
+
/** @override */
|
|
42251
|
+
autocomplete.requires = ['enter', 'license'];
|
|
42252
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42253
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42254
|
+
], autocomplete.prototype, "registerAutocompleteSource", null);
|
|
42255
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42256
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
|
|
42257
|
+
], autocomplete.prototype, "onKeyDown", null);
|
|
42258
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42259
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42260
|
+
], autocomplete.prototype, "onKeyControlDown", null);
|
|
42261
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42262
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42263
|
+
], autocomplete.prototype, "onEnter", null);
|
|
42264
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42265
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42266
|
+
], autocomplete.prototype, "onAutoComplete", null);
|
|
42267
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42268
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42269
|
+
], autocomplete.prototype, "resolveFeed", null);
|
|
42270
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.plugins.add */ .y.plugins.add('autocomplete', autocomplete);
|
|
41997
42271
|
|
|
41998
42272
|
|
|
41999
42273
|
/***/ }),
|
|
42000
42274
|
|
|
42001
|
-
/***/
|
|
42275
|
+
/***/ 47325:
|
|
42002
42276
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42003
42277
|
|
|
42004
42278
|
"use strict";
|
|
42005
|
-
__webpack_require__.r(__webpack_exports__);
|
|
42006
42279
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42007
|
-
/* harmony export */ "
|
|
42280
|
+
/* harmony export */ "Y": function() { return /* binding */ getTextLeftOfCursor; },
|
|
42281
|
+
/* harmony export */ "p": function() { return /* binding */ replaceTextLeftOfCursorAfterSpace; }
|
|
42008
42282
|
/* harmony export */ });
|
|
42009
|
-
/* harmony import */ var
|
|
42010
|
-
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
42283
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44913);
|
|
42011
42284
|
/*!
|
|
42012
42285
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42013
42286
|
* See LICENSE.md in the project root for license information.
|
|
42014
42287
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42015
42288
|
*/
|
|
42016
42289
|
|
|
42290
|
+
/**
|
|
42291
|
+
* For collapsed selection return left text value before cursor
|
|
42292
|
+
* @example
|
|
42293
|
+
* ```
|
|
42294
|
+
* <p><string>test</strong>pop|</p> => pop
|
|
42295
|
+
* <p><string>test|</strong>pop</p> => test
|
|
42296
|
+
* <p><string>te|st</strong>pop</p> => te
|
|
42297
|
+
* ```
|
|
42298
|
+
*/
|
|
42299
|
+
function getTextLeftOfCursor(range) {
|
|
42300
|
+
var _a, _b, _c, _d;
|
|
42301
|
+
const { startContainer, startOffset } = range;
|
|
42302
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42303
|
+
return (_b = (_a = startContainer.nodeValue) === null || _a === void 0 ? void 0 : _a.substr(0, startOffset)) !== null && _b !== void 0 ? _b : '';
|
|
42304
|
+
}
|
|
42305
|
+
const node = startContainer.childNodes[startOffset];
|
|
42306
|
+
if (!node) {
|
|
42307
|
+
return '';
|
|
42308
|
+
}
|
|
42309
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(node)) {
|
|
42310
|
+
return (_c = node.nodeValue) !== null && _c !== void 0 ? _c : '';
|
|
42311
|
+
}
|
|
42312
|
+
const previous = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.findNotEmptyNeighbor */ .i.findNotEmptyNeighbor(node, true, startContainer);
|
|
42313
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(previous)) {
|
|
42314
|
+
return (_d = node.nodeValue) !== null && _d !== void 0 ? _d : '';
|
|
42315
|
+
}
|
|
42316
|
+
return '';
|
|
42317
|
+
}
|
|
42318
|
+
/**
|
|
42319
|
+
* For collapsed selection replace part of left text value before cursor but started after space
|
|
42320
|
+
* @example
|
|
42321
|
+
* ```
|
|
42322
|
+
* <p><string>test</strong>pap|</p> + pappy = <p><string>test</strong>pappy|</p>
|
|
42323
|
+
* <p><string>test</strong>pap| test</p> + pappy = <p><string>test</strong>pappy| test</p>
|
|
42324
|
+
* <p><string>test</strong>stat pap| test</p> + pappy = <p><string>test</strong>stat pappy| test</p>
|
|
42325
|
+
* ```
|
|
42326
|
+
*/
|
|
42327
|
+
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
42328
|
+
var _a, _b, _c;
|
|
42329
|
+
// eslint-disable-next-line prefer-const
|
|
42330
|
+
let { startContainer, startOffset } = range;
|
|
42331
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42332
|
+
startContainer = startContainer.childNodes[startOffset - 1];
|
|
42333
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42334
|
+
startOffset = (_b = (_a = startContainer.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
42335
|
+
}
|
|
42336
|
+
}
|
|
42337
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42338
|
+
const value = (_c = startContainer.nodeValue) !== null && _c !== void 0 ? _c : '', leftSide = value.substring(0, startOffset), rightSide = value.substring(startOffset);
|
|
42339
|
+
const words = leftSide.split(' ');
|
|
42340
|
+
words[words.length - 1] = '';
|
|
42341
|
+
const newLeftSide = words.join(' ');
|
|
42342
|
+
startContainer.nodeValue = newLeftSide + rightSide;
|
|
42343
|
+
range.setStart(startContainer, newLeftSide.length);
|
|
42344
|
+
range.insertNode(elm);
|
|
42345
|
+
return;
|
|
42346
|
+
}
|
|
42347
|
+
}
|
|
42017
42348
|
|
|
42018
42349
|
|
|
42019
|
-
|
|
42020
|
-
|
|
42021
|
-
|
|
42350
|
+
/***/ }),
|
|
42351
|
+
|
|
42352
|
+
/***/ 77325:
|
|
42353
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42354
|
+
|
|
42355
|
+
"use strict";
|
|
42356
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42357
|
+
/* harmony export */ "F": function() { return /* binding */ Autocomplete; }
|
|
42358
|
+
/* harmony export */ });
|
|
42359
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
42360
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
|
|
42361
|
+
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91630);
|
|
42362
|
+
/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91381);
|
|
42363
|
+
/*!
|
|
42364
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42365
|
+
* See LICENSE.md in the project root for license information.
|
|
42366
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42367
|
+
*/
|
|
42368
|
+
|
|
42369
|
+
|
|
42370
|
+
|
|
42371
|
+
|
|
42372
|
+
|
|
42373
|
+
let Autocomplete = class Autocomplete extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__/* .UIGroup */ .q {
|
|
42374
|
+
constructor() {
|
|
42375
|
+
super(...arguments);
|
|
42376
|
+
this.elements = [];
|
|
42377
|
+
this.currentSelection = -1;
|
|
42378
|
+
}
|
|
42379
|
+
/** @override */
|
|
42380
|
+
className() {
|
|
42381
|
+
return 'Autocomplete';
|
|
42382
|
+
}
|
|
42383
|
+
onChangeSelection(_, previous) {
|
|
42384
|
+
var _a;
|
|
42385
|
+
previous != null && ((_a = this.elements[previous]) === null || _a === void 0 ? void 0 : _a.setMod('active', false));
|
|
42386
|
+
this.elements[this.currentSelection].setMod('active', true);
|
|
42387
|
+
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
42388
|
+
}
|
|
42389
|
+
build(list) {
|
|
42390
|
+
this.clear();
|
|
42391
|
+
list.forEach((elm, index) => {
|
|
42392
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_2__/* .AutocompleteItem */ .h(this.jodit, elm);
|
|
42393
|
+
this.j.e
|
|
42394
|
+
.on(item.container, 'mousedown touchstart', (e) => {
|
|
42395
|
+
e.preventDefault();
|
|
42396
|
+
})
|
|
42397
|
+
.on(item.container, 'click', () => {
|
|
42398
|
+
this.currentSelection = index;
|
|
42399
|
+
this.select();
|
|
42400
|
+
});
|
|
42401
|
+
this.append(item);
|
|
42402
|
+
});
|
|
42403
|
+
this.currentSelection = 0;
|
|
42404
|
+
this.onChangeSelection();
|
|
42405
|
+
}
|
|
42406
|
+
selectNext() {
|
|
42407
|
+
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
42408
|
+
this.currentSelection += 1;
|
|
42409
|
+
}
|
|
42410
|
+
else {
|
|
42411
|
+
this.currentSelection = 0;
|
|
42412
|
+
}
|
|
42413
|
+
}
|
|
42414
|
+
selectPrevious() {
|
|
42415
|
+
if (this.currentSelection - 1 >= 0) {
|
|
42416
|
+
this.currentSelection -= 1;
|
|
42417
|
+
}
|
|
42418
|
+
else {
|
|
42419
|
+
this.currentSelection = this.elements.length - 1;
|
|
42420
|
+
}
|
|
42421
|
+
}
|
|
42422
|
+
select() {
|
|
42423
|
+
this.j.e.fire('select.autocomplete', this.elements[this.currentSelection].item);
|
|
42424
|
+
}
|
|
42425
|
+
};
|
|
42426
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
42427
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.watch)('currentSelection')
|
|
42428
|
+
], Autocomplete.prototype, "onChangeSelection", null);
|
|
42429
|
+
Autocomplete = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
42430
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
42431
|
+
], Autocomplete);
|
|
42432
|
+
|
|
42433
|
+
|
|
42434
|
+
/***/ }),
|
|
42435
|
+
|
|
42436
|
+
/***/ 91381:
|
|
42437
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42438
|
+
|
|
42439
|
+
"use strict";
|
|
42440
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42441
|
+
/* harmony export */ "h": function() { return /* binding */ AutocompleteItem; }
|
|
42442
|
+
/* harmony export */ });
|
|
42443
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84789);
|
|
42444
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71350);
|
|
42445
|
+
/*!
|
|
42446
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42447
|
+
* See LICENSE.md in the project root for license information.
|
|
42448
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42449
|
+
*/
|
|
42450
|
+
|
|
42451
|
+
|
|
42452
|
+
|
|
42453
|
+
class AutocompleteItem extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u {
|
|
42454
|
+
/** @override */
|
|
42455
|
+
className() {
|
|
42456
|
+
return 'AutocompleteItem';
|
|
42457
|
+
}
|
|
42458
|
+
constructor(jodit, item) {
|
|
42459
|
+
var _a;
|
|
42460
|
+
super(jodit);
|
|
42461
|
+
this.item = item;
|
|
42462
|
+
const { container } = this;
|
|
42463
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .mf)(item.itemRenderer)) {
|
|
42464
|
+
const elm = item.itemRenderer(item);
|
|
42465
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .HD)(elm)) {
|
|
42466
|
+
container.innerHTML = elm;
|
|
42467
|
+
}
|
|
42468
|
+
else {
|
|
42469
|
+
container.appendChild(elm);
|
|
42470
|
+
}
|
|
42471
|
+
}
|
|
42472
|
+
else {
|
|
42473
|
+
container.innerText = (_a = item.title) !== null && _a !== void 0 ? _a : item.value;
|
|
42474
|
+
}
|
|
42475
|
+
}
|
|
42476
|
+
}
|
|
42022
42477
|
|
|
42023
42478
|
|
|
42024
42479
|
/***/ }),
|
|
@@ -42027,7 +42482,9 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
42027
42482
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
42028
42483
|
|
|
42029
42484
|
"use strict";
|
|
42030
|
-
/* harmony import */ var
|
|
42485
|
+
/* harmony import */ var jodit_pro_plugins_license_license__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19564);
|
|
42486
|
+
/* harmony import */ var jodit_pro_plugins_autocomplete_autocomplete__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93123);
|
|
42487
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70322);
|
|
42031
42488
|
/*!
|
|
42032
42489
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42033
42490
|
* See LICENSE.md in the project root for license information.
|
|
@@ -42036,6 +42493,8 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
42036
42493
|
|
|
42037
42494
|
|
|
42038
42495
|
|
|
42496
|
+
|
|
42497
|
+
|
|
42039
42498
|
/***/ }),
|
|
42040
42499
|
|
|
42041
42500
|
/***/ 39401:
|
|
@@ -42121,8 +42580,8 @@ __webpack_unused_export__ = domainsHash;
|
|
|
42121
42580
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
42122
42581
|
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46232);
|
|
42123
42582
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11612);
|
|
42124
|
-
/* harmony import */ var
|
|
42125
|
-
/* harmony import */ var
|
|
42583
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
42584
|
+
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39401);
|
|
42126
42585
|
/*!
|
|
42127
42586
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42128
42587
|
* See LICENSE.md in the project root for license information.
|
|
@@ -42143,7 +42602,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42143
42602
|
afterInit(jodit) {
|
|
42144
42603
|
this.j.e.on('checkReserve', () => (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__awaiter */ .mG)(this, void 0, void 0, function* () {
|
|
42145
42604
|
const code = this.j.o.license, domain = location.host;
|
|
42146
|
-
let valid = (0,
|
|
42605
|
+
let valid = (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(code, domain);
|
|
42147
42606
|
if (!valid && code[12] > 'A' && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.IS_TEST) {
|
|
42148
42607
|
valid = yield this.validateLicenseRemote(code, domain);
|
|
42149
42608
|
}
|
|
@@ -42155,7 +42614,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42155
42614
|
validateLicenseRemote(code, domain) {
|
|
42156
42615
|
return (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__awaiter */ .mG)(this, void 0, void 0, function* () {
|
|
42157
42616
|
const storageKey = 'validateJoditLicenseRemote', newCode = this.j.storage.get(storageKey);
|
|
42158
|
-
if (newCode && (0,
|
|
42617
|
+
if (newCode && (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
42159
42618
|
return true;
|
|
42160
42619
|
}
|
|
42161
42620
|
const s = document.createElement('script');
|
|
@@ -42167,7 +42626,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42167
42626
|
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__/* .isBoolean */ .j)(newCode)) {
|
|
42168
42627
|
return res(newCode);
|
|
42169
42628
|
}
|
|
42170
|
-
if ((0,
|
|
42629
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
42171
42630
|
this.j.storage.set(storageKey, newCode);
|
|
42172
42631
|
res(true);
|
|
42173
42632
|
}
|
|
@@ -42187,7 +42646,1547 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42187
42646
|
});
|
|
42188
42647
|
}
|
|
42189
42648
|
}
|
|
42190
|
-
|
|
42649
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('license', license);
|
|
42650
|
+
|
|
42651
|
+
|
|
42652
|
+
/***/ }),
|
|
42653
|
+
|
|
42654
|
+
/***/ 12750:
|
|
42655
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42656
|
+
|
|
42657
|
+
"use strict";
|
|
42658
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42659
|
+
/* harmony export */ "C": function() { return /* binding */ cleanStyles; }
|
|
42660
|
+
/* harmony export */ });
|
|
42661
|
+
/*!
|
|
42662
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42663
|
+
* See LICENSE.md in the project root for license information.
|
|
42664
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42665
|
+
*/
|
|
42666
|
+
const forbiddenStyles = {
|
|
42667
|
+
'text-justify': ['inter-ideograph']
|
|
42668
|
+
};
|
|
42669
|
+
function cleanStyles(elm) {
|
|
42670
|
+
if (elm.isElement && elm.attributes.style) {
|
|
42671
|
+
Object.keys(forbiddenStyles).forEach((key) => {
|
|
42672
|
+
var _a;
|
|
42673
|
+
const values = forbiddenStyles[key];
|
|
42674
|
+
if (elm.style.has(key)) {
|
|
42675
|
+
// @ts-ignore
|
|
42676
|
+
if (values.includes((_a = elm.style.get(key)) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
42677
|
+
elm.style.set(key, null);
|
|
42678
|
+
}
|
|
42679
|
+
}
|
|
42680
|
+
});
|
|
42681
|
+
}
|
|
42682
|
+
return elm;
|
|
42683
|
+
}
|
|
42684
|
+
|
|
42685
|
+
|
|
42686
|
+
/***/ }),
|
|
42687
|
+
|
|
42688
|
+
/***/ 76995:
|
|
42689
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42690
|
+
|
|
42691
|
+
"use strict";
|
|
42692
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42693
|
+
/* harmony export */ "i": function() { return /* binding */ clearAttributes; }
|
|
42694
|
+
/* harmony export */ });
|
|
42695
|
+
/*!
|
|
42696
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42697
|
+
* See LICENSE.md in the project root for license information.
|
|
42698
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42699
|
+
*/
|
|
42700
|
+
const extraAttributes = [
|
|
42701
|
+
'cellspacing',
|
|
42702
|
+
'cellpadding',
|
|
42703
|
+
'border',
|
|
42704
|
+
'v:shapes',
|
|
42705
|
+
'o:spid'
|
|
42706
|
+
];
|
|
42707
|
+
function clearAttributes(elm) {
|
|
42708
|
+
if (/^OLE_LINK\d+$/.test(elm.attributes.name)) {
|
|
42709
|
+
elm.attributes.name = null;
|
|
42710
|
+
if (elm.length === 0) {
|
|
42711
|
+
elm.remove();
|
|
42712
|
+
return null;
|
|
42713
|
+
}
|
|
42714
|
+
}
|
|
42715
|
+
if (elm.attributes.name === '_GoBack') {
|
|
42716
|
+
elm.attributes.name = null;
|
|
42717
|
+
}
|
|
42718
|
+
// Remove extra attributes
|
|
42719
|
+
for (const attr of extraAttributes) {
|
|
42720
|
+
if (elm.attributes[attr]) {
|
|
42721
|
+
elm.attributes[attr] = null;
|
|
42722
|
+
}
|
|
42723
|
+
}
|
|
42724
|
+
return elm;
|
|
42725
|
+
}
|
|
42726
|
+
|
|
42727
|
+
|
|
42728
|
+
/***/ }),
|
|
42729
|
+
|
|
42730
|
+
/***/ 53614:
|
|
42731
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42732
|
+
|
|
42733
|
+
"use strict";
|
|
42734
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42735
|
+
/* harmony export */ "a": function() { return /* binding */ clearClassName; }
|
|
42736
|
+
/* harmony export */ });
|
|
42737
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
42738
|
+
/*!
|
|
42739
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42740
|
+
* See LICENSE.md in the project root for license information.
|
|
42741
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42742
|
+
*/
|
|
42743
|
+
|
|
42744
|
+
const clearClassName = (elm) => {
|
|
42745
|
+
// Normalize or remove class
|
|
42746
|
+
if (elm.attributes.class) {
|
|
42747
|
+
elm.attributes.class = elm.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi, '');
|
|
42748
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .f)(elm.attributes.class)) {
|
|
42749
|
+
elm.attributes.class = null;
|
|
42750
|
+
}
|
|
42751
|
+
}
|
|
42752
|
+
return elm;
|
|
42753
|
+
};
|
|
42754
|
+
|
|
42755
|
+
|
|
42756
|
+
/***/ }),
|
|
42757
|
+
|
|
42758
|
+
/***/ 50353:
|
|
42759
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42760
|
+
|
|
42761
|
+
"use strict";
|
|
42762
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42763
|
+
/* harmony export */ "b": function() { return /* binding */ convertStyleUnitToPixels; }
|
|
42764
|
+
/* harmony export */ });
|
|
42765
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18352);
|
|
42766
|
+
/*!
|
|
42767
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42768
|
+
* See LICENSE.md in the project root for license information.
|
|
42769
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42770
|
+
*/
|
|
42771
|
+
|
|
42772
|
+
const convertStyleUnitToPixels = (elm, { jodit }) => {
|
|
42773
|
+
if (!jodit.o.pasteFromWord.convertUnitsToPixel) {
|
|
42774
|
+
return elm;
|
|
42775
|
+
}
|
|
42776
|
+
const { style } = elm;
|
|
42777
|
+
style.forEach((key) => {
|
|
42778
|
+
const v = style.get(key);
|
|
42779
|
+
if (v) {
|
|
42780
|
+
style.set(key, v
|
|
42781
|
+
.toString()
|
|
42782
|
+
.replace(/\d+(\.\d+)?(pt|cm)/g, (match) => (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__/* .convertUnitToPx */ .Lp)(match) + 'px'));
|
|
42783
|
+
}
|
|
42784
|
+
});
|
|
42785
|
+
return elm;
|
|
42786
|
+
};
|
|
42787
|
+
|
|
42788
|
+
|
|
42789
|
+
/***/ }),
|
|
42790
|
+
|
|
42791
|
+
/***/ 45054:
|
|
42792
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42793
|
+
|
|
42794
|
+
"use strict";
|
|
42795
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42796
|
+
/* harmony export */ "S": function() { return /* binding */ convertToList; }
|
|
42797
|
+
/* harmony export */ });
|
|
42798
|
+
/* unused harmony export removeRedundancyStyle */
|
|
42799
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
42800
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18352);
|
|
42801
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
42802
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19438);
|
|
42803
|
+
/*!
|
|
42804
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42805
|
+
* See LICENSE.md in the project root for license information.
|
|
42806
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42807
|
+
*/
|
|
42808
|
+
|
|
42809
|
+
|
|
42810
|
+
|
|
42811
|
+
|
|
42812
|
+
function convertToList(elm) {
|
|
42813
|
+
var _a;
|
|
42814
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isPseudoLeaf */ .Hh)(elm)) {
|
|
42815
|
+
elm.name = 'li';
|
|
42816
|
+
elm.style.set('text-indent', null);
|
|
42817
|
+
const symbol = getSymbol(elm), listType = /[\da-np-zA-NP-Z].?/.test(symbol) ? 'ol' : 'ul', listStyle = defineOrderedListStyle(symbol, listType);
|
|
42818
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .TYPE_KEY */ .YJ] = listType;
|
|
42819
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf] = listStyle;
|
|
42820
|
+
(0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcListLevels */ .rd)(elm);
|
|
42821
|
+
moveUp(elm);
|
|
42822
|
+
const { parent } = elm;
|
|
42823
|
+
// After move up we inside List or Leaf
|
|
42824
|
+
if (!(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(parent) || !(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(elm, parent)) {
|
|
42825
|
+
const newList = wrapInNewList(elm, listType, symbol, listStyle);
|
|
42826
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(parent)) {
|
|
42827
|
+
newList.remove(); // Not to add to oneself
|
|
42828
|
+
(_a = parent.lastElement) === null || _a === void 0 ? void 0 : _a.append(newList);
|
|
42829
|
+
}
|
|
42830
|
+
return elm;
|
|
42831
|
+
}
|
|
42832
|
+
}
|
|
42833
|
+
return elm;
|
|
42834
|
+
}
|
|
42835
|
+
function moveUp(leaf) {
|
|
42836
|
+
// eslint-disable-next-line no-constant-condition
|
|
42837
|
+
while (leaf) {
|
|
42838
|
+
const prev = leaf.previousElement;
|
|
42839
|
+
// Leaf after P
|
|
42840
|
+
if (!((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isLeaf */ .Be)(prev) || (0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(prev))) {
|
|
42841
|
+
break;
|
|
42842
|
+
}
|
|
42843
|
+
// Leaf after Leaf
|
|
42844
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isLeaf */ .Be)(prev)) {
|
|
42845
|
+
if (leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] < prev.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki]) {
|
|
42846
|
+
break;
|
|
42847
|
+
}
|
|
42848
|
+
// Leaf after leaf with same level and inside the right list
|
|
42849
|
+
if (leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] === prev.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] &&
|
|
42850
|
+
leaf.parent &&
|
|
42851
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, leaf.parent)) {
|
|
42852
|
+
break;
|
|
42853
|
+
}
|
|
42854
|
+
prev.append(leaf);
|
|
42855
|
+
continue;
|
|
42856
|
+
}
|
|
42857
|
+
const list = prev;
|
|
42858
|
+
// Leaf after list with more level
|
|
42859
|
+
if (leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] < list.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki]) {
|
|
42860
|
+
break;
|
|
42861
|
+
}
|
|
42862
|
+
if (leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] === list.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] &&
|
|
42863
|
+
!(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, list)) {
|
|
42864
|
+
break;
|
|
42865
|
+
}
|
|
42866
|
+
list.append(leaf);
|
|
42867
|
+
}
|
|
42868
|
+
}
|
|
42869
|
+
/**
|
|
42870
|
+
* Remove redundancy default list styles.
|
|
42871
|
+
*/
|
|
42872
|
+
function removeRedundancyStyle(newList) {
|
|
42873
|
+
var _a;
|
|
42874
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(newList) &&
|
|
42875
|
+
((_a = newList.parent) === null || _a === void 0 ? void 0 : _a.name) !== 'li' &&
|
|
42876
|
+
(newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'disc' ||
|
|
42877
|
+
newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'decimal')) {
|
|
42878
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, null);
|
|
42879
|
+
}
|
|
42880
|
+
}
|
|
42881
|
+
function defineOrderedListStyle(symbol, listType) {
|
|
42882
|
+
for (const reg in jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1) {
|
|
42883
|
+
if (RegExp(reg).test(symbol)) {
|
|
42884
|
+
return jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1[reg];
|
|
42885
|
+
}
|
|
42886
|
+
}
|
|
42887
|
+
return listType === 'ol' ? 'decimal' : 'disc';
|
|
42888
|
+
}
|
|
42889
|
+
const getSymbol = (elm) => elm
|
|
42890
|
+
.textBetween((n) => n.isComment && /\[if.*supportLists.*]/.test((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .html */ .dy)(n)), (n) => n.isComment && /\[endif]/.test((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .html */ .dy)(n)))
|
|
42891
|
+
.replace(/ /g, '')
|
|
42892
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
42893
|
+
function wrapInNewList(elm, listType, symbol, listStyle) {
|
|
42894
|
+
const newList = elm.wrap(listType);
|
|
42895
|
+
newList.attributes['start'] = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcStartBySymbol */ .Sg)(symbol);
|
|
42896
|
+
newList.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] = elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki];
|
|
42897
|
+
newList.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf] = elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf];
|
|
42898
|
+
newList.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_VALID_KEY */ .m3] = elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf];
|
|
42899
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, listStyle);
|
|
42900
|
+
removeRedundancyStyle(newList);
|
|
42901
|
+
return newList;
|
|
42902
|
+
}
|
|
42903
|
+
|
|
42904
|
+
|
|
42905
|
+
/***/ }),
|
|
42906
|
+
|
|
42907
|
+
/***/ 44669:
|
|
42908
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42909
|
+
|
|
42910
|
+
"use strict";
|
|
42911
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42912
|
+
/* harmony export */ "c": function() { return /* binding */ cases; }
|
|
42913
|
+
/* harmony export */ });
|
|
42914
|
+
/* harmony import */ var _convert_to_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45054);
|
|
42915
|
+
/* harmony import */ var _clear_attributes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(76995);
|
|
42916
|
+
/* harmony import */ var _remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76148);
|
|
42917
|
+
/* harmony import */ var _replace_old_tags__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38450);
|
|
42918
|
+
/* harmony import */ var _remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33135);
|
|
42919
|
+
/* harmony import */ var _convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50353);
|
|
42920
|
+
/* harmony import */ var _clear_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53614);
|
|
42921
|
+
/* harmony import */ var _process_links__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62094);
|
|
42922
|
+
/* harmony import */ var _normalize_image_props__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(83432);
|
|
42923
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(38933);
|
|
42924
|
+
/* harmony import */ var _mark_page_break__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50374);
|
|
42925
|
+
/* harmony import */ var _process_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38535);
|
|
42926
|
+
/* harmony import */ var _clean_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12750);
|
|
42927
|
+
/*!
|
|
42928
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42929
|
+
* See LICENSE.md in the project root for license information.
|
|
42930
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42931
|
+
*/
|
|
42932
|
+
|
|
42933
|
+
|
|
42934
|
+
|
|
42935
|
+
|
|
42936
|
+
|
|
42937
|
+
|
|
42938
|
+
|
|
42939
|
+
|
|
42940
|
+
|
|
42941
|
+
|
|
42942
|
+
|
|
42943
|
+
|
|
42944
|
+
|
|
42945
|
+
const cases = [
|
|
42946
|
+
_process_image__WEBPACK_IMPORTED_MODULE_6__/* .processImage */ .F,
|
|
42947
|
+
_mark_page_break__WEBPACK_IMPORTED_MODULE_8__/* .markPageBreakElements */ .a,
|
|
42948
|
+
_remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__/* .removeExtraTags */ .p,
|
|
42949
|
+
_replace_old_tags__WEBPACK_IMPORTED_MODULE_2__/* .replaceOldTags */ .G,
|
|
42950
|
+
_clear_attributes__WEBPACK_IMPORTED_MODULE_9__/* .clearAttributes */ .i,
|
|
42951
|
+
_convert_to_list__WEBPACK_IMPORTED_MODULE_0__/* .convertToList */ .S,
|
|
42952
|
+
_process_links__WEBPACK_IMPORTED_MODULE_10__/* .processLinks */ .z,
|
|
42953
|
+
_remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__/* .removeInsideComment */ .m,
|
|
42954
|
+
_convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__/* .convertStyleUnitToPixels */ .b,
|
|
42955
|
+
_clear_class_name__WEBPACK_IMPORTED_MODULE_5__/* .clearClassName */ .a,
|
|
42956
|
+
_normalize_image_props__WEBPACK_IMPORTED_MODULE_11__/* .normalizeImageProps */ .r,
|
|
42957
|
+
_table__WEBPACK_IMPORTED_MODULE_12__/* .removeWidthFromTableCell */ .Y,
|
|
42958
|
+
_clean_styles__WEBPACK_IMPORTED_MODULE_7__/* .cleanStyles */ .C
|
|
42959
|
+
];
|
|
42960
|
+
|
|
42961
|
+
|
|
42962
|
+
/***/ }),
|
|
42963
|
+
|
|
42964
|
+
/***/ 50374:
|
|
42965
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42966
|
+
|
|
42967
|
+
"use strict";
|
|
42968
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42969
|
+
/* harmony export */ "a": function() { return /* binding */ markPageBreakElements; }
|
|
42970
|
+
/* harmony export */ });
|
|
42971
|
+
/*!
|
|
42972
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42973
|
+
* See LICENSE.md in the project root for license information.
|
|
42974
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42975
|
+
*/
|
|
42976
|
+
const markPageBreakElements = (elm) => {
|
|
42977
|
+
if ((elm.isElement && elm.style.get('page-break-before') === 'always') ||
|
|
42978
|
+
elm.style.get('break-before') === 'page') {
|
|
42979
|
+
elm.attributes['jd-safe'] = true;
|
|
42980
|
+
elm.style.add('page-break-before', 'always');
|
|
42981
|
+
if (elm.isSingle) {
|
|
42982
|
+
elm.name = 'div';
|
|
42983
|
+
}
|
|
42984
|
+
}
|
|
42985
|
+
return elm;
|
|
42986
|
+
};
|
|
42987
|
+
|
|
42988
|
+
|
|
42989
|
+
/***/ }),
|
|
42990
|
+
|
|
42991
|
+
/***/ 83432:
|
|
42992
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42993
|
+
|
|
42994
|
+
"use strict";
|
|
42995
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42996
|
+
/* harmony export */ "r": function() { return /* binding */ normalizeImageProps; }
|
|
42997
|
+
/* harmony export */ });
|
|
42998
|
+
/*!
|
|
42999
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43000
|
+
* See LICENSE.md in the project root for license information.
|
|
43001
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43002
|
+
*/
|
|
43003
|
+
const normalizeImageProps = (elm) => {
|
|
43004
|
+
if (!elm.isElement) {
|
|
43005
|
+
return elm;
|
|
43006
|
+
}
|
|
43007
|
+
if (elm.name === 'img') {
|
|
43008
|
+
if (elm.attributes.align) {
|
|
43009
|
+
elm.style.add('float', elm.attributes.align);
|
|
43010
|
+
elm.attributes.align = null;
|
|
43011
|
+
}
|
|
43012
|
+
if (elm.attributes.hspace) {
|
|
43013
|
+
elm.style.add('marginLeft', elm.attributes.hspace + 'px');
|
|
43014
|
+
elm.style.add('marginRight', elm.attributes.hspace + 'px');
|
|
43015
|
+
elm.attributes.hspace = null;
|
|
43016
|
+
}
|
|
43017
|
+
}
|
|
43018
|
+
return elm;
|
|
43019
|
+
};
|
|
43020
|
+
|
|
43021
|
+
|
|
43022
|
+
/***/ }),
|
|
43023
|
+
|
|
43024
|
+
/***/ 38535:
|
|
43025
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43026
|
+
|
|
43027
|
+
"use strict";
|
|
43028
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43029
|
+
/* harmony export */ "F": function() { return /* binding */ processImage; }
|
|
43030
|
+
/* harmony export */ });
|
|
43031
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
43032
|
+
/*!
|
|
43033
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43034
|
+
* See LICENSE.md in the project root for license information.
|
|
43035
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43036
|
+
*/
|
|
43037
|
+
|
|
43038
|
+
const processImage = (elm, ctx) => {
|
|
43039
|
+
var _a, _b;
|
|
43040
|
+
if (ctx.rtf &&
|
|
43041
|
+
elm.name === '#comment' &&
|
|
43042
|
+
elm.attributes.nodeValue &&
|
|
43043
|
+
elm.attributes.nodeValue.indexOf('<v:shape') !== -1) {
|
|
43044
|
+
if (!ctx.shapes) {
|
|
43045
|
+
ctx.shapes = {};
|
|
43046
|
+
}
|
|
43047
|
+
const elms = ctx.jodit.create.fromHTML(elm.attributes.nodeValue);
|
|
43048
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.toArray)(elms.getElementsByTagName('v:shape')).forEach((e) => {
|
|
43049
|
+
ctx.shapes[e.id] = e.getAttribute('o:spid');
|
|
43050
|
+
});
|
|
43051
|
+
return elm;
|
|
43052
|
+
}
|
|
43053
|
+
if (elm.name !== 'img') {
|
|
43054
|
+
return elm;
|
|
43055
|
+
}
|
|
43056
|
+
if (ctx.rtf && elm.attributes['v:shapes']) {
|
|
43057
|
+
const spid = (_a = ctx.shapes) === null || _a === void 0 ? void 0 : _a[elm.attributes['v:shapes']];
|
|
43058
|
+
if (spid) {
|
|
43059
|
+
const imageMap = (_b = ctx.imageMap) !== null && _b !== void 0 ? _b : {};
|
|
43060
|
+
if (!ctx.imageMap) {
|
|
43061
|
+
ctx.imageMap = imageMap;
|
|
43062
|
+
parseImages(ctx.rtf, 'i', '\\shppict', ctx.imageMap);
|
|
43063
|
+
parseImages(ctx.rtf, 's', '\\shp{', ctx.imageMap);
|
|
43064
|
+
}
|
|
43065
|
+
const a = imageMap[spid.substring(7)];
|
|
43066
|
+
if (a) {
|
|
43067
|
+
const base = [], parsedD = a.hex.match(/[0-9a-f]{2}/gi);
|
|
43068
|
+
if (parsedD) {
|
|
43069
|
+
for (let i = 0; i < parsedD.length; i++) {
|
|
43070
|
+
const digit = parseInt(parsedD[i], 16);
|
|
43071
|
+
base.push(String.fromCharCode(digit));
|
|
43072
|
+
}
|
|
43073
|
+
elm.attributes.src =
|
|
43074
|
+
'data:' + a.type + ';base64,' + btoa(base.join(''));
|
|
43075
|
+
}
|
|
43076
|
+
}
|
|
43077
|
+
}
|
|
43078
|
+
}
|
|
43079
|
+
return elm;
|
|
43080
|
+
};
|
|
43081
|
+
function parseImages(rtf, prefix, separator, imageMap) {
|
|
43082
|
+
const parts = rtf.split(separator);
|
|
43083
|
+
for (const part of parts) {
|
|
43084
|
+
const shapes = part.split('shplid');
|
|
43085
|
+
if (1 < shapes.length) {
|
|
43086
|
+
const shape = shapes[1];
|
|
43087
|
+
let id = '';
|
|
43088
|
+
for (let i = 0; i < shape.length && !/[{ \r\n\\]/.test(shape[i]); i++) {
|
|
43089
|
+
id += shape[i];
|
|
43090
|
+
}
|
|
43091
|
+
const images = shape.split('bliptag');
|
|
43092
|
+
if (images && images.length < 2) {
|
|
43093
|
+
continue;
|
|
43094
|
+
}
|
|
43095
|
+
let format = null;
|
|
43096
|
+
if (images[0].indexOf('pngblip')) {
|
|
43097
|
+
format = 'image/png';
|
|
43098
|
+
}
|
|
43099
|
+
else if (images[0].indexOf('jpegblip') !== -1) {
|
|
43100
|
+
format = 'image/jpeg';
|
|
43101
|
+
}
|
|
43102
|
+
if (!format) {
|
|
43103
|
+
continue;
|
|
43104
|
+
}
|
|
43105
|
+
const endings = images[1].split('}');
|
|
43106
|
+
if (endings && endings.length < 2) {
|
|
43107
|
+
continue;
|
|
43108
|
+
}
|
|
43109
|
+
let result;
|
|
43110
|
+
if (2 < endings.length && endings[0].includes('blipuid')) {
|
|
43111
|
+
result = endings[1].split(' ');
|
|
43112
|
+
}
|
|
43113
|
+
else {
|
|
43114
|
+
result = endings[0].split(' ');
|
|
43115
|
+
if (result && result.length < 2) {
|
|
43116
|
+
continue;
|
|
43117
|
+
}
|
|
43118
|
+
result.shift();
|
|
43119
|
+
}
|
|
43120
|
+
imageMap[prefix + id] = {
|
|
43121
|
+
hex: result.join(''),
|
|
43122
|
+
type: format
|
|
43123
|
+
};
|
|
43124
|
+
}
|
|
43125
|
+
}
|
|
43126
|
+
}
|
|
43127
|
+
|
|
43128
|
+
|
|
43129
|
+
/***/ }),
|
|
43130
|
+
|
|
43131
|
+
/***/ 62094:
|
|
43132
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43133
|
+
|
|
43134
|
+
"use strict";
|
|
43135
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43136
|
+
/* harmony export */ "z": function() { return /* binding */ processLinks; }
|
|
43137
|
+
/* harmony export */ });
|
|
43138
|
+
/*!
|
|
43139
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43140
|
+
* See LICENSE.md in the project root for license information.
|
|
43141
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43142
|
+
*/
|
|
43143
|
+
const processLinks = (elm, ctx) => {
|
|
43144
|
+
var _a;
|
|
43145
|
+
const links = (_a = ctx.links) !== null && _a !== void 0 ? _a : {};
|
|
43146
|
+
if (elm.attributes.href && elm.attributes.href.match(/#.+$/)) {
|
|
43147
|
+
const name = elm.attributes.href.match(/#(.+)$/)[1];
|
|
43148
|
+
links[name] = elm;
|
|
43149
|
+
}
|
|
43150
|
+
if (elm.attributes.name && links[elm.attributes.name]) {
|
|
43151
|
+
const link = links[elm.attributes.name];
|
|
43152
|
+
link.attributes.href = link.attributes.href.replace(/.*#(.*)$/, '#$1');
|
|
43153
|
+
}
|
|
43154
|
+
ctx.links = links;
|
|
43155
|
+
return elm;
|
|
43156
|
+
};
|
|
43157
|
+
|
|
43158
|
+
|
|
43159
|
+
/***/ }),
|
|
43160
|
+
|
|
43161
|
+
/***/ 76148:
|
|
43162
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43163
|
+
|
|
43164
|
+
"use strict";
|
|
43165
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43166
|
+
/* harmony export */ "p": function() { return /* binding */ removeExtraTags; }
|
|
43167
|
+
/* harmony export */ });
|
|
43168
|
+
/*!
|
|
43169
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43170
|
+
* See LICENSE.md in the project root for license information.
|
|
43171
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43172
|
+
*/
|
|
43173
|
+
const extraTags = new Set([
|
|
43174
|
+
'o:p',
|
|
43175
|
+
'xml',
|
|
43176
|
+
'script',
|
|
43177
|
+
'meta',
|
|
43178
|
+
'link',
|
|
43179
|
+
'v:imagedata',
|
|
43180
|
+
'style'
|
|
43181
|
+
]);
|
|
43182
|
+
function removeExtraTags(elm) {
|
|
43183
|
+
// Remove invisible
|
|
43184
|
+
if (elm.style.get('display') === 'none') {
|
|
43185
|
+
elm.remove();
|
|
43186
|
+
return null;
|
|
43187
|
+
}
|
|
43188
|
+
// Remove empty tag
|
|
43189
|
+
if (elm.length === 0 && elm.name === 'span') {
|
|
43190
|
+
elm.remove();
|
|
43191
|
+
return null;
|
|
43192
|
+
}
|
|
43193
|
+
// Remove invalid tags
|
|
43194
|
+
if (extraTags.has(elm.name)) {
|
|
43195
|
+
elm.remove();
|
|
43196
|
+
return null;
|
|
43197
|
+
}
|
|
43198
|
+
return elm;
|
|
43199
|
+
}
|
|
43200
|
+
|
|
43201
|
+
|
|
43202
|
+
/***/ }),
|
|
43203
|
+
|
|
43204
|
+
/***/ 33135:
|
|
43205
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43206
|
+
|
|
43207
|
+
"use strict";
|
|
43208
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43209
|
+
/* harmony export */ "m": function() { return /* binding */ removeInsideComment; }
|
|
43210
|
+
/* harmony export */ });
|
|
43211
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12787);
|
|
43212
|
+
/*!
|
|
43213
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43214
|
+
* See LICENSE.md in the project root for license information.
|
|
43215
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43216
|
+
*/
|
|
43217
|
+
|
|
43218
|
+
let inComment = 0;
|
|
43219
|
+
function removeInsideComment(elm) {
|
|
43220
|
+
if (elm.isComment && /\[if.*(supportLists|gte vml).*]/.test((0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm))) {
|
|
43221
|
+
inComment++;
|
|
43222
|
+
elm.remove();
|
|
43223
|
+
}
|
|
43224
|
+
if (elm.isComment && inComment > 0 && (0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm).includes('[endif]')) {
|
|
43225
|
+
inComment = inComment > 0 ? inComment - 1 : 0;
|
|
43226
|
+
elm.remove();
|
|
43227
|
+
}
|
|
43228
|
+
if (inComment) {
|
|
43229
|
+
if (elm.isText ||
|
|
43230
|
+
(elm.name === 'img' &&
|
|
43231
|
+
(!elm.attributes.src || /^file:/.test(elm.attributes.src)))) {
|
|
43232
|
+
elm.remove();
|
|
43233
|
+
return null;
|
|
43234
|
+
}
|
|
43235
|
+
}
|
|
43236
|
+
return elm;
|
|
43237
|
+
}
|
|
43238
|
+
|
|
43239
|
+
|
|
43240
|
+
/***/ }),
|
|
43241
|
+
|
|
43242
|
+
/***/ 38450:
|
|
43243
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43244
|
+
|
|
43245
|
+
"use strict";
|
|
43246
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43247
|
+
/* harmony export */ "G": function() { return /* binding */ replaceOldTags; }
|
|
43248
|
+
/* harmony export */ });
|
|
43249
|
+
/*!
|
|
43250
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43251
|
+
* See LICENSE.md in the project root for license information.
|
|
43252
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43253
|
+
*/
|
|
43254
|
+
const REPLACE_OLD_TAGS = {
|
|
43255
|
+
i: 'em',
|
|
43256
|
+
b: 'strong'
|
|
43257
|
+
};
|
|
43258
|
+
function replaceOldTags(elm) {
|
|
43259
|
+
const { name } = elm;
|
|
43260
|
+
if (name in REPLACE_OLD_TAGS) {
|
|
43261
|
+
elm.name = REPLACE_OLD_TAGS[name];
|
|
43262
|
+
}
|
|
43263
|
+
return elm;
|
|
43264
|
+
}
|
|
43265
|
+
|
|
43266
|
+
|
|
43267
|
+
/***/ }),
|
|
43268
|
+
|
|
43269
|
+
/***/ 38933:
|
|
43270
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43271
|
+
|
|
43272
|
+
"use strict";
|
|
43273
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43274
|
+
/* harmony export */ "Y": function() { return /* binding */ removeWidthFromTableCell; }
|
|
43275
|
+
/* harmony export */ });
|
|
43276
|
+
/*!
|
|
43277
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43278
|
+
* See LICENSE.md in the project root for license information.
|
|
43279
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43280
|
+
*/
|
|
43281
|
+
const removeWidthFromTableCell = (elm) => {
|
|
43282
|
+
if (elm.attributes.width && (elm.name === 'th' || elm.name === 'td')) {
|
|
43283
|
+
elm.attributes.width = null;
|
|
43284
|
+
}
|
|
43285
|
+
return elm;
|
|
43286
|
+
};
|
|
43287
|
+
|
|
43288
|
+
|
|
43289
|
+
/***/ }),
|
|
43290
|
+
|
|
43291
|
+
/***/ 48077:
|
|
43292
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
43293
|
+
|
|
43294
|
+
"use strict";
|
|
43295
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
43296
|
+
/*!
|
|
43297
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43298
|
+
* See LICENSE.md in the project root for license information.
|
|
43299
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43300
|
+
*/
|
|
43301
|
+
|
|
43302
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.pasteFromWord = {
|
|
43303
|
+
enable: false,
|
|
43304
|
+
convertUnitsToPixel: false,
|
|
43305
|
+
allowedStyleProps: [
|
|
43306
|
+
'background',
|
|
43307
|
+
'background-color',
|
|
43308
|
+
'border',
|
|
43309
|
+
'border-.*',
|
|
43310
|
+
'color',
|
|
43311
|
+
'float',
|
|
43312
|
+
'font-family',
|
|
43313
|
+
'font-size',
|
|
43314
|
+
'font-style',
|
|
43315
|
+
'font-weight',
|
|
43316
|
+
'height',
|
|
43317
|
+
'line-height',
|
|
43318
|
+
'list-style-type',
|
|
43319
|
+
'margin',
|
|
43320
|
+
'margin-bottom',
|
|
43321
|
+
'margin-left',
|
|
43322
|
+
'margin-right',
|
|
43323
|
+
'margin-top',
|
|
43324
|
+
'padding',
|
|
43325
|
+
'text-align',
|
|
43326
|
+
'text-justify',
|
|
43327
|
+
'text-decoration',
|
|
43328
|
+
'text-indent',
|
|
43329
|
+
'vertical-align',
|
|
43330
|
+
'width'
|
|
43331
|
+
]
|
|
43332
|
+
};
|
|
43333
|
+
|
|
43334
|
+
|
|
43335
|
+
/***/ }),
|
|
43336
|
+
|
|
43337
|
+
/***/ 19438:
|
|
43338
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43339
|
+
|
|
43340
|
+
"use strict";
|
|
43341
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43342
|
+
/* harmony export */ "Jf": function() { return /* binding */ STYLE_KEY; },
|
|
43343
|
+
/* harmony export */ "Ki": function() { return /* binding */ LEVEL_KEY; },
|
|
43344
|
+
/* harmony export */ "Y1": function() { return /* binding */ listStyleMap; },
|
|
43345
|
+
/* harmony export */ "YJ": function() { return /* binding */ TYPE_KEY; },
|
|
43346
|
+
/* harmony export */ "m3": function() { return /* binding */ STYLE_VALID_KEY; },
|
|
43347
|
+
/* harmony export */ "zQ": function() { return /* binding */ STYLE_CSS_KEY; }
|
|
43348
|
+
/* harmony export */ });
|
|
43349
|
+
/*!
|
|
43350
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43351
|
+
* See LICENSE.md in the project root for license information.
|
|
43352
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43353
|
+
*/
|
|
43354
|
+
const LEVEL_KEY = 'jd-list-level';
|
|
43355
|
+
const TYPE_KEY = 'jd-list-type';
|
|
43356
|
+
const STYLE_KEY = 'jd-list-style-type';
|
|
43357
|
+
const STYLE_VALID_KEY = 'data-list-style-type';
|
|
43358
|
+
const STYLE_CSS_KEY = 'list-style-type';
|
|
43359
|
+
const listStyleMap = {
|
|
43360
|
+
'·': 'disc',
|
|
43361
|
+
o: 'circle',
|
|
43362
|
+
'§': 'square',
|
|
43363
|
+
'[ivx]': 'lower-roman',
|
|
43364
|
+
'[IVX]': 'upper-roman',
|
|
43365
|
+
'[a-z]': 'lower-alpha',
|
|
43366
|
+
'[A-Z]': 'upper-alpha',
|
|
43367
|
+
'\\d': 'decimal'
|
|
43368
|
+
};
|
|
43369
|
+
|
|
43370
|
+
|
|
43371
|
+
/***/ }),
|
|
43372
|
+
|
|
43373
|
+
/***/ 69111:
|
|
43374
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43375
|
+
|
|
43376
|
+
"use strict";
|
|
43377
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43378
|
+
/* harmony export */ "Be": function() { return /* binding */ isLeaf; },
|
|
43379
|
+
/* harmony export */ "Hh": function() { return /* binding */ isPseudoLeaf; },
|
|
43380
|
+
/* harmony export */ "Y4": function() { return /* binding */ isSameType; },
|
|
43381
|
+
/* harmony export */ "nq": function() { return /* binding */ isList; }
|
|
43382
|
+
/* harmony export */ });
|
|
43383
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19438);
|
|
43384
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12787);
|
|
43385
|
+
/*!
|
|
43386
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43387
|
+
* See LICENSE.md in the project root for license information.
|
|
43388
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43389
|
+
*/
|
|
43390
|
+
|
|
43391
|
+
|
|
43392
|
+
function isList(elm) {
|
|
43393
|
+
return Boolean(elm && (elm.name === 'ol' || elm.name === 'ul'));
|
|
43394
|
+
}
|
|
43395
|
+
function isLeaf(elm) {
|
|
43396
|
+
return Boolean(elm && elm.name === 'li');
|
|
43397
|
+
}
|
|
43398
|
+
function isPseudoLeaf(elm) {
|
|
43399
|
+
return ((elm.name !== 'li' &&
|
|
43400
|
+
/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(elm.attributes.style)) ||
|
|
43401
|
+
(/msolistparagraph/i.test(elm.attributes.class) &&
|
|
43402
|
+
Boolean(elm.find((c) => c.isComment && (0,_render__WEBPACK_IMPORTED_MODULE_1__/* .html */ .d)(c).includes('supportLists'))
|
|
43403
|
+
.length)));
|
|
43404
|
+
}
|
|
43405
|
+
function isSameType(leaf, list) {
|
|
43406
|
+
const listType = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .TYPE_KEY */ .YJ];
|
|
43407
|
+
const listStyle = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf];
|
|
43408
|
+
return !(list.name !== listType ||
|
|
43409
|
+
list.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf] !== listStyle ||
|
|
43410
|
+
leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .LEVEL_KEY */ .Ki] !== list.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .LEVEL_KEY */ .Ki]);
|
|
43411
|
+
}
|
|
43412
|
+
|
|
43413
|
+
|
|
43414
|
+
/***/ }),
|
|
43415
|
+
|
|
43416
|
+
/***/ 84300:
|
|
43417
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43418
|
+
|
|
43419
|
+
"use strict";
|
|
43420
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43421
|
+
/* harmony export */ "n": function() { return /* binding */ JElement; }
|
|
43422
|
+
/* harmony export */ });
|
|
43423
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
|
|
43424
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11612);
|
|
43425
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52378);
|
|
43426
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
43427
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12787);
|
|
43428
|
+
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12481);
|
|
43429
|
+
/*!
|
|
43430
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43431
|
+
* See LICENSE.md in the project root for license information.
|
|
43432
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43433
|
+
*/
|
|
43434
|
+
|
|
43435
|
+
|
|
43436
|
+
|
|
43437
|
+
|
|
43438
|
+
|
|
43439
|
+
const singleTags = new Set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSEPARABLE_TAGS);
|
|
43440
|
+
class JElement {
|
|
43441
|
+
get isText() {
|
|
43442
|
+
return this.type === Node.TEXT_NODE;
|
|
43443
|
+
}
|
|
43444
|
+
get isElement() {
|
|
43445
|
+
return this.type === Node.ELEMENT_NODE;
|
|
43446
|
+
}
|
|
43447
|
+
get isComment() {
|
|
43448
|
+
return this.type === Node.COMMENT_NODE;
|
|
43449
|
+
}
|
|
43450
|
+
get isSingle() {
|
|
43451
|
+
return singleTags.has(this.name);
|
|
43452
|
+
}
|
|
43453
|
+
get length() {
|
|
43454
|
+
return this.children.length;
|
|
43455
|
+
}
|
|
43456
|
+
constructor(node, parent) {
|
|
43457
|
+
this.parent = parent;
|
|
43458
|
+
this.name = node.nodeName.toLowerCase();
|
|
43459
|
+
this.type = node.nodeType;
|
|
43460
|
+
this.attributes = readAttributes(node);
|
|
43461
|
+
this.style = new _style__WEBPACK_IMPORTED_MODULE_4__/* .Style */ .b(this.attributes.style);
|
|
43462
|
+
this.children = [];
|
|
43463
|
+
node.childNodes.forEach((node) => this.children.push(JElement.make(node, this)));
|
|
43464
|
+
}
|
|
43465
|
+
static make(node, parent = null) {
|
|
43466
|
+
return new JElement(node, parent);
|
|
43467
|
+
}
|
|
43468
|
+
wrap(tag) {
|
|
43469
|
+
var _a;
|
|
43470
|
+
void 0;
|
|
43471
|
+
const wrapper = JElement.make(document.createElement(tag), this.parent);
|
|
43472
|
+
const index = (_a = this.parent.children.indexOf(this)) !== null && _a !== void 0 ? _a : -1;
|
|
43473
|
+
if (index === -1) {
|
|
43474
|
+
this.parent.append(wrapper);
|
|
43475
|
+
}
|
|
43476
|
+
else {
|
|
43477
|
+
this.parent.children[index] = wrapper;
|
|
43478
|
+
}
|
|
43479
|
+
wrapper.append(this);
|
|
43480
|
+
return wrapper;
|
|
43481
|
+
}
|
|
43482
|
+
append(child) {
|
|
43483
|
+
void 0;
|
|
43484
|
+
child.remove();
|
|
43485
|
+
this.children.push(child);
|
|
43486
|
+
child.parent = this;
|
|
43487
|
+
return this;
|
|
43488
|
+
}
|
|
43489
|
+
get previousElement() {
|
|
43490
|
+
if (!this.parent) {
|
|
43491
|
+
return null;
|
|
43492
|
+
}
|
|
43493
|
+
const { children } = this.parent, index = children.indexOf(this);
|
|
43494
|
+
if (index !== -1) {
|
|
43495
|
+
for (let i = index - 1; i >= 0; i -= 1) {
|
|
43496
|
+
if (children[i].isElement) {
|
|
43497
|
+
return children[i];
|
|
43498
|
+
}
|
|
43499
|
+
}
|
|
43500
|
+
}
|
|
43501
|
+
return null;
|
|
43502
|
+
}
|
|
43503
|
+
get lastElement() {
|
|
43504
|
+
const { children } = this;
|
|
43505
|
+
for (let i = children.length - 1; i >= 0; i -= 1) {
|
|
43506
|
+
if (children[i].isElement) {
|
|
43507
|
+
return children[i];
|
|
43508
|
+
}
|
|
43509
|
+
}
|
|
43510
|
+
return null;
|
|
43511
|
+
}
|
|
43512
|
+
get previous() {
|
|
43513
|
+
var _a, _b, _c;
|
|
43514
|
+
return (_c = (_a = this.sibling(false)) !== null && _a !== void 0 ? _a : (_b = this.parent) === null || _b === void 0 ? void 0 : _b.previous) !== null && _c !== void 0 ? _c : null;
|
|
43515
|
+
}
|
|
43516
|
+
get next() {
|
|
43517
|
+
var _a, _b, _c;
|
|
43518
|
+
return (_c = (_a = this.sibling(true)) !== null && _a !== void 0 ? _a : (_b = this.parent) === null || _b === void 0 ? void 0 : _b.next) !== null && _c !== void 0 ? _c : null;
|
|
43519
|
+
}
|
|
43520
|
+
sibling(next) {
|
|
43521
|
+
if (!this.parent) {
|
|
43522
|
+
return null;
|
|
43523
|
+
}
|
|
43524
|
+
const { children } = this.parent, index = children.indexOf(this);
|
|
43525
|
+
if (index !== -1 && children[index + (next ? 1 : -1)]) {
|
|
43526
|
+
return children[index + (next ? 1 : -1)];
|
|
43527
|
+
}
|
|
43528
|
+
return null;
|
|
43529
|
+
}
|
|
43530
|
+
forEach(callbackFn, recursion = false) {
|
|
43531
|
+
const children = [...this.children];
|
|
43532
|
+
for (const child of children) {
|
|
43533
|
+
if (callbackFn(child) === false) {
|
|
43534
|
+
return false;
|
|
43535
|
+
}
|
|
43536
|
+
if (recursion && child.forEach(callbackFn, true) === false) {
|
|
43537
|
+
return false;
|
|
43538
|
+
}
|
|
43539
|
+
}
|
|
43540
|
+
}
|
|
43541
|
+
find(predicate, recursion = true) {
|
|
43542
|
+
const result = [];
|
|
43543
|
+
this.forEach((elm) => {
|
|
43544
|
+
if (predicate(elm)) {
|
|
43545
|
+
result.push(elm);
|
|
43546
|
+
}
|
|
43547
|
+
}, recursion);
|
|
43548
|
+
return result;
|
|
43549
|
+
}
|
|
43550
|
+
map(callbackFn) {
|
|
43551
|
+
return this.children.map(callbackFn);
|
|
43552
|
+
}
|
|
43553
|
+
remove() {
|
|
43554
|
+
var _a, _b;
|
|
43555
|
+
const index = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.children.indexOf(this);
|
|
43556
|
+
if (index != null && index !== -1) {
|
|
43557
|
+
(_b = this.parent) === null || _b === void 0 ? void 0 : _b.children.splice(index, 1);
|
|
43558
|
+
}
|
|
43559
|
+
return this;
|
|
43560
|
+
}
|
|
43561
|
+
textBetween(start, end) {
|
|
43562
|
+
let startFound = false;
|
|
43563
|
+
const result = [];
|
|
43564
|
+
this.forEach((node) => {
|
|
43565
|
+
if (!startFound && start(node)) {
|
|
43566
|
+
startFound = true;
|
|
43567
|
+
}
|
|
43568
|
+
if (startFound && node.isText) {
|
|
43569
|
+
result.push((0,_render__WEBPACK_IMPORTED_MODULE_3__/* .html */ .d)(node));
|
|
43570
|
+
}
|
|
43571
|
+
if (startFound && end(node)) {
|
|
43572
|
+
return false;
|
|
43573
|
+
}
|
|
43574
|
+
}, true);
|
|
43575
|
+
return result.join('');
|
|
43576
|
+
}
|
|
43577
|
+
}
|
|
43578
|
+
function readAttributes(node) {
|
|
43579
|
+
const result = {};
|
|
43580
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isElement */ .i.isElement(node)) {
|
|
43581
|
+
for (let i = 0, attrs = node.attributes; i < attrs.length; i += 1) {
|
|
43582
|
+
result[attrs[i].name] = attrs[i].value;
|
|
43583
|
+
}
|
|
43584
|
+
}
|
|
43585
|
+
else {
|
|
43586
|
+
result['nodeValue'] = node.nodeValue;
|
|
43587
|
+
}
|
|
43588
|
+
return result;
|
|
43589
|
+
}
|
|
43590
|
+
|
|
43591
|
+
|
|
43592
|
+
/***/ }),
|
|
43593
|
+
|
|
43594
|
+
/***/ 93310:
|
|
43595
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43596
|
+
|
|
43597
|
+
"use strict";
|
|
43598
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43599
|
+
/* harmony export */ "Be": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Be; },
|
|
43600
|
+
/* harmony export */ "C7": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.C; },
|
|
43601
|
+
/* harmony export */ "Hh": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Hh; },
|
|
43602
|
+
/* harmony export */ "Y4": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Y4; },
|
|
43603
|
+
/* harmony export */ "dy": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.d; },
|
|
43604
|
+
/* harmony export */ "nK": function() { return /* reexport safe */ _element__WEBPACK_IMPORTED_MODULE_1__.n; },
|
|
43605
|
+
/* harmony export */ "nq": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.nq; }
|
|
43606
|
+
/* harmony export */ });
|
|
43607
|
+
/* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69111);
|
|
43608
|
+
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84300);
|
|
43609
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12787);
|
|
43610
|
+
/*!
|
|
43611
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43612
|
+
* See LICENSE.md in the project root for license information.
|
|
43613
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43614
|
+
*/
|
|
43615
|
+
|
|
43616
|
+
|
|
43617
|
+
|
|
43618
|
+
|
|
43619
|
+
|
|
43620
|
+
/***/ }),
|
|
43621
|
+
|
|
43622
|
+
/***/ 12787:
|
|
43623
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43624
|
+
|
|
43625
|
+
"use strict";
|
|
43626
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43627
|
+
/* harmony export */ "C": function() { return /* binding */ innerHTML; },
|
|
43628
|
+
/* harmony export */ "d": function() { return /* binding */ html; }
|
|
43629
|
+
/* harmony export */ });
|
|
43630
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
43631
|
+
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46232);
|
|
43632
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73076);
|
|
43633
|
+
/*!
|
|
43634
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43635
|
+
* See LICENSE.md in the project root for license information.
|
|
43636
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43637
|
+
*/
|
|
43638
|
+
|
|
43639
|
+
|
|
43640
|
+
|
|
43641
|
+
function html(elm, filter = () => true, removeEmpty = true, allowedStyleProps) {
|
|
43642
|
+
switch (true) {
|
|
43643
|
+
case elm.isComment:
|
|
43644
|
+
case elm.isText: {
|
|
43645
|
+
if (!filter(elm)) {
|
|
43646
|
+
return '';
|
|
43647
|
+
}
|
|
43648
|
+
const { nodeValue } = elm.attributes;
|
|
43649
|
+
return elm.isComment ? `<!--${nodeValue}-->` : nodeValue;
|
|
43650
|
+
}
|
|
43651
|
+
case elm.isElement: {
|
|
43652
|
+
const { attributes } = elm, innerContent = innerHTML(elm, filter, removeEmpty, allowedStyleProps);
|
|
43653
|
+
// remove empty tag with attributes
|
|
43654
|
+
if (!elm.attributes['jd-safe'] &&
|
|
43655
|
+
removeEmpty &&
|
|
43656
|
+
innerContent.replace(/[\n\t]/g, '').length === 0 &&
|
|
43657
|
+
!elm.isSingle) {
|
|
43658
|
+
return '';
|
|
43659
|
+
}
|
|
43660
|
+
const attrsList = Object.keys(attributes)
|
|
43661
|
+
.map((key) => {
|
|
43662
|
+
if (key === 'style' ||
|
|
43663
|
+
attributes[key] == null ||
|
|
43664
|
+
/^jd-/.test(key)) {
|
|
43665
|
+
return '';
|
|
43666
|
+
}
|
|
43667
|
+
return `${key}="${htmlEntity(attributes[key])}"`;
|
|
43668
|
+
})
|
|
43669
|
+
.filter(Boolean);
|
|
43670
|
+
const { str: styleStr } = elm.style;
|
|
43671
|
+
const styles = htmlEntity(styleStr((key) => keyInList(key, allowedStyleProps)));
|
|
43672
|
+
if (styles) {
|
|
43673
|
+
attrsList.push(`style="${styles}"`);
|
|
43674
|
+
}
|
|
43675
|
+
// unwrap empty tag without attributes
|
|
43676
|
+
if (removeEmpty &&
|
|
43677
|
+
attrsList.length === 0 &&
|
|
43678
|
+
['span', 'a'].includes(elm.name)) {
|
|
43679
|
+
return innerContent;
|
|
43680
|
+
}
|
|
43681
|
+
const attrs = attrsList.length ? ' ' + attrsList.join(' ') : '';
|
|
43682
|
+
if (!filter(elm)) {
|
|
43683
|
+
return innerContent;
|
|
43684
|
+
}
|
|
43685
|
+
return elm.isSingle
|
|
43686
|
+
? `<${elm.name}${attrs}/>`
|
|
43687
|
+
: `<${elm.name}${attrs}>${innerContent}</${elm.name}>`;
|
|
43688
|
+
}
|
|
43689
|
+
default:
|
|
43690
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
43691
|
+
throw Error('Need implementation for this type');
|
|
43692
|
+
}
|
|
43693
|
+
}
|
|
43694
|
+
return '';
|
|
43695
|
+
}
|
|
43696
|
+
function keyInList(key, list) {
|
|
43697
|
+
var _a;
|
|
43698
|
+
if (!list) {
|
|
43699
|
+
return true;
|
|
43700
|
+
}
|
|
43701
|
+
if (keyInList.cache.has(list)) {
|
|
43702
|
+
const isAllow = (_a = keyInList.cache.get(list)) === null || _a === void 0 ? void 0 : _a.get(key);
|
|
43703
|
+
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__/* .isBoolean */ .j)(isAllow)) {
|
|
43704
|
+
return isAllow;
|
|
43705
|
+
}
|
|
43706
|
+
}
|
|
43707
|
+
const isAllow = list.some((allow) => new RegExp(allow).test(key));
|
|
43708
|
+
const map = keyInList.cache.get(list) || new Map();
|
|
43709
|
+
map.set(key, isAllow);
|
|
43710
|
+
keyInList.cache.set(list, map);
|
|
43711
|
+
return isAllow;
|
|
43712
|
+
}
|
|
43713
|
+
keyInList.cache = new WeakMap();
|
|
43714
|
+
function innerHTML(elm, filter = () => true, removeEmpty = true, allowedStyleProps) {
|
|
43715
|
+
let result = elm
|
|
43716
|
+
.map((e) => html(e, filter, removeEmpty, allowedStyleProps))
|
|
43717
|
+
.join('');
|
|
43718
|
+
if (elm.name === 'p' && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .f)(result).length === 0) {
|
|
43719
|
+
result = ' ';
|
|
43720
|
+
}
|
|
43721
|
+
return result;
|
|
43722
|
+
}
|
|
43723
|
+
function htmlEntity(str) {
|
|
43724
|
+
return str.toString().replace(/"/g, '"');
|
|
43725
|
+
}
|
|
43726
|
+
|
|
43727
|
+
|
|
43728
|
+
/***/ }),
|
|
43729
|
+
|
|
43730
|
+
/***/ 12481:
|
|
43731
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43732
|
+
|
|
43733
|
+
"use strict";
|
|
43734
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43735
|
+
/* harmony export */ "b": function() { return /* binding */ Style; }
|
|
43736
|
+
/* harmony export */ });
|
|
43737
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
43738
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
43739
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
43740
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18352);
|
|
43741
|
+
/*!
|
|
43742
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43743
|
+
* See LICENSE.md in the project root for license information.
|
|
43744
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43745
|
+
*/
|
|
43746
|
+
|
|
43747
|
+
|
|
43748
|
+
|
|
43749
|
+
|
|
43750
|
+
let Style = class Style {
|
|
43751
|
+
constructor(str) {
|
|
43752
|
+
this._data = readStyles(str);
|
|
43753
|
+
}
|
|
43754
|
+
get keys() {
|
|
43755
|
+
return Object.keys(this._data);
|
|
43756
|
+
}
|
|
43757
|
+
forEach(f) {
|
|
43758
|
+
this.keys.forEach((key) => f(key));
|
|
43759
|
+
}
|
|
43760
|
+
clear() {
|
|
43761
|
+
this._data = {};
|
|
43762
|
+
}
|
|
43763
|
+
set(key, value) {
|
|
43764
|
+
this._data[key] = value;
|
|
43765
|
+
}
|
|
43766
|
+
get(key) {
|
|
43767
|
+
var _a;
|
|
43768
|
+
return (_a = this._data[key]) !== null && _a !== void 0 ? _a : null;
|
|
43769
|
+
}
|
|
43770
|
+
has(key) {
|
|
43771
|
+
return this._data[key] !== undefined;
|
|
43772
|
+
}
|
|
43773
|
+
add(key, value) {
|
|
43774
|
+
this._data = readStyles(this.str() + ';' + `${key}:${value}`);
|
|
43775
|
+
return this;
|
|
43776
|
+
}
|
|
43777
|
+
str(filter = (k) => true) {
|
|
43778
|
+
const styleKeys = Object.keys(this._data).filter((key) => key &&
|
|
43779
|
+
!/^mso-/.test(key) &&
|
|
43780
|
+
filter(key) &&
|
|
43781
|
+
this.get(key) != null);
|
|
43782
|
+
const n = (v) => {
|
|
43783
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isString)(v)) {
|
|
43784
|
+
return /^0[a-z]+$/i.test(v) ? '0' : v;
|
|
43785
|
+
}
|
|
43786
|
+
return v.toString();
|
|
43787
|
+
};
|
|
43788
|
+
['padding', 'margin'].forEach((key) => {
|
|
43789
|
+
if (this._data[key]) {
|
|
43790
|
+
const indexMain = styleKeys.indexOf(key);
|
|
43791
|
+
const margins = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__/* .calcMarginParts */ .Wb)(this._data[key]);
|
|
43792
|
+
['top', 'right', 'bottom', 'left'].forEach((side, index) => {
|
|
43793
|
+
const name = `${key}-${side}`, value = this._data[name];
|
|
43794
|
+
if (value != null &&
|
|
43795
|
+
(styleKeys.indexOf(name) < indexMain ||
|
|
43796
|
+
n(margins[index]) === n(value))) {
|
|
43797
|
+
styleKeys.indexOf(name) !== -1 &&
|
|
43798
|
+
styleKeys.splice(styleKeys.indexOf(name), 1);
|
|
43799
|
+
}
|
|
43800
|
+
});
|
|
43801
|
+
}
|
|
43802
|
+
});
|
|
43803
|
+
if (styleKeys.length) {
|
|
43804
|
+
return styleKeys
|
|
43805
|
+
.map((key) => `${(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.kebabCase)(key)}:${this.get(key)}`)
|
|
43806
|
+
.join(';');
|
|
43807
|
+
}
|
|
43808
|
+
return '';
|
|
43809
|
+
}
|
|
43810
|
+
};
|
|
43811
|
+
Style = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
43812
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
43813
|
+
], Style);
|
|
43814
|
+
function readStyles(style) {
|
|
43815
|
+
return uniqueMax((style !== null && style !== void 0 ? style : '')
|
|
43816
|
+
.replace(/"/g, '"')
|
|
43817
|
+
.split(';')
|
|
43818
|
+
.filter(Boolean)
|
|
43819
|
+
.map((s) => (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.trim)(s).split(':').map(jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.trim))).reduce((acc, [key, value]) => {
|
|
43820
|
+
if (key && value) {
|
|
43821
|
+
acc[key] = value;
|
|
43822
|
+
}
|
|
43823
|
+
return acc;
|
|
43824
|
+
}, {});
|
|
43825
|
+
}
|
|
43826
|
+
function uniqueMax(array) {
|
|
43827
|
+
const keys = {};
|
|
43828
|
+
const result = [];
|
|
43829
|
+
for (let i = array.length - 1; i >= 0; i -= 1) {
|
|
43830
|
+
const key = array[i][0];
|
|
43831
|
+
if (keys[key]) {
|
|
43832
|
+
continue;
|
|
43833
|
+
}
|
|
43834
|
+
keys[key] = true;
|
|
43835
|
+
result.unshift(array[i]);
|
|
43836
|
+
}
|
|
43837
|
+
return result;
|
|
43838
|
+
}
|
|
43839
|
+
|
|
43840
|
+
|
|
43841
|
+
/***/ }),
|
|
43842
|
+
|
|
43843
|
+
/***/ 12049:
|
|
43844
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43845
|
+
|
|
43846
|
+
"use strict";
|
|
43847
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43848
|
+
/* harmony export */ "x": function() { return /* binding */ applyStylesPro; }
|
|
43849
|
+
/* harmony export */ });
|
|
43850
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98478);
|
|
43851
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
43852
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
43853
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79374);
|
|
43854
|
+
/*!
|
|
43855
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43856
|
+
* See LICENSE.md in the project root for license information.
|
|
43857
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43858
|
+
*/
|
|
43859
|
+
|
|
43860
|
+
|
|
43861
|
+
|
|
43862
|
+
|
|
43863
|
+
function applyStylesPro(jodit, html, removeStyles, rtf = '') {
|
|
43864
|
+
var _a, _b;
|
|
43865
|
+
const iframe = document.createElement('iframe');
|
|
43866
|
+
iframe.style.display = 'none';
|
|
43867
|
+
document.body.appendChild(iframe);
|
|
43868
|
+
try {
|
|
43869
|
+
const doc = (_a = iframe.contentDocument) !== null && _a !== void 0 ? _a : (_b = iframe.contentWindow) === null || _b === void 0 ? void 0 : _b.document;
|
|
43870
|
+
if (!doc) {
|
|
43871
|
+
return html;
|
|
43872
|
+
}
|
|
43873
|
+
doc.open();
|
|
43874
|
+
doc.write(html);
|
|
43875
|
+
doc.close();
|
|
43876
|
+
const JDS = 'jd-style';
|
|
43877
|
+
for (let i = 0; i < doc.styleSheets.length; i += 1) {
|
|
43878
|
+
try {
|
|
43879
|
+
const rules = doc.styleSheets[i]
|
|
43880
|
+
.cssRules;
|
|
43881
|
+
for (let idx = 0; idx < rules.length; idx += 1) {
|
|
43882
|
+
if (!rules[idx].selectorText) {
|
|
43883
|
+
continue;
|
|
43884
|
+
}
|
|
43885
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(rules[idx].selectorText, doc.body).forEach((elm) => {
|
|
43886
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS)) {
|
|
43887
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS, (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style') || '');
|
|
43888
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', '');
|
|
43889
|
+
}
|
|
43890
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', `${(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style')};${rules[idx].style.cssText}`);
|
|
43891
|
+
});
|
|
43892
|
+
}
|
|
43893
|
+
}
|
|
43894
|
+
catch (e) { }
|
|
43895
|
+
}
|
|
43896
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(`[${JDS}]`, doc.body).forEach((elm) => {
|
|
43897
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', `${(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style')};${(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS)}`);
|
|
43898
|
+
});
|
|
43899
|
+
return (0,_transform_word_to_html__WEBPACK_IMPORTED_MODULE_3__/* .transformWordToHtml */ .W)(jodit, jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .JElement.make */ .nK.make(doc.body), removeStyles, rtf);
|
|
43900
|
+
}
|
|
43901
|
+
finally {
|
|
43902
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(iframe);
|
|
43903
|
+
}
|
|
43904
|
+
return html;
|
|
43905
|
+
}
|
|
43906
|
+
|
|
43907
|
+
|
|
43908
|
+
/***/ }),
|
|
43909
|
+
|
|
43910
|
+
/***/ 45394:
|
|
43911
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43912
|
+
|
|
43913
|
+
"use strict";
|
|
43914
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43915
|
+
/* harmony export */ "r": function() { return /* binding */ calcListLevels; }
|
|
43916
|
+
/* harmony export */ });
|
|
43917
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93310);
|
|
43918
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19438);
|
|
43919
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81723);
|
|
43920
|
+
/*!
|
|
43921
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43922
|
+
* See LICENSE.md in the project root for license information.
|
|
43923
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43924
|
+
*/
|
|
43925
|
+
|
|
43926
|
+
|
|
43927
|
+
|
|
43928
|
+
function calcListLevels(item) {
|
|
43929
|
+
if (item.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] !== undefined) {
|
|
43930
|
+
return;
|
|
43931
|
+
}
|
|
43932
|
+
const indents = [(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(item)], items = [item];
|
|
43933
|
+
let next = item.next;
|
|
43934
|
+
while (next) {
|
|
43935
|
+
if (next.isElement &&
|
|
43936
|
+
!next.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] &&
|
|
43937
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__/* .isPseudoLeaf */ .Hh)(next)) {
|
|
43938
|
+
const indent = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(next);
|
|
43939
|
+
if (indent) {
|
|
43940
|
+
indents.push(indent);
|
|
43941
|
+
items.push(next);
|
|
43942
|
+
}
|
|
43943
|
+
}
|
|
43944
|
+
next = next.next;
|
|
43945
|
+
}
|
|
43946
|
+
const minIndent = Math.min(...indents.filter((val) => val > 0));
|
|
43947
|
+
let levels = indents.map((val) => Math.ceil(val / 10));
|
|
43948
|
+
if (levels.indexOf(0) !== -1) {
|
|
43949
|
+
levels = levels.map((val) => val + 1);
|
|
43950
|
+
}
|
|
43951
|
+
items.forEach((curItem, index) => {
|
|
43952
|
+
curItem.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] = levels[index];
|
|
43953
|
+
curItem.style.add('margin-left', `${Math.max((0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(curItem) -
|
|
43954
|
+
((levels[index] * 10) / minIndent) * 40, 0)}px`);
|
|
43955
|
+
});
|
|
43956
|
+
}
|
|
43957
|
+
|
|
43958
|
+
|
|
43959
|
+
/***/ }),
|
|
43960
|
+
|
|
43961
|
+
/***/ 81723:
|
|
43962
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43963
|
+
|
|
43964
|
+
"use strict";
|
|
43965
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43966
|
+
/* harmony export */ "D4": function() { return /* binding */ realPixelIndent; },
|
|
43967
|
+
/* harmony export */ "Lp": function() { return /* binding */ convertUnitToPx; },
|
|
43968
|
+
/* harmony export */ "Sg": function() { return /* binding */ calcStartBySymbol; },
|
|
43969
|
+
/* harmony export */ "Wb": function() { return /* binding */ calcMarginParts; }
|
|
43970
|
+
/* harmony export */ });
|
|
43971
|
+
/*!
|
|
43972
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43973
|
+
* See LICENSE.md in the project root for license information.
|
|
43974
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43975
|
+
*/
|
|
43976
|
+
function calcMarginParts(margin) {
|
|
43977
|
+
if (!margin) {
|
|
43978
|
+
return [0, 0, 0, 0];
|
|
43979
|
+
}
|
|
43980
|
+
const widths = margin.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g) || ['0px'];
|
|
43981
|
+
switch (widths.length) {
|
|
43982
|
+
case 2:
|
|
43983
|
+
return [0, 1, 0, 1].map((index) => widths[index]);
|
|
43984
|
+
case 3:
|
|
43985
|
+
return [0, 1, 2, 1].map((index) => widths[index]);
|
|
43986
|
+
case 4:
|
|
43987
|
+
return [0, 1, 2, 3].map((index) => widths[index]);
|
|
43988
|
+
default:
|
|
43989
|
+
return [0, 0, 0, 0].map((index) => widths[index]);
|
|
43990
|
+
}
|
|
43991
|
+
}
|
|
43992
|
+
let fakeMeasureBox;
|
|
43993
|
+
/**
|
|
43994
|
+
* Convert css units to pixels, excluding percentages
|
|
43995
|
+
* @example
|
|
43996
|
+
* ```js
|
|
43997
|
+
* convertUnitToPx('55pt')
|
|
43998
|
+
* convertUnitToPx('55cm')
|
|
43999
|
+
* ```
|
|
44000
|
+
*/
|
|
44001
|
+
function convertUnitToPx(unit) {
|
|
44002
|
+
if (typeof unit === 'number') {
|
|
44003
|
+
return unit;
|
|
44004
|
+
}
|
|
44005
|
+
if (/%$/.test(unit)) {
|
|
44006
|
+
return 0;
|
|
44007
|
+
}
|
|
44008
|
+
if (!fakeMeasureBox) {
|
|
44009
|
+
fakeMeasureBox = document.createElement('div');
|
|
44010
|
+
Object.assign(fakeMeasureBox.style, {
|
|
44011
|
+
position: 'absolute',
|
|
44012
|
+
left: '-9999px',
|
|
44013
|
+
top: '-9999px',
|
|
44014
|
+
margin: '0',
|
|
44015
|
+
padding: '0',
|
|
44016
|
+
border: '0'
|
|
44017
|
+
});
|
|
44018
|
+
document.body.append(fakeMeasureBox);
|
|
44019
|
+
// Clean after work
|
|
44020
|
+
setTimeout(() => {
|
|
44021
|
+
fakeMeasureBox === null || fakeMeasureBox === void 0 ? void 0 : fakeMeasureBox.remove();
|
|
44022
|
+
fakeMeasureBox = null;
|
|
44023
|
+
});
|
|
44024
|
+
}
|
|
44025
|
+
const isNegative = parseFloat(unit) < 0;
|
|
44026
|
+
if (isNegative) {
|
|
44027
|
+
unit = unit.replace('-', '');
|
|
44028
|
+
}
|
|
44029
|
+
fakeMeasureBox.style.width = unit;
|
|
44030
|
+
const result = fakeMeasureBox.clientWidth;
|
|
44031
|
+
if (isNegative) {
|
|
44032
|
+
return -result;
|
|
44033
|
+
}
|
|
44034
|
+
return result;
|
|
44035
|
+
}
|
|
44036
|
+
function realPixelIndent(element) {
|
|
44037
|
+
const { style } = element;
|
|
44038
|
+
let marginSplit = [0, 0, 0, 0];
|
|
44039
|
+
const marginKeys = style.keys.filter((k) => /margin/.test(k));
|
|
44040
|
+
const maxMarginLeftIndex = Math.max(marginKeys.indexOf('margin-left'), marginKeys.indexOf('margin'));
|
|
44041
|
+
const marginKey = maxMarginLeftIndex > 0 ? marginKeys[maxMarginLeftIndex] : 'margin-left';
|
|
44042
|
+
let marginLeft;
|
|
44043
|
+
if (marginKey === 'margin') {
|
|
44044
|
+
const margin = style.get('margin');
|
|
44045
|
+
marginSplit = calcMarginParts(margin);
|
|
44046
|
+
marginLeft = marginSplit[3] || 0;
|
|
44047
|
+
}
|
|
44048
|
+
else {
|
|
44049
|
+
marginLeft = style.get(marginKey) || 0;
|
|
44050
|
+
}
|
|
44051
|
+
return convertUnitToPx(marginLeft);
|
|
44052
|
+
}
|
|
44053
|
+
function calcStartBySymbol(symbol) {
|
|
44054
|
+
if (/\d.\d/.test(symbol)) {
|
|
44055
|
+
return symbol.split('.').pop() || null;
|
|
44056
|
+
}
|
|
44057
|
+
if (/^\d/.test(symbol)) {
|
|
44058
|
+
return (parseInt(symbol, 10) || 1).toString();
|
|
44059
|
+
}
|
|
44060
|
+
return null;
|
|
44061
|
+
}
|
|
44062
|
+
|
|
44063
|
+
|
|
44064
|
+
/***/ }),
|
|
44065
|
+
|
|
44066
|
+
/***/ 18352:
|
|
44067
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44068
|
+
|
|
44069
|
+
"use strict";
|
|
44070
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44071
|
+
/* harmony export */ "Lp": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Lp; },
|
|
44072
|
+
/* harmony export */ "Sg": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Sg; },
|
|
44073
|
+
/* harmony export */ "Wb": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Wb; },
|
|
44074
|
+
/* harmony export */ "rd": function() { return /* reexport safe */ _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__.r; },
|
|
44075
|
+
/* harmony export */ "xk": function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__.x; }
|
|
44076
|
+
/* harmony export */ });
|
|
44077
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81723);
|
|
44078
|
+
/* harmony import */ var _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12049);
|
|
44079
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79374);
|
|
44080
|
+
/* harmony import */ var _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45394);
|
|
44081
|
+
/*!
|
|
44082
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44083
|
+
* See LICENSE.md in the project root for license information.
|
|
44084
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44085
|
+
*/
|
|
44086
|
+
|
|
44087
|
+
|
|
44088
|
+
|
|
44089
|
+
|
|
44090
|
+
|
|
44091
|
+
|
|
44092
|
+
/***/ }),
|
|
44093
|
+
|
|
44094
|
+
/***/ 79374:
|
|
44095
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44096
|
+
|
|
44097
|
+
"use strict";
|
|
44098
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44099
|
+
/* harmony export */ "W": function() { return /* binding */ transformWordToHtml; }
|
|
44100
|
+
/* harmony export */ });
|
|
44101
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
44102
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44669);
|
|
44103
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
44104
|
+
/*!
|
|
44105
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44106
|
+
* See LICENSE.md in the project root for license information.
|
|
44107
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44108
|
+
*/
|
|
44109
|
+
|
|
44110
|
+
|
|
44111
|
+
|
|
44112
|
+
function transformWordToHtml(jodit, body, removeStyles, rtf) {
|
|
44113
|
+
const ctx = {
|
|
44114
|
+
jodit,
|
|
44115
|
+
rtf
|
|
44116
|
+
};
|
|
44117
|
+
body.forEach(function eachElm(elm) {
|
|
44118
|
+
if (!elm) {
|
|
44119
|
+
return;
|
|
44120
|
+
}
|
|
44121
|
+
for (const fn of jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__/* .cases */ .c) {
|
|
44122
|
+
elm = fn(elm, ctx);
|
|
44123
|
+
if (elm == null) {
|
|
44124
|
+
break;
|
|
44125
|
+
}
|
|
44126
|
+
}
|
|
44127
|
+
elm === null || elm === void 0 ? void 0 : elm.forEach(eachElm);
|
|
44128
|
+
});
|
|
44129
|
+
if (removeStyles) {
|
|
44130
|
+
body.forEach((elm) => {
|
|
44131
|
+
elm.style.clear();
|
|
44132
|
+
}, true);
|
|
44133
|
+
}
|
|
44134
|
+
return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .f)((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .innerHTML */ .C7)(body, (elm) => !elm.isComment, true, jodit.o.pasteFromWord.allowedStyleProps));
|
|
44135
|
+
}
|
|
44136
|
+
|
|
44137
|
+
|
|
44138
|
+
/***/ }),
|
|
44139
|
+
|
|
44140
|
+
/***/ 70322:
|
|
44141
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44142
|
+
|
|
44143
|
+
"use strict";
|
|
44144
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44145
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44146
|
+
/* harmony export */ "PasteFromWordPro": function() { return /* binding */ PasteFromWordPro; }
|
|
44147
|
+
/* harmony export */ });
|
|
44148
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
44149
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4682);
|
|
44150
|
+
/* harmony import */ var jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54625);
|
|
44151
|
+
/* harmony import */ var jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79501);
|
|
44152
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
44153
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18352);
|
|
44154
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48077);
|
|
44155
|
+
/*!
|
|
44156
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44157
|
+
* See LICENSE.md in the project root for license information.
|
|
44158
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44159
|
+
*/
|
|
44160
|
+
|
|
44161
|
+
|
|
44162
|
+
|
|
44163
|
+
|
|
44164
|
+
|
|
44165
|
+
|
|
44166
|
+
|
|
44167
|
+
class PasteFromWordPro extends jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__/* .pasteFromWord */ .L {
|
|
44168
|
+
insertFromWordByType(e, html, insertType, texts) {
|
|
44169
|
+
var _a;
|
|
44170
|
+
if (this.j.o.pasteFromWord.enable &&
|
|
44171
|
+
(insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML || insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT)) {
|
|
44172
|
+
html = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__/* .applyStylesPro */ .xk)(this.j, html, insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, texts.rtf);
|
|
44173
|
+
// @ts-ignore
|
|
44174
|
+
if (this.j.o.beautifyHTML) {
|
|
44175
|
+
const value = (_a = this.j.events) === null || _a === void 0 ? void 0 : _a.fire('beautifyHTML', html);
|
|
44176
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__/* .isString */ .H)(value)) {
|
|
44177
|
+
html = value;
|
|
44178
|
+
}
|
|
44179
|
+
}
|
|
44180
|
+
(0,jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .kU)(e, this.j, html);
|
|
44181
|
+
return;
|
|
44182
|
+
}
|
|
44183
|
+
return super.insertFromWordByType(e, html, insertType, texts);
|
|
44184
|
+
}
|
|
44185
|
+
}
|
|
44186
|
+
/** @override */
|
|
44187
|
+
PasteFromWordPro.requires = ['license'];
|
|
44188
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.remove */ .y.plugins.remove('pasteFromWord');
|
|
44189
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('pasteFromWordPro', PasteFromWordPro);
|
|
42191
44190
|
|
|
42192
44191
|
|
|
42193
44192
|
/***/ }),
|
|
@@ -42694,13 +44693,30 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
42694
44693
|
/******/ }();
|
|
42695
44694
|
/******/
|
|
42696
44695
|
/************************************************************************/
|
|
42697
|
-
|
|
42698
|
-
|
|
42699
|
-
|
|
42700
|
-
|
|
42701
|
-
|
|
42702
|
-
|
|
42703
|
-
|
|
44696
|
+
var __webpack_exports__ = {};
|
|
44697
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
44698
|
+
!function() {
|
|
44699
|
+
"use strict";
|
|
44700
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44701
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44702
|
+
/* harmony export */ "Jodit": function() { return /* reexport safe */ _jodit_pro__WEBPACK_IMPORTED_MODULE_0__.y; }
|
|
44703
|
+
/* harmony export */ });
|
|
44704
|
+
/* harmony import */ var _jodit_pro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53852);
|
|
44705
|
+
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
44706
|
+
/*!
|
|
44707
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44708
|
+
* See LICENSE.md in the project root for license information.
|
|
44709
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44710
|
+
*/
|
|
44711
|
+
|
|
44712
|
+
|
|
44713
|
+
|
|
44714
|
+
// Disable CopyRight
|
|
44715
|
+
function poweredByJodit() { }
|
|
44716
|
+
_jodit_pro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add('poweredByJodit', poweredByJodit);
|
|
44717
|
+
|
|
44718
|
+
}();
|
|
44719
|
+
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
42704
44720
|
/******/ return __webpack_exports__;
|
|
42705
44721
|
/******/ })()
|
|
42706
44722
|
;
|