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/es2018/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v2.0.0-beta.
|
|
4
|
+
* Version: v2.0.0-beta.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2401,7 +2401,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2401
2401
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2402
2402
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2403
2403
|
*/
|
|
2404
|
-
const APP_VERSION = "2.0.0-beta.
|
|
2404
|
+
const APP_VERSION = "2.0.0-beta.21";
|
|
2405
2405
|
// eslint-disable-next-line prettier/prettier
|
|
2406
2406
|
const ES = "es2018";
|
|
2407
2407
|
const IS_ES_MODERN = true;
|
|
@@ -3988,8 +3988,15 @@ class Dom {
|
|
|
3988
3988
|
static safeInsertNode(range, node) {
|
|
3989
3989
|
range.collapsed || range.deleteContents();
|
|
3990
3990
|
const child = Dom.isFragment(node) ? node.lastChild : node;
|
|
3991
|
-
range.
|
|
3992
|
-
|
|
3991
|
+
if (range.startContainer === range.endContainer &&
|
|
3992
|
+
range.collapsed &&
|
|
3993
|
+
Dom.isTag(range.startContainer, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
3994
|
+
Dom.after(range.startContainer, node);
|
|
3995
|
+
}
|
|
3996
|
+
else {
|
|
3997
|
+
range.insertNode(node);
|
|
3998
|
+
child && range.setStartBefore(child);
|
|
3999
|
+
}
|
|
3993
4000
|
range.collapse(true);
|
|
3994
4001
|
// https://developer.mozilla.org/en-US/docs/Web/API/Range/insertNode
|
|
3995
4002
|
// if the new node is to be added to a text Node, that Node is split at the
|
|
@@ -7979,8 +7986,13 @@ function attr(elm, keyOrAttributes, value) {
|
|
|
7979
7986
|
elm.hasAttribute(key) && elm.removeAttribute(key);
|
|
7980
7987
|
}
|
|
7981
7988
|
else {
|
|
7982
|
-
|
|
7983
|
-
|
|
7989
|
+
let replaceValue = value.toString();
|
|
7990
|
+
if (elm.nodeName === 'IMG' &&
|
|
7991
|
+
(key === 'width' || key === 'height')) {
|
|
7992
|
+
replaceValue = replaceValue.replace('px', '');
|
|
7993
|
+
}
|
|
7994
|
+
elm.setAttribute(key, replaceValue);
|
|
7995
|
+
return replaceValue;
|
|
7984
7996
|
}
|
|
7985
7997
|
}
|
|
7986
7998
|
return elm.getAttribute(key);
|
|
@@ -9272,25 +9284,29 @@ function reset(key) {
|
|
|
9272
9284
|
/**
|
|
9273
9285
|
* @module helpers/utils
|
|
9274
9286
|
*/
|
|
9275
|
-
|
|
9287
|
+
/**
|
|
9288
|
+
* Check if element is in view
|
|
9289
|
+
*/
|
|
9290
|
+
function inView(elm, root, doc) {
|
|
9276
9291
|
let rect = elm.getBoundingClientRect(), el = elm;
|
|
9277
9292
|
const top = rect.top, height = rect.height;
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
return false;
|
|
9284
|
-
}
|
|
9285
|
-
// Check if the element is out of view due to a container scrolling
|
|
9286
|
-
if (top + height <= rect.top) {
|
|
9287
|
-
return false;
|
|
9288
|
-
}
|
|
9293
|
+
while (el && el !== root && el.parentNode) {
|
|
9294
|
+
el = el.parentNode;
|
|
9295
|
+
rect = el.getBoundingClientRect();
|
|
9296
|
+
if (!(top <= rect.bottom)) {
|
|
9297
|
+
return false;
|
|
9289
9298
|
}
|
|
9290
|
-
|
|
9291
|
-
|
|
9299
|
+
// Check if the element is out of view due to a container scrolling
|
|
9300
|
+
if (top + height <= rect.top) {
|
|
9301
|
+
return false;
|
|
9302
|
+
}
|
|
9303
|
+
}
|
|
9304
|
+
// Check it's within the document viewport
|
|
9292
9305
|
return (top <= ((doc.documentElement && doc.documentElement.clientHeight) || 0));
|
|
9293
|
-
}
|
|
9306
|
+
}
|
|
9307
|
+
/**
|
|
9308
|
+
* Scroll element into view if it is not in view
|
|
9309
|
+
*/
|
|
9294
9310
|
function scrollIntoViewIfNeeded(elm, root, doc) {
|
|
9295
9311
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isHTMLElement */ .i.isHTMLElement(elm) && !inView(elm, root, doc)) {
|
|
9296
9312
|
if (root.clientHeight !== root.scrollHeight) {
|
|
@@ -10823,14 +10839,14 @@ class Selection {
|
|
|
10823
10839
|
const left = range.cloneRange();
|
|
10824
10840
|
left.collapse(true);
|
|
10825
10841
|
const fakeLeft = this.j.createInside.fake();
|
|
10826
|
-
|
|
10842
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(left, fakeLeft);
|
|
10827
10843
|
range.setStartBefore(fakeLeft);
|
|
10828
10844
|
const result = [fakeLeft];
|
|
10829
10845
|
if (!range.collapsed) {
|
|
10830
10846
|
const right = range.cloneRange();
|
|
10831
10847
|
right.collapse(false);
|
|
10832
10848
|
const fakeRight = this.j.createInside.fake();
|
|
10833
|
-
|
|
10849
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(right, fakeRight);
|
|
10834
10850
|
range.setEndAfter(fakeRight);
|
|
10835
10851
|
result.push(fakeRight);
|
|
10836
10852
|
}
|
|
@@ -11049,7 +11065,6 @@ class Selection {
|
|
|
11049
11065
|
}
|
|
11050
11066
|
const sel = this.sel;
|
|
11051
11067
|
this.j.history.snapshot.transaction(() => {
|
|
11052
|
-
var _a;
|
|
11053
11068
|
if (!this.isCollapsed()) {
|
|
11054
11069
|
this.j.execCommand('Delete');
|
|
11055
11070
|
}
|
|
@@ -11057,13 +11072,7 @@ class Selection {
|
|
|
11057
11072
|
if (sel && sel.rangeCount) {
|
|
11058
11073
|
const range = sel.getRangeAt(0);
|
|
11059
11074
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isOrContains */ .i.isOrContains(this.area, range.commonAncestorContainer)) {
|
|
11060
|
-
|
|
11061
|
-
range.collapsed) {
|
|
11062
|
-
(_a = range.startContainer.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(node, range.startContainer);
|
|
11063
|
-
}
|
|
11064
|
-
else {
|
|
11065
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
11066
|
-
}
|
|
11075
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
11067
11076
|
}
|
|
11068
11077
|
else {
|
|
11069
11078
|
this.area.appendChild(node);
|
|
@@ -11072,14 +11081,26 @@ class Selection {
|
|
|
11072
11081
|
else {
|
|
11073
11082
|
this.area.appendChild(node);
|
|
11074
11083
|
}
|
|
11084
|
+
const setCursor = (node) => {
|
|
11085
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isBlock */ .i.isBlock(node)) {
|
|
11086
|
+
const child = node.lastChild;
|
|
11087
|
+
if (child) {
|
|
11088
|
+
return setCursor(child);
|
|
11089
|
+
}
|
|
11090
|
+
}
|
|
11091
|
+
this.setCursorAfter(node);
|
|
11092
|
+
};
|
|
11075
11093
|
if (insertCursorAfter) {
|
|
11076
11094
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isFragment */ .i.isFragment(node)) {
|
|
11077
|
-
child &&
|
|
11095
|
+
child && setCursor(child);
|
|
11078
11096
|
}
|
|
11079
11097
|
else {
|
|
11080
|
-
|
|
11098
|
+
setCursor(node);
|
|
11081
11099
|
}
|
|
11082
11100
|
}
|
|
11101
|
+
if (this.j.o.scrollToPastedContent) {
|
|
11102
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(child !== null && child !== void 0 ? child : node, this.j.editor, this.doc);
|
|
11103
|
+
}
|
|
11083
11104
|
});
|
|
11084
11105
|
if (fireChange && this.j.events) {
|
|
11085
11106
|
this.j.__imdSynchronizeValues();
|
|
@@ -15819,6 +15840,13 @@ Icon.__cache = new Map();
|
|
|
15819
15840
|
|
|
15820
15841
|
|
|
15821
15842
|
|
|
15843
|
+
const EVENTS_FOR_AUTOCLOSE = [
|
|
15844
|
+
'escape',
|
|
15845
|
+
'cut',
|
|
15846
|
+
'delete',
|
|
15847
|
+
'backSpaceAfterDelete',
|
|
15848
|
+
'beforeCommandDelete'
|
|
15849
|
+
];
|
|
15822
15850
|
class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .u {
|
|
15823
15851
|
/** @override */
|
|
15824
15852
|
className() {
|
|
@@ -16057,7 +16085,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16057
16085
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.on */ .TB.on('closeAllPopups', this.close);
|
|
16058
16086
|
if (this.smart) {
|
|
16059
16087
|
this.j.e
|
|
16060
|
-
.on(
|
|
16088
|
+
.on(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
16061
16089
|
.on('mousedown touchstart', this.closeOnOutsideClick)
|
|
16062
16090
|
.on(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
16063
16091
|
}
|
|
@@ -16076,7 +16104,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16076
16104
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.off */ .TB.off('closeAllPopups', this.close);
|
|
16077
16105
|
if (this.smart) {
|
|
16078
16106
|
this.j.e
|
|
16079
|
-
.off(
|
|
16107
|
+
.off(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
16080
16108
|
.off('mousedown touchstart', this.closeOnOutsideClick)
|
|
16081
16109
|
.off(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
16082
16110
|
}
|
|
@@ -17267,7 +17295,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17267
17295
|
* })
|
|
17268
17296
|
* ```
|
|
17269
17297
|
*/
|
|
17270
|
-
result = this.e.fire(
|
|
17298
|
+
result = this.e.fire(`beforeCommand${(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ucfirst)(command)}`, showUI, value, ...args);
|
|
17299
|
+
if (result !== false) {
|
|
17300
|
+
result = this.e.fire('beforeCommand', command, showUI, value, ...args);
|
|
17301
|
+
}
|
|
17271
17302
|
if (result !== false) {
|
|
17272
17303
|
result = this.__execCustomCommands(command, showUI, value, ...args);
|
|
17273
17304
|
}
|
|
@@ -32641,7 +32672,7 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plug
|
|
|
32641
32672
|
* Hide opened popup
|
|
32642
32673
|
*/
|
|
32643
32674
|
hidePopup(type) {
|
|
32644
|
-
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type) {
|
|
32675
|
+
if (this.popup.isOpened && (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type)) {
|
|
32645
32676
|
this.popup.close();
|
|
32646
32677
|
}
|
|
32647
32678
|
}
|
|
@@ -32804,7 +32835,7 @@ inlinePopup.requires = ['select'];
|
|
|
32804
32835
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.wait)((ctx) => !ctx.j.isLocked)
|
|
32805
32836
|
], inlinePopup.prototype, "showPopup", null);
|
|
32806
32837
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
32807
|
-
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)(':clickEditor'),
|
|
32838
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)([':clickEditor', ':beforeCommandDelete', ':backSpaceAfterDelete']),
|
|
32808
32839
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.autobind
|
|
32809
32840
|
], inlinePopup.prototype, "hidePopup", null);
|
|
32810
32841
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
@@ -34856,6 +34887,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__/* .pluginSystem.add */ .pw.add('p
|
|
|
34856
34887
|
|
|
34857
34888
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.askBeforePasteHTML = true;
|
|
34858
34889
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.processPasteHTML = true;
|
|
34890
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.scrollToPastedContent = true;
|
|
34859
34891
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteHTMLActionList = [
|
|
34860
34892
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
34861
34893
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
@@ -35157,7 +35189,7 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
35157
35189
|
text = result;
|
|
35158
35190
|
}
|
|
35159
35191
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(text) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isNode */ .i.isNode(text)) {
|
|
35160
|
-
this.
|
|
35192
|
+
this.__insertByType(e, text, this.j.o.defaultActionOnPaste);
|
|
35161
35193
|
}
|
|
35162
35194
|
e.preventDefault();
|
|
35163
35195
|
e.stopPropagation();
|
|
@@ -35167,35 +35199,35 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
35167
35199
|
* Process usual HTML text fragment
|
|
35168
35200
|
*/
|
|
35169
35201
|
processHTML(e, html) {
|
|
35170
|
-
if (this.j.o.askBeforePasteHTML) {
|
|
35171
|
-
|
|
35172
|
-
|
|
35173
|
-
|
|
35174
|
-
|
|
35175
|
-
|
|
35176
|
-
|
|
35177
|
-
}
|
|
35178
|
-
if (this._isDialogOpened) {
|
|
35202
|
+
if (!this.j.o.askBeforePasteHTML) {
|
|
35203
|
+
return false;
|
|
35204
|
+
}
|
|
35205
|
+
if (this.j.o.memorizeChoiceWhenPasteFragment) {
|
|
35206
|
+
const cached = this.pasteStack.find(cachedItem => cachedItem.html === html);
|
|
35207
|
+
if (cached) {
|
|
35208
|
+
this.__insertByType(e, html, cached.action || this.j.o.defaultActionOnPaste);
|
|
35179
35209
|
return true;
|
|
35180
35210
|
}
|
|
35181
|
-
|
|
35182
|
-
|
|
35183
|
-
this.insertByType(e, html, insertType);
|
|
35184
|
-
}, this.j.o.pasteHTMLActionList);
|
|
35185
|
-
if (dialog) {
|
|
35186
|
-
this._isDialogOpened = true;
|
|
35187
|
-
dialog.e.on('beforeClose', () => {
|
|
35188
|
-
this._isDialogOpened = false;
|
|
35189
|
-
});
|
|
35190
|
-
}
|
|
35211
|
+
}
|
|
35212
|
+
if (this._isDialogOpened) {
|
|
35191
35213
|
return true;
|
|
35192
35214
|
}
|
|
35193
|
-
|
|
35215
|
+
const dialog = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__/* .askInsertTypeDialog */ .$t)(this.j, 'Your code is similar to HTML. Keep as HTML?', 'Paste as HTML', insertType => {
|
|
35216
|
+
this._isDialogOpened = false;
|
|
35217
|
+
this.__insertByType(e, html, insertType);
|
|
35218
|
+
}, this.j.o.pasteHTMLActionList);
|
|
35219
|
+
if (dialog) {
|
|
35220
|
+
this._isDialogOpened = true;
|
|
35221
|
+
dialog.e.on('beforeClose', () => {
|
|
35222
|
+
this._isDialogOpened = false;
|
|
35223
|
+
});
|
|
35224
|
+
}
|
|
35225
|
+
return true;
|
|
35194
35226
|
}
|
|
35195
35227
|
/**
|
|
35196
35228
|
* Insert HTML by option type
|
|
35197
35229
|
*/
|
|
35198
|
-
|
|
35230
|
+
__insertByType(e, html, action) {
|
|
35199
35231
|
this.pasteStack.push({ html, action });
|
|
35200
35232
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(html)) {
|
|
35201
35233
|
this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.CLIPBOARD_ID, html);
|
|
@@ -41967,7 +41999,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41967
41999
|
|
|
41968
42000
|
/***/ }),
|
|
41969
42001
|
|
|
41970
|
-
/***/
|
|
42002
|
+
/***/ 68353:
|
|
42003
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
42004
|
+
|
|
42005
|
+
"use strict";
|
|
42006
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
42007
|
+
/*!
|
|
42008
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42009
|
+
* See LICENSE.md in the project root for license information.
|
|
42010
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42011
|
+
*/
|
|
42012
|
+
|
|
42013
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font.list = {
|
|
42014
|
+
'andale mono,monospace': 'Andale Mono',
|
|
42015
|
+
'arial,helvetica,sans-serif': 'Arial',
|
|
42016
|
+
'arial black,sans-serif': 'Arial Black',
|
|
42017
|
+
'book antiqua,palatino,serif': 'Book Antiqua',
|
|
42018
|
+
'comic sans ms,sans-serif': 'Comic Sans MS',
|
|
42019
|
+
'courier new,courier,monospace': 'Courier New',
|
|
42020
|
+
'georgia,palatino,serif': 'Georgia',
|
|
42021
|
+
'helvetica,arial,sans-serif': 'Helvetica',
|
|
42022
|
+
'impact,charcoal,sans-serif': 'Impact',
|
|
42023
|
+
'symbol,sans-serif': 'Symbol',
|
|
42024
|
+
'tahoma,arial,helvetica,sans-serif': 'Tahoma',
|
|
42025
|
+
'terminal,monaco,monospace': 'Terminal',
|
|
42026
|
+
'times new roman,times,serif': 'Times New Roman',
|
|
42027
|
+
'trebuchet ms,geneva,sans-serif': 'Trebuchet MS',
|
|
42028
|
+
'verdana,geneva,sans-serif': 'Verdana',
|
|
42029
|
+
webdings: 'Webdings',
|
|
42030
|
+
'wingdings,zapf dingbats': 'Wingdings'
|
|
42031
|
+
};
|
|
42032
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.loadExternalConfig = true;
|
|
42033
|
+
|
|
42034
|
+
|
|
42035
|
+
/***/ }),
|
|
42036
|
+
|
|
42037
|
+
/***/ 53852:
|
|
41971
42038
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41972
42039
|
|
|
41973
42040
|
"use strict";
|
|
@@ -42024,62 +42091,448 @@ class JoditPro extends jodit_index__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .h {
|
|
|
42024
42091
|
|
|
42025
42092
|
/***/ }),
|
|
42026
42093
|
|
|
42027
|
-
/***/
|
|
42028
|
-
/***/ (function(__unused_webpack_module,
|
|
42094
|
+
/***/ 93123:
|
|
42095
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42029
42096
|
|
|
42030
42097
|
"use strict";
|
|
42031
|
-
|
|
42098
|
+
__webpack_require__.r(__webpack_exports__);
|
|
42099
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42100
|
+
/* harmony export */ "autocomplete": function() { return /* binding */ autocomplete; }
|
|
42101
|
+
/* harmony export */ });
|
|
42102
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(97582);
|
|
42103
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
|
|
42104
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77628);
|
|
42105
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
|
|
42106
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95582);
|
|
42107
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44913);
|
|
42108
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19797);
|
|
42109
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11612);
|
|
42110
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77325);
|
|
42111
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53852);
|
|
42112
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(47325);
|
|
42032
42113
|
/*!
|
|
42033
42114
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42034
42115
|
* See LICENSE.md in the project root for license information.
|
|
42035
42116
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42036
42117
|
*/
|
|
42037
42118
|
|
|
42038
|
-
|
|
42039
|
-
|
|
42040
|
-
|
|
42041
|
-
|
|
42042
|
-
|
|
42043
|
-
|
|
42044
|
-
|
|
42045
|
-
|
|
42046
|
-
|
|
42047
|
-
|
|
42048
|
-
|
|
42049
|
-
|
|
42050
|
-
|
|
42051
|
-
|
|
42052
|
-
|
|
42053
|
-
|
|
42054
|
-
webdings: 'Webdings',
|
|
42055
|
-
'wingdings,zapf dingbats': 'Wingdings'
|
|
42119
|
+
|
|
42120
|
+
|
|
42121
|
+
|
|
42122
|
+
|
|
42123
|
+
|
|
42124
|
+
|
|
42125
|
+
|
|
42126
|
+
|
|
42127
|
+
|
|
42128
|
+
|
|
42129
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.autocomplete = {
|
|
42130
|
+
sources: [],
|
|
42131
|
+
maxItems: 50,
|
|
42132
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
42133
|
+
itemRenderer: (item) => { var _a; return (_a = item.title) !== null && _a !== void 0 ? _a : item.value; },
|
|
42134
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
42056
42135
|
};
|
|
42057
|
-
|
|
42136
|
+
class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
|
|
42137
|
+
constructor() {
|
|
42138
|
+
super(...arguments);
|
|
42139
|
+
/** @override */
|
|
42140
|
+
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.fatMode */ .y.fatMode;
|
|
42141
|
+
this.sources = [];
|
|
42142
|
+
}
|
|
42143
|
+
/** @override */
|
|
42144
|
+
afterInit(jodit) {
|
|
42145
|
+
this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .G(jodit);
|
|
42146
|
+
this.popup.setMod('padding', false);
|
|
42147
|
+
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .F(jodit);
|
|
42148
|
+
this.popup.setContent(this.list.container);
|
|
42149
|
+
jodit.e
|
|
42150
|
+
.on('select.autocomplete', (item) => {
|
|
42151
|
+
let insertValue = item.value;
|
|
42152
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(item.insertValueRenderer)) {
|
|
42153
|
+
insertValue = item.insertValueRenderer(item);
|
|
42154
|
+
}
|
|
42155
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom.isNode */ .i.isNode(insertValue)) {
|
|
42156
|
+
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
42157
|
+
}
|
|
42158
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .replaceTextLeftOfCursorAfterSpace */ .p)(jodit.s.range, insertValue);
|
|
42159
|
+
this.j.s.setCursorAfter(insertValue);
|
|
42160
|
+
this.j.synchronizeValues();
|
|
42161
|
+
this.popup.close();
|
|
42162
|
+
})
|
|
42163
|
+
.on('keydown.autocomplete', this.onKeyDown)
|
|
42164
|
+
.on('keydown.autocomplete', this.onKeyControlDown, {
|
|
42165
|
+
top: true
|
|
42166
|
+
})
|
|
42167
|
+
.on('beforeEnter.autocomplete', this.onEnter, { top: true })
|
|
42168
|
+
.on('autocomplete.autocomplete', this.onAutoComplete)
|
|
42169
|
+
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource);
|
|
42170
|
+
}
|
|
42171
|
+
registerAutocompleteSource(source) {
|
|
42172
|
+
this.sources.push(source);
|
|
42173
|
+
}
|
|
42174
|
+
static isControlKey(key) {
|
|
42175
|
+
return (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN ||
|
|
42176
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ||
|
|
42177
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ENTER ||
|
|
42178
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB);
|
|
42179
|
+
}
|
|
42180
|
+
async onKeyDown(e) {
|
|
42181
|
+
var _a, _b;
|
|
42182
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ESC) {
|
|
42183
|
+
this.popup.isOpened && this.popup.close();
|
|
42184
|
+
return;
|
|
42185
|
+
}
|
|
42186
|
+
const { s } = this.j;
|
|
42187
|
+
if (autocomplete.isControlKey(e.key) ||
|
|
42188
|
+
!s.isInsideArea ||
|
|
42189
|
+
!s.isCollapsed) {
|
|
42190
|
+
return;
|
|
42191
|
+
}
|
|
42192
|
+
const range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
|
|
42193
|
+
? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
|
|
42194
|
+
: null;
|
|
42195
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .getTextLeftOfCursor */ .Y)(range).split(' ').pop();
|
|
42196
|
+
if (query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length) {
|
|
42197
|
+
const result = await this.onAutoComplete(query);
|
|
42198
|
+
if (result.length) {
|
|
42199
|
+
return this.openPopup(result);
|
|
42200
|
+
}
|
|
42201
|
+
}
|
|
42202
|
+
if (this.popup.isOpened) {
|
|
42203
|
+
this.popup.close();
|
|
42204
|
+
}
|
|
42205
|
+
}
|
|
42206
|
+
onKeyControlDown(e) {
|
|
42207
|
+
if (this.popup.isOpened && autocomplete.isControlKey(e.key)) {
|
|
42208
|
+
switch (e.key) {
|
|
42209
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN:
|
|
42210
|
+
this.list.selectNext();
|
|
42211
|
+
break;
|
|
42212
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP:
|
|
42213
|
+
this.list.selectPrevious();
|
|
42214
|
+
break;
|
|
42215
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB:
|
|
42216
|
+
this.list.select();
|
|
42217
|
+
break;
|
|
42218
|
+
}
|
|
42219
|
+
this.j.e.stopPropagation(e.type);
|
|
42220
|
+
return false;
|
|
42221
|
+
}
|
|
42222
|
+
}
|
|
42223
|
+
onEnter() {
|
|
42224
|
+
if (this.popup.isOpened) {
|
|
42225
|
+
this.list.select();
|
|
42226
|
+
return false;
|
|
42227
|
+
}
|
|
42228
|
+
}
|
|
42229
|
+
async onAutoComplete(query) {
|
|
42230
|
+
const result = [];
|
|
42231
|
+
await Promise.all(this.sources
|
|
42232
|
+
.concat(this.j.o.autocomplete.sources)
|
|
42233
|
+
.map(async (source) => {
|
|
42234
|
+
result.push(...(await this.resolveFeed(query, source)));
|
|
42235
|
+
}));
|
|
42236
|
+
return result;
|
|
42237
|
+
}
|
|
42238
|
+
async resolveFeed(query, feed, baseSource) {
|
|
42239
|
+
let parts;
|
|
42240
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(feed)) {
|
|
42241
|
+
feed = await feed;
|
|
42242
|
+
}
|
|
42243
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(feed)) {
|
|
42244
|
+
parts = await feed(query);
|
|
42245
|
+
}
|
|
42246
|
+
else if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(feed)) {
|
|
42247
|
+
const arrayFeed = feed, { isMatchedQuery } = this.j.o.autocomplete;
|
|
42248
|
+
parts = arrayFeed
|
|
42249
|
+
.filter((item) => {
|
|
42250
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
42251
|
+
return isMatchedQuery(query, item);
|
|
42252
|
+
}
|
|
42253
|
+
return isMatchedQuery(query, item.value);
|
|
42254
|
+
})
|
|
42255
|
+
.map((item) => {
|
|
42256
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
42257
|
+
return { title: item, value: item };
|
|
42258
|
+
}
|
|
42259
|
+
return item;
|
|
42260
|
+
});
|
|
42261
|
+
}
|
|
42262
|
+
else {
|
|
42263
|
+
parts = await this.resolveFeed(query, feed.feed, feed);
|
|
42264
|
+
}
|
|
42265
|
+
if (parts && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(parts)) {
|
|
42266
|
+
const { itemRenderer, insertValueRenderer, maxItems } = this.j.o.autocomplete;
|
|
42267
|
+
parts = parts.map((item) => {
|
|
42268
|
+
var _a, _b;
|
|
42269
|
+
return ({
|
|
42270
|
+
itemRenderer: (_a = baseSource === null || baseSource === void 0 ? void 0 : baseSource.itemRenderer) !== null && _a !== void 0 ? _a : itemRenderer,
|
|
42271
|
+
insertValueRenderer: (_b = baseSource === null || baseSource === void 0 ? void 0 : baseSource.insertValueRenderer) !== null && _b !== void 0 ? _b : insertValueRenderer,
|
|
42272
|
+
...item
|
|
42273
|
+
});
|
|
42274
|
+
});
|
|
42275
|
+
return parts.slice(0, maxItems);
|
|
42276
|
+
}
|
|
42277
|
+
return [];
|
|
42278
|
+
}
|
|
42279
|
+
openPopup(result) {
|
|
42280
|
+
this.list.build(result);
|
|
42281
|
+
this.popup.open(() => {
|
|
42282
|
+
const { j } = this;
|
|
42283
|
+
const rect = j.s.range.getBoundingClientRect();
|
|
42284
|
+
const bound = {
|
|
42285
|
+
left: rect.left,
|
|
42286
|
+
top: rect.top,
|
|
42287
|
+
height: rect.height,
|
|
42288
|
+
width: rect.width
|
|
42289
|
+
};
|
|
42290
|
+
if (j.o.iframe && j.iframe) {
|
|
42291
|
+
const pos = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(j.iframe, j);
|
|
42292
|
+
bound.top += pos.top;
|
|
42293
|
+
bound.left += pos.left;
|
|
42294
|
+
}
|
|
42295
|
+
return bound;
|
|
42296
|
+
});
|
|
42297
|
+
}
|
|
42298
|
+
/** @override */
|
|
42299
|
+
beforeDestruct(jodit) {
|
|
42300
|
+
jodit.e
|
|
42301
|
+
.off(this.list)
|
|
42302
|
+
.off('keydown.autocomplete', this.onKeyDown)
|
|
42303
|
+
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
42304
|
+
.off('.autocomplete');
|
|
42305
|
+
this.list.destruct();
|
|
42306
|
+
this.popup.destruct();
|
|
42307
|
+
}
|
|
42308
|
+
}
|
|
42309
|
+
/** @override */
|
|
42310
|
+
autocomplete.requires = ['enter', 'license'];
|
|
42311
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42312
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42313
|
+
], autocomplete.prototype, "registerAutocompleteSource", null);
|
|
42314
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42315
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
|
|
42316
|
+
], autocomplete.prototype, "onKeyDown", null);
|
|
42317
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42318
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42319
|
+
], autocomplete.prototype, "onKeyControlDown", null);
|
|
42320
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42321
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42322
|
+
], autocomplete.prototype, "onEnter", null);
|
|
42323
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42324
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42325
|
+
], autocomplete.prototype, "onAutoComplete", null);
|
|
42326
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42327
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42328
|
+
], autocomplete.prototype, "resolveFeed", null);
|
|
42329
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.plugins.add */ .y.plugins.add('autocomplete', autocomplete);
|
|
42058
42330
|
|
|
42059
42331
|
|
|
42060
42332
|
/***/ }),
|
|
42061
42333
|
|
|
42062
|
-
/***/
|
|
42334
|
+
/***/ 47325:
|
|
42063
42335
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42064
42336
|
|
|
42065
42337
|
"use strict";
|
|
42066
|
-
__webpack_require__.r(__webpack_exports__);
|
|
42067
42338
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42068
|
-
/* harmony export */ "
|
|
42339
|
+
/* harmony export */ "Y": function() { return /* binding */ getTextLeftOfCursor; },
|
|
42340
|
+
/* harmony export */ "p": function() { return /* binding */ replaceTextLeftOfCursorAfterSpace; }
|
|
42069
42341
|
/* harmony export */ });
|
|
42070
|
-
/* harmony import */ var
|
|
42071
|
-
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
42342
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44913);
|
|
42072
42343
|
/*!
|
|
42073
42344
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42074
42345
|
* See LICENSE.md in the project root for license information.
|
|
42075
42346
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42076
42347
|
*/
|
|
42077
42348
|
|
|
42349
|
+
/**
|
|
42350
|
+
* For collapsed selection return left text value before cursor
|
|
42351
|
+
* @example
|
|
42352
|
+
* ```
|
|
42353
|
+
* <p><string>test</strong>pop|</p> => pop
|
|
42354
|
+
* <p><string>test|</strong>pop</p> => test
|
|
42355
|
+
* <p><string>te|st</strong>pop</p> => te
|
|
42356
|
+
* ```
|
|
42357
|
+
*/
|
|
42358
|
+
function getTextLeftOfCursor(range) {
|
|
42359
|
+
var _a, _b, _c, _d;
|
|
42360
|
+
const { startContainer, startOffset } = range;
|
|
42361
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42362
|
+
return (_b = (_a = startContainer.nodeValue) === null || _a === void 0 ? void 0 : _a.substr(0, startOffset)) !== null && _b !== void 0 ? _b : '';
|
|
42363
|
+
}
|
|
42364
|
+
const node = startContainer.childNodes[startOffset];
|
|
42365
|
+
if (!node) {
|
|
42366
|
+
return '';
|
|
42367
|
+
}
|
|
42368
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(node)) {
|
|
42369
|
+
return (_c = node.nodeValue) !== null && _c !== void 0 ? _c : '';
|
|
42370
|
+
}
|
|
42371
|
+
const previous = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.findNotEmptyNeighbor */ .i.findNotEmptyNeighbor(node, true, startContainer);
|
|
42372
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(previous)) {
|
|
42373
|
+
return (_d = node.nodeValue) !== null && _d !== void 0 ? _d : '';
|
|
42374
|
+
}
|
|
42375
|
+
return '';
|
|
42376
|
+
}
|
|
42377
|
+
/**
|
|
42378
|
+
* For collapsed selection replace part of left text value before cursor but started after space
|
|
42379
|
+
* @example
|
|
42380
|
+
* ```
|
|
42381
|
+
* <p><string>test</strong>pap|</p> + pappy = <p><string>test</strong>pappy|</p>
|
|
42382
|
+
* <p><string>test</strong>pap| test</p> + pappy = <p><string>test</strong>pappy| test</p>
|
|
42383
|
+
* <p><string>test</strong>stat pap| test</p> + pappy = <p><string>test</strong>stat pappy| test</p>
|
|
42384
|
+
* ```
|
|
42385
|
+
*/
|
|
42386
|
+
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
42387
|
+
var _a, _b, _c;
|
|
42388
|
+
// eslint-disable-next-line prefer-const
|
|
42389
|
+
let { startContainer, startOffset } = range;
|
|
42390
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42391
|
+
startContainer = startContainer.childNodes[startOffset - 1];
|
|
42392
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42393
|
+
startOffset = (_b = (_a = startContainer.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
42394
|
+
}
|
|
42395
|
+
}
|
|
42396
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42397
|
+
const value = (_c = startContainer.nodeValue) !== null && _c !== void 0 ? _c : '', leftSide = value.substring(0, startOffset), rightSide = value.substring(startOffset);
|
|
42398
|
+
const words = leftSide.split(' ');
|
|
42399
|
+
words[words.length - 1] = '';
|
|
42400
|
+
const newLeftSide = words.join(' ');
|
|
42401
|
+
startContainer.nodeValue = newLeftSide + rightSide;
|
|
42402
|
+
range.setStart(startContainer, newLeftSide.length);
|
|
42403
|
+
range.insertNode(elm);
|
|
42404
|
+
return;
|
|
42405
|
+
}
|
|
42406
|
+
}
|
|
42078
42407
|
|
|
42079
42408
|
|
|
42080
|
-
|
|
42081
|
-
|
|
42082
|
-
|
|
42409
|
+
/***/ }),
|
|
42410
|
+
|
|
42411
|
+
/***/ 77325:
|
|
42412
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42413
|
+
|
|
42414
|
+
"use strict";
|
|
42415
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42416
|
+
/* harmony export */ "F": function() { return /* binding */ Autocomplete; }
|
|
42417
|
+
/* harmony export */ });
|
|
42418
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
42419
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
|
|
42420
|
+
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91630);
|
|
42421
|
+
/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91381);
|
|
42422
|
+
/*!
|
|
42423
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42424
|
+
* See LICENSE.md in the project root for license information.
|
|
42425
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42426
|
+
*/
|
|
42427
|
+
|
|
42428
|
+
|
|
42429
|
+
|
|
42430
|
+
|
|
42431
|
+
|
|
42432
|
+
let Autocomplete = class Autocomplete extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__/* .UIGroup */ .q {
|
|
42433
|
+
constructor() {
|
|
42434
|
+
super(...arguments);
|
|
42435
|
+
this.elements = [];
|
|
42436
|
+
this.currentSelection = -1;
|
|
42437
|
+
}
|
|
42438
|
+
/** @override */
|
|
42439
|
+
className() {
|
|
42440
|
+
return 'Autocomplete';
|
|
42441
|
+
}
|
|
42442
|
+
onChangeSelection(_, previous) {
|
|
42443
|
+
var _a;
|
|
42444
|
+
previous != null && ((_a = this.elements[previous]) === null || _a === void 0 ? void 0 : _a.setMod('active', false));
|
|
42445
|
+
this.elements[this.currentSelection].setMod('active', true);
|
|
42446
|
+
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
42447
|
+
}
|
|
42448
|
+
build(list) {
|
|
42449
|
+
this.clear();
|
|
42450
|
+
list.forEach((elm, index) => {
|
|
42451
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_2__/* .AutocompleteItem */ .h(this.jodit, elm);
|
|
42452
|
+
this.j.e
|
|
42453
|
+
.on(item.container, 'mousedown touchstart', (e) => {
|
|
42454
|
+
e.preventDefault();
|
|
42455
|
+
})
|
|
42456
|
+
.on(item.container, 'click', () => {
|
|
42457
|
+
this.currentSelection = index;
|
|
42458
|
+
this.select();
|
|
42459
|
+
});
|
|
42460
|
+
this.append(item);
|
|
42461
|
+
});
|
|
42462
|
+
this.currentSelection = 0;
|
|
42463
|
+
this.onChangeSelection();
|
|
42464
|
+
}
|
|
42465
|
+
selectNext() {
|
|
42466
|
+
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
42467
|
+
this.currentSelection += 1;
|
|
42468
|
+
}
|
|
42469
|
+
else {
|
|
42470
|
+
this.currentSelection = 0;
|
|
42471
|
+
}
|
|
42472
|
+
}
|
|
42473
|
+
selectPrevious() {
|
|
42474
|
+
if (this.currentSelection - 1 >= 0) {
|
|
42475
|
+
this.currentSelection -= 1;
|
|
42476
|
+
}
|
|
42477
|
+
else {
|
|
42478
|
+
this.currentSelection = this.elements.length - 1;
|
|
42479
|
+
}
|
|
42480
|
+
}
|
|
42481
|
+
select() {
|
|
42482
|
+
this.j.e.fire('select.autocomplete', this.elements[this.currentSelection].item);
|
|
42483
|
+
}
|
|
42484
|
+
};
|
|
42485
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
42486
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.watch)('currentSelection')
|
|
42487
|
+
], Autocomplete.prototype, "onChangeSelection", null);
|
|
42488
|
+
Autocomplete = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
42489
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
42490
|
+
], Autocomplete);
|
|
42491
|
+
|
|
42492
|
+
|
|
42493
|
+
/***/ }),
|
|
42494
|
+
|
|
42495
|
+
/***/ 91381:
|
|
42496
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42497
|
+
|
|
42498
|
+
"use strict";
|
|
42499
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42500
|
+
/* harmony export */ "h": function() { return /* binding */ AutocompleteItem; }
|
|
42501
|
+
/* harmony export */ });
|
|
42502
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84789);
|
|
42503
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71350);
|
|
42504
|
+
/*!
|
|
42505
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42506
|
+
* See LICENSE.md in the project root for license information.
|
|
42507
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42508
|
+
*/
|
|
42509
|
+
|
|
42510
|
+
|
|
42511
|
+
|
|
42512
|
+
class AutocompleteItem extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u {
|
|
42513
|
+
/** @override */
|
|
42514
|
+
className() {
|
|
42515
|
+
return 'AutocompleteItem';
|
|
42516
|
+
}
|
|
42517
|
+
constructor(jodit, item) {
|
|
42518
|
+
var _a;
|
|
42519
|
+
super(jodit);
|
|
42520
|
+
this.item = item;
|
|
42521
|
+
const { container } = this;
|
|
42522
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .mf)(item.itemRenderer)) {
|
|
42523
|
+
const elm = item.itemRenderer(item);
|
|
42524
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .HD)(elm)) {
|
|
42525
|
+
container.innerHTML = elm;
|
|
42526
|
+
}
|
|
42527
|
+
else {
|
|
42528
|
+
container.appendChild(elm);
|
|
42529
|
+
}
|
|
42530
|
+
}
|
|
42531
|
+
else {
|
|
42532
|
+
container.innerText = (_a = item.title) !== null && _a !== void 0 ? _a : item.value;
|
|
42533
|
+
}
|
|
42534
|
+
}
|
|
42535
|
+
}
|
|
42083
42536
|
|
|
42084
42537
|
|
|
42085
42538
|
/***/ }),
|
|
@@ -42088,7 +42541,9 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
42088
42541
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
42089
42542
|
|
|
42090
42543
|
"use strict";
|
|
42091
|
-
/* harmony import */ var
|
|
42544
|
+
/* harmony import */ var jodit_pro_plugins_license_license__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19564);
|
|
42545
|
+
/* harmony import */ var jodit_pro_plugins_autocomplete_autocomplete__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93123);
|
|
42546
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70322);
|
|
42092
42547
|
/*!
|
|
42093
42548
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42094
42549
|
* See LICENSE.md in the project root for license information.
|
|
@@ -42097,6 +42552,8 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
42097
42552
|
|
|
42098
42553
|
|
|
42099
42554
|
|
|
42555
|
+
|
|
42556
|
+
|
|
42100
42557
|
/***/ }),
|
|
42101
42558
|
|
|
42102
42559
|
/***/ 39401:
|
|
@@ -42181,8 +42638,8 @@ __webpack_unused_export__ = domainsHash;
|
|
|
42181
42638
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
42182
42639
|
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46232);
|
|
42183
42640
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11612);
|
|
42184
|
-
/* harmony import */ var
|
|
42185
|
-
/* harmony import */ var
|
|
42641
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
42642
|
+
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39401);
|
|
42186
42643
|
/*!
|
|
42187
42644
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42188
42645
|
* See LICENSE.md in the project root for license information.
|
|
@@ -42202,7 +42659,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42202
42659
|
afterInit(jodit) {
|
|
42203
42660
|
this.j.e.on('checkReserve', async () => {
|
|
42204
42661
|
const code = this.j.o.license, domain = location.host;
|
|
42205
|
-
let valid = (0,
|
|
42662
|
+
let valid = (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(code, domain);
|
|
42206
42663
|
if (!valid && code[12] > 'A' && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.IS_TEST) {
|
|
42207
42664
|
valid = await this.validateLicenseRemote(code, domain);
|
|
42208
42665
|
}
|
|
@@ -42213,7 +42670,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42213
42670
|
beforeDestruct(jodit) { }
|
|
42214
42671
|
async validateLicenseRemote(code, domain) {
|
|
42215
42672
|
const storageKey = 'validateJoditLicenseRemote', newCode = this.j.storage.get(storageKey);
|
|
42216
|
-
if (newCode && (0,
|
|
42673
|
+
if (newCode && (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
42217
42674
|
return true;
|
|
42218
42675
|
}
|
|
42219
42676
|
const s = document.createElement('script');
|
|
@@ -42225,7 +42682,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42225
42682
|
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_5__/* .isBoolean */ .j)(newCode)) {
|
|
42226
42683
|
return res(newCode);
|
|
42227
42684
|
}
|
|
42228
|
-
if ((0,
|
|
42685
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
42229
42686
|
this.j.storage.set(storageKey, newCode);
|
|
42230
42687
|
res(true);
|
|
42231
42688
|
}
|
|
@@ -42244,7 +42701,1547 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42244
42701
|
});
|
|
42245
42702
|
}
|
|
42246
42703
|
}
|
|
42247
|
-
|
|
42704
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('license', license);
|
|
42705
|
+
|
|
42706
|
+
|
|
42707
|
+
/***/ }),
|
|
42708
|
+
|
|
42709
|
+
/***/ 12750:
|
|
42710
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42711
|
+
|
|
42712
|
+
"use strict";
|
|
42713
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42714
|
+
/* harmony export */ "C": function() { return /* binding */ cleanStyles; }
|
|
42715
|
+
/* harmony export */ });
|
|
42716
|
+
/*!
|
|
42717
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42718
|
+
* See LICENSE.md in the project root for license information.
|
|
42719
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42720
|
+
*/
|
|
42721
|
+
const forbiddenStyles = {
|
|
42722
|
+
'text-justify': ['inter-ideograph']
|
|
42723
|
+
};
|
|
42724
|
+
function cleanStyles(elm) {
|
|
42725
|
+
if (elm.isElement && elm.attributes.style) {
|
|
42726
|
+
Object.keys(forbiddenStyles).forEach((key) => {
|
|
42727
|
+
var _a;
|
|
42728
|
+
const values = forbiddenStyles[key];
|
|
42729
|
+
if (elm.style.has(key)) {
|
|
42730
|
+
// @ts-ignore
|
|
42731
|
+
if (values.includes((_a = elm.style.get(key)) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
42732
|
+
elm.style.set(key, null);
|
|
42733
|
+
}
|
|
42734
|
+
}
|
|
42735
|
+
});
|
|
42736
|
+
}
|
|
42737
|
+
return elm;
|
|
42738
|
+
}
|
|
42739
|
+
|
|
42740
|
+
|
|
42741
|
+
/***/ }),
|
|
42742
|
+
|
|
42743
|
+
/***/ 76995:
|
|
42744
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42745
|
+
|
|
42746
|
+
"use strict";
|
|
42747
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42748
|
+
/* harmony export */ "i": function() { return /* binding */ clearAttributes; }
|
|
42749
|
+
/* harmony export */ });
|
|
42750
|
+
/*!
|
|
42751
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42752
|
+
* See LICENSE.md in the project root for license information.
|
|
42753
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42754
|
+
*/
|
|
42755
|
+
const extraAttributes = [
|
|
42756
|
+
'cellspacing',
|
|
42757
|
+
'cellpadding',
|
|
42758
|
+
'border',
|
|
42759
|
+
'v:shapes',
|
|
42760
|
+
'o:spid'
|
|
42761
|
+
];
|
|
42762
|
+
function clearAttributes(elm) {
|
|
42763
|
+
if (/^OLE_LINK\d+$/.test(elm.attributes.name)) {
|
|
42764
|
+
elm.attributes.name = null;
|
|
42765
|
+
if (elm.length === 0) {
|
|
42766
|
+
elm.remove();
|
|
42767
|
+
return null;
|
|
42768
|
+
}
|
|
42769
|
+
}
|
|
42770
|
+
if (elm.attributes.name === '_GoBack') {
|
|
42771
|
+
elm.attributes.name = null;
|
|
42772
|
+
}
|
|
42773
|
+
// Remove extra attributes
|
|
42774
|
+
for (const attr of extraAttributes) {
|
|
42775
|
+
if (elm.attributes[attr]) {
|
|
42776
|
+
elm.attributes[attr] = null;
|
|
42777
|
+
}
|
|
42778
|
+
}
|
|
42779
|
+
return elm;
|
|
42780
|
+
}
|
|
42781
|
+
|
|
42782
|
+
|
|
42783
|
+
/***/ }),
|
|
42784
|
+
|
|
42785
|
+
/***/ 53614:
|
|
42786
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42787
|
+
|
|
42788
|
+
"use strict";
|
|
42789
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42790
|
+
/* harmony export */ "a": function() { return /* binding */ clearClassName; }
|
|
42791
|
+
/* harmony export */ });
|
|
42792
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
42793
|
+
/*!
|
|
42794
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42795
|
+
* See LICENSE.md in the project root for license information.
|
|
42796
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42797
|
+
*/
|
|
42798
|
+
|
|
42799
|
+
const clearClassName = (elm) => {
|
|
42800
|
+
// Normalize or remove class
|
|
42801
|
+
if (elm.attributes.class) {
|
|
42802
|
+
elm.attributes.class = elm.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi, '');
|
|
42803
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .f)(elm.attributes.class)) {
|
|
42804
|
+
elm.attributes.class = null;
|
|
42805
|
+
}
|
|
42806
|
+
}
|
|
42807
|
+
return elm;
|
|
42808
|
+
};
|
|
42809
|
+
|
|
42810
|
+
|
|
42811
|
+
/***/ }),
|
|
42812
|
+
|
|
42813
|
+
/***/ 50353:
|
|
42814
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42815
|
+
|
|
42816
|
+
"use strict";
|
|
42817
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42818
|
+
/* harmony export */ "b": function() { return /* binding */ convertStyleUnitToPixels; }
|
|
42819
|
+
/* harmony export */ });
|
|
42820
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18352);
|
|
42821
|
+
/*!
|
|
42822
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42823
|
+
* See LICENSE.md in the project root for license information.
|
|
42824
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42825
|
+
*/
|
|
42826
|
+
|
|
42827
|
+
const convertStyleUnitToPixels = (elm, { jodit }) => {
|
|
42828
|
+
if (!jodit.o.pasteFromWord.convertUnitsToPixel) {
|
|
42829
|
+
return elm;
|
|
42830
|
+
}
|
|
42831
|
+
const { style } = elm;
|
|
42832
|
+
style.forEach((key) => {
|
|
42833
|
+
const v = style.get(key);
|
|
42834
|
+
if (v) {
|
|
42835
|
+
style.set(key, v
|
|
42836
|
+
.toString()
|
|
42837
|
+
.replace(/\d+(\.\d+)?(pt|cm)/g, (match) => (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__/* .convertUnitToPx */ .Lp)(match) + 'px'));
|
|
42838
|
+
}
|
|
42839
|
+
});
|
|
42840
|
+
return elm;
|
|
42841
|
+
};
|
|
42842
|
+
|
|
42843
|
+
|
|
42844
|
+
/***/ }),
|
|
42845
|
+
|
|
42846
|
+
/***/ 45054:
|
|
42847
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42848
|
+
|
|
42849
|
+
"use strict";
|
|
42850
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42851
|
+
/* harmony export */ "S": function() { return /* binding */ convertToList; }
|
|
42852
|
+
/* harmony export */ });
|
|
42853
|
+
/* unused harmony export removeRedundancyStyle */
|
|
42854
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
42855
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18352);
|
|
42856
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
42857
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19438);
|
|
42858
|
+
/*!
|
|
42859
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42860
|
+
* See LICENSE.md in the project root for license information.
|
|
42861
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42862
|
+
*/
|
|
42863
|
+
|
|
42864
|
+
|
|
42865
|
+
|
|
42866
|
+
|
|
42867
|
+
function convertToList(elm) {
|
|
42868
|
+
var _a;
|
|
42869
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isPseudoLeaf */ .Hh)(elm)) {
|
|
42870
|
+
elm.name = 'li';
|
|
42871
|
+
elm.style.set('text-indent', null);
|
|
42872
|
+
const symbol = getSymbol(elm), listType = /[\da-np-zA-NP-Z].?/.test(symbol) ? 'ol' : 'ul', listStyle = defineOrderedListStyle(symbol, listType);
|
|
42873
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .TYPE_KEY */ .YJ] = listType;
|
|
42874
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf] = listStyle;
|
|
42875
|
+
(0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcListLevels */ .rd)(elm);
|
|
42876
|
+
moveUp(elm);
|
|
42877
|
+
const { parent } = elm;
|
|
42878
|
+
// After move up we inside List or Leaf
|
|
42879
|
+
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)) {
|
|
42880
|
+
const newList = wrapInNewList(elm, listType, symbol, listStyle);
|
|
42881
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(parent)) {
|
|
42882
|
+
newList.remove(); // Not to add to oneself
|
|
42883
|
+
(_a = parent.lastElement) === null || _a === void 0 ? void 0 : _a.append(newList);
|
|
42884
|
+
}
|
|
42885
|
+
return elm;
|
|
42886
|
+
}
|
|
42887
|
+
}
|
|
42888
|
+
return elm;
|
|
42889
|
+
}
|
|
42890
|
+
function moveUp(leaf) {
|
|
42891
|
+
// eslint-disable-next-line no-constant-condition
|
|
42892
|
+
while (leaf) {
|
|
42893
|
+
const prev = leaf.previousElement;
|
|
42894
|
+
// Leaf after P
|
|
42895
|
+
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))) {
|
|
42896
|
+
break;
|
|
42897
|
+
}
|
|
42898
|
+
// Leaf after Leaf
|
|
42899
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isLeaf */ .Be)(prev)) {
|
|
42900
|
+
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]) {
|
|
42901
|
+
break;
|
|
42902
|
+
}
|
|
42903
|
+
// Leaf after leaf with same level and inside the right list
|
|
42904
|
+
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] &&
|
|
42905
|
+
leaf.parent &&
|
|
42906
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, leaf.parent)) {
|
|
42907
|
+
break;
|
|
42908
|
+
}
|
|
42909
|
+
prev.append(leaf);
|
|
42910
|
+
continue;
|
|
42911
|
+
}
|
|
42912
|
+
const list = prev;
|
|
42913
|
+
// Leaf after list with more level
|
|
42914
|
+
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]) {
|
|
42915
|
+
break;
|
|
42916
|
+
}
|
|
42917
|
+
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] &&
|
|
42918
|
+
!(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, list)) {
|
|
42919
|
+
break;
|
|
42920
|
+
}
|
|
42921
|
+
list.append(leaf);
|
|
42922
|
+
}
|
|
42923
|
+
}
|
|
42924
|
+
/**
|
|
42925
|
+
* Remove redundancy default list styles.
|
|
42926
|
+
*/
|
|
42927
|
+
function removeRedundancyStyle(newList) {
|
|
42928
|
+
var _a;
|
|
42929
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(newList) &&
|
|
42930
|
+
((_a = newList.parent) === null || _a === void 0 ? void 0 : _a.name) !== 'li' &&
|
|
42931
|
+
(newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'disc' ||
|
|
42932
|
+
newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'decimal')) {
|
|
42933
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, null);
|
|
42934
|
+
}
|
|
42935
|
+
}
|
|
42936
|
+
function defineOrderedListStyle(symbol, listType) {
|
|
42937
|
+
for (const reg in jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1) {
|
|
42938
|
+
if (RegExp(reg).test(symbol)) {
|
|
42939
|
+
return jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1[reg];
|
|
42940
|
+
}
|
|
42941
|
+
}
|
|
42942
|
+
return listType === 'ol' ? 'decimal' : 'disc';
|
|
42943
|
+
}
|
|
42944
|
+
const getSymbol = (elm) => elm
|
|
42945
|
+
.textBetween((n) => n.isComment && /\[if.*supportLists.*]/.test((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .html */ .dy)(n)), (n) => n.isComment && /\[endif]/.test((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .html */ .dy)(n)))
|
|
42946
|
+
.replace(/ /g, '')
|
|
42947
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
42948
|
+
function wrapInNewList(elm, listType, symbol, listStyle) {
|
|
42949
|
+
const newList = elm.wrap(listType);
|
|
42950
|
+
newList.attributes['start'] = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcStartBySymbol */ .Sg)(symbol);
|
|
42951
|
+
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];
|
|
42952
|
+
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];
|
|
42953
|
+
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];
|
|
42954
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, listStyle);
|
|
42955
|
+
removeRedundancyStyle(newList);
|
|
42956
|
+
return newList;
|
|
42957
|
+
}
|
|
42958
|
+
|
|
42959
|
+
|
|
42960
|
+
/***/ }),
|
|
42961
|
+
|
|
42962
|
+
/***/ 44669:
|
|
42963
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42964
|
+
|
|
42965
|
+
"use strict";
|
|
42966
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42967
|
+
/* harmony export */ "c": function() { return /* binding */ cases; }
|
|
42968
|
+
/* harmony export */ });
|
|
42969
|
+
/* harmony import */ var _convert_to_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45054);
|
|
42970
|
+
/* harmony import */ var _clear_attributes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(76995);
|
|
42971
|
+
/* harmony import */ var _remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76148);
|
|
42972
|
+
/* harmony import */ var _replace_old_tags__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38450);
|
|
42973
|
+
/* harmony import */ var _remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33135);
|
|
42974
|
+
/* harmony import */ var _convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50353);
|
|
42975
|
+
/* harmony import */ var _clear_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53614);
|
|
42976
|
+
/* harmony import */ var _process_links__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62094);
|
|
42977
|
+
/* harmony import */ var _normalize_image_props__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(83432);
|
|
42978
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(38933);
|
|
42979
|
+
/* harmony import */ var _mark_page_break__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50374);
|
|
42980
|
+
/* harmony import */ var _process_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38535);
|
|
42981
|
+
/* harmony import */ var _clean_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12750);
|
|
42982
|
+
/*!
|
|
42983
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42984
|
+
* See LICENSE.md in the project root for license information.
|
|
42985
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42986
|
+
*/
|
|
42987
|
+
|
|
42988
|
+
|
|
42989
|
+
|
|
42990
|
+
|
|
42991
|
+
|
|
42992
|
+
|
|
42993
|
+
|
|
42994
|
+
|
|
42995
|
+
|
|
42996
|
+
|
|
42997
|
+
|
|
42998
|
+
|
|
42999
|
+
|
|
43000
|
+
const cases = [
|
|
43001
|
+
_process_image__WEBPACK_IMPORTED_MODULE_6__/* .processImage */ .F,
|
|
43002
|
+
_mark_page_break__WEBPACK_IMPORTED_MODULE_8__/* .markPageBreakElements */ .a,
|
|
43003
|
+
_remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__/* .removeExtraTags */ .p,
|
|
43004
|
+
_replace_old_tags__WEBPACK_IMPORTED_MODULE_2__/* .replaceOldTags */ .G,
|
|
43005
|
+
_clear_attributes__WEBPACK_IMPORTED_MODULE_9__/* .clearAttributes */ .i,
|
|
43006
|
+
_convert_to_list__WEBPACK_IMPORTED_MODULE_0__/* .convertToList */ .S,
|
|
43007
|
+
_process_links__WEBPACK_IMPORTED_MODULE_10__/* .processLinks */ .z,
|
|
43008
|
+
_remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__/* .removeInsideComment */ .m,
|
|
43009
|
+
_convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__/* .convertStyleUnitToPixels */ .b,
|
|
43010
|
+
_clear_class_name__WEBPACK_IMPORTED_MODULE_5__/* .clearClassName */ .a,
|
|
43011
|
+
_normalize_image_props__WEBPACK_IMPORTED_MODULE_11__/* .normalizeImageProps */ .r,
|
|
43012
|
+
_table__WEBPACK_IMPORTED_MODULE_12__/* .removeWidthFromTableCell */ .Y,
|
|
43013
|
+
_clean_styles__WEBPACK_IMPORTED_MODULE_7__/* .cleanStyles */ .C
|
|
43014
|
+
];
|
|
43015
|
+
|
|
43016
|
+
|
|
43017
|
+
/***/ }),
|
|
43018
|
+
|
|
43019
|
+
/***/ 50374:
|
|
43020
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43021
|
+
|
|
43022
|
+
"use strict";
|
|
43023
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43024
|
+
/* harmony export */ "a": function() { return /* binding */ markPageBreakElements; }
|
|
43025
|
+
/* harmony export */ });
|
|
43026
|
+
/*!
|
|
43027
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43028
|
+
* See LICENSE.md in the project root for license information.
|
|
43029
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43030
|
+
*/
|
|
43031
|
+
const markPageBreakElements = (elm) => {
|
|
43032
|
+
if ((elm.isElement && elm.style.get('page-break-before') === 'always') ||
|
|
43033
|
+
elm.style.get('break-before') === 'page') {
|
|
43034
|
+
elm.attributes['jd-safe'] = true;
|
|
43035
|
+
elm.style.add('page-break-before', 'always');
|
|
43036
|
+
if (elm.isSingle) {
|
|
43037
|
+
elm.name = 'div';
|
|
43038
|
+
}
|
|
43039
|
+
}
|
|
43040
|
+
return elm;
|
|
43041
|
+
};
|
|
43042
|
+
|
|
43043
|
+
|
|
43044
|
+
/***/ }),
|
|
43045
|
+
|
|
43046
|
+
/***/ 83432:
|
|
43047
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43048
|
+
|
|
43049
|
+
"use strict";
|
|
43050
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43051
|
+
/* harmony export */ "r": function() { return /* binding */ normalizeImageProps; }
|
|
43052
|
+
/* harmony export */ });
|
|
43053
|
+
/*!
|
|
43054
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43055
|
+
* See LICENSE.md in the project root for license information.
|
|
43056
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43057
|
+
*/
|
|
43058
|
+
const normalizeImageProps = (elm) => {
|
|
43059
|
+
if (!elm.isElement) {
|
|
43060
|
+
return elm;
|
|
43061
|
+
}
|
|
43062
|
+
if (elm.name === 'img') {
|
|
43063
|
+
if (elm.attributes.align) {
|
|
43064
|
+
elm.style.add('float', elm.attributes.align);
|
|
43065
|
+
elm.attributes.align = null;
|
|
43066
|
+
}
|
|
43067
|
+
if (elm.attributes.hspace) {
|
|
43068
|
+
elm.style.add('marginLeft', elm.attributes.hspace + 'px');
|
|
43069
|
+
elm.style.add('marginRight', elm.attributes.hspace + 'px');
|
|
43070
|
+
elm.attributes.hspace = null;
|
|
43071
|
+
}
|
|
43072
|
+
}
|
|
43073
|
+
return elm;
|
|
43074
|
+
};
|
|
43075
|
+
|
|
43076
|
+
|
|
43077
|
+
/***/ }),
|
|
43078
|
+
|
|
43079
|
+
/***/ 38535:
|
|
43080
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43081
|
+
|
|
43082
|
+
"use strict";
|
|
43083
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43084
|
+
/* harmony export */ "F": function() { return /* binding */ processImage; }
|
|
43085
|
+
/* harmony export */ });
|
|
43086
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
43087
|
+
/*!
|
|
43088
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43089
|
+
* See LICENSE.md in the project root for license information.
|
|
43090
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43091
|
+
*/
|
|
43092
|
+
|
|
43093
|
+
const processImage = (elm, ctx) => {
|
|
43094
|
+
var _a, _b;
|
|
43095
|
+
if (ctx.rtf &&
|
|
43096
|
+
elm.name === '#comment' &&
|
|
43097
|
+
elm.attributes.nodeValue &&
|
|
43098
|
+
elm.attributes.nodeValue.indexOf('<v:shape') !== -1) {
|
|
43099
|
+
if (!ctx.shapes) {
|
|
43100
|
+
ctx.shapes = {};
|
|
43101
|
+
}
|
|
43102
|
+
const elms = ctx.jodit.create.fromHTML(elm.attributes.nodeValue);
|
|
43103
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.toArray)(elms.getElementsByTagName('v:shape')).forEach((e) => {
|
|
43104
|
+
ctx.shapes[e.id] = e.getAttribute('o:spid');
|
|
43105
|
+
});
|
|
43106
|
+
return elm;
|
|
43107
|
+
}
|
|
43108
|
+
if (elm.name !== 'img') {
|
|
43109
|
+
return elm;
|
|
43110
|
+
}
|
|
43111
|
+
if (ctx.rtf && elm.attributes['v:shapes']) {
|
|
43112
|
+
const spid = (_a = ctx.shapes) === null || _a === void 0 ? void 0 : _a[elm.attributes['v:shapes']];
|
|
43113
|
+
if (spid) {
|
|
43114
|
+
const imageMap = (_b = ctx.imageMap) !== null && _b !== void 0 ? _b : {};
|
|
43115
|
+
if (!ctx.imageMap) {
|
|
43116
|
+
ctx.imageMap = imageMap;
|
|
43117
|
+
parseImages(ctx.rtf, 'i', '\\shppict', ctx.imageMap);
|
|
43118
|
+
parseImages(ctx.rtf, 's', '\\shp{', ctx.imageMap);
|
|
43119
|
+
}
|
|
43120
|
+
const a = imageMap[spid.substring(7)];
|
|
43121
|
+
if (a) {
|
|
43122
|
+
const base = [], parsedD = a.hex.match(/[0-9a-f]{2}/gi);
|
|
43123
|
+
if (parsedD) {
|
|
43124
|
+
for (let i = 0; i < parsedD.length; i++) {
|
|
43125
|
+
const digit = parseInt(parsedD[i], 16);
|
|
43126
|
+
base.push(String.fromCharCode(digit));
|
|
43127
|
+
}
|
|
43128
|
+
elm.attributes.src =
|
|
43129
|
+
'data:' + a.type + ';base64,' + btoa(base.join(''));
|
|
43130
|
+
}
|
|
43131
|
+
}
|
|
43132
|
+
}
|
|
43133
|
+
}
|
|
43134
|
+
return elm;
|
|
43135
|
+
};
|
|
43136
|
+
function parseImages(rtf, prefix, separator, imageMap) {
|
|
43137
|
+
const parts = rtf.split(separator);
|
|
43138
|
+
for (const part of parts) {
|
|
43139
|
+
const shapes = part.split('shplid');
|
|
43140
|
+
if (1 < shapes.length) {
|
|
43141
|
+
const shape = shapes[1];
|
|
43142
|
+
let id = '';
|
|
43143
|
+
for (let i = 0; i < shape.length && !/[{ \r\n\\]/.test(shape[i]); i++) {
|
|
43144
|
+
id += shape[i];
|
|
43145
|
+
}
|
|
43146
|
+
const images = shape.split('bliptag');
|
|
43147
|
+
if (images && images.length < 2) {
|
|
43148
|
+
continue;
|
|
43149
|
+
}
|
|
43150
|
+
let format = null;
|
|
43151
|
+
if (images[0].indexOf('pngblip')) {
|
|
43152
|
+
format = 'image/png';
|
|
43153
|
+
}
|
|
43154
|
+
else if (images[0].indexOf('jpegblip') !== -1) {
|
|
43155
|
+
format = 'image/jpeg';
|
|
43156
|
+
}
|
|
43157
|
+
if (!format) {
|
|
43158
|
+
continue;
|
|
43159
|
+
}
|
|
43160
|
+
const endings = images[1].split('}');
|
|
43161
|
+
if (endings && endings.length < 2) {
|
|
43162
|
+
continue;
|
|
43163
|
+
}
|
|
43164
|
+
let result;
|
|
43165
|
+
if (2 < endings.length && endings[0].includes('blipuid')) {
|
|
43166
|
+
result = endings[1].split(' ');
|
|
43167
|
+
}
|
|
43168
|
+
else {
|
|
43169
|
+
result = endings[0].split(' ');
|
|
43170
|
+
if (result && result.length < 2) {
|
|
43171
|
+
continue;
|
|
43172
|
+
}
|
|
43173
|
+
result.shift();
|
|
43174
|
+
}
|
|
43175
|
+
imageMap[prefix + id] = {
|
|
43176
|
+
hex: result.join(''),
|
|
43177
|
+
type: format
|
|
43178
|
+
};
|
|
43179
|
+
}
|
|
43180
|
+
}
|
|
43181
|
+
}
|
|
43182
|
+
|
|
43183
|
+
|
|
43184
|
+
/***/ }),
|
|
43185
|
+
|
|
43186
|
+
/***/ 62094:
|
|
43187
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43188
|
+
|
|
43189
|
+
"use strict";
|
|
43190
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43191
|
+
/* harmony export */ "z": function() { return /* binding */ processLinks; }
|
|
43192
|
+
/* harmony export */ });
|
|
43193
|
+
/*!
|
|
43194
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43195
|
+
* See LICENSE.md in the project root for license information.
|
|
43196
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43197
|
+
*/
|
|
43198
|
+
const processLinks = (elm, ctx) => {
|
|
43199
|
+
var _a;
|
|
43200
|
+
const links = (_a = ctx.links) !== null && _a !== void 0 ? _a : {};
|
|
43201
|
+
if (elm.attributes.href && elm.attributes.href.match(/#.+$/)) {
|
|
43202
|
+
const name = elm.attributes.href.match(/#(.+)$/)[1];
|
|
43203
|
+
links[name] = elm;
|
|
43204
|
+
}
|
|
43205
|
+
if (elm.attributes.name && links[elm.attributes.name]) {
|
|
43206
|
+
const link = links[elm.attributes.name];
|
|
43207
|
+
link.attributes.href = link.attributes.href.replace(/.*#(.*)$/, '#$1');
|
|
43208
|
+
}
|
|
43209
|
+
ctx.links = links;
|
|
43210
|
+
return elm;
|
|
43211
|
+
};
|
|
43212
|
+
|
|
43213
|
+
|
|
43214
|
+
/***/ }),
|
|
43215
|
+
|
|
43216
|
+
/***/ 76148:
|
|
43217
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43218
|
+
|
|
43219
|
+
"use strict";
|
|
43220
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43221
|
+
/* harmony export */ "p": function() { return /* binding */ removeExtraTags; }
|
|
43222
|
+
/* harmony export */ });
|
|
43223
|
+
/*!
|
|
43224
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43225
|
+
* See LICENSE.md in the project root for license information.
|
|
43226
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43227
|
+
*/
|
|
43228
|
+
const extraTags = new Set([
|
|
43229
|
+
'o:p',
|
|
43230
|
+
'xml',
|
|
43231
|
+
'script',
|
|
43232
|
+
'meta',
|
|
43233
|
+
'link',
|
|
43234
|
+
'v:imagedata',
|
|
43235
|
+
'style'
|
|
43236
|
+
]);
|
|
43237
|
+
function removeExtraTags(elm) {
|
|
43238
|
+
// Remove invisible
|
|
43239
|
+
if (elm.style.get('display') === 'none') {
|
|
43240
|
+
elm.remove();
|
|
43241
|
+
return null;
|
|
43242
|
+
}
|
|
43243
|
+
// Remove empty tag
|
|
43244
|
+
if (elm.length === 0 && elm.name === 'span') {
|
|
43245
|
+
elm.remove();
|
|
43246
|
+
return null;
|
|
43247
|
+
}
|
|
43248
|
+
// Remove invalid tags
|
|
43249
|
+
if (extraTags.has(elm.name)) {
|
|
43250
|
+
elm.remove();
|
|
43251
|
+
return null;
|
|
43252
|
+
}
|
|
43253
|
+
return elm;
|
|
43254
|
+
}
|
|
43255
|
+
|
|
43256
|
+
|
|
43257
|
+
/***/ }),
|
|
43258
|
+
|
|
43259
|
+
/***/ 33135:
|
|
43260
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43261
|
+
|
|
43262
|
+
"use strict";
|
|
43263
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43264
|
+
/* harmony export */ "m": function() { return /* binding */ removeInsideComment; }
|
|
43265
|
+
/* harmony export */ });
|
|
43266
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12787);
|
|
43267
|
+
/*!
|
|
43268
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43269
|
+
* See LICENSE.md in the project root for license information.
|
|
43270
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43271
|
+
*/
|
|
43272
|
+
|
|
43273
|
+
let inComment = 0;
|
|
43274
|
+
function removeInsideComment(elm) {
|
|
43275
|
+
if (elm.isComment && /\[if.*(supportLists|gte vml).*]/.test((0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm))) {
|
|
43276
|
+
inComment++;
|
|
43277
|
+
elm.remove();
|
|
43278
|
+
}
|
|
43279
|
+
if (elm.isComment && inComment > 0 && (0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm).includes('[endif]')) {
|
|
43280
|
+
inComment = inComment > 0 ? inComment - 1 : 0;
|
|
43281
|
+
elm.remove();
|
|
43282
|
+
}
|
|
43283
|
+
if (inComment) {
|
|
43284
|
+
if (elm.isText ||
|
|
43285
|
+
(elm.name === 'img' &&
|
|
43286
|
+
(!elm.attributes.src || /^file:/.test(elm.attributes.src)))) {
|
|
43287
|
+
elm.remove();
|
|
43288
|
+
return null;
|
|
43289
|
+
}
|
|
43290
|
+
}
|
|
43291
|
+
return elm;
|
|
43292
|
+
}
|
|
43293
|
+
|
|
43294
|
+
|
|
43295
|
+
/***/ }),
|
|
43296
|
+
|
|
43297
|
+
/***/ 38450:
|
|
43298
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43299
|
+
|
|
43300
|
+
"use strict";
|
|
43301
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43302
|
+
/* harmony export */ "G": function() { return /* binding */ replaceOldTags; }
|
|
43303
|
+
/* harmony export */ });
|
|
43304
|
+
/*!
|
|
43305
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43306
|
+
* See LICENSE.md in the project root for license information.
|
|
43307
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43308
|
+
*/
|
|
43309
|
+
const REPLACE_OLD_TAGS = {
|
|
43310
|
+
i: 'em',
|
|
43311
|
+
b: 'strong'
|
|
43312
|
+
};
|
|
43313
|
+
function replaceOldTags(elm) {
|
|
43314
|
+
const { name } = elm;
|
|
43315
|
+
if (name in REPLACE_OLD_TAGS) {
|
|
43316
|
+
elm.name = REPLACE_OLD_TAGS[name];
|
|
43317
|
+
}
|
|
43318
|
+
return elm;
|
|
43319
|
+
}
|
|
43320
|
+
|
|
43321
|
+
|
|
43322
|
+
/***/ }),
|
|
43323
|
+
|
|
43324
|
+
/***/ 38933:
|
|
43325
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43326
|
+
|
|
43327
|
+
"use strict";
|
|
43328
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43329
|
+
/* harmony export */ "Y": function() { return /* binding */ removeWidthFromTableCell; }
|
|
43330
|
+
/* harmony export */ });
|
|
43331
|
+
/*!
|
|
43332
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43333
|
+
* See LICENSE.md in the project root for license information.
|
|
43334
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43335
|
+
*/
|
|
43336
|
+
const removeWidthFromTableCell = (elm) => {
|
|
43337
|
+
if (elm.attributes.width && (elm.name === 'th' || elm.name === 'td')) {
|
|
43338
|
+
elm.attributes.width = null;
|
|
43339
|
+
}
|
|
43340
|
+
return elm;
|
|
43341
|
+
};
|
|
43342
|
+
|
|
43343
|
+
|
|
43344
|
+
/***/ }),
|
|
43345
|
+
|
|
43346
|
+
/***/ 48077:
|
|
43347
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
43348
|
+
|
|
43349
|
+
"use strict";
|
|
43350
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
43351
|
+
/*!
|
|
43352
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43353
|
+
* See LICENSE.md in the project root for license information.
|
|
43354
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43355
|
+
*/
|
|
43356
|
+
|
|
43357
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.pasteFromWord = {
|
|
43358
|
+
enable: false,
|
|
43359
|
+
convertUnitsToPixel: false,
|
|
43360
|
+
allowedStyleProps: [
|
|
43361
|
+
'background',
|
|
43362
|
+
'background-color',
|
|
43363
|
+
'border',
|
|
43364
|
+
'border-.*',
|
|
43365
|
+
'color',
|
|
43366
|
+
'float',
|
|
43367
|
+
'font-family',
|
|
43368
|
+
'font-size',
|
|
43369
|
+
'font-style',
|
|
43370
|
+
'font-weight',
|
|
43371
|
+
'height',
|
|
43372
|
+
'line-height',
|
|
43373
|
+
'list-style-type',
|
|
43374
|
+
'margin',
|
|
43375
|
+
'margin-bottom',
|
|
43376
|
+
'margin-left',
|
|
43377
|
+
'margin-right',
|
|
43378
|
+
'margin-top',
|
|
43379
|
+
'padding',
|
|
43380
|
+
'text-align',
|
|
43381
|
+
'text-justify',
|
|
43382
|
+
'text-decoration',
|
|
43383
|
+
'text-indent',
|
|
43384
|
+
'vertical-align',
|
|
43385
|
+
'width'
|
|
43386
|
+
]
|
|
43387
|
+
};
|
|
43388
|
+
|
|
43389
|
+
|
|
43390
|
+
/***/ }),
|
|
43391
|
+
|
|
43392
|
+
/***/ 19438:
|
|
43393
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43394
|
+
|
|
43395
|
+
"use strict";
|
|
43396
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43397
|
+
/* harmony export */ "Jf": function() { return /* binding */ STYLE_KEY; },
|
|
43398
|
+
/* harmony export */ "Ki": function() { return /* binding */ LEVEL_KEY; },
|
|
43399
|
+
/* harmony export */ "Y1": function() { return /* binding */ listStyleMap; },
|
|
43400
|
+
/* harmony export */ "YJ": function() { return /* binding */ TYPE_KEY; },
|
|
43401
|
+
/* harmony export */ "m3": function() { return /* binding */ STYLE_VALID_KEY; },
|
|
43402
|
+
/* harmony export */ "zQ": function() { return /* binding */ STYLE_CSS_KEY; }
|
|
43403
|
+
/* harmony export */ });
|
|
43404
|
+
/*!
|
|
43405
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43406
|
+
* See LICENSE.md in the project root for license information.
|
|
43407
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43408
|
+
*/
|
|
43409
|
+
const LEVEL_KEY = 'jd-list-level';
|
|
43410
|
+
const TYPE_KEY = 'jd-list-type';
|
|
43411
|
+
const STYLE_KEY = 'jd-list-style-type';
|
|
43412
|
+
const STYLE_VALID_KEY = 'data-list-style-type';
|
|
43413
|
+
const STYLE_CSS_KEY = 'list-style-type';
|
|
43414
|
+
const listStyleMap = {
|
|
43415
|
+
'·': 'disc',
|
|
43416
|
+
o: 'circle',
|
|
43417
|
+
'§': 'square',
|
|
43418
|
+
'[ivx]': 'lower-roman',
|
|
43419
|
+
'[IVX]': 'upper-roman',
|
|
43420
|
+
'[a-z]': 'lower-alpha',
|
|
43421
|
+
'[A-Z]': 'upper-alpha',
|
|
43422
|
+
'\\d': 'decimal'
|
|
43423
|
+
};
|
|
43424
|
+
|
|
43425
|
+
|
|
43426
|
+
/***/ }),
|
|
43427
|
+
|
|
43428
|
+
/***/ 69111:
|
|
43429
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43430
|
+
|
|
43431
|
+
"use strict";
|
|
43432
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43433
|
+
/* harmony export */ "Be": function() { return /* binding */ isLeaf; },
|
|
43434
|
+
/* harmony export */ "Hh": function() { return /* binding */ isPseudoLeaf; },
|
|
43435
|
+
/* harmony export */ "Y4": function() { return /* binding */ isSameType; },
|
|
43436
|
+
/* harmony export */ "nq": function() { return /* binding */ isList; }
|
|
43437
|
+
/* harmony export */ });
|
|
43438
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19438);
|
|
43439
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12787);
|
|
43440
|
+
/*!
|
|
43441
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43442
|
+
* See LICENSE.md in the project root for license information.
|
|
43443
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43444
|
+
*/
|
|
43445
|
+
|
|
43446
|
+
|
|
43447
|
+
function isList(elm) {
|
|
43448
|
+
return Boolean(elm && (elm.name === 'ol' || elm.name === 'ul'));
|
|
43449
|
+
}
|
|
43450
|
+
function isLeaf(elm) {
|
|
43451
|
+
return Boolean(elm && elm.name === 'li');
|
|
43452
|
+
}
|
|
43453
|
+
function isPseudoLeaf(elm) {
|
|
43454
|
+
return ((elm.name !== 'li' &&
|
|
43455
|
+
/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(elm.attributes.style)) ||
|
|
43456
|
+
(/msolistparagraph/i.test(elm.attributes.class) &&
|
|
43457
|
+
Boolean(elm.find((c) => c.isComment && (0,_render__WEBPACK_IMPORTED_MODULE_1__/* .html */ .d)(c).includes('supportLists'))
|
|
43458
|
+
.length)));
|
|
43459
|
+
}
|
|
43460
|
+
function isSameType(leaf, list) {
|
|
43461
|
+
const listType = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .TYPE_KEY */ .YJ];
|
|
43462
|
+
const listStyle = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf];
|
|
43463
|
+
return !(list.name !== listType ||
|
|
43464
|
+
list.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf] !== listStyle ||
|
|
43465
|
+
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]);
|
|
43466
|
+
}
|
|
43467
|
+
|
|
43468
|
+
|
|
43469
|
+
/***/ }),
|
|
43470
|
+
|
|
43471
|
+
/***/ 84300:
|
|
43472
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43473
|
+
|
|
43474
|
+
"use strict";
|
|
43475
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43476
|
+
/* harmony export */ "n": function() { return /* binding */ JElement; }
|
|
43477
|
+
/* harmony export */ });
|
|
43478
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
|
|
43479
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11612);
|
|
43480
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52378);
|
|
43481
|
+
/* 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__);
|
|
43482
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12787);
|
|
43483
|
+
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12481);
|
|
43484
|
+
/*!
|
|
43485
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43486
|
+
* See LICENSE.md in the project root for license information.
|
|
43487
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43488
|
+
*/
|
|
43489
|
+
|
|
43490
|
+
|
|
43491
|
+
|
|
43492
|
+
|
|
43493
|
+
|
|
43494
|
+
const singleTags = new Set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSEPARABLE_TAGS);
|
|
43495
|
+
class JElement {
|
|
43496
|
+
get isText() {
|
|
43497
|
+
return this.type === Node.TEXT_NODE;
|
|
43498
|
+
}
|
|
43499
|
+
get isElement() {
|
|
43500
|
+
return this.type === Node.ELEMENT_NODE;
|
|
43501
|
+
}
|
|
43502
|
+
get isComment() {
|
|
43503
|
+
return this.type === Node.COMMENT_NODE;
|
|
43504
|
+
}
|
|
43505
|
+
get isSingle() {
|
|
43506
|
+
return singleTags.has(this.name);
|
|
43507
|
+
}
|
|
43508
|
+
get length() {
|
|
43509
|
+
return this.children.length;
|
|
43510
|
+
}
|
|
43511
|
+
constructor(node, parent) {
|
|
43512
|
+
this.parent = parent;
|
|
43513
|
+
this.name = node.nodeName.toLowerCase();
|
|
43514
|
+
this.type = node.nodeType;
|
|
43515
|
+
this.attributes = readAttributes(node);
|
|
43516
|
+
this.style = new _style__WEBPACK_IMPORTED_MODULE_4__/* .Style */ .b(this.attributes.style);
|
|
43517
|
+
this.children = [];
|
|
43518
|
+
node.childNodes.forEach((node) => this.children.push(JElement.make(node, this)));
|
|
43519
|
+
}
|
|
43520
|
+
static make(node, parent = null) {
|
|
43521
|
+
return new JElement(node, parent);
|
|
43522
|
+
}
|
|
43523
|
+
wrap(tag) {
|
|
43524
|
+
var _a;
|
|
43525
|
+
void 0;
|
|
43526
|
+
const wrapper = JElement.make(document.createElement(tag), this.parent);
|
|
43527
|
+
const index = (_a = this.parent.children.indexOf(this)) !== null && _a !== void 0 ? _a : -1;
|
|
43528
|
+
if (index === -1) {
|
|
43529
|
+
this.parent.append(wrapper);
|
|
43530
|
+
}
|
|
43531
|
+
else {
|
|
43532
|
+
this.parent.children[index] = wrapper;
|
|
43533
|
+
}
|
|
43534
|
+
wrapper.append(this);
|
|
43535
|
+
return wrapper;
|
|
43536
|
+
}
|
|
43537
|
+
append(child) {
|
|
43538
|
+
void 0;
|
|
43539
|
+
child.remove();
|
|
43540
|
+
this.children.push(child);
|
|
43541
|
+
child.parent = this;
|
|
43542
|
+
return this;
|
|
43543
|
+
}
|
|
43544
|
+
get previousElement() {
|
|
43545
|
+
if (!this.parent) {
|
|
43546
|
+
return null;
|
|
43547
|
+
}
|
|
43548
|
+
const { children } = this.parent, index = children.indexOf(this);
|
|
43549
|
+
if (index !== -1) {
|
|
43550
|
+
for (let i = index - 1; i >= 0; i -= 1) {
|
|
43551
|
+
if (children[i].isElement) {
|
|
43552
|
+
return children[i];
|
|
43553
|
+
}
|
|
43554
|
+
}
|
|
43555
|
+
}
|
|
43556
|
+
return null;
|
|
43557
|
+
}
|
|
43558
|
+
get lastElement() {
|
|
43559
|
+
const { children } = this;
|
|
43560
|
+
for (let i = children.length - 1; i >= 0; i -= 1) {
|
|
43561
|
+
if (children[i].isElement) {
|
|
43562
|
+
return children[i];
|
|
43563
|
+
}
|
|
43564
|
+
}
|
|
43565
|
+
return null;
|
|
43566
|
+
}
|
|
43567
|
+
get previous() {
|
|
43568
|
+
var _a, _b, _c;
|
|
43569
|
+
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;
|
|
43570
|
+
}
|
|
43571
|
+
get next() {
|
|
43572
|
+
var _a, _b, _c;
|
|
43573
|
+
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;
|
|
43574
|
+
}
|
|
43575
|
+
sibling(next) {
|
|
43576
|
+
if (!this.parent) {
|
|
43577
|
+
return null;
|
|
43578
|
+
}
|
|
43579
|
+
const { children } = this.parent, index = children.indexOf(this);
|
|
43580
|
+
if (index !== -1 && children[index + (next ? 1 : -1)]) {
|
|
43581
|
+
return children[index + (next ? 1 : -1)];
|
|
43582
|
+
}
|
|
43583
|
+
return null;
|
|
43584
|
+
}
|
|
43585
|
+
forEach(callbackFn, recursion = false) {
|
|
43586
|
+
const children = [...this.children];
|
|
43587
|
+
for (const child of children) {
|
|
43588
|
+
if (callbackFn(child) === false) {
|
|
43589
|
+
return false;
|
|
43590
|
+
}
|
|
43591
|
+
if (recursion && child.forEach(callbackFn, true) === false) {
|
|
43592
|
+
return false;
|
|
43593
|
+
}
|
|
43594
|
+
}
|
|
43595
|
+
}
|
|
43596
|
+
find(predicate, recursion = true) {
|
|
43597
|
+
const result = [];
|
|
43598
|
+
this.forEach((elm) => {
|
|
43599
|
+
if (predicate(elm)) {
|
|
43600
|
+
result.push(elm);
|
|
43601
|
+
}
|
|
43602
|
+
}, recursion);
|
|
43603
|
+
return result;
|
|
43604
|
+
}
|
|
43605
|
+
map(callbackFn) {
|
|
43606
|
+
return this.children.map(callbackFn);
|
|
43607
|
+
}
|
|
43608
|
+
remove() {
|
|
43609
|
+
var _a, _b;
|
|
43610
|
+
const index = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.children.indexOf(this);
|
|
43611
|
+
if (index != null && index !== -1) {
|
|
43612
|
+
(_b = this.parent) === null || _b === void 0 ? void 0 : _b.children.splice(index, 1);
|
|
43613
|
+
}
|
|
43614
|
+
return this;
|
|
43615
|
+
}
|
|
43616
|
+
textBetween(start, end) {
|
|
43617
|
+
let startFound = false;
|
|
43618
|
+
const result = [];
|
|
43619
|
+
this.forEach((node) => {
|
|
43620
|
+
if (!startFound && start(node)) {
|
|
43621
|
+
startFound = true;
|
|
43622
|
+
}
|
|
43623
|
+
if (startFound && node.isText) {
|
|
43624
|
+
result.push((0,_render__WEBPACK_IMPORTED_MODULE_3__/* .html */ .d)(node));
|
|
43625
|
+
}
|
|
43626
|
+
if (startFound && end(node)) {
|
|
43627
|
+
return false;
|
|
43628
|
+
}
|
|
43629
|
+
}, true);
|
|
43630
|
+
return result.join('');
|
|
43631
|
+
}
|
|
43632
|
+
}
|
|
43633
|
+
function readAttributes(node) {
|
|
43634
|
+
const result = {};
|
|
43635
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isElement */ .i.isElement(node)) {
|
|
43636
|
+
for (let i = 0, attrs = node.attributes; i < attrs.length; i += 1) {
|
|
43637
|
+
result[attrs[i].name] = attrs[i].value;
|
|
43638
|
+
}
|
|
43639
|
+
}
|
|
43640
|
+
else {
|
|
43641
|
+
result['nodeValue'] = node.nodeValue;
|
|
43642
|
+
}
|
|
43643
|
+
return result;
|
|
43644
|
+
}
|
|
43645
|
+
|
|
43646
|
+
|
|
43647
|
+
/***/ }),
|
|
43648
|
+
|
|
43649
|
+
/***/ 93310:
|
|
43650
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43651
|
+
|
|
43652
|
+
"use strict";
|
|
43653
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43654
|
+
/* harmony export */ "Be": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Be; },
|
|
43655
|
+
/* harmony export */ "C7": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.C; },
|
|
43656
|
+
/* harmony export */ "Hh": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Hh; },
|
|
43657
|
+
/* harmony export */ "Y4": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Y4; },
|
|
43658
|
+
/* harmony export */ "dy": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.d; },
|
|
43659
|
+
/* harmony export */ "nK": function() { return /* reexport safe */ _element__WEBPACK_IMPORTED_MODULE_1__.n; },
|
|
43660
|
+
/* harmony export */ "nq": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.nq; }
|
|
43661
|
+
/* harmony export */ });
|
|
43662
|
+
/* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69111);
|
|
43663
|
+
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84300);
|
|
43664
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12787);
|
|
43665
|
+
/*!
|
|
43666
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43667
|
+
* See LICENSE.md in the project root for license information.
|
|
43668
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43669
|
+
*/
|
|
43670
|
+
|
|
43671
|
+
|
|
43672
|
+
|
|
43673
|
+
|
|
43674
|
+
|
|
43675
|
+
/***/ }),
|
|
43676
|
+
|
|
43677
|
+
/***/ 12787:
|
|
43678
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43679
|
+
|
|
43680
|
+
"use strict";
|
|
43681
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43682
|
+
/* harmony export */ "C": function() { return /* binding */ innerHTML; },
|
|
43683
|
+
/* harmony export */ "d": function() { return /* binding */ html; }
|
|
43684
|
+
/* harmony export */ });
|
|
43685
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
43686
|
+
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46232);
|
|
43687
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73076);
|
|
43688
|
+
/*!
|
|
43689
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43690
|
+
* See LICENSE.md in the project root for license information.
|
|
43691
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43692
|
+
*/
|
|
43693
|
+
|
|
43694
|
+
|
|
43695
|
+
|
|
43696
|
+
function html(elm, filter = () => true, removeEmpty = true, allowedStyleProps) {
|
|
43697
|
+
switch (true) {
|
|
43698
|
+
case elm.isComment:
|
|
43699
|
+
case elm.isText: {
|
|
43700
|
+
if (!filter(elm)) {
|
|
43701
|
+
return '';
|
|
43702
|
+
}
|
|
43703
|
+
const { nodeValue } = elm.attributes;
|
|
43704
|
+
return elm.isComment ? `<!--${nodeValue}-->` : nodeValue;
|
|
43705
|
+
}
|
|
43706
|
+
case elm.isElement: {
|
|
43707
|
+
const { attributes } = elm, innerContent = innerHTML(elm, filter, removeEmpty, allowedStyleProps);
|
|
43708
|
+
// remove empty tag with attributes
|
|
43709
|
+
if (!elm.attributes['jd-safe'] &&
|
|
43710
|
+
removeEmpty &&
|
|
43711
|
+
innerContent.replace(/[\n\t]/g, '').length === 0 &&
|
|
43712
|
+
!elm.isSingle) {
|
|
43713
|
+
return '';
|
|
43714
|
+
}
|
|
43715
|
+
const attrsList = Object.keys(attributes)
|
|
43716
|
+
.map((key) => {
|
|
43717
|
+
if (key === 'style' ||
|
|
43718
|
+
attributes[key] == null ||
|
|
43719
|
+
/^jd-/.test(key)) {
|
|
43720
|
+
return '';
|
|
43721
|
+
}
|
|
43722
|
+
return `${key}="${htmlEntity(attributes[key])}"`;
|
|
43723
|
+
})
|
|
43724
|
+
.filter(Boolean);
|
|
43725
|
+
const { str: styleStr } = elm.style;
|
|
43726
|
+
const styles = htmlEntity(styleStr((key) => keyInList(key, allowedStyleProps)));
|
|
43727
|
+
if (styles) {
|
|
43728
|
+
attrsList.push(`style="${styles}"`);
|
|
43729
|
+
}
|
|
43730
|
+
// unwrap empty tag without attributes
|
|
43731
|
+
if (removeEmpty &&
|
|
43732
|
+
attrsList.length === 0 &&
|
|
43733
|
+
['span', 'a'].includes(elm.name)) {
|
|
43734
|
+
return innerContent;
|
|
43735
|
+
}
|
|
43736
|
+
const attrs = attrsList.length ? ' ' + attrsList.join(' ') : '';
|
|
43737
|
+
if (!filter(elm)) {
|
|
43738
|
+
return innerContent;
|
|
43739
|
+
}
|
|
43740
|
+
return elm.isSingle
|
|
43741
|
+
? `<${elm.name}${attrs}/>`
|
|
43742
|
+
: `<${elm.name}${attrs}>${innerContent}</${elm.name}>`;
|
|
43743
|
+
}
|
|
43744
|
+
default:
|
|
43745
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
43746
|
+
throw Error('Need implementation for this type');
|
|
43747
|
+
}
|
|
43748
|
+
}
|
|
43749
|
+
return '';
|
|
43750
|
+
}
|
|
43751
|
+
function keyInList(key, list) {
|
|
43752
|
+
var _a;
|
|
43753
|
+
if (!list) {
|
|
43754
|
+
return true;
|
|
43755
|
+
}
|
|
43756
|
+
if (keyInList.cache.has(list)) {
|
|
43757
|
+
const isAllow = (_a = keyInList.cache.get(list)) === null || _a === void 0 ? void 0 : _a.get(key);
|
|
43758
|
+
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__/* .isBoolean */ .j)(isAllow)) {
|
|
43759
|
+
return isAllow;
|
|
43760
|
+
}
|
|
43761
|
+
}
|
|
43762
|
+
const isAllow = list.some((allow) => new RegExp(allow).test(key));
|
|
43763
|
+
const map = keyInList.cache.get(list) || new Map();
|
|
43764
|
+
map.set(key, isAllow);
|
|
43765
|
+
keyInList.cache.set(list, map);
|
|
43766
|
+
return isAllow;
|
|
43767
|
+
}
|
|
43768
|
+
keyInList.cache = new WeakMap();
|
|
43769
|
+
function innerHTML(elm, filter = () => true, removeEmpty = true, allowedStyleProps) {
|
|
43770
|
+
let result = elm
|
|
43771
|
+
.map((e) => html(e, filter, removeEmpty, allowedStyleProps))
|
|
43772
|
+
.join('');
|
|
43773
|
+
if (elm.name === 'p' && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .f)(result).length === 0) {
|
|
43774
|
+
result = ' ';
|
|
43775
|
+
}
|
|
43776
|
+
return result;
|
|
43777
|
+
}
|
|
43778
|
+
function htmlEntity(str) {
|
|
43779
|
+
return str.toString().replace(/"/g, '"');
|
|
43780
|
+
}
|
|
43781
|
+
|
|
43782
|
+
|
|
43783
|
+
/***/ }),
|
|
43784
|
+
|
|
43785
|
+
/***/ 12481:
|
|
43786
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43787
|
+
|
|
43788
|
+
"use strict";
|
|
43789
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43790
|
+
/* harmony export */ "b": function() { return /* binding */ Style; }
|
|
43791
|
+
/* harmony export */ });
|
|
43792
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
43793
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
43794
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
43795
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18352);
|
|
43796
|
+
/*!
|
|
43797
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43798
|
+
* See LICENSE.md in the project root for license information.
|
|
43799
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43800
|
+
*/
|
|
43801
|
+
|
|
43802
|
+
|
|
43803
|
+
|
|
43804
|
+
|
|
43805
|
+
let Style = class Style {
|
|
43806
|
+
constructor(str) {
|
|
43807
|
+
this._data = readStyles(str);
|
|
43808
|
+
}
|
|
43809
|
+
get keys() {
|
|
43810
|
+
return Object.keys(this._data);
|
|
43811
|
+
}
|
|
43812
|
+
forEach(f) {
|
|
43813
|
+
this.keys.forEach((key) => f(key));
|
|
43814
|
+
}
|
|
43815
|
+
clear() {
|
|
43816
|
+
this._data = {};
|
|
43817
|
+
}
|
|
43818
|
+
set(key, value) {
|
|
43819
|
+
this._data[key] = value;
|
|
43820
|
+
}
|
|
43821
|
+
get(key) {
|
|
43822
|
+
var _a;
|
|
43823
|
+
return (_a = this._data[key]) !== null && _a !== void 0 ? _a : null;
|
|
43824
|
+
}
|
|
43825
|
+
has(key) {
|
|
43826
|
+
return this._data[key] !== undefined;
|
|
43827
|
+
}
|
|
43828
|
+
add(key, value) {
|
|
43829
|
+
this._data = readStyles(this.str() + ';' + `${key}:${value}`);
|
|
43830
|
+
return this;
|
|
43831
|
+
}
|
|
43832
|
+
str(filter = (k) => true) {
|
|
43833
|
+
const styleKeys = Object.keys(this._data).filter((key) => key &&
|
|
43834
|
+
!/^mso-/.test(key) &&
|
|
43835
|
+
filter(key) &&
|
|
43836
|
+
this.get(key) != null);
|
|
43837
|
+
const n = (v) => {
|
|
43838
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isString)(v)) {
|
|
43839
|
+
return /^0[a-z]+$/i.test(v) ? '0' : v;
|
|
43840
|
+
}
|
|
43841
|
+
return v.toString();
|
|
43842
|
+
};
|
|
43843
|
+
['padding', 'margin'].forEach((key) => {
|
|
43844
|
+
if (this._data[key]) {
|
|
43845
|
+
const indexMain = styleKeys.indexOf(key);
|
|
43846
|
+
const margins = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__/* .calcMarginParts */ .Wb)(this._data[key]);
|
|
43847
|
+
['top', 'right', 'bottom', 'left'].forEach((side, index) => {
|
|
43848
|
+
const name = `${key}-${side}`, value = this._data[name];
|
|
43849
|
+
if (value != null &&
|
|
43850
|
+
(styleKeys.indexOf(name) < indexMain ||
|
|
43851
|
+
n(margins[index]) === n(value))) {
|
|
43852
|
+
styleKeys.indexOf(name) !== -1 &&
|
|
43853
|
+
styleKeys.splice(styleKeys.indexOf(name), 1);
|
|
43854
|
+
}
|
|
43855
|
+
});
|
|
43856
|
+
}
|
|
43857
|
+
});
|
|
43858
|
+
if (styleKeys.length) {
|
|
43859
|
+
return styleKeys
|
|
43860
|
+
.map((key) => `${(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.kebabCase)(key)}:${this.get(key)}`)
|
|
43861
|
+
.join(';');
|
|
43862
|
+
}
|
|
43863
|
+
return '';
|
|
43864
|
+
}
|
|
43865
|
+
};
|
|
43866
|
+
Style = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
43867
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
43868
|
+
], Style);
|
|
43869
|
+
function readStyles(style) {
|
|
43870
|
+
return uniqueMax((style !== null && style !== void 0 ? style : '')
|
|
43871
|
+
.replace(/"/g, '"')
|
|
43872
|
+
.split(';')
|
|
43873
|
+
.filter(Boolean)
|
|
43874
|
+
.map((s) => (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.trim)(s).split(':').map(jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.trim))).reduce((acc, [key, value]) => {
|
|
43875
|
+
if (key && value) {
|
|
43876
|
+
acc[key] = value;
|
|
43877
|
+
}
|
|
43878
|
+
return acc;
|
|
43879
|
+
}, {});
|
|
43880
|
+
}
|
|
43881
|
+
function uniqueMax(array) {
|
|
43882
|
+
const keys = {};
|
|
43883
|
+
const result = [];
|
|
43884
|
+
for (let i = array.length - 1; i >= 0; i -= 1) {
|
|
43885
|
+
const key = array[i][0];
|
|
43886
|
+
if (keys[key]) {
|
|
43887
|
+
continue;
|
|
43888
|
+
}
|
|
43889
|
+
keys[key] = true;
|
|
43890
|
+
result.unshift(array[i]);
|
|
43891
|
+
}
|
|
43892
|
+
return result;
|
|
43893
|
+
}
|
|
43894
|
+
|
|
43895
|
+
|
|
43896
|
+
/***/ }),
|
|
43897
|
+
|
|
43898
|
+
/***/ 12049:
|
|
43899
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43900
|
+
|
|
43901
|
+
"use strict";
|
|
43902
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43903
|
+
/* harmony export */ "x": function() { return /* binding */ applyStylesPro; }
|
|
43904
|
+
/* harmony export */ });
|
|
43905
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98478);
|
|
43906
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
43907
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
43908
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79374);
|
|
43909
|
+
/*!
|
|
43910
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43911
|
+
* See LICENSE.md in the project root for license information.
|
|
43912
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43913
|
+
*/
|
|
43914
|
+
|
|
43915
|
+
|
|
43916
|
+
|
|
43917
|
+
|
|
43918
|
+
function applyStylesPro(jodit, html, removeStyles, rtf = '') {
|
|
43919
|
+
var _a, _b;
|
|
43920
|
+
const iframe = document.createElement('iframe');
|
|
43921
|
+
iframe.style.display = 'none';
|
|
43922
|
+
document.body.appendChild(iframe);
|
|
43923
|
+
try {
|
|
43924
|
+
const doc = (_a = iframe.contentDocument) !== null && _a !== void 0 ? _a : (_b = iframe.contentWindow) === null || _b === void 0 ? void 0 : _b.document;
|
|
43925
|
+
if (!doc) {
|
|
43926
|
+
return html;
|
|
43927
|
+
}
|
|
43928
|
+
doc.open();
|
|
43929
|
+
doc.write(html);
|
|
43930
|
+
doc.close();
|
|
43931
|
+
const JDS = 'jd-style';
|
|
43932
|
+
for (let i = 0; i < doc.styleSheets.length; i += 1) {
|
|
43933
|
+
try {
|
|
43934
|
+
const rules = doc.styleSheets[i]
|
|
43935
|
+
.cssRules;
|
|
43936
|
+
for (let idx = 0; idx < rules.length; idx += 1) {
|
|
43937
|
+
if (!rules[idx].selectorText) {
|
|
43938
|
+
continue;
|
|
43939
|
+
}
|
|
43940
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(rules[idx].selectorText, doc.body).forEach((elm) => {
|
|
43941
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS)) {
|
|
43942
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS, (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style') || '');
|
|
43943
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', '');
|
|
43944
|
+
}
|
|
43945
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', `${(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style')};${rules[idx].style.cssText}`);
|
|
43946
|
+
});
|
|
43947
|
+
}
|
|
43948
|
+
}
|
|
43949
|
+
catch (e) { }
|
|
43950
|
+
}
|
|
43951
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(`[${JDS}]`, doc.body).forEach((elm) => {
|
|
43952
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', `${(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style')};${(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS)}`);
|
|
43953
|
+
});
|
|
43954
|
+
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);
|
|
43955
|
+
}
|
|
43956
|
+
finally {
|
|
43957
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(iframe);
|
|
43958
|
+
}
|
|
43959
|
+
return html;
|
|
43960
|
+
}
|
|
43961
|
+
|
|
43962
|
+
|
|
43963
|
+
/***/ }),
|
|
43964
|
+
|
|
43965
|
+
/***/ 45394:
|
|
43966
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43967
|
+
|
|
43968
|
+
"use strict";
|
|
43969
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43970
|
+
/* harmony export */ "r": function() { return /* binding */ calcListLevels; }
|
|
43971
|
+
/* harmony export */ });
|
|
43972
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93310);
|
|
43973
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19438);
|
|
43974
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81723);
|
|
43975
|
+
/*!
|
|
43976
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43977
|
+
* See LICENSE.md in the project root for license information.
|
|
43978
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43979
|
+
*/
|
|
43980
|
+
|
|
43981
|
+
|
|
43982
|
+
|
|
43983
|
+
function calcListLevels(item) {
|
|
43984
|
+
if (item.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] !== undefined) {
|
|
43985
|
+
return;
|
|
43986
|
+
}
|
|
43987
|
+
const indents = [(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(item)], items = [item];
|
|
43988
|
+
let next = item.next;
|
|
43989
|
+
while (next) {
|
|
43990
|
+
if (next.isElement &&
|
|
43991
|
+
!next.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] &&
|
|
43992
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__/* .isPseudoLeaf */ .Hh)(next)) {
|
|
43993
|
+
const indent = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(next);
|
|
43994
|
+
if (indent) {
|
|
43995
|
+
indents.push(indent);
|
|
43996
|
+
items.push(next);
|
|
43997
|
+
}
|
|
43998
|
+
}
|
|
43999
|
+
next = next.next;
|
|
44000
|
+
}
|
|
44001
|
+
const minIndent = Math.min(...indents.filter((val) => val > 0));
|
|
44002
|
+
let levels = indents.map((val) => Math.ceil(val / 10));
|
|
44003
|
+
if (levels.indexOf(0) !== -1) {
|
|
44004
|
+
levels = levels.map((val) => val + 1);
|
|
44005
|
+
}
|
|
44006
|
+
items.forEach((curItem, index) => {
|
|
44007
|
+
curItem.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] = levels[index];
|
|
44008
|
+
curItem.style.add('margin-left', `${Math.max((0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(curItem) -
|
|
44009
|
+
((levels[index] * 10) / minIndent) * 40, 0)}px`);
|
|
44010
|
+
});
|
|
44011
|
+
}
|
|
44012
|
+
|
|
44013
|
+
|
|
44014
|
+
/***/ }),
|
|
44015
|
+
|
|
44016
|
+
/***/ 81723:
|
|
44017
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44018
|
+
|
|
44019
|
+
"use strict";
|
|
44020
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44021
|
+
/* harmony export */ "D4": function() { return /* binding */ realPixelIndent; },
|
|
44022
|
+
/* harmony export */ "Lp": function() { return /* binding */ convertUnitToPx; },
|
|
44023
|
+
/* harmony export */ "Sg": function() { return /* binding */ calcStartBySymbol; },
|
|
44024
|
+
/* harmony export */ "Wb": function() { return /* binding */ calcMarginParts; }
|
|
44025
|
+
/* harmony export */ });
|
|
44026
|
+
/*!
|
|
44027
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44028
|
+
* See LICENSE.md in the project root for license information.
|
|
44029
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44030
|
+
*/
|
|
44031
|
+
function calcMarginParts(margin) {
|
|
44032
|
+
if (!margin) {
|
|
44033
|
+
return [0, 0, 0, 0];
|
|
44034
|
+
}
|
|
44035
|
+
const widths = margin.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g) || ['0px'];
|
|
44036
|
+
switch (widths.length) {
|
|
44037
|
+
case 2:
|
|
44038
|
+
return [0, 1, 0, 1].map((index) => widths[index]);
|
|
44039
|
+
case 3:
|
|
44040
|
+
return [0, 1, 2, 1].map((index) => widths[index]);
|
|
44041
|
+
case 4:
|
|
44042
|
+
return [0, 1, 2, 3].map((index) => widths[index]);
|
|
44043
|
+
default:
|
|
44044
|
+
return [0, 0, 0, 0].map((index) => widths[index]);
|
|
44045
|
+
}
|
|
44046
|
+
}
|
|
44047
|
+
let fakeMeasureBox;
|
|
44048
|
+
/**
|
|
44049
|
+
* Convert css units to pixels, excluding percentages
|
|
44050
|
+
* @example
|
|
44051
|
+
* ```js
|
|
44052
|
+
* convertUnitToPx('55pt')
|
|
44053
|
+
* convertUnitToPx('55cm')
|
|
44054
|
+
* ```
|
|
44055
|
+
*/
|
|
44056
|
+
function convertUnitToPx(unit) {
|
|
44057
|
+
if (typeof unit === 'number') {
|
|
44058
|
+
return unit;
|
|
44059
|
+
}
|
|
44060
|
+
if (/%$/.test(unit)) {
|
|
44061
|
+
return 0;
|
|
44062
|
+
}
|
|
44063
|
+
if (!fakeMeasureBox) {
|
|
44064
|
+
fakeMeasureBox = document.createElement('div');
|
|
44065
|
+
Object.assign(fakeMeasureBox.style, {
|
|
44066
|
+
position: 'absolute',
|
|
44067
|
+
left: '-9999px',
|
|
44068
|
+
top: '-9999px',
|
|
44069
|
+
margin: '0',
|
|
44070
|
+
padding: '0',
|
|
44071
|
+
border: '0'
|
|
44072
|
+
});
|
|
44073
|
+
document.body.append(fakeMeasureBox);
|
|
44074
|
+
// Clean after work
|
|
44075
|
+
setTimeout(() => {
|
|
44076
|
+
fakeMeasureBox === null || fakeMeasureBox === void 0 ? void 0 : fakeMeasureBox.remove();
|
|
44077
|
+
fakeMeasureBox = null;
|
|
44078
|
+
});
|
|
44079
|
+
}
|
|
44080
|
+
const isNegative = parseFloat(unit) < 0;
|
|
44081
|
+
if (isNegative) {
|
|
44082
|
+
unit = unit.replace('-', '');
|
|
44083
|
+
}
|
|
44084
|
+
fakeMeasureBox.style.width = unit;
|
|
44085
|
+
const result = fakeMeasureBox.clientWidth;
|
|
44086
|
+
if (isNegative) {
|
|
44087
|
+
return -result;
|
|
44088
|
+
}
|
|
44089
|
+
return result;
|
|
44090
|
+
}
|
|
44091
|
+
function realPixelIndent(element) {
|
|
44092
|
+
const { style } = element;
|
|
44093
|
+
let marginSplit = [0, 0, 0, 0];
|
|
44094
|
+
const marginKeys = style.keys.filter((k) => /margin/.test(k));
|
|
44095
|
+
const maxMarginLeftIndex = Math.max(marginKeys.indexOf('margin-left'), marginKeys.indexOf('margin'));
|
|
44096
|
+
const marginKey = maxMarginLeftIndex > 0 ? marginKeys[maxMarginLeftIndex] : 'margin-left';
|
|
44097
|
+
let marginLeft;
|
|
44098
|
+
if (marginKey === 'margin') {
|
|
44099
|
+
const margin = style.get('margin');
|
|
44100
|
+
marginSplit = calcMarginParts(margin);
|
|
44101
|
+
marginLeft = marginSplit[3] || 0;
|
|
44102
|
+
}
|
|
44103
|
+
else {
|
|
44104
|
+
marginLeft = style.get(marginKey) || 0;
|
|
44105
|
+
}
|
|
44106
|
+
return convertUnitToPx(marginLeft);
|
|
44107
|
+
}
|
|
44108
|
+
function calcStartBySymbol(symbol) {
|
|
44109
|
+
if (/\d.\d/.test(symbol)) {
|
|
44110
|
+
return symbol.split('.').pop() || null;
|
|
44111
|
+
}
|
|
44112
|
+
if (/^\d/.test(symbol)) {
|
|
44113
|
+
return (parseInt(symbol, 10) || 1).toString();
|
|
44114
|
+
}
|
|
44115
|
+
return null;
|
|
44116
|
+
}
|
|
44117
|
+
|
|
44118
|
+
|
|
44119
|
+
/***/ }),
|
|
44120
|
+
|
|
44121
|
+
/***/ 18352:
|
|
44122
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44123
|
+
|
|
44124
|
+
"use strict";
|
|
44125
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44126
|
+
/* harmony export */ "Lp": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Lp; },
|
|
44127
|
+
/* harmony export */ "Sg": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Sg; },
|
|
44128
|
+
/* harmony export */ "Wb": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Wb; },
|
|
44129
|
+
/* harmony export */ "rd": function() { return /* reexport safe */ _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__.r; },
|
|
44130
|
+
/* harmony export */ "xk": function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__.x; }
|
|
44131
|
+
/* harmony export */ });
|
|
44132
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81723);
|
|
44133
|
+
/* harmony import */ var _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12049);
|
|
44134
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79374);
|
|
44135
|
+
/* harmony import */ var _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45394);
|
|
44136
|
+
/*!
|
|
44137
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44138
|
+
* See LICENSE.md in the project root for license information.
|
|
44139
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44140
|
+
*/
|
|
44141
|
+
|
|
44142
|
+
|
|
44143
|
+
|
|
44144
|
+
|
|
44145
|
+
|
|
44146
|
+
|
|
44147
|
+
/***/ }),
|
|
44148
|
+
|
|
44149
|
+
/***/ 79374:
|
|
44150
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44151
|
+
|
|
44152
|
+
"use strict";
|
|
44153
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44154
|
+
/* harmony export */ "W": function() { return /* binding */ transformWordToHtml; }
|
|
44155
|
+
/* harmony export */ });
|
|
44156
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
44157
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44669);
|
|
44158
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
44159
|
+
/*!
|
|
44160
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44161
|
+
* See LICENSE.md in the project root for license information.
|
|
44162
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44163
|
+
*/
|
|
44164
|
+
|
|
44165
|
+
|
|
44166
|
+
|
|
44167
|
+
function transformWordToHtml(jodit, body, removeStyles, rtf) {
|
|
44168
|
+
const ctx = {
|
|
44169
|
+
jodit,
|
|
44170
|
+
rtf
|
|
44171
|
+
};
|
|
44172
|
+
body.forEach(function eachElm(elm) {
|
|
44173
|
+
if (!elm) {
|
|
44174
|
+
return;
|
|
44175
|
+
}
|
|
44176
|
+
for (const fn of jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__/* .cases */ .c) {
|
|
44177
|
+
elm = fn(elm, ctx);
|
|
44178
|
+
if (elm == null) {
|
|
44179
|
+
break;
|
|
44180
|
+
}
|
|
44181
|
+
}
|
|
44182
|
+
elm === null || elm === void 0 ? void 0 : elm.forEach(eachElm);
|
|
44183
|
+
});
|
|
44184
|
+
if (removeStyles) {
|
|
44185
|
+
body.forEach((elm) => {
|
|
44186
|
+
elm.style.clear();
|
|
44187
|
+
}, true);
|
|
44188
|
+
}
|
|
44189
|
+
return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .f)((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .innerHTML */ .C7)(body, (elm) => !elm.isComment, true, jodit.o.pasteFromWord.allowedStyleProps));
|
|
44190
|
+
}
|
|
44191
|
+
|
|
44192
|
+
|
|
44193
|
+
/***/ }),
|
|
44194
|
+
|
|
44195
|
+
/***/ 70322:
|
|
44196
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44197
|
+
|
|
44198
|
+
"use strict";
|
|
44199
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44200
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44201
|
+
/* harmony export */ "PasteFromWordPro": function() { return /* binding */ PasteFromWordPro; }
|
|
44202
|
+
/* harmony export */ });
|
|
44203
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
44204
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4682);
|
|
44205
|
+
/* harmony import */ var jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54625);
|
|
44206
|
+
/* harmony import */ var jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79501);
|
|
44207
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
44208
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18352);
|
|
44209
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48077);
|
|
44210
|
+
/*!
|
|
44211
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44212
|
+
* See LICENSE.md in the project root for license information.
|
|
44213
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44214
|
+
*/
|
|
44215
|
+
|
|
44216
|
+
|
|
44217
|
+
|
|
44218
|
+
|
|
44219
|
+
|
|
44220
|
+
|
|
44221
|
+
|
|
44222
|
+
class PasteFromWordPro extends jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__/* .pasteFromWord */ .L {
|
|
44223
|
+
insertFromWordByType(e, html, insertType, texts) {
|
|
44224
|
+
var _a;
|
|
44225
|
+
if (this.j.o.pasteFromWord.enable &&
|
|
44226
|
+
(insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML || insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT)) {
|
|
44227
|
+
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);
|
|
44228
|
+
// @ts-ignore
|
|
44229
|
+
if (this.j.o.beautifyHTML) {
|
|
44230
|
+
const value = (_a = this.j.events) === null || _a === void 0 ? void 0 : _a.fire('beautifyHTML', html);
|
|
44231
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__/* .isString */ .H)(value)) {
|
|
44232
|
+
html = value;
|
|
44233
|
+
}
|
|
44234
|
+
}
|
|
44235
|
+
(0,jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .kU)(e, this.j, html);
|
|
44236
|
+
return;
|
|
44237
|
+
}
|
|
44238
|
+
return super.insertFromWordByType(e, html, insertType, texts);
|
|
44239
|
+
}
|
|
44240
|
+
}
|
|
44241
|
+
/** @override */
|
|
44242
|
+
PasteFromWordPro.requires = ['license'];
|
|
44243
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.remove */ .y.plugins.remove('pasteFromWord');
|
|
44244
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('pasteFromWordPro', PasteFromWordPro);
|
|
42248
44245
|
|
|
42249
44246
|
|
|
42250
44247
|
/***/ }),
|
|
@@ -42750,13 +44747,30 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
42750
44747
|
/******/ }();
|
|
42751
44748
|
/******/
|
|
42752
44749
|
/************************************************************************/
|
|
42753
|
-
|
|
42754
|
-
|
|
42755
|
-
|
|
42756
|
-
|
|
42757
|
-
|
|
42758
|
-
|
|
42759
|
-
|
|
44750
|
+
var __webpack_exports__ = {};
|
|
44751
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
44752
|
+
!function() {
|
|
44753
|
+
"use strict";
|
|
44754
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44755
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44756
|
+
/* harmony export */ "Jodit": function() { return /* reexport safe */ _jodit_pro__WEBPACK_IMPORTED_MODULE_0__.y; }
|
|
44757
|
+
/* harmony export */ });
|
|
44758
|
+
/* harmony import */ var _jodit_pro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53852);
|
|
44759
|
+
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
44760
|
+
/*!
|
|
44761
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44762
|
+
* See LICENSE.md in the project root for license information.
|
|
44763
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44764
|
+
*/
|
|
44765
|
+
|
|
44766
|
+
|
|
44767
|
+
|
|
44768
|
+
// Disable CopyRight
|
|
44769
|
+
function poweredByJodit() { }
|
|
44770
|
+
_jodit_pro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add('poweredByJodit', poweredByJodit);
|
|
44771
|
+
|
|
44772
|
+
}();
|
|
44773
|
+
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
42760
44774
|
/******/ return __webpack_exports__;
|
|
42761
44775
|
/******/ })()
|
|
42762
44776
|
;
|