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/es5/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
|
*/
|
|
@@ -3485,10 +3485,10 @@ var store = __webpack_require__(89826);
|
|
|
3485
3485
|
(module.exports = function (key, value) {
|
|
3486
3486
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
3487
3487
|
})('versions', []).push({
|
|
3488
|
-
version: '3.
|
|
3488
|
+
version: '3.31.0',
|
|
3489
3489
|
mode: IS_PURE ? 'pure' : 'global',
|
|
3490
3490
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
3491
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
3491
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE',
|
|
3492
3492
|
source: 'https://github.com/zloirock/core-js'
|
|
3493
3493
|
});
|
|
3494
3494
|
|
|
@@ -7598,7 +7598,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7598
7598
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
7599
7599
|
*/
|
|
7600
7600
|
|
|
7601
|
-
var APP_VERSION = "2.0.0-beta.
|
|
7601
|
+
var APP_VERSION = "2.0.0-beta.21";
|
|
7602
7602
|
// eslint-disable-next-line prettier/prettier
|
|
7603
7603
|
var ES = "es5";
|
|
7604
7604
|
var IS_ES_MODERN = false;
|
|
@@ -9361,8 +9361,15 @@ var Dom = /** @class */ (function () {
|
|
|
9361
9361
|
Dom.safeInsertNode = function (range, node) {
|
|
9362
9362
|
range.collapsed || range.deleteContents();
|
|
9363
9363
|
var child = Dom.isFragment(node) ? node.lastChild : node;
|
|
9364
|
-
range.
|
|
9365
|
-
|
|
9364
|
+
if (range.startContainer === range.endContainer &&
|
|
9365
|
+
range.collapsed &&
|
|
9366
|
+
Dom.isTag(range.startContainer, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
9367
|
+
Dom.after(range.startContainer, node);
|
|
9368
|
+
}
|
|
9369
|
+
else {
|
|
9370
|
+
range.insertNode(node);
|
|
9371
|
+
child && range.setStartBefore(child);
|
|
9372
|
+
}
|
|
9366
9373
|
range.collapse(true);
|
|
9367
9374
|
// https://developer.mozilla.org/en-US/docs/Web/API/Range/insertNode
|
|
9368
9375
|
// if the new node is to be added to a text Node, that Node is split at the
|
|
@@ -13493,8 +13500,13 @@ function attr(elm, keyOrAttributes, value) {
|
|
|
13493
13500
|
elm.hasAttribute(key) && elm.removeAttribute(key);
|
|
13494
13501
|
}
|
|
13495
13502
|
else {
|
|
13496
|
-
|
|
13497
|
-
|
|
13503
|
+
var replaceValue = value.toString();
|
|
13504
|
+
if (elm.nodeName === 'IMG' &&
|
|
13505
|
+
(key === 'width' || key === 'height')) {
|
|
13506
|
+
replaceValue = replaceValue.replace('px', '');
|
|
13507
|
+
}
|
|
13508
|
+
elm.setAttribute(key, replaceValue);
|
|
13509
|
+
return replaceValue;
|
|
13498
13510
|
}
|
|
13499
13511
|
}
|
|
13500
13512
|
return elm.getAttribute(key);
|
|
@@ -14858,25 +14870,29 @@ function reset(key) {
|
|
|
14858
14870
|
/**
|
|
14859
14871
|
* @module helpers/utils
|
|
14860
14872
|
*/
|
|
14861
|
-
|
|
14873
|
+
/**
|
|
14874
|
+
* Check if element is in view
|
|
14875
|
+
*/
|
|
14876
|
+
function inView(elm, root, doc) {
|
|
14862
14877
|
var rect = elm.getBoundingClientRect(), el = elm;
|
|
14863
14878
|
var top = rect.top, height = rect.height;
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14871
|
-
|
|
14872
|
-
|
|
14873
|
-
return false;
|
|
14874
|
-
}
|
|
14879
|
+
while (el && el !== root && el.parentNode) {
|
|
14880
|
+
el = el.parentNode;
|
|
14881
|
+
rect = el.getBoundingClientRect();
|
|
14882
|
+
if (!(top <= rect.bottom)) {
|
|
14883
|
+
return false;
|
|
14884
|
+
}
|
|
14885
|
+
// Check if the element is out of view due to a container scrolling
|
|
14886
|
+
if (top + height <= rect.top) {
|
|
14887
|
+
return false;
|
|
14875
14888
|
}
|
|
14876
|
-
}
|
|
14877
|
-
// Check
|
|
14889
|
+
}
|
|
14890
|
+
// Check it's within the document viewport
|
|
14878
14891
|
return (top <= ((doc.documentElement && doc.documentElement.clientHeight) || 0));
|
|
14879
|
-
}
|
|
14892
|
+
}
|
|
14893
|
+
/**
|
|
14894
|
+
* Scroll element into view if it is not in view
|
|
14895
|
+
*/
|
|
14880
14896
|
function scrollIntoViewIfNeeded(elm, root, doc) {
|
|
14881
14897
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isHTMLElement */ .i.isHTMLElement(elm) && !inView(elm, root, doc)) {
|
|
14882
14898
|
if (root.clientHeight !== root.scrollHeight) {
|
|
@@ -16528,14 +16544,14 @@ var Selection = /** @class */ (function () {
|
|
|
16528
16544
|
var left = range.cloneRange();
|
|
16529
16545
|
left.collapse(true);
|
|
16530
16546
|
var fakeLeft = this.j.createInside.fake();
|
|
16531
|
-
|
|
16547
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(left, fakeLeft);
|
|
16532
16548
|
range.setStartBefore(fakeLeft);
|
|
16533
16549
|
var result = [fakeLeft];
|
|
16534
16550
|
if (!range.collapsed) {
|
|
16535
16551
|
var right = range.cloneRange();
|
|
16536
16552
|
right.collapse(false);
|
|
16537
16553
|
var fakeRight = this.j.createInside.fake();
|
|
16538
|
-
|
|
16554
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(right, fakeRight);
|
|
16539
16555
|
range.setEndAfter(fakeRight);
|
|
16540
16556
|
result.push(fakeRight);
|
|
16541
16557
|
}
|
|
@@ -16773,7 +16789,6 @@ var Selection = /** @class */ (function () {
|
|
|
16773
16789
|
}
|
|
16774
16790
|
var sel = this.sel;
|
|
16775
16791
|
this.j.history.snapshot.transaction(function () {
|
|
16776
|
-
var _a;
|
|
16777
16792
|
if (!_this.isCollapsed()) {
|
|
16778
16793
|
_this.j.execCommand('Delete');
|
|
16779
16794
|
}
|
|
@@ -16781,13 +16796,7 @@ var Selection = /** @class */ (function () {
|
|
|
16781
16796
|
if (sel && sel.rangeCount) {
|
|
16782
16797
|
var range = sel.getRangeAt(0);
|
|
16783
16798
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isOrContains */ .i.isOrContains(_this.area, range.commonAncestorContainer)) {
|
|
16784
|
-
|
|
16785
|
-
range.collapsed) {
|
|
16786
|
-
(_a = range.startContainer.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(node, range.startContainer);
|
|
16787
|
-
}
|
|
16788
|
-
else {
|
|
16789
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
16790
|
-
}
|
|
16799
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
16791
16800
|
}
|
|
16792
16801
|
else {
|
|
16793
16802
|
_this.area.appendChild(node);
|
|
@@ -16796,14 +16805,26 @@ var Selection = /** @class */ (function () {
|
|
|
16796
16805
|
else {
|
|
16797
16806
|
_this.area.appendChild(node);
|
|
16798
16807
|
}
|
|
16808
|
+
var setCursor = function (node) {
|
|
16809
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isBlock */ .i.isBlock(node)) {
|
|
16810
|
+
var child_1 = node.lastChild;
|
|
16811
|
+
if (child_1) {
|
|
16812
|
+
return setCursor(child_1);
|
|
16813
|
+
}
|
|
16814
|
+
}
|
|
16815
|
+
_this.setCursorAfter(node);
|
|
16816
|
+
};
|
|
16799
16817
|
if (insertCursorAfter) {
|
|
16800
16818
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isFragment */ .i.isFragment(node)) {
|
|
16801
|
-
child &&
|
|
16819
|
+
child && setCursor(child);
|
|
16802
16820
|
}
|
|
16803
16821
|
else {
|
|
16804
|
-
|
|
16822
|
+
setCursor(node);
|
|
16805
16823
|
}
|
|
16806
16824
|
}
|
|
16825
|
+
if (_this.j.o.scrollToPastedContent) {
|
|
16826
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(child !== null && child !== void 0 ? child : node, _this.j.editor, _this.doc);
|
|
16827
|
+
}
|
|
16807
16828
|
});
|
|
16808
16829
|
if (fireChange && this.j.events) {
|
|
16809
16830
|
this.j.__imdSynchronizeValues();
|
|
@@ -21803,6 +21824,13 @@ var Icon = /** @class */ (function () {
|
|
|
21803
21824
|
|
|
21804
21825
|
|
|
21805
21826
|
|
|
21827
|
+
var EVENTS_FOR_AUTOCLOSE = [
|
|
21828
|
+
'escape',
|
|
21829
|
+
'cut',
|
|
21830
|
+
'delete',
|
|
21831
|
+
'backSpaceAfterDelete',
|
|
21832
|
+
'beforeCommandDelete'
|
|
21833
|
+
];
|
|
21806
21834
|
var Popup = /** @class */ (function (_super) {
|
|
21807
21835
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__extends */ .ZT)(Popup, _super);
|
|
21808
21836
|
function Popup(jodit, smart) {
|
|
@@ -22071,7 +22099,7 @@ var Popup = /** @class */ (function (_super) {
|
|
|
22071
22099
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.on */ .TB.on('closeAllPopups', this.close);
|
|
22072
22100
|
if (this.smart) {
|
|
22073
22101
|
this.j.e
|
|
22074
|
-
.on(
|
|
22102
|
+
.on(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
22075
22103
|
.on('mousedown touchstart', this.closeOnOutsideClick)
|
|
22076
22104
|
.on(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
22077
22105
|
}
|
|
@@ -22091,7 +22119,7 @@ var Popup = /** @class */ (function (_super) {
|
|
|
22091
22119
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.off */ .TB.off('closeAllPopups', this.close);
|
|
22092
22120
|
if (this.smart) {
|
|
22093
22121
|
this.j.e
|
|
22094
|
-
.off(
|
|
22122
|
+
.off(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
22095
22123
|
.off('mousedown touchstart', this.closeOnOutsideClick)
|
|
22096
22124
|
.off(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
22097
22125
|
}
|
|
@@ -23511,7 +23539,7 @@ var Jodit = /** @class */ (function (_super) {
|
|
|
23511
23539
|
* ```
|
|
23512
23540
|
*/
|
|
23513
23541
|
Jodit.prototype.execCommand = function (command, showUI, value) {
|
|
23514
|
-
var _a;
|
|
23542
|
+
var _a, _b;
|
|
23515
23543
|
var args = [];
|
|
23516
23544
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
23517
23545
|
args[_i - 3] = arguments[_i];
|
|
@@ -23543,7 +23571,14 @@ var Jodit = /** @class */ (function (_super) {
|
|
|
23543
23571
|
* })
|
|
23544
23572
|
* ```
|
|
23545
23573
|
*/
|
|
23546
|
-
result = (_a = this.e).fire.apply(_a, (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__spreadArray */ .ev)([
|
|
23574
|
+
result = (_a = this.e).fire.apply(_a, (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__spreadArray */ .ev)(["beforeCommand".concat((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ucfirst)(command)), showUI,
|
|
23575
|
+
value], (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__read */ .CR)(args), false));
|
|
23576
|
+
if (result !== false) {
|
|
23577
|
+
result = (_b = this.e).fire.apply(_b, (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__spreadArray */ .ev)(['beforeCommand',
|
|
23578
|
+
command,
|
|
23579
|
+
showUI,
|
|
23580
|
+
value], (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__read */ .CR)(args), false));
|
|
23581
|
+
}
|
|
23547
23582
|
if (result !== false) {
|
|
23548
23583
|
result = this.__execCustomCommands.apply(this, (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__spreadArray */ .ev)([command, showUI, value], (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__read */ .CR)(args), false));
|
|
23549
23584
|
}
|
|
@@ -39240,7 +39275,7 @@ var inlinePopup = /** @class */ (function (_super) {
|
|
|
39240
39275
|
* Hide opened popup
|
|
39241
39276
|
*/
|
|
39242
39277
|
inlinePopup.prototype.hidePopup = function (type) {
|
|
39243
|
-
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type) {
|
|
39278
|
+
if (this.popup.isOpened && (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type)) {
|
|
39244
39279
|
this.popup.close();
|
|
39245
39280
|
}
|
|
39246
39281
|
};
|
|
@@ -39410,7 +39445,7 @@ var inlinePopup = /** @class */ (function (_super) {
|
|
|
39410
39445
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.wait)(function (ctx) { return !ctx.j.isLocked; })
|
|
39411
39446
|
], inlinePopup.prototype, "showPopup", null);
|
|
39412
39447
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
39413
|
-
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)(':clickEditor'),
|
|
39448
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)([':clickEditor', ':beforeCommandDelete', ':backSpaceAfterDelete']),
|
|
39414
39449
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.autobind
|
|
39415
39450
|
], inlinePopup.prototype, "hidePopup", null);
|
|
39416
39451
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
@@ -41518,6 +41553,7 @@ var _a;
|
|
|
41518
41553
|
|
|
41519
41554
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config.prototype.askBeforePasteHTML */ .D.prototype.askBeforePasteHTML = true;
|
|
41520
41555
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config.prototype.processPasteHTML */ .D.prototype.processPasteHTML = true;
|
|
41556
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config.prototype.scrollToPastedContent */ .D.prototype.scrollToPastedContent = true;
|
|
41521
41557
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config.prototype.pasteHTMLActionList */ .D.prototype.pasteHTMLActionList = [
|
|
41522
41558
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
41523
41559
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
@@ -41857,7 +41893,7 @@ var paste = /** @class */ (function (_super) {
|
|
|
41857
41893
|
text = result;
|
|
41858
41894
|
}
|
|
41859
41895
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(text) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isNode */ .i.isNode(text)) {
|
|
41860
|
-
this.
|
|
41896
|
+
this.__insertByType(e, text, this.j.o.defaultActionOnPaste);
|
|
41861
41897
|
}
|
|
41862
41898
|
e.preventDefault();
|
|
41863
41899
|
e.stopPropagation();
|
|
@@ -41868,35 +41904,35 @@ var paste = /** @class */ (function (_super) {
|
|
|
41868
41904
|
*/
|
|
41869
41905
|
paste.prototype.processHTML = function (e, html) {
|
|
41870
41906
|
var _this = this;
|
|
41871
|
-
if (this.j.o.askBeforePasteHTML) {
|
|
41872
|
-
|
|
41873
|
-
|
|
41874
|
-
|
|
41875
|
-
|
|
41876
|
-
|
|
41877
|
-
|
|
41878
|
-
}
|
|
41879
|
-
if (this._isDialogOpened) {
|
|
41907
|
+
if (!this.j.o.askBeforePasteHTML) {
|
|
41908
|
+
return false;
|
|
41909
|
+
}
|
|
41910
|
+
if (this.j.o.memorizeChoiceWhenPasteFragment) {
|
|
41911
|
+
var cached = this.pasteStack.find(function (cachedItem) { return cachedItem.html === html; });
|
|
41912
|
+
if (cached) {
|
|
41913
|
+
this.__insertByType(e, html, cached.action || this.j.o.defaultActionOnPaste);
|
|
41880
41914
|
return true;
|
|
41881
41915
|
}
|
|
41882
|
-
|
|
41883
|
-
|
|
41884
|
-
_this.insertByType(e, html, insertType);
|
|
41885
|
-
}, this.j.o.pasteHTMLActionList);
|
|
41886
|
-
if (dialog) {
|
|
41887
|
-
this._isDialogOpened = true;
|
|
41888
|
-
dialog.e.on('beforeClose', function () {
|
|
41889
|
-
_this._isDialogOpened = false;
|
|
41890
|
-
});
|
|
41891
|
-
}
|
|
41916
|
+
}
|
|
41917
|
+
if (this._isDialogOpened) {
|
|
41892
41918
|
return true;
|
|
41893
41919
|
}
|
|
41894
|
-
|
|
41920
|
+
var dialog = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .askInsertTypeDialog */ .$t)(this.j, 'Your code is similar to HTML. Keep as HTML?', 'Paste as HTML', function (insertType) {
|
|
41921
|
+
_this._isDialogOpened = false;
|
|
41922
|
+
_this.__insertByType(e, html, insertType);
|
|
41923
|
+
}, this.j.o.pasteHTMLActionList);
|
|
41924
|
+
if (dialog) {
|
|
41925
|
+
this._isDialogOpened = true;
|
|
41926
|
+
dialog.e.on('beforeClose', function () {
|
|
41927
|
+
_this._isDialogOpened = false;
|
|
41928
|
+
});
|
|
41929
|
+
}
|
|
41930
|
+
return true;
|
|
41895
41931
|
};
|
|
41896
41932
|
/**
|
|
41897
41933
|
* Insert HTML by option type
|
|
41898
41934
|
*/
|
|
41899
|
-
paste.prototype.
|
|
41935
|
+
paste.prototype.__insertByType = function (e, html, action) {
|
|
41900
41936
|
this.pasteStack.push({ html: html, action: action });
|
|
41901
41937
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(html)) {
|
|
41902
41938
|
this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.CLIPBOARD_ID, html);
|
|
@@ -49024,7 +49060,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49024
49060
|
|
|
49025
49061
|
/***/ }),
|
|
49026
49062
|
|
|
49027
|
-
/***/
|
|
49063
|
+
/***/ 68353:
|
|
49064
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
49065
|
+
|
|
49066
|
+
"use strict";
|
|
49067
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
49068
|
+
/*!
|
|
49069
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49070
|
+
* See LICENSE.md in the project root for license information.
|
|
49071
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
49072
|
+
*/
|
|
49073
|
+
|
|
49074
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.controls.font.list */ .D.prototype.controls.font.list = {
|
|
49075
|
+
'andale mono,monospace': 'Andale Mono',
|
|
49076
|
+
'arial,helvetica,sans-serif': 'Arial',
|
|
49077
|
+
'arial black,sans-serif': 'Arial Black',
|
|
49078
|
+
'book antiqua,palatino,serif': 'Book Antiqua',
|
|
49079
|
+
'comic sans ms,sans-serif': 'Comic Sans MS',
|
|
49080
|
+
'courier new,courier,monospace': 'Courier New',
|
|
49081
|
+
'georgia,palatino,serif': 'Georgia',
|
|
49082
|
+
'helvetica,arial,sans-serif': 'Helvetica',
|
|
49083
|
+
'impact,charcoal,sans-serif': 'Impact',
|
|
49084
|
+
'symbol,sans-serif': 'Symbol',
|
|
49085
|
+
'tahoma,arial,helvetica,sans-serif': 'Tahoma',
|
|
49086
|
+
'terminal,monaco,monospace': 'Terminal',
|
|
49087
|
+
'times new roman,times,serif': 'Times New Roman',
|
|
49088
|
+
'trebuchet ms,geneva,sans-serif': 'Trebuchet MS',
|
|
49089
|
+
'verdana,geneva,sans-serif': 'Verdana',
|
|
49090
|
+
webdings: 'Webdings',
|
|
49091
|
+
'wingdings,zapf dingbats': 'Wingdings'
|
|
49092
|
+
};
|
|
49093
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.loadExternalConfig */ .D.prototype.loadExternalConfig = true;
|
|
49094
|
+
|
|
49095
|
+
|
|
49096
|
+
/***/ }),
|
|
49097
|
+
|
|
49098
|
+
/***/ 53852:
|
|
49028
49099
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49029
49100
|
|
|
49030
49101
|
"use strict";
|
|
@@ -49099,62 +49170,513 @@ var JoditPro = /** @class */ (function (_super) {
|
|
|
49099
49170
|
|
|
49100
49171
|
/***/ }),
|
|
49101
49172
|
|
|
49102
|
-
/***/
|
|
49103
|
-
/***/ (function(__unused_webpack_module,
|
|
49173
|
+
/***/ 93123:
|
|
49174
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49104
49175
|
|
|
49105
49176
|
"use strict";
|
|
49106
|
-
|
|
49177
|
+
__webpack_require__.r(__webpack_exports__);
|
|
49178
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49179
|
+
/* harmony export */ "autocomplete": function() { return /* binding */ autocomplete; }
|
|
49180
|
+
/* harmony export */ });
|
|
49181
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(97582);
|
|
49182
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
|
|
49183
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77628);
|
|
49184
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
|
|
49185
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95582);
|
|
49186
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44913);
|
|
49187
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19797);
|
|
49188
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11612);
|
|
49189
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77325);
|
|
49190
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53852);
|
|
49191
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(47325);
|
|
49107
49192
|
/*!
|
|
49108
49193
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49109
49194
|
* See LICENSE.md in the project root for license information.
|
|
49110
49195
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
49111
49196
|
*/
|
|
49112
49197
|
|
|
49113
|
-
|
|
49114
|
-
|
|
49115
|
-
|
|
49116
|
-
|
|
49117
|
-
|
|
49118
|
-
|
|
49119
|
-
|
|
49120
|
-
|
|
49121
|
-
|
|
49122
|
-
|
|
49123
|
-
|
|
49124
|
-
|
|
49125
|
-
|
|
49126
|
-
|
|
49127
|
-
|
|
49128
|
-
|
|
49129
|
-
|
|
49130
|
-
|
|
49198
|
+
|
|
49199
|
+
|
|
49200
|
+
|
|
49201
|
+
|
|
49202
|
+
|
|
49203
|
+
|
|
49204
|
+
|
|
49205
|
+
|
|
49206
|
+
|
|
49207
|
+
|
|
49208
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config.prototype.autocomplete */ .D.prototype.autocomplete = {
|
|
49209
|
+
sources: [],
|
|
49210
|
+
maxItems: 50,
|
|
49211
|
+
isMatchedQuery: function (query, value) {
|
|
49212
|
+
return value.toLowerCase().indexOf(query.toLowerCase()) === 0;
|
|
49213
|
+
},
|
|
49214
|
+
itemRenderer: function (item) { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
49215
|
+
insertValueRenderer: function (item) { return item.value + ' '; }
|
|
49131
49216
|
};
|
|
49132
|
-
|
|
49217
|
+
var autocomplete = /** @class */ (function (_super) {
|
|
49218
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__extends */ .ZT)(autocomplete, _super);
|
|
49219
|
+
function autocomplete() {
|
|
49220
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
49221
|
+
/** @override */
|
|
49222
|
+
_this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.fatMode */ .y.fatMode;
|
|
49223
|
+
_this.sources = [];
|
|
49224
|
+
return _this;
|
|
49225
|
+
}
|
|
49226
|
+
/** @override */
|
|
49227
|
+
autocomplete.prototype.afterInit = function (jodit) {
|
|
49228
|
+
var _this = this;
|
|
49229
|
+
this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .G(jodit);
|
|
49230
|
+
this.popup.setMod('padding', false);
|
|
49231
|
+
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .F(jodit);
|
|
49232
|
+
this.popup.setContent(this.list.container);
|
|
49233
|
+
jodit.e
|
|
49234
|
+
.on('select.autocomplete', function (item) {
|
|
49235
|
+
var insertValue = item.value;
|
|
49236
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(item.insertValueRenderer)) {
|
|
49237
|
+
insertValue = item.insertValueRenderer(item);
|
|
49238
|
+
}
|
|
49239
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom.isNode */ .i.isNode(insertValue)) {
|
|
49240
|
+
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
49241
|
+
}
|
|
49242
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .replaceTextLeftOfCursorAfterSpace */ .p)(jodit.s.range, insertValue);
|
|
49243
|
+
_this.j.s.setCursorAfter(insertValue);
|
|
49244
|
+
_this.j.synchronizeValues();
|
|
49245
|
+
_this.popup.close();
|
|
49246
|
+
})
|
|
49247
|
+
.on('keydown.autocomplete', this.onKeyDown)
|
|
49248
|
+
.on('keydown.autocomplete', this.onKeyControlDown, {
|
|
49249
|
+
top: true
|
|
49250
|
+
})
|
|
49251
|
+
.on('beforeEnter.autocomplete', this.onEnter, { top: true })
|
|
49252
|
+
.on('autocomplete.autocomplete', this.onAutoComplete)
|
|
49253
|
+
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource);
|
|
49254
|
+
};
|
|
49255
|
+
autocomplete.prototype.registerAutocompleteSource = function (source) {
|
|
49256
|
+
this.sources.push(source);
|
|
49257
|
+
};
|
|
49258
|
+
autocomplete.isControlKey = function (key) {
|
|
49259
|
+
return (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN ||
|
|
49260
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ||
|
|
49261
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ENTER ||
|
|
49262
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB);
|
|
49263
|
+
};
|
|
49264
|
+
autocomplete.prototype.onKeyDown = function (e) {
|
|
49265
|
+
var _a, _b;
|
|
49266
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
|
|
49267
|
+
var s, range, query, result;
|
|
49268
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__generator */ .Jh)(this, function (_c) {
|
|
49269
|
+
switch (_c.label) {
|
|
49270
|
+
case 0:
|
|
49271
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ESC) {
|
|
49272
|
+
this.popup.isOpened && this.popup.close();
|
|
49273
|
+
return [2 /*return*/];
|
|
49274
|
+
}
|
|
49275
|
+
s = this.j.s;
|
|
49276
|
+
if (autocomplete.isControlKey(e.key) ||
|
|
49277
|
+
!s.isInsideArea ||
|
|
49278
|
+
!s.isCollapsed) {
|
|
49279
|
+
return [2 /*return*/];
|
|
49280
|
+
}
|
|
49281
|
+
range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
|
|
49282
|
+
? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
|
|
49283
|
+
: null;
|
|
49284
|
+
query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .getTextLeftOfCursor */ .Y)(range).split(' ').pop();
|
|
49285
|
+
if (!(query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length)) return [3 /*break*/, 2];
|
|
49286
|
+
return [4 /*yield*/, this.onAutoComplete(query)];
|
|
49287
|
+
case 1:
|
|
49288
|
+
result = _c.sent();
|
|
49289
|
+
if (result.length) {
|
|
49290
|
+
return [2 /*return*/, this.openPopup(result)];
|
|
49291
|
+
}
|
|
49292
|
+
_c.label = 2;
|
|
49293
|
+
case 2:
|
|
49294
|
+
if (this.popup.isOpened) {
|
|
49295
|
+
this.popup.close();
|
|
49296
|
+
}
|
|
49297
|
+
return [2 /*return*/];
|
|
49298
|
+
}
|
|
49299
|
+
});
|
|
49300
|
+
});
|
|
49301
|
+
};
|
|
49302
|
+
autocomplete.prototype.onKeyControlDown = function (e) {
|
|
49303
|
+
if (this.popup.isOpened && autocomplete.isControlKey(e.key)) {
|
|
49304
|
+
switch (e.key) {
|
|
49305
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN:
|
|
49306
|
+
this.list.selectNext();
|
|
49307
|
+
break;
|
|
49308
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP:
|
|
49309
|
+
this.list.selectPrevious();
|
|
49310
|
+
break;
|
|
49311
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB:
|
|
49312
|
+
this.list.select();
|
|
49313
|
+
break;
|
|
49314
|
+
}
|
|
49315
|
+
this.j.e.stopPropagation(e.type);
|
|
49316
|
+
return false;
|
|
49317
|
+
}
|
|
49318
|
+
};
|
|
49319
|
+
autocomplete.prototype.onEnter = function () {
|
|
49320
|
+
if (this.popup.isOpened) {
|
|
49321
|
+
this.list.select();
|
|
49322
|
+
return false;
|
|
49323
|
+
}
|
|
49324
|
+
};
|
|
49325
|
+
autocomplete.prototype.onAutoComplete = function (query) {
|
|
49326
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
|
|
49327
|
+
var result;
|
|
49328
|
+
var _this = this;
|
|
49329
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__generator */ .Jh)(this, function (_a) {
|
|
49330
|
+
switch (_a.label) {
|
|
49331
|
+
case 0:
|
|
49332
|
+
result = [];
|
|
49333
|
+
return [4 /*yield*/, Promise.all(this.sources
|
|
49334
|
+
.concat(this.j.o.autocomplete.sources)
|
|
49335
|
+
.map(function (source) { return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__awaiter */ .mG)(_this, void 0, void 0, function () {
|
|
49336
|
+
var _a, _b, _c, _d;
|
|
49337
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__generator */ .Jh)(this, function (_e) {
|
|
49338
|
+
switch (_e.label) {
|
|
49339
|
+
case 0:
|
|
49340
|
+
_b = (_a = result.push).apply;
|
|
49341
|
+
_c = [result];
|
|
49342
|
+
_d = [[]];
|
|
49343
|
+
return [4 /*yield*/, this.resolveFeed(query, source)];
|
|
49344
|
+
case 1:
|
|
49345
|
+
_b.apply(_a, _c.concat([tslib__WEBPACK_IMPORTED_MODULE_10__/* .__spreadArray.apply */ .ev.apply(void 0, _d.concat([tslib__WEBPACK_IMPORTED_MODULE_10__/* .__read.apply */ .CR.apply(void 0, [(_e.sent())]), false]))]));
|
|
49346
|
+
return [2 /*return*/];
|
|
49347
|
+
}
|
|
49348
|
+
});
|
|
49349
|
+
}); }))];
|
|
49350
|
+
case 1:
|
|
49351
|
+
_a.sent();
|
|
49352
|
+
return [2 /*return*/, result];
|
|
49353
|
+
}
|
|
49354
|
+
});
|
|
49355
|
+
});
|
|
49356
|
+
};
|
|
49357
|
+
autocomplete.prototype.resolveFeed = function (query, feed, baseSource) {
|
|
49358
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
|
|
49359
|
+
var parts, arrayFeed, isMatchedQuery_1, itemRenderer_1, insertValueRenderer_1, maxItems;
|
|
49360
|
+
var _a;
|
|
49361
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__generator */ .Jh)(this, function (_b) {
|
|
49362
|
+
switch (_b.label) {
|
|
49363
|
+
case 0:
|
|
49364
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(feed)) return [3 /*break*/, 2];
|
|
49365
|
+
return [4 /*yield*/, feed];
|
|
49366
|
+
case 1:
|
|
49367
|
+
feed = _b.sent();
|
|
49368
|
+
_b.label = 2;
|
|
49369
|
+
case 2:
|
|
49370
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(feed)) return [3 /*break*/, 4];
|
|
49371
|
+
return [4 /*yield*/, feed(query)];
|
|
49372
|
+
case 3:
|
|
49373
|
+
parts = _b.sent();
|
|
49374
|
+
return [3 /*break*/, 7];
|
|
49375
|
+
case 4:
|
|
49376
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(feed)) return [3 /*break*/, 5];
|
|
49377
|
+
arrayFeed = feed, isMatchedQuery_1 = this.j.o.autocomplete.isMatchedQuery;
|
|
49378
|
+
parts = arrayFeed
|
|
49379
|
+
.filter(function (item) {
|
|
49380
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
49381
|
+
return isMatchedQuery_1(query, item);
|
|
49382
|
+
}
|
|
49383
|
+
return isMatchedQuery_1(query, item.value);
|
|
49384
|
+
})
|
|
49385
|
+
.map(function (item) {
|
|
49386
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
49387
|
+
return { title: item, value: item };
|
|
49388
|
+
}
|
|
49389
|
+
return item;
|
|
49390
|
+
});
|
|
49391
|
+
return [3 /*break*/, 7];
|
|
49392
|
+
case 5: return [4 /*yield*/, this.resolveFeed(query, feed.feed, feed)];
|
|
49393
|
+
case 6:
|
|
49394
|
+
parts = _b.sent();
|
|
49395
|
+
_b.label = 7;
|
|
49396
|
+
case 7:
|
|
49397
|
+
if (parts && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(parts)) {
|
|
49398
|
+
itemRenderer_1 = (_a = this.j.o.autocomplete, _a.itemRenderer), insertValueRenderer_1 = _a.insertValueRenderer, maxItems = _a.maxItems;
|
|
49399
|
+
parts = parts.map(function (item) {
|
|
49400
|
+
var _a, _b;
|
|
49401
|
+
return ((0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__assign */ .pi)({ itemRenderer: (_a = baseSource === null || baseSource === void 0 ? void 0 : baseSource.itemRenderer) !== null && _a !== void 0 ? _a : itemRenderer_1, insertValueRenderer: (_b = baseSource === null || baseSource === void 0 ? void 0 : baseSource.insertValueRenderer) !== null && _b !== void 0 ? _b : insertValueRenderer_1 }, item));
|
|
49402
|
+
});
|
|
49403
|
+
return [2 /*return*/, parts.slice(0, maxItems)];
|
|
49404
|
+
}
|
|
49405
|
+
return [2 /*return*/, []];
|
|
49406
|
+
}
|
|
49407
|
+
});
|
|
49408
|
+
});
|
|
49409
|
+
};
|
|
49410
|
+
autocomplete.prototype.openPopup = function (result) {
|
|
49411
|
+
var _this = this;
|
|
49412
|
+
this.list.build(result);
|
|
49413
|
+
this.popup.open(function () {
|
|
49414
|
+
var j = _this.j;
|
|
49415
|
+
var rect = j.s.range.getBoundingClientRect();
|
|
49416
|
+
var bound = {
|
|
49417
|
+
left: rect.left,
|
|
49418
|
+
top: rect.top,
|
|
49419
|
+
height: rect.height,
|
|
49420
|
+
width: rect.width
|
|
49421
|
+
};
|
|
49422
|
+
if (j.o.iframe && j.iframe) {
|
|
49423
|
+
var pos = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(j.iframe, j);
|
|
49424
|
+
bound.top += pos.top;
|
|
49425
|
+
bound.left += pos.left;
|
|
49426
|
+
}
|
|
49427
|
+
return bound;
|
|
49428
|
+
});
|
|
49429
|
+
};
|
|
49430
|
+
/** @override */
|
|
49431
|
+
autocomplete.prototype.beforeDestruct = function (jodit) {
|
|
49432
|
+
jodit.e
|
|
49433
|
+
.off(this.list)
|
|
49434
|
+
.off('keydown.autocomplete', this.onKeyDown)
|
|
49435
|
+
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
49436
|
+
.off('.autocomplete');
|
|
49437
|
+
this.list.destruct();
|
|
49438
|
+
this.popup.destruct();
|
|
49439
|
+
};
|
|
49440
|
+
/** @override */
|
|
49441
|
+
autocomplete.requires = ['enter', 'license'];
|
|
49442
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
49443
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
49444
|
+
], autocomplete.prototype, "registerAutocompleteSource", null);
|
|
49445
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
49446
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
|
|
49447
|
+
], autocomplete.prototype, "onKeyDown", null);
|
|
49448
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
49449
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
49450
|
+
], autocomplete.prototype, "onKeyControlDown", null);
|
|
49451
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
49452
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
49453
|
+
], autocomplete.prototype, "onEnter", null);
|
|
49454
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
49455
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
49456
|
+
], autocomplete.prototype, "onAutoComplete", null);
|
|
49457
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
49458
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
49459
|
+
], autocomplete.prototype, "resolveFeed", null);
|
|
49460
|
+
return autocomplete;
|
|
49461
|
+
}(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S));
|
|
49462
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.plugins.add */ .y.plugins.add('autocomplete', autocomplete);
|
|
49133
49463
|
|
|
49134
49464
|
|
|
49135
49465
|
/***/ }),
|
|
49136
49466
|
|
|
49137
|
-
/***/
|
|
49467
|
+
/***/ 47325:
|
|
49138
49468
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49139
49469
|
|
|
49140
49470
|
"use strict";
|
|
49141
|
-
__webpack_require__.r(__webpack_exports__);
|
|
49142
49471
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49143
|
-
/* harmony export */ "
|
|
49472
|
+
/* harmony export */ "Y": function() { return /* binding */ getTextLeftOfCursor; },
|
|
49473
|
+
/* harmony export */ "p": function() { return /* binding */ replaceTextLeftOfCursorAfterSpace; }
|
|
49144
49474
|
/* harmony export */ });
|
|
49145
|
-
/* harmony import */ var
|
|
49146
|
-
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
49475
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44913);
|
|
49147
49476
|
/*!
|
|
49148
49477
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49149
49478
|
* See LICENSE.md in the project root for license information.
|
|
49150
49479
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
49151
49480
|
*/
|
|
49152
49481
|
|
|
49482
|
+
/**
|
|
49483
|
+
* For collapsed selection return left text value before cursor
|
|
49484
|
+
* @example
|
|
49485
|
+
* ```
|
|
49486
|
+
* <p><string>test</strong>pop|</p> => pop
|
|
49487
|
+
* <p><string>test|</strong>pop</p> => test
|
|
49488
|
+
* <p><string>te|st</strong>pop</p> => te
|
|
49489
|
+
* ```
|
|
49490
|
+
*/
|
|
49491
|
+
function getTextLeftOfCursor(range) {
|
|
49492
|
+
var _a, _b, _c, _d;
|
|
49493
|
+
var startContainer = range.startContainer, startOffset = range.startOffset;
|
|
49494
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
49495
|
+
return (_b = (_a = startContainer.nodeValue) === null || _a === void 0 ? void 0 : _a.substr(0, startOffset)) !== null && _b !== void 0 ? _b : '';
|
|
49496
|
+
}
|
|
49497
|
+
var node = startContainer.childNodes[startOffset];
|
|
49498
|
+
if (!node) {
|
|
49499
|
+
return '';
|
|
49500
|
+
}
|
|
49501
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(node)) {
|
|
49502
|
+
return (_c = node.nodeValue) !== null && _c !== void 0 ? _c : '';
|
|
49503
|
+
}
|
|
49504
|
+
var previous = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.findNotEmptyNeighbor */ .i.findNotEmptyNeighbor(node, true, startContainer);
|
|
49505
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(previous)) {
|
|
49506
|
+
return (_d = node.nodeValue) !== null && _d !== void 0 ? _d : '';
|
|
49507
|
+
}
|
|
49508
|
+
return '';
|
|
49509
|
+
}
|
|
49510
|
+
/**
|
|
49511
|
+
* For collapsed selection replace part of left text value before cursor but started after space
|
|
49512
|
+
* @example
|
|
49513
|
+
* ```
|
|
49514
|
+
* <p><string>test</strong>pap|</p> + pappy = <p><string>test</strong>pappy|</p>
|
|
49515
|
+
* <p><string>test</strong>pap| test</p> + pappy = <p><string>test</strong>pappy| test</p>
|
|
49516
|
+
* <p><string>test</strong>stat pap| test</p> + pappy = <p><string>test</strong>stat pappy| test</p>
|
|
49517
|
+
* ```
|
|
49518
|
+
*/
|
|
49519
|
+
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
49520
|
+
var _a, _b, _c;
|
|
49521
|
+
// eslint-disable-next-line prefer-const
|
|
49522
|
+
var startContainer = range.startContainer, startOffset = range.startOffset;
|
|
49523
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
49524
|
+
startContainer = startContainer.childNodes[startOffset - 1];
|
|
49525
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
49526
|
+
startOffset = (_b = (_a = startContainer.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
49527
|
+
}
|
|
49528
|
+
}
|
|
49529
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
49530
|
+
var value = (_c = startContainer.nodeValue) !== null && _c !== void 0 ? _c : '', leftSide = value.substring(0, startOffset), rightSide = value.substring(startOffset);
|
|
49531
|
+
var words = leftSide.split(' ');
|
|
49532
|
+
words[words.length - 1] = '';
|
|
49533
|
+
var newLeftSide = words.join(' ');
|
|
49534
|
+
startContainer.nodeValue = newLeftSide + rightSide;
|
|
49535
|
+
range.setStart(startContainer, newLeftSide.length);
|
|
49536
|
+
range.insertNode(elm);
|
|
49537
|
+
return;
|
|
49538
|
+
}
|
|
49539
|
+
}
|
|
49153
49540
|
|
|
49154
49541
|
|
|
49155
|
-
|
|
49156
|
-
|
|
49157
|
-
|
|
49542
|
+
/***/ }),
|
|
49543
|
+
|
|
49544
|
+
/***/ 77325:
|
|
49545
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49546
|
+
|
|
49547
|
+
"use strict";
|
|
49548
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49549
|
+
/* harmony export */ "F": function() { return /* binding */ Autocomplete; }
|
|
49550
|
+
/* harmony export */ });
|
|
49551
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
49552
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
|
|
49553
|
+
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91630);
|
|
49554
|
+
/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91381);
|
|
49555
|
+
/*!
|
|
49556
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49557
|
+
* See LICENSE.md in the project root for license information.
|
|
49558
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
49559
|
+
*/
|
|
49560
|
+
|
|
49561
|
+
|
|
49562
|
+
|
|
49563
|
+
|
|
49564
|
+
|
|
49565
|
+
var Autocomplete = /** @class */ (function (_super) {
|
|
49566
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__extends */ .ZT)(Autocomplete, _super);
|
|
49567
|
+
function Autocomplete() {
|
|
49568
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
49569
|
+
_this.elements = [];
|
|
49570
|
+
_this.currentSelection = -1;
|
|
49571
|
+
return _this;
|
|
49572
|
+
}
|
|
49573
|
+
/** @override */
|
|
49574
|
+
Autocomplete.prototype.className = function () {
|
|
49575
|
+
return 'Autocomplete';
|
|
49576
|
+
};
|
|
49577
|
+
Autocomplete.prototype.onChangeSelection = function (_, previous) {
|
|
49578
|
+
var _a;
|
|
49579
|
+
previous != null && ((_a = this.elements[previous]) === null || _a === void 0 ? void 0 : _a.setMod('active', false));
|
|
49580
|
+
this.elements[this.currentSelection].setMod('active', true);
|
|
49581
|
+
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
49582
|
+
};
|
|
49583
|
+
Autocomplete.prototype.build = function (list) {
|
|
49584
|
+
var _this = this;
|
|
49585
|
+
this.clear();
|
|
49586
|
+
list.forEach(function (elm, index) {
|
|
49587
|
+
var item = new _item__WEBPACK_IMPORTED_MODULE_2__/* .AutocompleteItem */ .h(_this.jodit, elm);
|
|
49588
|
+
_this.j.e
|
|
49589
|
+
.on(item.container, 'mousedown touchstart', function (e) {
|
|
49590
|
+
e.preventDefault();
|
|
49591
|
+
})
|
|
49592
|
+
.on(item.container, 'click', function () {
|
|
49593
|
+
_this.currentSelection = index;
|
|
49594
|
+
_this.select();
|
|
49595
|
+
});
|
|
49596
|
+
_this.append(item);
|
|
49597
|
+
});
|
|
49598
|
+
this.currentSelection = 0;
|
|
49599
|
+
this.onChangeSelection();
|
|
49600
|
+
};
|
|
49601
|
+
Autocomplete.prototype.selectNext = function () {
|
|
49602
|
+
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
49603
|
+
this.currentSelection += 1;
|
|
49604
|
+
}
|
|
49605
|
+
else {
|
|
49606
|
+
this.currentSelection = 0;
|
|
49607
|
+
}
|
|
49608
|
+
};
|
|
49609
|
+
Autocomplete.prototype.selectPrevious = function () {
|
|
49610
|
+
if (this.currentSelection - 1 >= 0) {
|
|
49611
|
+
this.currentSelection -= 1;
|
|
49612
|
+
}
|
|
49613
|
+
else {
|
|
49614
|
+
this.currentSelection = this.elements.length - 1;
|
|
49615
|
+
}
|
|
49616
|
+
};
|
|
49617
|
+
Autocomplete.prototype.select = function () {
|
|
49618
|
+
this.j.e.fire('select.autocomplete', this.elements[this.currentSelection].item);
|
|
49619
|
+
};
|
|
49620
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
49621
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.watch)('currentSelection')
|
|
49622
|
+
], Autocomplete.prototype, "onChangeSelection", null);
|
|
49623
|
+
Autocomplete = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
49624
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
49625
|
+
], Autocomplete);
|
|
49626
|
+
return Autocomplete;
|
|
49627
|
+
}(jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__/* .UIGroup */ .q));
|
|
49628
|
+
|
|
49629
|
+
|
|
49630
|
+
/***/ }),
|
|
49631
|
+
|
|
49632
|
+
/***/ 91381:
|
|
49633
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49634
|
+
|
|
49635
|
+
"use strict";
|
|
49636
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49637
|
+
/* harmony export */ "h": function() { return /* binding */ AutocompleteItem; }
|
|
49638
|
+
/* harmony export */ });
|
|
49639
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97582);
|
|
49640
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84789);
|
|
49641
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71350);
|
|
49642
|
+
/*!
|
|
49643
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49644
|
+
* See LICENSE.md in the project root for license information.
|
|
49645
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
49646
|
+
*/
|
|
49647
|
+
|
|
49648
|
+
|
|
49649
|
+
|
|
49650
|
+
|
|
49651
|
+
var AutocompleteItem = /** @class */ (function (_super) {
|
|
49652
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__extends */ .ZT)(AutocompleteItem, _super);
|
|
49653
|
+
function AutocompleteItem(jodit, item) {
|
|
49654
|
+
var _this = this;
|
|
49655
|
+
var _a;
|
|
49656
|
+
_this = _super.call(this, jodit) || this;
|
|
49657
|
+
_this.item = item;
|
|
49658
|
+
var container = _this.container;
|
|
49659
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .mf)(item.itemRenderer)) {
|
|
49660
|
+
var elm = item.itemRenderer(item);
|
|
49661
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .HD)(elm)) {
|
|
49662
|
+
container.innerHTML = elm;
|
|
49663
|
+
}
|
|
49664
|
+
else {
|
|
49665
|
+
container.appendChild(elm);
|
|
49666
|
+
}
|
|
49667
|
+
}
|
|
49668
|
+
else {
|
|
49669
|
+
container.innerText = (_a = item.title) !== null && _a !== void 0 ? _a : item.value;
|
|
49670
|
+
}
|
|
49671
|
+
return _this;
|
|
49672
|
+
}
|
|
49673
|
+
/** @override */
|
|
49674
|
+
AutocompleteItem.prototype.className = function () {
|
|
49675
|
+
return 'AutocompleteItem';
|
|
49676
|
+
};
|
|
49677
|
+
return AutocompleteItem;
|
|
49678
|
+
}(jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u));
|
|
49679
|
+
|
|
49158
49680
|
|
|
49159
49681
|
|
|
49160
49682
|
/***/ }),
|
|
@@ -49163,7 +49685,9 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
49163
49685
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
49164
49686
|
|
|
49165
49687
|
"use strict";
|
|
49166
|
-
/* harmony import */ var
|
|
49688
|
+
/* harmony import */ var jodit_pro_plugins_license_license__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19564);
|
|
49689
|
+
/* harmony import */ var jodit_pro_plugins_autocomplete_autocomplete__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93123);
|
|
49690
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70322);
|
|
49167
49691
|
/*!
|
|
49168
49692
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49169
49693
|
* See LICENSE.md in the project root for license information.
|
|
@@ -49172,6 +49696,8 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
49172
49696
|
|
|
49173
49697
|
|
|
49174
49698
|
|
|
49699
|
+
|
|
49700
|
+
|
|
49175
49701
|
/***/ }),
|
|
49176
49702
|
|
|
49177
49703
|
/***/ 39401:
|
|
@@ -49257,8 +49783,8 @@ __webpack_unused_export__ = domainsHash;
|
|
|
49257
49783
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
49258
49784
|
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46232);
|
|
49259
49785
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11612);
|
|
49260
|
-
/* harmony import */ var
|
|
49261
|
-
/* harmony import */ var
|
|
49786
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
49787
|
+
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39401);
|
|
49262
49788
|
/*!
|
|
49263
49789
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49264
49790
|
* See LICENSE.md in the project root for license information.
|
|
@@ -49288,7 +49814,7 @@ var license = /** @class */ (function (_super) {
|
|
|
49288
49814
|
switch (_a.label) {
|
|
49289
49815
|
case 0:
|
|
49290
49816
|
code = this.j.o.license, domain = location.host;
|
|
49291
|
-
valid = (0,
|
|
49817
|
+
valid = (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(code, domain);
|
|
49292
49818
|
if (!(!valid && code[12] > 'A' && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.IS_TEST)) return [3 /*break*/, 2];
|
|
49293
49819
|
return [4 /*yield*/, this.validateLicenseRemote(code, domain)];
|
|
49294
49820
|
case 1:
|
|
@@ -49307,7 +49833,7 @@ var license = /** @class */ (function (_super) {
|
|
|
49307
49833
|
var _this = this;
|
|
49308
49834
|
return (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__generator */ .Jh)(this, function (_a) {
|
|
49309
49835
|
storageKey = 'validateJoditLicenseRemote', newCode = this.j.storage.get(storageKey);
|
|
49310
|
-
if (newCode && (0,
|
|
49836
|
+
if (newCode && (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
49311
49837
|
return [2 /*return*/, true];
|
|
49312
49838
|
}
|
|
49313
49839
|
s = document.createElement('script');
|
|
@@ -49319,7 +49845,7 @@ var license = /** @class */ (function (_super) {
|
|
|
49319
49845
|
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__/* .isBoolean */ .j)(newCode)) {
|
|
49320
49846
|
return res(newCode);
|
|
49321
49847
|
}
|
|
49322
|
-
if ((0,
|
|
49848
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
49323
49849
|
_this.j.storage.set(storageKey, newCode);
|
|
49324
49850
|
res(true);
|
|
49325
49851
|
}
|
|
@@ -49342,7 +49868,1676 @@ var license = /** @class */ (function (_super) {
|
|
|
49342
49868
|
return license;
|
|
49343
49869
|
}(jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S));
|
|
49344
49870
|
|
|
49345
|
-
|
|
49871
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('license', license);
|
|
49872
|
+
|
|
49873
|
+
|
|
49874
|
+
/***/ }),
|
|
49875
|
+
|
|
49876
|
+
/***/ 12750:
|
|
49877
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49878
|
+
|
|
49879
|
+
"use strict";
|
|
49880
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49881
|
+
/* harmony export */ "C": function() { return /* binding */ cleanStyles; }
|
|
49882
|
+
/* harmony export */ });
|
|
49883
|
+
/*!
|
|
49884
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49885
|
+
* See LICENSE.md in the project root for license information.
|
|
49886
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
49887
|
+
*/
|
|
49888
|
+
var forbiddenStyles = {
|
|
49889
|
+
'text-justify': ['inter-ideograph']
|
|
49890
|
+
};
|
|
49891
|
+
function cleanStyles(elm) {
|
|
49892
|
+
if (elm.isElement && elm.attributes.style) {
|
|
49893
|
+
Object.keys(forbiddenStyles).forEach(function (key) {
|
|
49894
|
+
var _a;
|
|
49895
|
+
var values = forbiddenStyles[key];
|
|
49896
|
+
if (elm.style.has(key)) {
|
|
49897
|
+
// @ts-ignore
|
|
49898
|
+
if (values.includes((_a = elm.style.get(key)) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
49899
|
+
elm.style.set(key, null);
|
|
49900
|
+
}
|
|
49901
|
+
}
|
|
49902
|
+
});
|
|
49903
|
+
}
|
|
49904
|
+
return elm;
|
|
49905
|
+
}
|
|
49906
|
+
|
|
49907
|
+
|
|
49908
|
+
/***/ }),
|
|
49909
|
+
|
|
49910
|
+
/***/ 76995:
|
|
49911
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49912
|
+
|
|
49913
|
+
"use strict";
|
|
49914
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49915
|
+
/* harmony export */ "i": function() { return /* binding */ clearAttributes; }
|
|
49916
|
+
/* harmony export */ });
|
|
49917
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97582);
|
|
49918
|
+
/*!
|
|
49919
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49920
|
+
* See LICENSE.md in the project root for license information.
|
|
49921
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
49922
|
+
*/
|
|
49923
|
+
|
|
49924
|
+
var extraAttributes = [
|
|
49925
|
+
'cellspacing',
|
|
49926
|
+
'cellpadding',
|
|
49927
|
+
'border',
|
|
49928
|
+
'v:shapes',
|
|
49929
|
+
'o:spid'
|
|
49930
|
+
];
|
|
49931
|
+
function clearAttributes(elm) {
|
|
49932
|
+
var e_1, _a;
|
|
49933
|
+
if (/^OLE_LINK\d+$/.test(elm.attributes.name)) {
|
|
49934
|
+
elm.attributes.name = null;
|
|
49935
|
+
if (elm.length === 0) {
|
|
49936
|
+
elm.remove();
|
|
49937
|
+
return null;
|
|
49938
|
+
}
|
|
49939
|
+
}
|
|
49940
|
+
if (elm.attributes.name === '_GoBack') {
|
|
49941
|
+
elm.attributes.name = null;
|
|
49942
|
+
}
|
|
49943
|
+
try {
|
|
49944
|
+
// Remove extra attributes
|
|
49945
|
+
for (var extraAttributes_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__values */ .XA)(extraAttributes), extraAttributes_1_1 = extraAttributes_1.next(); !extraAttributes_1_1.done; extraAttributes_1_1 = extraAttributes_1.next()) {
|
|
49946
|
+
var attr = extraAttributes_1_1.value;
|
|
49947
|
+
if (elm.attributes[attr]) {
|
|
49948
|
+
elm.attributes[attr] = null;
|
|
49949
|
+
}
|
|
49950
|
+
}
|
|
49951
|
+
}
|
|
49952
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
49953
|
+
finally {
|
|
49954
|
+
try {
|
|
49955
|
+
if (extraAttributes_1_1 && !extraAttributes_1_1.done && (_a = extraAttributes_1.return)) _a.call(extraAttributes_1);
|
|
49956
|
+
}
|
|
49957
|
+
finally { if (e_1) throw e_1.error; }
|
|
49958
|
+
}
|
|
49959
|
+
return elm;
|
|
49960
|
+
}
|
|
49961
|
+
|
|
49962
|
+
|
|
49963
|
+
/***/ }),
|
|
49964
|
+
|
|
49965
|
+
/***/ 53614:
|
|
49966
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49967
|
+
|
|
49968
|
+
"use strict";
|
|
49969
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49970
|
+
/* harmony export */ "a": function() { return /* binding */ clearClassName; }
|
|
49971
|
+
/* harmony export */ });
|
|
49972
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
49973
|
+
/*!
|
|
49974
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
49975
|
+
* See LICENSE.md in the project root for license information.
|
|
49976
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
49977
|
+
*/
|
|
49978
|
+
|
|
49979
|
+
var clearClassName = function (elm) {
|
|
49980
|
+
// Normalize or remove class
|
|
49981
|
+
if (elm.attributes.class) {
|
|
49982
|
+
elm.attributes.class = elm.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi, '');
|
|
49983
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .f)(elm.attributes.class)) {
|
|
49984
|
+
elm.attributes.class = null;
|
|
49985
|
+
}
|
|
49986
|
+
}
|
|
49987
|
+
return elm;
|
|
49988
|
+
};
|
|
49989
|
+
|
|
49990
|
+
|
|
49991
|
+
/***/ }),
|
|
49992
|
+
|
|
49993
|
+
/***/ 50353:
|
|
49994
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
49995
|
+
|
|
49996
|
+
"use strict";
|
|
49997
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49998
|
+
/* harmony export */ "b": function() { return /* binding */ convertStyleUnitToPixels; }
|
|
49999
|
+
/* harmony export */ });
|
|
50000
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18352);
|
|
50001
|
+
/*!
|
|
50002
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50003
|
+
* See LICENSE.md in the project root for license information.
|
|
50004
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50005
|
+
*/
|
|
50006
|
+
|
|
50007
|
+
var convertStyleUnitToPixels = function (elm, _a) {
|
|
50008
|
+
var jodit = _a.jodit;
|
|
50009
|
+
if (!jodit.o.pasteFromWord.convertUnitsToPixel) {
|
|
50010
|
+
return elm;
|
|
50011
|
+
}
|
|
50012
|
+
var style = elm.style;
|
|
50013
|
+
style.forEach(function (key) {
|
|
50014
|
+
var v = style.get(key);
|
|
50015
|
+
if (v) {
|
|
50016
|
+
style.set(key, v
|
|
50017
|
+
.toString()
|
|
50018
|
+
.replace(/\d+(\.\d+)?(pt|cm)/g, function (match) { return (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__/* .convertUnitToPx */ .Lp)(match) + 'px'; }));
|
|
50019
|
+
}
|
|
50020
|
+
});
|
|
50021
|
+
return elm;
|
|
50022
|
+
};
|
|
50023
|
+
|
|
50024
|
+
|
|
50025
|
+
/***/ }),
|
|
50026
|
+
|
|
50027
|
+
/***/ 45054:
|
|
50028
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50029
|
+
|
|
50030
|
+
"use strict";
|
|
50031
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50032
|
+
/* harmony export */ "S": function() { return /* binding */ convertToList; }
|
|
50033
|
+
/* harmony export */ });
|
|
50034
|
+
/* unused harmony export removeRedundancyStyle */
|
|
50035
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
50036
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18352);
|
|
50037
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
50038
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19438);
|
|
50039
|
+
/*!
|
|
50040
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50041
|
+
* See LICENSE.md in the project root for license information.
|
|
50042
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50043
|
+
*/
|
|
50044
|
+
|
|
50045
|
+
|
|
50046
|
+
|
|
50047
|
+
|
|
50048
|
+
function convertToList(elm) {
|
|
50049
|
+
var _a;
|
|
50050
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isPseudoLeaf */ .Hh)(elm)) {
|
|
50051
|
+
elm.name = 'li';
|
|
50052
|
+
elm.style.set('text-indent', null);
|
|
50053
|
+
var symbol = getSymbol(elm), listType = /[\da-np-zA-NP-Z].?/.test(symbol) ? 'ol' : 'ul', listStyle = defineOrderedListStyle(symbol, listType);
|
|
50054
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .TYPE_KEY */ .YJ] = listType;
|
|
50055
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf] = listStyle;
|
|
50056
|
+
(0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcListLevels */ .rd)(elm);
|
|
50057
|
+
moveUp(elm);
|
|
50058
|
+
var parent = elm.parent;
|
|
50059
|
+
// After move up we inside List or Leaf
|
|
50060
|
+
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)) {
|
|
50061
|
+
var newList = wrapInNewList(elm, listType, symbol, listStyle);
|
|
50062
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(parent)) {
|
|
50063
|
+
newList.remove(); // Not to add to oneself
|
|
50064
|
+
(_a = parent.lastElement) === null || _a === void 0 ? void 0 : _a.append(newList);
|
|
50065
|
+
}
|
|
50066
|
+
return elm;
|
|
50067
|
+
}
|
|
50068
|
+
}
|
|
50069
|
+
return elm;
|
|
50070
|
+
}
|
|
50071
|
+
function moveUp(leaf) {
|
|
50072
|
+
// eslint-disable-next-line no-constant-condition
|
|
50073
|
+
while (leaf) {
|
|
50074
|
+
var prev = leaf.previousElement;
|
|
50075
|
+
// Leaf after P
|
|
50076
|
+
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))) {
|
|
50077
|
+
break;
|
|
50078
|
+
}
|
|
50079
|
+
// Leaf after Leaf
|
|
50080
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isLeaf */ .Be)(prev)) {
|
|
50081
|
+
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]) {
|
|
50082
|
+
break;
|
|
50083
|
+
}
|
|
50084
|
+
// Leaf after leaf with same level and inside the right list
|
|
50085
|
+
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] &&
|
|
50086
|
+
leaf.parent &&
|
|
50087
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, leaf.parent)) {
|
|
50088
|
+
break;
|
|
50089
|
+
}
|
|
50090
|
+
prev.append(leaf);
|
|
50091
|
+
continue;
|
|
50092
|
+
}
|
|
50093
|
+
var list = prev;
|
|
50094
|
+
// Leaf after list with more level
|
|
50095
|
+
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]) {
|
|
50096
|
+
break;
|
|
50097
|
+
}
|
|
50098
|
+
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] &&
|
|
50099
|
+
!(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, list)) {
|
|
50100
|
+
break;
|
|
50101
|
+
}
|
|
50102
|
+
list.append(leaf);
|
|
50103
|
+
}
|
|
50104
|
+
}
|
|
50105
|
+
/**
|
|
50106
|
+
* Remove redundancy default list styles.
|
|
50107
|
+
*/
|
|
50108
|
+
function removeRedundancyStyle(newList) {
|
|
50109
|
+
var _a;
|
|
50110
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(newList) &&
|
|
50111
|
+
((_a = newList.parent) === null || _a === void 0 ? void 0 : _a.name) !== 'li' &&
|
|
50112
|
+
(newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'disc' ||
|
|
50113
|
+
newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'decimal')) {
|
|
50114
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, null);
|
|
50115
|
+
}
|
|
50116
|
+
}
|
|
50117
|
+
function defineOrderedListStyle(symbol, listType) {
|
|
50118
|
+
for (var reg in jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1) {
|
|
50119
|
+
if (RegExp(reg).test(symbol)) {
|
|
50120
|
+
return jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1[reg];
|
|
50121
|
+
}
|
|
50122
|
+
}
|
|
50123
|
+
return listType === 'ol' ? 'decimal' : 'disc';
|
|
50124
|
+
}
|
|
50125
|
+
var getSymbol = function (elm) {
|
|
50126
|
+
return elm
|
|
50127
|
+
.textBetween(function (n) { return n.isComment && /\[if.*supportLists.*]/.test((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .html */ .dy)(n)); }, function (n) { return n.isComment && /\[endif]/.test((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .html */ .dy)(n)); })
|
|
50128
|
+
.replace(/ /g, '')
|
|
50129
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
50130
|
+
};
|
|
50131
|
+
function wrapInNewList(elm, listType, symbol, listStyle) {
|
|
50132
|
+
var newList = elm.wrap(listType);
|
|
50133
|
+
newList.attributes['start'] = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcStartBySymbol */ .Sg)(symbol);
|
|
50134
|
+
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];
|
|
50135
|
+
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];
|
|
50136
|
+
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];
|
|
50137
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, listStyle);
|
|
50138
|
+
removeRedundancyStyle(newList);
|
|
50139
|
+
return newList;
|
|
50140
|
+
}
|
|
50141
|
+
|
|
50142
|
+
|
|
50143
|
+
/***/ }),
|
|
50144
|
+
|
|
50145
|
+
/***/ 44669:
|
|
50146
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50147
|
+
|
|
50148
|
+
"use strict";
|
|
50149
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50150
|
+
/* harmony export */ "c": function() { return /* binding */ cases; }
|
|
50151
|
+
/* harmony export */ });
|
|
50152
|
+
/* harmony import */ var _convert_to_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45054);
|
|
50153
|
+
/* harmony import */ var _clear_attributes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(76995);
|
|
50154
|
+
/* harmony import */ var _remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76148);
|
|
50155
|
+
/* harmony import */ var _replace_old_tags__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38450);
|
|
50156
|
+
/* harmony import */ var _remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33135);
|
|
50157
|
+
/* harmony import */ var _convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50353);
|
|
50158
|
+
/* harmony import */ var _clear_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53614);
|
|
50159
|
+
/* harmony import */ var _process_links__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62094);
|
|
50160
|
+
/* harmony import */ var _normalize_image_props__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(83432);
|
|
50161
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(38933);
|
|
50162
|
+
/* harmony import */ var _mark_page_break__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50374);
|
|
50163
|
+
/* harmony import */ var _process_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38535);
|
|
50164
|
+
/* harmony import */ var _clean_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12750);
|
|
50165
|
+
/*!
|
|
50166
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50167
|
+
* See LICENSE.md in the project root for license information.
|
|
50168
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50169
|
+
*/
|
|
50170
|
+
|
|
50171
|
+
|
|
50172
|
+
|
|
50173
|
+
|
|
50174
|
+
|
|
50175
|
+
|
|
50176
|
+
|
|
50177
|
+
|
|
50178
|
+
|
|
50179
|
+
|
|
50180
|
+
|
|
50181
|
+
|
|
50182
|
+
|
|
50183
|
+
var cases = [
|
|
50184
|
+
_process_image__WEBPACK_IMPORTED_MODULE_6__/* .processImage */ .F,
|
|
50185
|
+
_mark_page_break__WEBPACK_IMPORTED_MODULE_8__/* .markPageBreakElements */ .a,
|
|
50186
|
+
_remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__/* .removeExtraTags */ .p,
|
|
50187
|
+
_replace_old_tags__WEBPACK_IMPORTED_MODULE_2__/* .replaceOldTags */ .G,
|
|
50188
|
+
_clear_attributes__WEBPACK_IMPORTED_MODULE_9__/* .clearAttributes */ .i,
|
|
50189
|
+
_convert_to_list__WEBPACK_IMPORTED_MODULE_0__/* .convertToList */ .S,
|
|
50190
|
+
_process_links__WEBPACK_IMPORTED_MODULE_10__/* .processLinks */ .z,
|
|
50191
|
+
_remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__/* .removeInsideComment */ .m,
|
|
50192
|
+
_convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__/* .convertStyleUnitToPixels */ .b,
|
|
50193
|
+
_clear_class_name__WEBPACK_IMPORTED_MODULE_5__/* .clearClassName */ .a,
|
|
50194
|
+
_normalize_image_props__WEBPACK_IMPORTED_MODULE_11__/* .normalizeImageProps */ .r,
|
|
50195
|
+
_table__WEBPACK_IMPORTED_MODULE_12__/* .removeWidthFromTableCell */ .Y,
|
|
50196
|
+
_clean_styles__WEBPACK_IMPORTED_MODULE_7__/* .cleanStyles */ .C
|
|
50197
|
+
];
|
|
50198
|
+
|
|
50199
|
+
|
|
50200
|
+
/***/ }),
|
|
50201
|
+
|
|
50202
|
+
/***/ 50374:
|
|
50203
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50204
|
+
|
|
50205
|
+
"use strict";
|
|
50206
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50207
|
+
/* harmony export */ "a": function() { return /* binding */ markPageBreakElements; }
|
|
50208
|
+
/* harmony export */ });
|
|
50209
|
+
/*!
|
|
50210
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50211
|
+
* See LICENSE.md in the project root for license information.
|
|
50212
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50213
|
+
*/
|
|
50214
|
+
var markPageBreakElements = function (elm) {
|
|
50215
|
+
if ((elm.isElement && elm.style.get('page-break-before') === 'always') ||
|
|
50216
|
+
elm.style.get('break-before') === 'page') {
|
|
50217
|
+
elm.attributes['jd-safe'] = true;
|
|
50218
|
+
elm.style.add('page-break-before', 'always');
|
|
50219
|
+
if (elm.isSingle) {
|
|
50220
|
+
elm.name = 'div';
|
|
50221
|
+
}
|
|
50222
|
+
}
|
|
50223
|
+
return elm;
|
|
50224
|
+
};
|
|
50225
|
+
|
|
50226
|
+
|
|
50227
|
+
/***/ }),
|
|
50228
|
+
|
|
50229
|
+
/***/ 83432:
|
|
50230
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50231
|
+
|
|
50232
|
+
"use strict";
|
|
50233
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50234
|
+
/* harmony export */ "r": function() { return /* binding */ normalizeImageProps; }
|
|
50235
|
+
/* harmony export */ });
|
|
50236
|
+
/*!
|
|
50237
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50238
|
+
* See LICENSE.md in the project root for license information.
|
|
50239
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50240
|
+
*/
|
|
50241
|
+
var normalizeImageProps = function (elm) {
|
|
50242
|
+
if (!elm.isElement) {
|
|
50243
|
+
return elm;
|
|
50244
|
+
}
|
|
50245
|
+
if (elm.name === 'img') {
|
|
50246
|
+
if (elm.attributes.align) {
|
|
50247
|
+
elm.style.add('float', elm.attributes.align);
|
|
50248
|
+
elm.attributes.align = null;
|
|
50249
|
+
}
|
|
50250
|
+
if (elm.attributes.hspace) {
|
|
50251
|
+
elm.style.add('marginLeft', elm.attributes.hspace + 'px');
|
|
50252
|
+
elm.style.add('marginRight', elm.attributes.hspace + 'px');
|
|
50253
|
+
elm.attributes.hspace = null;
|
|
50254
|
+
}
|
|
50255
|
+
}
|
|
50256
|
+
return elm;
|
|
50257
|
+
};
|
|
50258
|
+
|
|
50259
|
+
|
|
50260
|
+
/***/ }),
|
|
50261
|
+
|
|
50262
|
+
/***/ 38535:
|
|
50263
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50264
|
+
|
|
50265
|
+
"use strict";
|
|
50266
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50267
|
+
/* harmony export */ "F": function() { return /* binding */ processImage; }
|
|
50268
|
+
/* harmony export */ });
|
|
50269
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97582);
|
|
50270
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
50271
|
+
/*!
|
|
50272
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50273
|
+
* See LICENSE.md in the project root for license information.
|
|
50274
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50275
|
+
*/
|
|
50276
|
+
|
|
50277
|
+
|
|
50278
|
+
var processImage = function (elm, ctx) {
|
|
50279
|
+
var _a, _b;
|
|
50280
|
+
if (ctx.rtf &&
|
|
50281
|
+
elm.name === '#comment' &&
|
|
50282
|
+
elm.attributes.nodeValue &&
|
|
50283
|
+
elm.attributes.nodeValue.indexOf('<v:shape') !== -1) {
|
|
50284
|
+
if (!ctx.shapes) {
|
|
50285
|
+
ctx.shapes = {};
|
|
50286
|
+
}
|
|
50287
|
+
var elms = ctx.jodit.create.fromHTML(elm.attributes.nodeValue);
|
|
50288
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.toArray)(elms.getElementsByTagName('v:shape')).forEach(function (e) {
|
|
50289
|
+
ctx.shapes[e.id] = e.getAttribute('o:spid');
|
|
50290
|
+
});
|
|
50291
|
+
return elm;
|
|
50292
|
+
}
|
|
50293
|
+
if (elm.name !== 'img') {
|
|
50294
|
+
return elm;
|
|
50295
|
+
}
|
|
50296
|
+
if (ctx.rtf && elm.attributes['v:shapes']) {
|
|
50297
|
+
var spid = (_a = ctx.shapes) === null || _a === void 0 ? void 0 : _a[elm.attributes['v:shapes']];
|
|
50298
|
+
if (spid) {
|
|
50299
|
+
var imageMap = (_b = ctx.imageMap) !== null && _b !== void 0 ? _b : {};
|
|
50300
|
+
if (!ctx.imageMap) {
|
|
50301
|
+
ctx.imageMap = imageMap;
|
|
50302
|
+
parseImages(ctx.rtf, 'i', '\\shppict', ctx.imageMap);
|
|
50303
|
+
parseImages(ctx.rtf, 's', '\\shp{', ctx.imageMap);
|
|
50304
|
+
}
|
|
50305
|
+
var a = imageMap[spid.substring(7)];
|
|
50306
|
+
if (a) {
|
|
50307
|
+
var base = [], parsedD = a.hex.match(/[0-9a-f]{2}/gi);
|
|
50308
|
+
if (parsedD) {
|
|
50309
|
+
for (var i = 0; i < parsedD.length; i++) {
|
|
50310
|
+
var digit = parseInt(parsedD[i], 16);
|
|
50311
|
+
base.push(String.fromCharCode(digit));
|
|
50312
|
+
}
|
|
50313
|
+
elm.attributes.src =
|
|
50314
|
+
'data:' + a.type + ';base64,' + btoa(base.join(''));
|
|
50315
|
+
}
|
|
50316
|
+
}
|
|
50317
|
+
}
|
|
50318
|
+
}
|
|
50319
|
+
return elm;
|
|
50320
|
+
};
|
|
50321
|
+
function parseImages(rtf, prefix, separator, imageMap) {
|
|
50322
|
+
var e_1, _a;
|
|
50323
|
+
var parts = rtf.split(separator);
|
|
50324
|
+
try {
|
|
50325
|
+
for (var parts_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__values */ .XA)(parts), parts_1_1 = parts_1.next(); !parts_1_1.done; parts_1_1 = parts_1.next()) {
|
|
50326
|
+
var part = parts_1_1.value;
|
|
50327
|
+
var shapes = part.split('shplid');
|
|
50328
|
+
if (1 < shapes.length) {
|
|
50329
|
+
var shape = shapes[1];
|
|
50330
|
+
var id = '';
|
|
50331
|
+
for (var i = 0; i < shape.length && !/[{ \r\n\\]/.test(shape[i]); i++) {
|
|
50332
|
+
id += shape[i];
|
|
50333
|
+
}
|
|
50334
|
+
var images = shape.split('bliptag');
|
|
50335
|
+
if (images && images.length < 2) {
|
|
50336
|
+
continue;
|
|
50337
|
+
}
|
|
50338
|
+
var format = null;
|
|
50339
|
+
if (images[0].indexOf('pngblip')) {
|
|
50340
|
+
format = 'image/png';
|
|
50341
|
+
}
|
|
50342
|
+
else if (images[0].indexOf('jpegblip') !== -1) {
|
|
50343
|
+
format = 'image/jpeg';
|
|
50344
|
+
}
|
|
50345
|
+
if (!format) {
|
|
50346
|
+
continue;
|
|
50347
|
+
}
|
|
50348
|
+
var endings = images[1].split('}');
|
|
50349
|
+
if (endings && endings.length < 2) {
|
|
50350
|
+
continue;
|
|
50351
|
+
}
|
|
50352
|
+
var result = void 0;
|
|
50353
|
+
if (2 < endings.length && endings[0].includes('blipuid')) {
|
|
50354
|
+
result = endings[1].split(' ');
|
|
50355
|
+
}
|
|
50356
|
+
else {
|
|
50357
|
+
result = endings[0].split(' ');
|
|
50358
|
+
if (result && result.length < 2) {
|
|
50359
|
+
continue;
|
|
50360
|
+
}
|
|
50361
|
+
result.shift();
|
|
50362
|
+
}
|
|
50363
|
+
imageMap[prefix + id] = {
|
|
50364
|
+
hex: result.join(''),
|
|
50365
|
+
type: format
|
|
50366
|
+
};
|
|
50367
|
+
}
|
|
50368
|
+
}
|
|
50369
|
+
}
|
|
50370
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
50371
|
+
finally {
|
|
50372
|
+
try {
|
|
50373
|
+
if (parts_1_1 && !parts_1_1.done && (_a = parts_1.return)) _a.call(parts_1);
|
|
50374
|
+
}
|
|
50375
|
+
finally { if (e_1) throw e_1.error; }
|
|
50376
|
+
}
|
|
50377
|
+
}
|
|
50378
|
+
|
|
50379
|
+
|
|
50380
|
+
/***/ }),
|
|
50381
|
+
|
|
50382
|
+
/***/ 62094:
|
|
50383
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50384
|
+
|
|
50385
|
+
"use strict";
|
|
50386
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50387
|
+
/* harmony export */ "z": function() { return /* binding */ processLinks; }
|
|
50388
|
+
/* harmony export */ });
|
|
50389
|
+
/*!
|
|
50390
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50391
|
+
* See LICENSE.md in the project root for license information.
|
|
50392
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50393
|
+
*/
|
|
50394
|
+
var processLinks = function (elm, ctx) {
|
|
50395
|
+
var _a;
|
|
50396
|
+
var links = (_a = ctx.links) !== null && _a !== void 0 ? _a : {};
|
|
50397
|
+
if (elm.attributes.href && elm.attributes.href.match(/#.+$/)) {
|
|
50398
|
+
var name = elm.attributes.href.match(/#(.+)$/)[1];
|
|
50399
|
+
links[name] = elm;
|
|
50400
|
+
}
|
|
50401
|
+
if (elm.attributes.name && links[elm.attributes.name]) {
|
|
50402
|
+
var link = links[elm.attributes.name];
|
|
50403
|
+
link.attributes.href = link.attributes.href.replace(/.*#(.*)$/, '#$1');
|
|
50404
|
+
}
|
|
50405
|
+
ctx.links = links;
|
|
50406
|
+
return elm;
|
|
50407
|
+
};
|
|
50408
|
+
|
|
50409
|
+
|
|
50410
|
+
/***/ }),
|
|
50411
|
+
|
|
50412
|
+
/***/ 76148:
|
|
50413
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50414
|
+
|
|
50415
|
+
"use strict";
|
|
50416
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50417
|
+
/* harmony export */ "p": function() { return /* binding */ removeExtraTags; }
|
|
50418
|
+
/* harmony export */ });
|
|
50419
|
+
/*!
|
|
50420
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50421
|
+
* See LICENSE.md in the project root for license information.
|
|
50422
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50423
|
+
*/
|
|
50424
|
+
var extraTags = new Set([
|
|
50425
|
+
'o:p',
|
|
50426
|
+
'xml',
|
|
50427
|
+
'script',
|
|
50428
|
+
'meta',
|
|
50429
|
+
'link',
|
|
50430
|
+
'v:imagedata',
|
|
50431
|
+
'style'
|
|
50432
|
+
]);
|
|
50433
|
+
function removeExtraTags(elm) {
|
|
50434
|
+
// Remove invisible
|
|
50435
|
+
if (elm.style.get('display') === 'none') {
|
|
50436
|
+
elm.remove();
|
|
50437
|
+
return null;
|
|
50438
|
+
}
|
|
50439
|
+
// Remove empty tag
|
|
50440
|
+
if (elm.length === 0 && elm.name === 'span') {
|
|
50441
|
+
elm.remove();
|
|
50442
|
+
return null;
|
|
50443
|
+
}
|
|
50444
|
+
// Remove invalid tags
|
|
50445
|
+
if (extraTags.has(elm.name)) {
|
|
50446
|
+
elm.remove();
|
|
50447
|
+
return null;
|
|
50448
|
+
}
|
|
50449
|
+
return elm;
|
|
50450
|
+
}
|
|
50451
|
+
|
|
50452
|
+
|
|
50453
|
+
/***/ }),
|
|
50454
|
+
|
|
50455
|
+
/***/ 33135:
|
|
50456
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50457
|
+
|
|
50458
|
+
"use strict";
|
|
50459
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50460
|
+
/* harmony export */ "m": function() { return /* binding */ removeInsideComment; }
|
|
50461
|
+
/* harmony export */ });
|
|
50462
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12787);
|
|
50463
|
+
/*!
|
|
50464
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50465
|
+
* See LICENSE.md in the project root for license information.
|
|
50466
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50467
|
+
*/
|
|
50468
|
+
|
|
50469
|
+
var inComment = 0;
|
|
50470
|
+
function removeInsideComment(elm) {
|
|
50471
|
+
if (elm.isComment && /\[if.*(supportLists|gte vml).*]/.test((0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm))) {
|
|
50472
|
+
inComment++;
|
|
50473
|
+
elm.remove();
|
|
50474
|
+
}
|
|
50475
|
+
if (elm.isComment && inComment > 0 && (0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm).includes('[endif]')) {
|
|
50476
|
+
inComment = inComment > 0 ? inComment - 1 : 0;
|
|
50477
|
+
elm.remove();
|
|
50478
|
+
}
|
|
50479
|
+
if (inComment) {
|
|
50480
|
+
if (elm.isText ||
|
|
50481
|
+
(elm.name === 'img' &&
|
|
50482
|
+
(!elm.attributes.src || /^file:/.test(elm.attributes.src)))) {
|
|
50483
|
+
elm.remove();
|
|
50484
|
+
return null;
|
|
50485
|
+
}
|
|
50486
|
+
}
|
|
50487
|
+
return elm;
|
|
50488
|
+
}
|
|
50489
|
+
|
|
50490
|
+
|
|
50491
|
+
/***/ }),
|
|
50492
|
+
|
|
50493
|
+
/***/ 38450:
|
|
50494
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50495
|
+
|
|
50496
|
+
"use strict";
|
|
50497
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50498
|
+
/* harmony export */ "G": function() { return /* binding */ replaceOldTags; }
|
|
50499
|
+
/* harmony export */ });
|
|
50500
|
+
/*!
|
|
50501
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50502
|
+
* See LICENSE.md in the project root for license information.
|
|
50503
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50504
|
+
*/
|
|
50505
|
+
var REPLACE_OLD_TAGS = {
|
|
50506
|
+
i: 'em',
|
|
50507
|
+
b: 'strong'
|
|
50508
|
+
};
|
|
50509
|
+
function replaceOldTags(elm) {
|
|
50510
|
+
var name = elm.name;
|
|
50511
|
+
if (name in REPLACE_OLD_TAGS) {
|
|
50512
|
+
elm.name = REPLACE_OLD_TAGS[name];
|
|
50513
|
+
}
|
|
50514
|
+
return elm;
|
|
50515
|
+
}
|
|
50516
|
+
|
|
50517
|
+
|
|
50518
|
+
/***/ }),
|
|
50519
|
+
|
|
50520
|
+
/***/ 38933:
|
|
50521
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50522
|
+
|
|
50523
|
+
"use strict";
|
|
50524
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50525
|
+
/* harmony export */ "Y": function() { return /* binding */ removeWidthFromTableCell; }
|
|
50526
|
+
/* harmony export */ });
|
|
50527
|
+
/*!
|
|
50528
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50529
|
+
* See LICENSE.md in the project root for license information.
|
|
50530
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50531
|
+
*/
|
|
50532
|
+
var removeWidthFromTableCell = function (elm) {
|
|
50533
|
+
if (elm.attributes.width && (elm.name === 'th' || elm.name === 'td')) {
|
|
50534
|
+
elm.attributes.width = null;
|
|
50535
|
+
}
|
|
50536
|
+
return elm;
|
|
50537
|
+
};
|
|
50538
|
+
|
|
50539
|
+
|
|
50540
|
+
/***/ }),
|
|
50541
|
+
|
|
50542
|
+
/***/ 48077:
|
|
50543
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
50544
|
+
|
|
50545
|
+
"use strict";
|
|
50546
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
50547
|
+
/*!
|
|
50548
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50549
|
+
* See LICENSE.md in the project root for license information.
|
|
50550
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50551
|
+
*/
|
|
50552
|
+
|
|
50553
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.pasteFromWord */ .D.prototype.pasteFromWord = {
|
|
50554
|
+
enable: false,
|
|
50555
|
+
convertUnitsToPixel: false,
|
|
50556
|
+
allowedStyleProps: [
|
|
50557
|
+
'background',
|
|
50558
|
+
'background-color',
|
|
50559
|
+
'border',
|
|
50560
|
+
'border-.*',
|
|
50561
|
+
'color',
|
|
50562
|
+
'float',
|
|
50563
|
+
'font-family',
|
|
50564
|
+
'font-size',
|
|
50565
|
+
'font-style',
|
|
50566
|
+
'font-weight',
|
|
50567
|
+
'height',
|
|
50568
|
+
'line-height',
|
|
50569
|
+
'list-style-type',
|
|
50570
|
+
'margin',
|
|
50571
|
+
'margin-bottom',
|
|
50572
|
+
'margin-left',
|
|
50573
|
+
'margin-right',
|
|
50574
|
+
'margin-top',
|
|
50575
|
+
'padding',
|
|
50576
|
+
'text-align',
|
|
50577
|
+
'text-justify',
|
|
50578
|
+
'text-decoration',
|
|
50579
|
+
'text-indent',
|
|
50580
|
+
'vertical-align',
|
|
50581
|
+
'width'
|
|
50582
|
+
]
|
|
50583
|
+
};
|
|
50584
|
+
|
|
50585
|
+
|
|
50586
|
+
/***/ }),
|
|
50587
|
+
|
|
50588
|
+
/***/ 19438:
|
|
50589
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50590
|
+
|
|
50591
|
+
"use strict";
|
|
50592
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50593
|
+
/* harmony export */ "Jf": function() { return /* binding */ STYLE_KEY; },
|
|
50594
|
+
/* harmony export */ "Ki": function() { return /* binding */ LEVEL_KEY; },
|
|
50595
|
+
/* harmony export */ "Y1": function() { return /* binding */ listStyleMap; },
|
|
50596
|
+
/* harmony export */ "YJ": function() { return /* binding */ TYPE_KEY; },
|
|
50597
|
+
/* harmony export */ "m3": function() { return /* binding */ STYLE_VALID_KEY; },
|
|
50598
|
+
/* harmony export */ "zQ": function() { return /* binding */ STYLE_CSS_KEY; }
|
|
50599
|
+
/* harmony export */ });
|
|
50600
|
+
/*!
|
|
50601
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50602
|
+
* See LICENSE.md in the project root for license information.
|
|
50603
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50604
|
+
*/
|
|
50605
|
+
var LEVEL_KEY = 'jd-list-level';
|
|
50606
|
+
var TYPE_KEY = 'jd-list-type';
|
|
50607
|
+
var STYLE_KEY = 'jd-list-style-type';
|
|
50608
|
+
var STYLE_VALID_KEY = 'data-list-style-type';
|
|
50609
|
+
var STYLE_CSS_KEY = 'list-style-type';
|
|
50610
|
+
var listStyleMap = {
|
|
50611
|
+
'·': 'disc',
|
|
50612
|
+
o: 'circle',
|
|
50613
|
+
'§': 'square',
|
|
50614
|
+
'[ivx]': 'lower-roman',
|
|
50615
|
+
'[IVX]': 'upper-roman',
|
|
50616
|
+
'[a-z]': 'lower-alpha',
|
|
50617
|
+
'[A-Z]': 'upper-alpha',
|
|
50618
|
+
'\\d': 'decimal'
|
|
50619
|
+
};
|
|
50620
|
+
|
|
50621
|
+
|
|
50622
|
+
/***/ }),
|
|
50623
|
+
|
|
50624
|
+
/***/ 69111:
|
|
50625
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50626
|
+
|
|
50627
|
+
"use strict";
|
|
50628
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50629
|
+
/* harmony export */ "Be": function() { return /* binding */ isLeaf; },
|
|
50630
|
+
/* harmony export */ "Hh": function() { return /* binding */ isPseudoLeaf; },
|
|
50631
|
+
/* harmony export */ "Y4": function() { return /* binding */ isSameType; },
|
|
50632
|
+
/* harmony export */ "nq": function() { return /* binding */ isList; }
|
|
50633
|
+
/* harmony export */ });
|
|
50634
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19438);
|
|
50635
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12787);
|
|
50636
|
+
/*!
|
|
50637
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50638
|
+
* See LICENSE.md in the project root for license information.
|
|
50639
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50640
|
+
*/
|
|
50641
|
+
|
|
50642
|
+
|
|
50643
|
+
function isList(elm) {
|
|
50644
|
+
return Boolean(elm && (elm.name === 'ol' || elm.name === 'ul'));
|
|
50645
|
+
}
|
|
50646
|
+
function isLeaf(elm) {
|
|
50647
|
+
return Boolean(elm && elm.name === 'li');
|
|
50648
|
+
}
|
|
50649
|
+
function isPseudoLeaf(elm) {
|
|
50650
|
+
return ((elm.name !== 'li' &&
|
|
50651
|
+
/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(elm.attributes.style)) ||
|
|
50652
|
+
(/msolistparagraph/i.test(elm.attributes.class) &&
|
|
50653
|
+
Boolean(elm.find(function (c) { return c.isComment && (0,_render__WEBPACK_IMPORTED_MODULE_1__/* .html */ .d)(c).includes('supportLists'); })
|
|
50654
|
+
.length)));
|
|
50655
|
+
}
|
|
50656
|
+
function isSameType(leaf, list) {
|
|
50657
|
+
var listType = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .TYPE_KEY */ .YJ];
|
|
50658
|
+
var listStyle = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf];
|
|
50659
|
+
return !(list.name !== listType ||
|
|
50660
|
+
list.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf] !== listStyle ||
|
|
50661
|
+
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]);
|
|
50662
|
+
}
|
|
50663
|
+
|
|
50664
|
+
|
|
50665
|
+
/***/ }),
|
|
50666
|
+
|
|
50667
|
+
/***/ 84300:
|
|
50668
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50669
|
+
|
|
50670
|
+
"use strict";
|
|
50671
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50672
|
+
/* harmony export */ "n": function() { return /* binding */ JElement; }
|
|
50673
|
+
/* harmony export */ });
|
|
50674
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
50675
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
|
|
50676
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11612);
|
|
50677
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52378);
|
|
50678
|
+
/* 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__);
|
|
50679
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12787);
|
|
50680
|
+
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12481);
|
|
50681
|
+
/*!
|
|
50682
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50683
|
+
* See LICENSE.md in the project root for license information.
|
|
50684
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50685
|
+
*/
|
|
50686
|
+
|
|
50687
|
+
|
|
50688
|
+
|
|
50689
|
+
|
|
50690
|
+
|
|
50691
|
+
|
|
50692
|
+
var singleTags = new Set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSEPARABLE_TAGS);
|
|
50693
|
+
var JElement = /** @class */ (function () {
|
|
50694
|
+
function JElement(node, parent) {
|
|
50695
|
+
var _this = this;
|
|
50696
|
+
this.parent = parent;
|
|
50697
|
+
this.name = node.nodeName.toLowerCase();
|
|
50698
|
+
this.type = node.nodeType;
|
|
50699
|
+
this.attributes = readAttributes(node);
|
|
50700
|
+
this.style = new _style__WEBPACK_IMPORTED_MODULE_4__/* .Style */ .b(this.attributes.style);
|
|
50701
|
+
this.children = [];
|
|
50702
|
+
node.childNodes.forEach(function (node) {
|
|
50703
|
+
return _this.children.push(JElement.make(node, _this));
|
|
50704
|
+
});
|
|
50705
|
+
}
|
|
50706
|
+
Object.defineProperty(JElement.prototype, "isText", {
|
|
50707
|
+
get: function () {
|
|
50708
|
+
return this.type === Node.TEXT_NODE;
|
|
50709
|
+
},
|
|
50710
|
+
enumerable: false,
|
|
50711
|
+
configurable: true
|
|
50712
|
+
});
|
|
50713
|
+
Object.defineProperty(JElement.prototype, "isElement", {
|
|
50714
|
+
get: function () {
|
|
50715
|
+
return this.type === Node.ELEMENT_NODE;
|
|
50716
|
+
},
|
|
50717
|
+
enumerable: false,
|
|
50718
|
+
configurable: true
|
|
50719
|
+
});
|
|
50720
|
+
Object.defineProperty(JElement.prototype, "isComment", {
|
|
50721
|
+
get: function () {
|
|
50722
|
+
return this.type === Node.COMMENT_NODE;
|
|
50723
|
+
},
|
|
50724
|
+
enumerable: false,
|
|
50725
|
+
configurable: true
|
|
50726
|
+
});
|
|
50727
|
+
Object.defineProperty(JElement.prototype, "isSingle", {
|
|
50728
|
+
get: function () {
|
|
50729
|
+
return singleTags.has(this.name);
|
|
50730
|
+
},
|
|
50731
|
+
enumerable: false,
|
|
50732
|
+
configurable: true
|
|
50733
|
+
});
|
|
50734
|
+
Object.defineProperty(JElement.prototype, "length", {
|
|
50735
|
+
get: function () {
|
|
50736
|
+
return this.children.length;
|
|
50737
|
+
},
|
|
50738
|
+
enumerable: false,
|
|
50739
|
+
configurable: true
|
|
50740
|
+
});
|
|
50741
|
+
JElement.make = function (node, parent) {
|
|
50742
|
+
if (parent === void 0) { parent = null; }
|
|
50743
|
+
return new JElement(node, parent);
|
|
50744
|
+
};
|
|
50745
|
+
JElement.prototype.wrap = function (tag) {
|
|
50746
|
+
var _a;
|
|
50747
|
+
void 0;
|
|
50748
|
+
var wrapper = JElement.make(document.createElement(tag), this.parent);
|
|
50749
|
+
var index = (_a = this.parent.children.indexOf(this)) !== null && _a !== void 0 ? _a : -1;
|
|
50750
|
+
if (index === -1) {
|
|
50751
|
+
this.parent.append(wrapper);
|
|
50752
|
+
}
|
|
50753
|
+
else {
|
|
50754
|
+
this.parent.children[index] = wrapper;
|
|
50755
|
+
}
|
|
50756
|
+
wrapper.append(this);
|
|
50757
|
+
return wrapper;
|
|
50758
|
+
};
|
|
50759
|
+
JElement.prototype.append = function (child) {
|
|
50760
|
+
void 0;
|
|
50761
|
+
child.remove();
|
|
50762
|
+
this.children.push(child);
|
|
50763
|
+
child.parent = this;
|
|
50764
|
+
return this;
|
|
50765
|
+
};
|
|
50766
|
+
Object.defineProperty(JElement.prototype, "previousElement", {
|
|
50767
|
+
get: function () {
|
|
50768
|
+
if (!this.parent) {
|
|
50769
|
+
return null;
|
|
50770
|
+
}
|
|
50771
|
+
var children = this.parent.children, index = children.indexOf(this);
|
|
50772
|
+
if (index !== -1) {
|
|
50773
|
+
for (var i = index - 1; i >= 0; i -= 1) {
|
|
50774
|
+
if (children[i].isElement) {
|
|
50775
|
+
return children[i];
|
|
50776
|
+
}
|
|
50777
|
+
}
|
|
50778
|
+
}
|
|
50779
|
+
return null;
|
|
50780
|
+
},
|
|
50781
|
+
enumerable: false,
|
|
50782
|
+
configurable: true
|
|
50783
|
+
});
|
|
50784
|
+
Object.defineProperty(JElement.prototype, "lastElement", {
|
|
50785
|
+
get: function () {
|
|
50786
|
+
var children = this.children;
|
|
50787
|
+
for (var i = children.length - 1; i >= 0; i -= 1) {
|
|
50788
|
+
if (children[i].isElement) {
|
|
50789
|
+
return children[i];
|
|
50790
|
+
}
|
|
50791
|
+
}
|
|
50792
|
+
return null;
|
|
50793
|
+
},
|
|
50794
|
+
enumerable: false,
|
|
50795
|
+
configurable: true
|
|
50796
|
+
});
|
|
50797
|
+
Object.defineProperty(JElement.prototype, "previous", {
|
|
50798
|
+
get: function () {
|
|
50799
|
+
var _a, _b, _c;
|
|
50800
|
+
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;
|
|
50801
|
+
},
|
|
50802
|
+
enumerable: false,
|
|
50803
|
+
configurable: true
|
|
50804
|
+
});
|
|
50805
|
+
Object.defineProperty(JElement.prototype, "next", {
|
|
50806
|
+
get: function () {
|
|
50807
|
+
var _a, _b, _c;
|
|
50808
|
+
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;
|
|
50809
|
+
},
|
|
50810
|
+
enumerable: false,
|
|
50811
|
+
configurable: true
|
|
50812
|
+
});
|
|
50813
|
+
JElement.prototype.sibling = function (next) {
|
|
50814
|
+
if (!this.parent) {
|
|
50815
|
+
return null;
|
|
50816
|
+
}
|
|
50817
|
+
var children = this.parent.children, index = children.indexOf(this);
|
|
50818
|
+
if (index !== -1 && children[index + (next ? 1 : -1)]) {
|
|
50819
|
+
return children[index + (next ? 1 : -1)];
|
|
50820
|
+
}
|
|
50821
|
+
return null;
|
|
50822
|
+
};
|
|
50823
|
+
JElement.prototype.forEach = function (callbackFn, recursion) {
|
|
50824
|
+
var e_1, _a;
|
|
50825
|
+
if (recursion === void 0) { recursion = false; }
|
|
50826
|
+
var children = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(this.children), false);
|
|
50827
|
+
try {
|
|
50828
|
+
for (var children_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__values */ .XA)(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
|
50829
|
+
var child = children_1_1.value;
|
|
50830
|
+
if (callbackFn(child) === false) {
|
|
50831
|
+
return false;
|
|
50832
|
+
}
|
|
50833
|
+
if (recursion && child.forEach(callbackFn, true) === false) {
|
|
50834
|
+
return false;
|
|
50835
|
+
}
|
|
50836
|
+
}
|
|
50837
|
+
}
|
|
50838
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
50839
|
+
finally {
|
|
50840
|
+
try {
|
|
50841
|
+
if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
|
|
50842
|
+
}
|
|
50843
|
+
finally { if (e_1) throw e_1.error; }
|
|
50844
|
+
}
|
|
50845
|
+
};
|
|
50846
|
+
JElement.prototype.find = function (predicate, recursion) {
|
|
50847
|
+
if (recursion === void 0) { recursion = true; }
|
|
50848
|
+
var result = [];
|
|
50849
|
+
this.forEach(function (elm) {
|
|
50850
|
+
if (predicate(elm)) {
|
|
50851
|
+
result.push(elm);
|
|
50852
|
+
}
|
|
50853
|
+
}, recursion);
|
|
50854
|
+
return result;
|
|
50855
|
+
};
|
|
50856
|
+
JElement.prototype.map = function (callbackFn) {
|
|
50857
|
+
return this.children.map(callbackFn);
|
|
50858
|
+
};
|
|
50859
|
+
JElement.prototype.remove = function () {
|
|
50860
|
+
var _a, _b;
|
|
50861
|
+
var index = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.children.indexOf(this);
|
|
50862
|
+
if (index != null && index !== -1) {
|
|
50863
|
+
(_b = this.parent) === null || _b === void 0 ? void 0 : _b.children.splice(index, 1);
|
|
50864
|
+
}
|
|
50865
|
+
return this;
|
|
50866
|
+
};
|
|
50867
|
+
JElement.prototype.textBetween = function (start, end) {
|
|
50868
|
+
var startFound = false;
|
|
50869
|
+
var result = [];
|
|
50870
|
+
this.forEach(function (node) {
|
|
50871
|
+
if (!startFound && start(node)) {
|
|
50872
|
+
startFound = true;
|
|
50873
|
+
}
|
|
50874
|
+
if (startFound && node.isText) {
|
|
50875
|
+
result.push((0,_render__WEBPACK_IMPORTED_MODULE_3__/* .html */ .d)(node));
|
|
50876
|
+
}
|
|
50877
|
+
if (startFound && end(node)) {
|
|
50878
|
+
return false;
|
|
50879
|
+
}
|
|
50880
|
+
}, true);
|
|
50881
|
+
return result.join('');
|
|
50882
|
+
};
|
|
50883
|
+
return JElement;
|
|
50884
|
+
}());
|
|
50885
|
+
|
|
50886
|
+
function readAttributes(node) {
|
|
50887
|
+
var result = {};
|
|
50888
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isElement */ .i.isElement(node)) {
|
|
50889
|
+
for (var i = 0, attrs = node.attributes; i < attrs.length; i += 1) {
|
|
50890
|
+
result[attrs[i].name] = attrs[i].value;
|
|
50891
|
+
}
|
|
50892
|
+
}
|
|
50893
|
+
else {
|
|
50894
|
+
result['nodeValue'] = node.nodeValue;
|
|
50895
|
+
}
|
|
50896
|
+
return result;
|
|
50897
|
+
}
|
|
50898
|
+
|
|
50899
|
+
|
|
50900
|
+
/***/ }),
|
|
50901
|
+
|
|
50902
|
+
/***/ 93310:
|
|
50903
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50904
|
+
|
|
50905
|
+
"use strict";
|
|
50906
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50907
|
+
/* harmony export */ "Be": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Be; },
|
|
50908
|
+
/* harmony export */ "C7": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.C; },
|
|
50909
|
+
/* harmony export */ "Hh": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Hh; },
|
|
50910
|
+
/* harmony export */ "Y4": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Y4; },
|
|
50911
|
+
/* harmony export */ "dy": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.d; },
|
|
50912
|
+
/* harmony export */ "nK": function() { return /* reexport safe */ _element__WEBPACK_IMPORTED_MODULE_1__.n; },
|
|
50913
|
+
/* harmony export */ "nq": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.nq; }
|
|
50914
|
+
/* harmony export */ });
|
|
50915
|
+
/* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69111);
|
|
50916
|
+
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84300);
|
|
50917
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12787);
|
|
50918
|
+
/*!
|
|
50919
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50920
|
+
* See LICENSE.md in the project root for license information.
|
|
50921
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50922
|
+
*/
|
|
50923
|
+
|
|
50924
|
+
|
|
50925
|
+
|
|
50926
|
+
|
|
50927
|
+
|
|
50928
|
+
/***/ }),
|
|
50929
|
+
|
|
50930
|
+
/***/ 12787:
|
|
50931
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50932
|
+
|
|
50933
|
+
"use strict";
|
|
50934
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50935
|
+
/* harmony export */ "C": function() { return /* binding */ innerHTML; },
|
|
50936
|
+
/* harmony export */ "d": function() { return /* binding */ html; }
|
|
50937
|
+
/* harmony export */ });
|
|
50938
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
50939
|
+
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46232);
|
|
50940
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73076);
|
|
50941
|
+
/*!
|
|
50942
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
50943
|
+
* See LICENSE.md in the project root for license information.
|
|
50944
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
50945
|
+
*/
|
|
50946
|
+
|
|
50947
|
+
|
|
50948
|
+
|
|
50949
|
+
function html(elm, filter, removeEmpty, allowedStyleProps) {
|
|
50950
|
+
if (filter === void 0) { filter = function () { return true; }; }
|
|
50951
|
+
if (removeEmpty === void 0) { removeEmpty = true; }
|
|
50952
|
+
switch (true) {
|
|
50953
|
+
case elm.isComment:
|
|
50954
|
+
case elm.isText: {
|
|
50955
|
+
if (!filter(elm)) {
|
|
50956
|
+
return '';
|
|
50957
|
+
}
|
|
50958
|
+
var nodeValue = elm.attributes.nodeValue;
|
|
50959
|
+
return elm.isComment ? "<!--".concat(nodeValue, "-->") : nodeValue;
|
|
50960
|
+
}
|
|
50961
|
+
case elm.isElement: {
|
|
50962
|
+
var attributes_1 = elm.attributes, innerContent = innerHTML(elm, filter, removeEmpty, allowedStyleProps);
|
|
50963
|
+
// remove empty tag with attributes
|
|
50964
|
+
if (!elm.attributes['jd-safe'] &&
|
|
50965
|
+
removeEmpty &&
|
|
50966
|
+
innerContent.replace(/[\n\t]/g, '').length === 0 &&
|
|
50967
|
+
!elm.isSingle) {
|
|
50968
|
+
return '';
|
|
50969
|
+
}
|
|
50970
|
+
var attrsList = Object.keys(attributes_1)
|
|
50971
|
+
.map(function (key) {
|
|
50972
|
+
if (key === 'style' ||
|
|
50973
|
+
attributes_1[key] == null ||
|
|
50974
|
+
/^jd-/.test(key)) {
|
|
50975
|
+
return '';
|
|
50976
|
+
}
|
|
50977
|
+
return "".concat(key, "=\"").concat(htmlEntity(attributes_1[key]), "\"");
|
|
50978
|
+
})
|
|
50979
|
+
.filter(Boolean);
|
|
50980
|
+
var styleStr = elm.style.str;
|
|
50981
|
+
var styles = htmlEntity(styleStr(function (key) { return keyInList(key, allowedStyleProps); }));
|
|
50982
|
+
if (styles) {
|
|
50983
|
+
attrsList.push("style=\"".concat(styles, "\""));
|
|
50984
|
+
}
|
|
50985
|
+
// unwrap empty tag without attributes
|
|
50986
|
+
if (removeEmpty &&
|
|
50987
|
+
attrsList.length === 0 &&
|
|
50988
|
+
['span', 'a'].includes(elm.name)) {
|
|
50989
|
+
return innerContent;
|
|
50990
|
+
}
|
|
50991
|
+
var attrs = attrsList.length ? ' ' + attrsList.join(' ') : '';
|
|
50992
|
+
if (!filter(elm)) {
|
|
50993
|
+
return innerContent;
|
|
50994
|
+
}
|
|
50995
|
+
return elm.isSingle
|
|
50996
|
+
? "<".concat(elm.name).concat(attrs, "/>")
|
|
50997
|
+
: "<".concat(elm.name).concat(attrs, ">").concat(innerContent, "</").concat(elm.name, ">");
|
|
50998
|
+
}
|
|
50999
|
+
default:
|
|
51000
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
51001
|
+
throw Error('Need implementation for this type');
|
|
51002
|
+
}
|
|
51003
|
+
}
|
|
51004
|
+
return '';
|
|
51005
|
+
}
|
|
51006
|
+
function keyInList(key, list) {
|
|
51007
|
+
var _a;
|
|
51008
|
+
if (!list) {
|
|
51009
|
+
return true;
|
|
51010
|
+
}
|
|
51011
|
+
if (keyInList.cache.has(list)) {
|
|
51012
|
+
var isAllow_1 = (_a = keyInList.cache.get(list)) === null || _a === void 0 ? void 0 : _a.get(key);
|
|
51013
|
+
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__/* .isBoolean */ .j)(isAllow_1)) {
|
|
51014
|
+
return isAllow_1;
|
|
51015
|
+
}
|
|
51016
|
+
}
|
|
51017
|
+
var isAllow = list.some(function (allow) { return new RegExp(allow).test(key); });
|
|
51018
|
+
var map = keyInList.cache.get(list) || new Map();
|
|
51019
|
+
map.set(key, isAllow);
|
|
51020
|
+
keyInList.cache.set(list, map);
|
|
51021
|
+
return isAllow;
|
|
51022
|
+
}
|
|
51023
|
+
keyInList.cache = new WeakMap();
|
|
51024
|
+
function innerHTML(elm, filter, removeEmpty, allowedStyleProps) {
|
|
51025
|
+
if (filter === void 0) { filter = function () { return true; }; }
|
|
51026
|
+
if (removeEmpty === void 0) { removeEmpty = true; }
|
|
51027
|
+
var result = elm
|
|
51028
|
+
.map(function (e) { return html(e, filter, removeEmpty, allowedStyleProps); })
|
|
51029
|
+
.join('');
|
|
51030
|
+
if (elm.name === 'p' && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .f)(result).length === 0) {
|
|
51031
|
+
result = ' ';
|
|
51032
|
+
}
|
|
51033
|
+
return result;
|
|
51034
|
+
}
|
|
51035
|
+
function htmlEntity(str) {
|
|
51036
|
+
return str.toString().replace(/"/g, '"');
|
|
51037
|
+
}
|
|
51038
|
+
|
|
51039
|
+
|
|
51040
|
+
/***/ }),
|
|
51041
|
+
|
|
51042
|
+
/***/ 12481:
|
|
51043
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51044
|
+
|
|
51045
|
+
"use strict";
|
|
51046
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51047
|
+
/* harmony export */ "b": function() { return /* binding */ Style; }
|
|
51048
|
+
/* harmony export */ });
|
|
51049
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
51050
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
51051
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
51052
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18352);
|
|
51053
|
+
/*!
|
|
51054
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
51055
|
+
* See LICENSE.md in the project root for license information.
|
|
51056
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
51057
|
+
*/
|
|
51058
|
+
|
|
51059
|
+
|
|
51060
|
+
|
|
51061
|
+
|
|
51062
|
+
var Style = /** @class */ (function () {
|
|
51063
|
+
function Style(str) {
|
|
51064
|
+
this._data = readStyles(str);
|
|
51065
|
+
}
|
|
51066
|
+
Object.defineProperty(Style.prototype, "keys", {
|
|
51067
|
+
get: function () {
|
|
51068
|
+
return Object.keys(this._data);
|
|
51069
|
+
},
|
|
51070
|
+
enumerable: false,
|
|
51071
|
+
configurable: true
|
|
51072
|
+
});
|
|
51073
|
+
Style.prototype.forEach = function (f) {
|
|
51074
|
+
this.keys.forEach(function (key) { return f(key); });
|
|
51075
|
+
};
|
|
51076
|
+
Style.prototype.clear = function () {
|
|
51077
|
+
this._data = {};
|
|
51078
|
+
};
|
|
51079
|
+
Style.prototype.set = function (key, value) {
|
|
51080
|
+
this._data[key] = value;
|
|
51081
|
+
};
|
|
51082
|
+
Style.prototype.get = function (key) {
|
|
51083
|
+
var _a;
|
|
51084
|
+
return (_a = this._data[key]) !== null && _a !== void 0 ? _a : null;
|
|
51085
|
+
};
|
|
51086
|
+
Style.prototype.has = function (key) {
|
|
51087
|
+
return this._data[key] !== undefined;
|
|
51088
|
+
};
|
|
51089
|
+
Style.prototype.add = function (key, value) {
|
|
51090
|
+
this._data = readStyles(this.str() + ';' + "".concat(key, ":").concat(value));
|
|
51091
|
+
return this;
|
|
51092
|
+
};
|
|
51093
|
+
Style.prototype.str = function (filter) {
|
|
51094
|
+
var _this = this;
|
|
51095
|
+
if (filter === void 0) { filter = function (k) { return true; }; }
|
|
51096
|
+
var styleKeys = Object.keys(this._data).filter(function (key) {
|
|
51097
|
+
return key &&
|
|
51098
|
+
!/^mso-/.test(key) &&
|
|
51099
|
+
filter(key) &&
|
|
51100
|
+
_this.get(key) != null;
|
|
51101
|
+
});
|
|
51102
|
+
var n = function (v) {
|
|
51103
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isString)(v)) {
|
|
51104
|
+
return /^0[a-z]+$/i.test(v) ? '0' : v;
|
|
51105
|
+
}
|
|
51106
|
+
return v.toString();
|
|
51107
|
+
};
|
|
51108
|
+
['padding', 'margin'].forEach(function (key) {
|
|
51109
|
+
if (_this._data[key]) {
|
|
51110
|
+
var indexMain_1 = styleKeys.indexOf(key);
|
|
51111
|
+
var margins_1 = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__/* .calcMarginParts */ .Wb)(_this._data[key]);
|
|
51112
|
+
['top', 'right', 'bottom', 'left'].forEach(function (side, index) {
|
|
51113
|
+
var name = "".concat(key, "-").concat(side), value = _this._data[name];
|
|
51114
|
+
if (value != null &&
|
|
51115
|
+
(styleKeys.indexOf(name) < indexMain_1 ||
|
|
51116
|
+
n(margins_1[index]) === n(value))) {
|
|
51117
|
+
styleKeys.indexOf(name) !== -1 &&
|
|
51118
|
+
styleKeys.splice(styleKeys.indexOf(name), 1);
|
|
51119
|
+
}
|
|
51120
|
+
});
|
|
51121
|
+
}
|
|
51122
|
+
});
|
|
51123
|
+
if (styleKeys.length) {
|
|
51124
|
+
return styleKeys
|
|
51125
|
+
.map(function (key) { return "".concat((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.kebabCase)(key), ":").concat(_this.get(key)); })
|
|
51126
|
+
.join(';');
|
|
51127
|
+
}
|
|
51128
|
+
return '';
|
|
51129
|
+
};
|
|
51130
|
+
Style = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
51131
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
51132
|
+
], Style);
|
|
51133
|
+
return Style;
|
|
51134
|
+
}());
|
|
51135
|
+
function readStyles(style) {
|
|
51136
|
+
return uniqueMax((style !== null && style !== void 0 ? style : '')
|
|
51137
|
+
.replace(/"/g, '"')
|
|
51138
|
+
.split(';')
|
|
51139
|
+
.filter(Boolean)
|
|
51140
|
+
.map(function (s) { return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.trim)(s).split(':').map(jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.trim); })).reduce(function (acc, _a) {
|
|
51141
|
+
var _b = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(_a, 2), key = _b[0], value = _b[1];
|
|
51142
|
+
if (key && value) {
|
|
51143
|
+
acc[key] = value;
|
|
51144
|
+
}
|
|
51145
|
+
return acc;
|
|
51146
|
+
}, {});
|
|
51147
|
+
}
|
|
51148
|
+
function uniqueMax(array) {
|
|
51149
|
+
var keys = {};
|
|
51150
|
+
var result = [];
|
|
51151
|
+
for (var i = array.length - 1; i >= 0; i -= 1) {
|
|
51152
|
+
var key = array[i][0];
|
|
51153
|
+
if (keys[key]) {
|
|
51154
|
+
continue;
|
|
51155
|
+
}
|
|
51156
|
+
keys[key] = true;
|
|
51157
|
+
result.unshift(array[i]);
|
|
51158
|
+
}
|
|
51159
|
+
return result;
|
|
51160
|
+
}
|
|
51161
|
+
|
|
51162
|
+
|
|
51163
|
+
/***/ }),
|
|
51164
|
+
|
|
51165
|
+
/***/ 12049:
|
|
51166
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51167
|
+
|
|
51168
|
+
"use strict";
|
|
51169
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51170
|
+
/* harmony export */ "x": function() { return /* binding */ applyStylesPro; }
|
|
51171
|
+
/* harmony export */ });
|
|
51172
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98478);
|
|
51173
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
51174
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
51175
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79374);
|
|
51176
|
+
/*!
|
|
51177
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
51178
|
+
* See LICENSE.md in the project root for license information.
|
|
51179
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
51180
|
+
*/
|
|
51181
|
+
|
|
51182
|
+
|
|
51183
|
+
|
|
51184
|
+
|
|
51185
|
+
function applyStylesPro(jodit, html, removeStyles, rtf) {
|
|
51186
|
+
var _a, _b;
|
|
51187
|
+
if (rtf === void 0) { rtf = ''; }
|
|
51188
|
+
var iframe = document.createElement('iframe');
|
|
51189
|
+
iframe.style.display = 'none';
|
|
51190
|
+
document.body.appendChild(iframe);
|
|
51191
|
+
try {
|
|
51192
|
+
var doc = (_a = iframe.contentDocument) !== null && _a !== void 0 ? _a : (_b = iframe.contentWindow) === null || _b === void 0 ? void 0 : _b.document;
|
|
51193
|
+
if (!doc) {
|
|
51194
|
+
return html;
|
|
51195
|
+
}
|
|
51196
|
+
doc.open();
|
|
51197
|
+
doc.write(html);
|
|
51198
|
+
doc.close();
|
|
51199
|
+
var JDS_1 = 'jd-style';
|
|
51200
|
+
var _loop_1 = function (i) {
|
|
51201
|
+
try {
|
|
51202
|
+
var rules_1 = doc.styleSheets[i]
|
|
51203
|
+
.cssRules;
|
|
51204
|
+
var _loop_2 = function (idx) {
|
|
51205
|
+
if (!rules_1[idx].selectorText) {
|
|
51206
|
+
return "continue";
|
|
51207
|
+
}
|
|
51208
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(rules_1[idx].selectorText, doc.body).forEach(function (elm) {
|
|
51209
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS_1)) {
|
|
51210
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS_1, (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style') || '');
|
|
51211
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', '');
|
|
51212
|
+
}
|
|
51213
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', "".concat((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style'), ";").concat(rules_1[idx].style.cssText));
|
|
51214
|
+
});
|
|
51215
|
+
};
|
|
51216
|
+
for (var idx = 0; idx < rules_1.length; idx += 1) {
|
|
51217
|
+
_loop_2(idx);
|
|
51218
|
+
}
|
|
51219
|
+
}
|
|
51220
|
+
catch (e) { }
|
|
51221
|
+
};
|
|
51222
|
+
for (var i = 0; i < doc.styleSheets.length; i += 1) {
|
|
51223
|
+
_loop_1(i);
|
|
51224
|
+
}
|
|
51225
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)("[".concat(JDS_1, "]"), doc.body).forEach(function (elm) {
|
|
51226
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', "".concat((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style'), ";").concat((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS_1)));
|
|
51227
|
+
});
|
|
51228
|
+
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);
|
|
51229
|
+
}
|
|
51230
|
+
finally {
|
|
51231
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(iframe);
|
|
51232
|
+
}
|
|
51233
|
+
return html;
|
|
51234
|
+
}
|
|
51235
|
+
|
|
51236
|
+
|
|
51237
|
+
/***/ }),
|
|
51238
|
+
|
|
51239
|
+
/***/ 45394:
|
|
51240
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51241
|
+
|
|
51242
|
+
"use strict";
|
|
51243
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51244
|
+
/* harmony export */ "r": function() { return /* binding */ calcListLevels; }
|
|
51245
|
+
/* harmony export */ });
|
|
51246
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
51247
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93310);
|
|
51248
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19438);
|
|
51249
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81723);
|
|
51250
|
+
/*!
|
|
51251
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
51252
|
+
* See LICENSE.md in the project root for license information.
|
|
51253
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
51254
|
+
*/
|
|
51255
|
+
|
|
51256
|
+
|
|
51257
|
+
|
|
51258
|
+
|
|
51259
|
+
function calcListLevels(item) {
|
|
51260
|
+
if (item.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] !== undefined) {
|
|
51261
|
+
return;
|
|
51262
|
+
}
|
|
51263
|
+
var indents = [(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(item)], items = [item];
|
|
51264
|
+
var next = item.next;
|
|
51265
|
+
while (next) {
|
|
51266
|
+
if (next.isElement &&
|
|
51267
|
+
!next.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] &&
|
|
51268
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__/* .isPseudoLeaf */ .Hh)(next)) {
|
|
51269
|
+
var indent = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(next);
|
|
51270
|
+
if (indent) {
|
|
51271
|
+
indents.push(indent);
|
|
51272
|
+
items.push(next);
|
|
51273
|
+
}
|
|
51274
|
+
}
|
|
51275
|
+
next = next.next;
|
|
51276
|
+
}
|
|
51277
|
+
var minIndent = Math.min.apply(Math, (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(indents.filter(function (val) { return val > 0; })), false));
|
|
51278
|
+
var levels = indents.map(function (val) { return Math.ceil(val / 10); });
|
|
51279
|
+
if (levels.indexOf(0) !== -1) {
|
|
51280
|
+
levels = levels.map(function (val) { return val + 1; });
|
|
51281
|
+
}
|
|
51282
|
+
items.forEach(function (curItem, index) {
|
|
51283
|
+
curItem.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] = levels[index];
|
|
51284
|
+
curItem.style.add('margin-left', "".concat(Math.max((0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(curItem) -
|
|
51285
|
+
((levels[index] * 10) / minIndent) * 40, 0), "px"));
|
|
51286
|
+
});
|
|
51287
|
+
}
|
|
51288
|
+
|
|
51289
|
+
|
|
51290
|
+
/***/ }),
|
|
51291
|
+
|
|
51292
|
+
/***/ 81723:
|
|
51293
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51294
|
+
|
|
51295
|
+
"use strict";
|
|
51296
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51297
|
+
/* harmony export */ "D4": function() { return /* binding */ realPixelIndent; },
|
|
51298
|
+
/* harmony export */ "Lp": function() { return /* binding */ convertUnitToPx; },
|
|
51299
|
+
/* harmony export */ "Sg": function() { return /* binding */ calcStartBySymbol; },
|
|
51300
|
+
/* harmony export */ "Wb": function() { return /* binding */ calcMarginParts; }
|
|
51301
|
+
/* harmony export */ });
|
|
51302
|
+
/*!
|
|
51303
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
51304
|
+
* See LICENSE.md in the project root for license information.
|
|
51305
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
51306
|
+
*/
|
|
51307
|
+
function calcMarginParts(margin) {
|
|
51308
|
+
if (!margin) {
|
|
51309
|
+
return [0, 0, 0, 0];
|
|
51310
|
+
}
|
|
51311
|
+
var widths = margin.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g) || ['0px'];
|
|
51312
|
+
switch (widths.length) {
|
|
51313
|
+
case 2:
|
|
51314
|
+
return [0, 1, 0, 1].map(function (index) { return widths[index]; });
|
|
51315
|
+
case 3:
|
|
51316
|
+
return [0, 1, 2, 1].map(function (index) { return widths[index]; });
|
|
51317
|
+
case 4:
|
|
51318
|
+
return [0, 1, 2, 3].map(function (index) { return widths[index]; });
|
|
51319
|
+
default:
|
|
51320
|
+
return [0, 0, 0, 0].map(function (index) { return widths[index]; });
|
|
51321
|
+
}
|
|
51322
|
+
}
|
|
51323
|
+
var fakeMeasureBox;
|
|
51324
|
+
/**
|
|
51325
|
+
* Convert css units to pixels, excluding percentages
|
|
51326
|
+
* @example
|
|
51327
|
+
* ```js
|
|
51328
|
+
* convertUnitToPx('55pt')
|
|
51329
|
+
* convertUnitToPx('55cm')
|
|
51330
|
+
* ```
|
|
51331
|
+
*/
|
|
51332
|
+
function convertUnitToPx(unit) {
|
|
51333
|
+
if (typeof unit === 'number') {
|
|
51334
|
+
return unit;
|
|
51335
|
+
}
|
|
51336
|
+
if (/%$/.test(unit)) {
|
|
51337
|
+
return 0;
|
|
51338
|
+
}
|
|
51339
|
+
if (!fakeMeasureBox) {
|
|
51340
|
+
fakeMeasureBox = document.createElement('div');
|
|
51341
|
+
Object.assign(fakeMeasureBox.style, {
|
|
51342
|
+
position: 'absolute',
|
|
51343
|
+
left: '-9999px',
|
|
51344
|
+
top: '-9999px',
|
|
51345
|
+
margin: '0',
|
|
51346
|
+
padding: '0',
|
|
51347
|
+
border: '0'
|
|
51348
|
+
});
|
|
51349
|
+
document.body.append(fakeMeasureBox);
|
|
51350
|
+
// Clean after work
|
|
51351
|
+
setTimeout(function () {
|
|
51352
|
+
fakeMeasureBox === null || fakeMeasureBox === void 0 ? void 0 : fakeMeasureBox.remove();
|
|
51353
|
+
fakeMeasureBox = null;
|
|
51354
|
+
});
|
|
51355
|
+
}
|
|
51356
|
+
var isNegative = parseFloat(unit) < 0;
|
|
51357
|
+
if (isNegative) {
|
|
51358
|
+
unit = unit.replace('-', '');
|
|
51359
|
+
}
|
|
51360
|
+
fakeMeasureBox.style.width = unit;
|
|
51361
|
+
var result = fakeMeasureBox.clientWidth;
|
|
51362
|
+
if (isNegative) {
|
|
51363
|
+
return -result;
|
|
51364
|
+
}
|
|
51365
|
+
return result;
|
|
51366
|
+
}
|
|
51367
|
+
function realPixelIndent(element) {
|
|
51368
|
+
var style = element.style;
|
|
51369
|
+
var marginSplit = [0, 0, 0, 0];
|
|
51370
|
+
var marginKeys = style.keys.filter(function (k) { return /margin/.test(k); });
|
|
51371
|
+
var maxMarginLeftIndex = Math.max(marginKeys.indexOf('margin-left'), marginKeys.indexOf('margin'));
|
|
51372
|
+
var marginKey = maxMarginLeftIndex > 0 ? marginKeys[maxMarginLeftIndex] : 'margin-left';
|
|
51373
|
+
var marginLeft;
|
|
51374
|
+
if (marginKey === 'margin') {
|
|
51375
|
+
var margin = style.get('margin');
|
|
51376
|
+
marginSplit = calcMarginParts(margin);
|
|
51377
|
+
marginLeft = marginSplit[3] || 0;
|
|
51378
|
+
}
|
|
51379
|
+
else {
|
|
51380
|
+
marginLeft = style.get(marginKey) || 0;
|
|
51381
|
+
}
|
|
51382
|
+
return convertUnitToPx(marginLeft);
|
|
51383
|
+
}
|
|
51384
|
+
function calcStartBySymbol(symbol) {
|
|
51385
|
+
if (/\d.\d/.test(symbol)) {
|
|
51386
|
+
return symbol.split('.').pop() || null;
|
|
51387
|
+
}
|
|
51388
|
+
if (/^\d/.test(symbol)) {
|
|
51389
|
+
return (parseInt(symbol, 10) || 1).toString();
|
|
51390
|
+
}
|
|
51391
|
+
return null;
|
|
51392
|
+
}
|
|
51393
|
+
|
|
51394
|
+
|
|
51395
|
+
/***/ }),
|
|
51396
|
+
|
|
51397
|
+
/***/ 18352:
|
|
51398
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51399
|
+
|
|
51400
|
+
"use strict";
|
|
51401
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51402
|
+
/* harmony export */ "Lp": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Lp; },
|
|
51403
|
+
/* harmony export */ "Sg": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Sg; },
|
|
51404
|
+
/* harmony export */ "Wb": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Wb; },
|
|
51405
|
+
/* harmony export */ "rd": function() { return /* reexport safe */ _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__.r; },
|
|
51406
|
+
/* harmony export */ "xk": function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__.x; }
|
|
51407
|
+
/* harmony export */ });
|
|
51408
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81723);
|
|
51409
|
+
/* harmony import */ var _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12049);
|
|
51410
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79374);
|
|
51411
|
+
/* harmony import */ var _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45394);
|
|
51412
|
+
/*!
|
|
51413
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
51414
|
+
* See LICENSE.md in the project root for license information.
|
|
51415
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
51416
|
+
*/
|
|
51417
|
+
|
|
51418
|
+
|
|
51419
|
+
|
|
51420
|
+
|
|
51421
|
+
|
|
51422
|
+
|
|
51423
|
+
/***/ }),
|
|
51424
|
+
|
|
51425
|
+
/***/ 79374:
|
|
51426
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51427
|
+
|
|
51428
|
+
"use strict";
|
|
51429
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51430
|
+
/* harmony export */ "W": function() { return /* binding */ transformWordToHtml; }
|
|
51431
|
+
/* harmony export */ });
|
|
51432
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
51433
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
51434
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44669);
|
|
51435
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
51436
|
+
/*!
|
|
51437
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
51438
|
+
* See LICENSE.md in the project root for license information.
|
|
51439
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
51440
|
+
*/
|
|
51441
|
+
|
|
51442
|
+
|
|
51443
|
+
|
|
51444
|
+
|
|
51445
|
+
function transformWordToHtml(jodit, body, removeStyles, rtf) {
|
|
51446
|
+
var ctx = {
|
|
51447
|
+
jodit: jodit,
|
|
51448
|
+
rtf: rtf
|
|
51449
|
+
};
|
|
51450
|
+
body.forEach(function eachElm(elm) {
|
|
51451
|
+
var e_1, _a;
|
|
51452
|
+
if (!elm) {
|
|
51453
|
+
return;
|
|
51454
|
+
}
|
|
51455
|
+
try {
|
|
51456
|
+
for (var cases_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__values */ .XA)(jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__/* .cases */ .c), cases_1_1 = cases_1.next(); !cases_1_1.done; cases_1_1 = cases_1.next()) {
|
|
51457
|
+
var fn = cases_1_1.value;
|
|
51458
|
+
elm = fn(elm, ctx);
|
|
51459
|
+
if (elm == null) {
|
|
51460
|
+
break;
|
|
51461
|
+
}
|
|
51462
|
+
}
|
|
51463
|
+
}
|
|
51464
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
51465
|
+
finally {
|
|
51466
|
+
try {
|
|
51467
|
+
if (cases_1_1 && !cases_1_1.done && (_a = cases_1.return)) _a.call(cases_1);
|
|
51468
|
+
}
|
|
51469
|
+
finally { if (e_1) throw e_1.error; }
|
|
51470
|
+
}
|
|
51471
|
+
elm === null || elm === void 0 ? void 0 : elm.forEach(eachElm);
|
|
51472
|
+
});
|
|
51473
|
+
if (removeStyles) {
|
|
51474
|
+
body.forEach(function (elm) {
|
|
51475
|
+
elm.style.clear();
|
|
51476
|
+
}, true);
|
|
51477
|
+
}
|
|
51478
|
+
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, function (elm) { return !elm.isComment; }, true, jodit.o.pasteFromWord.allowedStyleProps));
|
|
51479
|
+
}
|
|
51480
|
+
|
|
51481
|
+
|
|
51482
|
+
/***/ }),
|
|
51483
|
+
|
|
51484
|
+
/***/ 70322:
|
|
51485
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51486
|
+
|
|
51487
|
+
"use strict";
|
|
51488
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51489
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51490
|
+
/* harmony export */ "PasteFromWordPro": function() { return /* binding */ PasteFromWordPro; }
|
|
51491
|
+
/* harmony export */ });
|
|
51492
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97582);
|
|
51493
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
51494
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4682);
|
|
51495
|
+
/* harmony import */ var jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54625);
|
|
51496
|
+
/* harmony import */ var jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79501);
|
|
51497
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
51498
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18352);
|
|
51499
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48077);
|
|
51500
|
+
/*!
|
|
51501
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
51502
|
+
* See LICENSE.md in the project root for license information.
|
|
51503
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
51504
|
+
*/
|
|
51505
|
+
|
|
51506
|
+
|
|
51507
|
+
|
|
51508
|
+
|
|
51509
|
+
|
|
51510
|
+
|
|
51511
|
+
|
|
51512
|
+
|
|
51513
|
+
var PasteFromWordPro = /** @class */ (function (_super) {
|
|
51514
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__extends */ .ZT)(PasteFromWordPro, _super);
|
|
51515
|
+
function PasteFromWordPro() {
|
|
51516
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
51517
|
+
}
|
|
51518
|
+
PasteFromWordPro.prototype.insertFromWordByType = function (e, html, insertType, texts) {
|
|
51519
|
+
var _a;
|
|
51520
|
+
if (this.j.o.pasteFromWord.enable &&
|
|
51521
|
+
(insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML || insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT)) {
|
|
51522
|
+
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);
|
|
51523
|
+
// @ts-ignore
|
|
51524
|
+
if (this.j.o.beautifyHTML) {
|
|
51525
|
+
var value = (_a = this.j.events) === null || _a === void 0 ? void 0 : _a.fire('beautifyHTML', html);
|
|
51526
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_7__/* .isString */ .H)(value)) {
|
|
51527
|
+
html = value;
|
|
51528
|
+
}
|
|
51529
|
+
}
|
|
51530
|
+
(0,jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .kU)(e, this.j, html);
|
|
51531
|
+
return;
|
|
51532
|
+
}
|
|
51533
|
+
return _super.prototype.insertFromWordByType.call(this, e, html, insertType, texts);
|
|
51534
|
+
};
|
|
51535
|
+
/** @override */
|
|
51536
|
+
PasteFromWordPro.requires = ['license'];
|
|
51537
|
+
return PasteFromWordPro;
|
|
51538
|
+
}(jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__/* .pasteFromWord */ .L));
|
|
51539
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.remove */ .y.plugins.remove('pasteFromWord');
|
|
51540
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('pasteFromWordPro', PasteFromWordPro);
|
|
49346
51541
|
|
|
49347
51542
|
|
|
49348
51543
|
/***/ }),
|
|
@@ -49867,13 +52062,30 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
49867
52062
|
/******/ }();
|
|
49868
52063
|
/******/
|
|
49869
52064
|
/************************************************************************/
|
|
49870
|
-
|
|
49871
|
-
|
|
49872
|
-
|
|
49873
|
-
|
|
49874
|
-
|
|
49875
|
-
|
|
49876
|
-
|
|
52065
|
+
var __webpack_exports__ = {};
|
|
52066
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
52067
|
+
!function() {
|
|
52068
|
+
"use strict";
|
|
52069
|
+
__webpack_require__.r(__webpack_exports__);
|
|
52070
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
52071
|
+
/* harmony export */ "Jodit": function() { return /* reexport safe */ _jodit_pro__WEBPACK_IMPORTED_MODULE_0__.y; }
|
|
52072
|
+
/* harmony export */ });
|
|
52073
|
+
/* harmony import */ var _jodit_pro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53852);
|
|
52074
|
+
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
52075
|
+
/*!
|
|
52076
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
52077
|
+
* See LICENSE.md in the project root for license information.
|
|
52078
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
52079
|
+
*/
|
|
52080
|
+
|
|
52081
|
+
|
|
52082
|
+
|
|
52083
|
+
// Disable CopyRight
|
|
52084
|
+
function poweredByJodit() { }
|
|
52085
|
+
_jodit_pro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add('poweredByJodit', poweredByJodit);
|
|
52086
|
+
|
|
52087
|
+
}();
|
|
52088
|
+
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
49877
52089
|
/******/ return __webpack_exports__;
|
|
49878
52090
|
/******/ })()
|
|
49879
52091
|
;
|