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/es2021/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
|
*/
|
|
@@ -2402,7 +2402,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2402
2402
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2403
2403
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2404
2404
|
*/
|
|
2405
|
-
const APP_VERSION = "2.0.0-beta.
|
|
2405
|
+
const APP_VERSION = "2.0.0-beta.21";
|
|
2406
2406
|
// eslint-disable-next-line prettier/prettier
|
|
2407
2407
|
const ES = "es2021";
|
|
2408
2408
|
const IS_ES_MODERN = true;
|
|
@@ -3981,8 +3981,15 @@ class Dom {
|
|
|
3981
3981
|
static safeInsertNode(range, node) {
|
|
3982
3982
|
range.collapsed || range.deleteContents();
|
|
3983
3983
|
const child = Dom.isFragment(node) ? node.lastChild : node;
|
|
3984
|
-
range.
|
|
3985
|
-
|
|
3984
|
+
if (range.startContainer === range.endContainer &&
|
|
3985
|
+
range.collapsed &&
|
|
3986
|
+
Dom.isTag(range.startContainer, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
3987
|
+
Dom.after(range.startContainer, node);
|
|
3988
|
+
}
|
|
3989
|
+
else {
|
|
3990
|
+
range.insertNode(node);
|
|
3991
|
+
child && range.setStartBefore(child);
|
|
3992
|
+
}
|
|
3986
3993
|
range.collapse(true);
|
|
3987
3994
|
// https://developer.mozilla.org/en-US/docs/Web/API/Range/insertNode
|
|
3988
3995
|
// if the new node is to be added to a text Node, that Node is split at the
|
|
@@ -7963,8 +7970,13 @@ function attr(elm, keyOrAttributes, value) {
|
|
|
7963
7970
|
elm.hasAttribute(key) && elm.removeAttribute(key);
|
|
7964
7971
|
}
|
|
7965
7972
|
else {
|
|
7966
|
-
|
|
7967
|
-
|
|
7973
|
+
let replaceValue = value.toString();
|
|
7974
|
+
if (elm.nodeName === 'IMG' &&
|
|
7975
|
+
(key === 'width' || key === 'height')) {
|
|
7976
|
+
replaceValue = replaceValue.replace('px', '');
|
|
7977
|
+
}
|
|
7978
|
+
elm.setAttribute(key, replaceValue);
|
|
7979
|
+
return replaceValue;
|
|
7968
7980
|
}
|
|
7969
7981
|
}
|
|
7970
7982
|
return elm.getAttribute(key);
|
|
@@ -9253,25 +9265,29 @@ function reset(key) {
|
|
|
9253
9265
|
/**
|
|
9254
9266
|
* @module helpers/utils
|
|
9255
9267
|
*/
|
|
9256
|
-
|
|
9268
|
+
/**
|
|
9269
|
+
* Check if element is in view
|
|
9270
|
+
*/
|
|
9271
|
+
function inView(elm, root, doc) {
|
|
9257
9272
|
let rect = elm.getBoundingClientRect(), el = elm;
|
|
9258
9273
|
const top = rect.top, height = rect.height;
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
return false;
|
|
9265
|
-
}
|
|
9266
|
-
// Check if the element is out of view due to a container scrolling
|
|
9267
|
-
if (top + height <= rect.top) {
|
|
9268
|
-
return false;
|
|
9269
|
-
}
|
|
9274
|
+
while (el && el !== root && el.parentNode) {
|
|
9275
|
+
el = el.parentNode;
|
|
9276
|
+
rect = el.getBoundingClientRect();
|
|
9277
|
+
if (!(top <= rect.bottom)) {
|
|
9278
|
+
return false;
|
|
9270
9279
|
}
|
|
9271
|
-
|
|
9272
|
-
|
|
9280
|
+
// Check if the element is out of view due to a container scrolling
|
|
9281
|
+
if (top + height <= rect.top) {
|
|
9282
|
+
return false;
|
|
9283
|
+
}
|
|
9284
|
+
}
|
|
9285
|
+
// Check it's within the document viewport
|
|
9273
9286
|
return (top <= ((doc.documentElement && doc.documentElement.clientHeight) || 0));
|
|
9274
|
-
}
|
|
9287
|
+
}
|
|
9288
|
+
/**
|
|
9289
|
+
* Scroll element into view if it is not in view
|
|
9290
|
+
*/
|
|
9275
9291
|
function scrollIntoViewIfNeeded(elm, root, doc) {
|
|
9276
9292
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isHTMLElement */ .i.isHTMLElement(elm) && !inView(elm, root, doc)) {
|
|
9277
9293
|
if (root.clientHeight !== root.scrollHeight) {
|
|
@@ -10797,14 +10813,14 @@ class Selection {
|
|
|
10797
10813
|
const left = range.cloneRange();
|
|
10798
10814
|
left.collapse(true);
|
|
10799
10815
|
const fakeLeft = this.j.createInside.fake();
|
|
10800
|
-
|
|
10816
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(left, fakeLeft);
|
|
10801
10817
|
range.setStartBefore(fakeLeft);
|
|
10802
10818
|
const result = [fakeLeft];
|
|
10803
10819
|
if (!range.collapsed) {
|
|
10804
10820
|
const right = range.cloneRange();
|
|
10805
10821
|
right.collapse(false);
|
|
10806
10822
|
const fakeRight = this.j.createInside.fake();
|
|
10807
|
-
|
|
10823
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(right, fakeRight);
|
|
10808
10824
|
range.setEndAfter(fakeRight);
|
|
10809
10825
|
result.push(fakeRight);
|
|
10810
10826
|
}
|
|
@@ -11028,13 +11044,7 @@ class Selection {
|
|
|
11028
11044
|
if (sel && sel.rangeCount) {
|
|
11029
11045
|
const range = sel.getRangeAt(0);
|
|
11030
11046
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isOrContains */ .i.isOrContains(this.area, range.commonAncestorContainer)) {
|
|
11031
|
-
|
|
11032
|
-
range.collapsed) {
|
|
11033
|
-
range.startContainer.parentNode?.insertBefore(node, range.startContainer);
|
|
11034
|
-
}
|
|
11035
|
-
else {
|
|
11036
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
11037
|
-
}
|
|
11047
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
11038
11048
|
}
|
|
11039
11049
|
else {
|
|
11040
11050
|
this.area.appendChild(node);
|
|
@@ -11043,14 +11053,26 @@ class Selection {
|
|
|
11043
11053
|
else {
|
|
11044
11054
|
this.area.appendChild(node);
|
|
11045
11055
|
}
|
|
11056
|
+
const setCursor = (node) => {
|
|
11057
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isBlock */ .i.isBlock(node)) {
|
|
11058
|
+
const child = node.lastChild;
|
|
11059
|
+
if (child) {
|
|
11060
|
+
return setCursor(child);
|
|
11061
|
+
}
|
|
11062
|
+
}
|
|
11063
|
+
this.setCursorAfter(node);
|
|
11064
|
+
};
|
|
11046
11065
|
if (insertCursorAfter) {
|
|
11047
11066
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isFragment */ .i.isFragment(node)) {
|
|
11048
|
-
child &&
|
|
11067
|
+
child && setCursor(child);
|
|
11049
11068
|
}
|
|
11050
11069
|
else {
|
|
11051
|
-
|
|
11070
|
+
setCursor(node);
|
|
11052
11071
|
}
|
|
11053
11072
|
}
|
|
11073
|
+
if (this.j.o.scrollToPastedContent) {
|
|
11074
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(child ?? node, this.j.editor, this.doc);
|
|
11075
|
+
}
|
|
11054
11076
|
});
|
|
11055
11077
|
if (fireChange && this.j.events) {
|
|
11056
11078
|
this.j.__imdSynchronizeValues();
|
|
@@ -15770,6 +15792,13 @@ Icon.__cache = new Map();
|
|
|
15770
15792
|
|
|
15771
15793
|
|
|
15772
15794
|
|
|
15795
|
+
const EVENTS_FOR_AUTOCLOSE = [
|
|
15796
|
+
'escape',
|
|
15797
|
+
'cut',
|
|
15798
|
+
'delete',
|
|
15799
|
+
'backSpaceAfterDelete',
|
|
15800
|
+
'beforeCommandDelete'
|
|
15801
|
+
];
|
|
15773
15802
|
class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .u {
|
|
15774
15803
|
/** @override */
|
|
15775
15804
|
className() {
|
|
@@ -16008,7 +16037,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16008
16037
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.on */ .TB.on('closeAllPopups', this.close);
|
|
16009
16038
|
if (this.smart) {
|
|
16010
16039
|
this.j.e
|
|
16011
|
-
.on(
|
|
16040
|
+
.on(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
16012
16041
|
.on('mousedown touchstart', this.closeOnOutsideClick)
|
|
16013
16042
|
.on(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
16014
16043
|
}
|
|
@@ -16027,7 +16056,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
16027
16056
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.off */ .TB.off('closeAllPopups', this.close);
|
|
16028
16057
|
if (this.smart) {
|
|
16029
16058
|
this.j.e
|
|
16030
|
-
.off(
|
|
16059
|
+
.off(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
16031
16060
|
.off('mousedown touchstart', this.closeOnOutsideClick)
|
|
16032
16061
|
.off(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
16033
16062
|
}
|
|
@@ -17217,7 +17246,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17217
17246
|
* })
|
|
17218
17247
|
* ```
|
|
17219
17248
|
*/
|
|
17220
|
-
result = this.e.fire(
|
|
17249
|
+
result = this.e.fire(`beforeCommand${(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ucfirst)(command)}`, showUI, value, ...args);
|
|
17250
|
+
if (result !== false) {
|
|
17251
|
+
result = this.e.fire('beforeCommand', command, showUI, value, ...args);
|
|
17252
|
+
}
|
|
17221
17253
|
if (result !== false) {
|
|
17222
17254
|
result = this.__execCustomCommands(command, showUI, value, ...args);
|
|
17223
17255
|
}
|
|
@@ -32552,7 +32584,7 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plug
|
|
|
32552
32584
|
* Hide opened popup
|
|
32553
32585
|
*/
|
|
32554
32586
|
hidePopup(type) {
|
|
32555
|
-
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type) {
|
|
32587
|
+
if (this.popup.isOpened && (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type)) {
|
|
32556
32588
|
this.popup.close();
|
|
32557
32589
|
}
|
|
32558
32590
|
}
|
|
@@ -32715,7 +32747,7 @@ inlinePopup.requires = ['select'];
|
|
|
32715
32747
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.wait)((ctx) => !ctx.j.isLocked)
|
|
32716
32748
|
], inlinePopup.prototype, "showPopup", null);
|
|
32717
32749
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
32718
|
-
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)(':clickEditor'),
|
|
32750
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)([':clickEditor', ':beforeCommandDelete', ':backSpaceAfterDelete']),
|
|
32719
32751
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.autobind
|
|
32720
32752
|
], inlinePopup.prototype, "hidePopup", null);
|
|
32721
32753
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
@@ -34764,6 +34796,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__/* .pluginSystem.add */ .pw.add('p
|
|
|
34764
34796
|
|
|
34765
34797
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.askBeforePasteHTML = true;
|
|
34766
34798
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.processPasteHTML = true;
|
|
34799
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.scrollToPastedContent = true;
|
|
34767
34800
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteHTMLActionList = [
|
|
34768
34801
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
34769
34802
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
@@ -35065,7 +35098,7 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
35065
35098
|
text = result;
|
|
35066
35099
|
}
|
|
35067
35100
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(text) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isNode */ .i.isNode(text)) {
|
|
35068
|
-
this.
|
|
35101
|
+
this.__insertByType(e, text, this.j.o.defaultActionOnPaste);
|
|
35069
35102
|
}
|
|
35070
35103
|
e.preventDefault();
|
|
35071
35104
|
e.stopPropagation();
|
|
@@ -35075,35 +35108,35 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
35075
35108
|
* Process usual HTML text fragment
|
|
35076
35109
|
*/
|
|
35077
35110
|
processHTML(e, html) {
|
|
35078
|
-
if (this.j.o.askBeforePasteHTML) {
|
|
35079
|
-
|
|
35080
|
-
|
|
35081
|
-
|
|
35082
|
-
|
|
35083
|
-
|
|
35084
|
-
|
|
35085
|
-
}
|
|
35086
|
-
if (this._isDialogOpened) {
|
|
35111
|
+
if (!this.j.o.askBeforePasteHTML) {
|
|
35112
|
+
return false;
|
|
35113
|
+
}
|
|
35114
|
+
if (this.j.o.memorizeChoiceWhenPasteFragment) {
|
|
35115
|
+
const cached = this.pasteStack.find(cachedItem => cachedItem.html === html);
|
|
35116
|
+
if (cached) {
|
|
35117
|
+
this.__insertByType(e, html, cached.action || this.j.o.defaultActionOnPaste);
|
|
35087
35118
|
return true;
|
|
35088
35119
|
}
|
|
35089
|
-
|
|
35090
|
-
|
|
35091
|
-
this.insertByType(e, html, insertType);
|
|
35092
|
-
}, this.j.o.pasteHTMLActionList);
|
|
35093
|
-
if (dialog) {
|
|
35094
|
-
this._isDialogOpened = true;
|
|
35095
|
-
dialog.e.on('beforeClose', () => {
|
|
35096
|
-
this._isDialogOpened = false;
|
|
35097
|
-
});
|
|
35098
|
-
}
|
|
35120
|
+
}
|
|
35121
|
+
if (this._isDialogOpened) {
|
|
35099
35122
|
return true;
|
|
35100
35123
|
}
|
|
35101
|
-
|
|
35124
|
+
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 => {
|
|
35125
|
+
this._isDialogOpened = false;
|
|
35126
|
+
this.__insertByType(e, html, insertType);
|
|
35127
|
+
}, this.j.o.pasteHTMLActionList);
|
|
35128
|
+
if (dialog) {
|
|
35129
|
+
this._isDialogOpened = true;
|
|
35130
|
+
dialog.e.on('beforeClose', () => {
|
|
35131
|
+
this._isDialogOpened = false;
|
|
35132
|
+
});
|
|
35133
|
+
}
|
|
35134
|
+
return true;
|
|
35102
35135
|
}
|
|
35103
35136
|
/**
|
|
35104
35137
|
* Insert HTML by option type
|
|
35105
35138
|
*/
|
|
35106
|
-
|
|
35139
|
+
__insertByType(e, html, action) {
|
|
35107
35140
|
this.pasteStack.push({ html, action });
|
|
35108
35141
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(html)) {
|
|
35109
35142
|
this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.CLIPBOARD_ID, html);
|
|
@@ -41848,7 +41881,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41848
41881
|
|
|
41849
41882
|
/***/ }),
|
|
41850
41883
|
|
|
41851
|
-
/***/
|
|
41884
|
+
/***/ 68353:
|
|
41885
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
41886
|
+
|
|
41887
|
+
"use strict";
|
|
41888
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
41889
|
+
/*!
|
|
41890
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41891
|
+
* See LICENSE.md in the project root for license information.
|
|
41892
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41893
|
+
*/
|
|
41894
|
+
|
|
41895
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font.list = {
|
|
41896
|
+
'andale mono,monospace': 'Andale Mono',
|
|
41897
|
+
'arial,helvetica,sans-serif': 'Arial',
|
|
41898
|
+
'arial black,sans-serif': 'Arial Black',
|
|
41899
|
+
'book antiqua,palatino,serif': 'Book Antiqua',
|
|
41900
|
+
'comic sans ms,sans-serif': 'Comic Sans MS',
|
|
41901
|
+
'courier new,courier,monospace': 'Courier New',
|
|
41902
|
+
'georgia,palatino,serif': 'Georgia',
|
|
41903
|
+
'helvetica,arial,sans-serif': 'Helvetica',
|
|
41904
|
+
'impact,charcoal,sans-serif': 'Impact',
|
|
41905
|
+
'symbol,sans-serif': 'Symbol',
|
|
41906
|
+
'tahoma,arial,helvetica,sans-serif': 'Tahoma',
|
|
41907
|
+
'terminal,monaco,monospace': 'Terminal',
|
|
41908
|
+
'times new roman,times,serif': 'Times New Roman',
|
|
41909
|
+
'trebuchet ms,geneva,sans-serif': 'Trebuchet MS',
|
|
41910
|
+
'verdana,geneva,sans-serif': 'Verdana',
|
|
41911
|
+
webdings: 'Webdings',
|
|
41912
|
+
'wingdings,zapf dingbats': 'Wingdings'
|
|
41913
|
+
};
|
|
41914
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.loadExternalConfig = true;
|
|
41915
|
+
|
|
41916
|
+
|
|
41917
|
+
/***/ }),
|
|
41918
|
+
|
|
41919
|
+
/***/ 53852:
|
|
41852
41920
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41853
41921
|
|
|
41854
41922
|
"use strict";
|
|
@@ -41905,62 +41973,440 @@ class JoditPro extends jodit_index__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .h {
|
|
|
41905
41973
|
|
|
41906
41974
|
/***/ }),
|
|
41907
41975
|
|
|
41908
|
-
/***/
|
|
41909
|
-
/***/ (function(__unused_webpack_module,
|
|
41976
|
+
/***/ 93123:
|
|
41977
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41910
41978
|
|
|
41911
41979
|
"use strict";
|
|
41912
|
-
|
|
41980
|
+
__webpack_require__.r(__webpack_exports__);
|
|
41981
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41982
|
+
/* harmony export */ "autocomplete": function() { return /* binding */ autocomplete; }
|
|
41983
|
+
/* harmony export */ });
|
|
41984
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(97582);
|
|
41985
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
|
|
41986
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77628);
|
|
41987
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
|
|
41988
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95582);
|
|
41989
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44913);
|
|
41990
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19797);
|
|
41991
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11612);
|
|
41992
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77325);
|
|
41993
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53852);
|
|
41994
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(47325);
|
|
41913
41995
|
/*!
|
|
41914
41996
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41915
41997
|
* See LICENSE.md in the project root for license information.
|
|
41916
41998
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41917
41999
|
*/
|
|
41918
42000
|
|
|
41919
|
-
|
|
41920
|
-
|
|
41921
|
-
|
|
41922
|
-
|
|
41923
|
-
|
|
41924
|
-
|
|
41925
|
-
|
|
41926
|
-
|
|
41927
|
-
|
|
41928
|
-
|
|
41929
|
-
|
|
41930
|
-
|
|
41931
|
-
|
|
41932
|
-
|
|
41933
|
-
|
|
41934
|
-
|
|
41935
|
-
webdings: 'Webdings',
|
|
41936
|
-
'wingdings,zapf dingbats': 'Wingdings'
|
|
42001
|
+
|
|
42002
|
+
|
|
42003
|
+
|
|
42004
|
+
|
|
42005
|
+
|
|
42006
|
+
|
|
42007
|
+
|
|
42008
|
+
|
|
42009
|
+
|
|
42010
|
+
|
|
42011
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.autocomplete = {
|
|
42012
|
+
sources: [],
|
|
42013
|
+
maxItems: 50,
|
|
42014
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
42015
|
+
itemRenderer: (item) => item.title ?? item.value,
|
|
42016
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
41937
42017
|
};
|
|
41938
|
-
|
|
42018
|
+
class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
|
|
42019
|
+
constructor() {
|
|
42020
|
+
super(...arguments);
|
|
42021
|
+
/** @override */
|
|
42022
|
+
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.fatMode */ .y.fatMode;
|
|
42023
|
+
this.sources = [];
|
|
42024
|
+
}
|
|
42025
|
+
/** @override */
|
|
42026
|
+
afterInit(jodit) {
|
|
42027
|
+
this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .G(jodit);
|
|
42028
|
+
this.popup.setMod('padding', false);
|
|
42029
|
+
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .F(jodit);
|
|
42030
|
+
this.popup.setContent(this.list.container);
|
|
42031
|
+
jodit.e
|
|
42032
|
+
.on('select.autocomplete', (item) => {
|
|
42033
|
+
let insertValue = item.value;
|
|
42034
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(item.insertValueRenderer)) {
|
|
42035
|
+
insertValue = item.insertValueRenderer(item);
|
|
42036
|
+
}
|
|
42037
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom.isNode */ .i.isNode(insertValue)) {
|
|
42038
|
+
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
42039
|
+
}
|
|
42040
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .replaceTextLeftOfCursorAfterSpace */ .p)(jodit.s.range, insertValue);
|
|
42041
|
+
this.j.s.setCursorAfter(insertValue);
|
|
42042
|
+
this.j.synchronizeValues();
|
|
42043
|
+
this.popup.close();
|
|
42044
|
+
})
|
|
42045
|
+
.on('keydown.autocomplete', this.onKeyDown)
|
|
42046
|
+
.on('keydown.autocomplete', this.onKeyControlDown, {
|
|
42047
|
+
top: true
|
|
42048
|
+
})
|
|
42049
|
+
.on('beforeEnter.autocomplete', this.onEnter, { top: true })
|
|
42050
|
+
.on('autocomplete.autocomplete', this.onAutoComplete)
|
|
42051
|
+
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource);
|
|
42052
|
+
}
|
|
42053
|
+
registerAutocompleteSource(source) {
|
|
42054
|
+
this.sources.push(source);
|
|
42055
|
+
}
|
|
42056
|
+
static isControlKey(key) {
|
|
42057
|
+
return (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN ||
|
|
42058
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ||
|
|
42059
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ENTER ||
|
|
42060
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB);
|
|
42061
|
+
}
|
|
42062
|
+
async onKeyDown(e) {
|
|
42063
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ESC) {
|
|
42064
|
+
this.popup.isOpened && this.popup.close();
|
|
42065
|
+
return;
|
|
42066
|
+
}
|
|
42067
|
+
const { s } = this.j;
|
|
42068
|
+
if (autocomplete.isControlKey(e.key) ||
|
|
42069
|
+
!s.isInsideArea ||
|
|
42070
|
+
!s.isCollapsed) {
|
|
42071
|
+
return;
|
|
42072
|
+
}
|
|
42073
|
+
const range = this.j.s.sel?.rangeCount
|
|
42074
|
+
? this.j.s.sel?.getRangeAt(0)
|
|
42075
|
+
: null;
|
|
42076
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .getTextLeftOfCursor */ .Y)(range).split(' ').pop();
|
|
42077
|
+
if (query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length) {
|
|
42078
|
+
const result = await this.onAutoComplete(query);
|
|
42079
|
+
if (result.length) {
|
|
42080
|
+
return this.openPopup(result);
|
|
42081
|
+
}
|
|
42082
|
+
}
|
|
42083
|
+
if (this.popup.isOpened) {
|
|
42084
|
+
this.popup.close();
|
|
42085
|
+
}
|
|
42086
|
+
}
|
|
42087
|
+
onKeyControlDown(e) {
|
|
42088
|
+
if (this.popup.isOpened && autocomplete.isControlKey(e.key)) {
|
|
42089
|
+
switch (e.key) {
|
|
42090
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN:
|
|
42091
|
+
this.list.selectNext();
|
|
42092
|
+
break;
|
|
42093
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP:
|
|
42094
|
+
this.list.selectPrevious();
|
|
42095
|
+
break;
|
|
42096
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB:
|
|
42097
|
+
this.list.select();
|
|
42098
|
+
break;
|
|
42099
|
+
}
|
|
42100
|
+
this.j.e.stopPropagation(e.type);
|
|
42101
|
+
return false;
|
|
42102
|
+
}
|
|
42103
|
+
}
|
|
42104
|
+
onEnter() {
|
|
42105
|
+
if (this.popup.isOpened) {
|
|
42106
|
+
this.list.select();
|
|
42107
|
+
return false;
|
|
42108
|
+
}
|
|
42109
|
+
}
|
|
42110
|
+
async onAutoComplete(query) {
|
|
42111
|
+
const result = [];
|
|
42112
|
+
await Promise.all(this.sources
|
|
42113
|
+
.concat(this.j.o.autocomplete.sources)
|
|
42114
|
+
.map(async (source) => {
|
|
42115
|
+
result.push(...(await this.resolveFeed(query, source)));
|
|
42116
|
+
}));
|
|
42117
|
+
return result;
|
|
42118
|
+
}
|
|
42119
|
+
async resolveFeed(query, feed, baseSource) {
|
|
42120
|
+
let parts;
|
|
42121
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(feed)) {
|
|
42122
|
+
feed = await feed;
|
|
42123
|
+
}
|
|
42124
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(feed)) {
|
|
42125
|
+
parts = await feed(query);
|
|
42126
|
+
}
|
|
42127
|
+
else if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(feed)) {
|
|
42128
|
+
const arrayFeed = feed, { isMatchedQuery } = this.j.o.autocomplete;
|
|
42129
|
+
parts = arrayFeed
|
|
42130
|
+
.filter((item) => {
|
|
42131
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
42132
|
+
return isMatchedQuery(query, item);
|
|
42133
|
+
}
|
|
42134
|
+
return isMatchedQuery(query, item.value);
|
|
42135
|
+
})
|
|
42136
|
+
.map((item) => {
|
|
42137
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
42138
|
+
return { title: item, value: item };
|
|
42139
|
+
}
|
|
42140
|
+
return item;
|
|
42141
|
+
});
|
|
42142
|
+
}
|
|
42143
|
+
else {
|
|
42144
|
+
parts = await this.resolveFeed(query, feed.feed, feed);
|
|
42145
|
+
}
|
|
42146
|
+
if (parts && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(parts)) {
|
|
42147
|
+
const { itemRenderer, insertValueRenderer, maxItems } = this.j.o.autocomplete;
|
|
42148
|
+
parts = parts.map((item) => ({
|
|
42149
|
+
itemRenderer: baseSource?.itemRenderer ?? itemRenderer,
|
|
42150
|
+
insertValueRenderer: baseSource?.insertValueRenderer ?? insertValueRenderer,
|
|
42151
|
+
...item
|
|
42152
|
+
}));
|
|
42153
|
+
return parts.slice(0, maxItems);
|
|
42154
|
+
}
|
|
42155
|
+
return [];
|
|
42156
|
+
}
|
|
42157
|
+
openPopup(result) {
|
|
42158
|
+
this.list.build(result);
|
|
42159
|
+
this.popup.open(() => {
|
|
42160
|
+
const { j } = this;
|
|
42161
|
+
const rect = j.s.range.getBoundingClientRect();
|
|
42162
|
+
const bound = {
|
|
42163
|
+
left: rect.left,
|
|
42164
|
+
top: rect.top,
|
|
42165
|
+
height: rect.height,
|
|
42166
|
+
width: rect.width
|
|
42167
|
+
};
|
|
42168
|
+
if (j.o.iframe && j.iframe) {
|
|
42169
|
+
const pos = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(j.iframe, j);
|
|
42170
|
+
bound.top += pos.top;
|
|
42171
|
+
bound.left += pos.left;
|
|
42172
|
+
}
|
|
42173
|
+
return bound;
|
|
42174
|
+
});
|
|
42175
|
+
}
|
|
42176
|
+
/** @override */
|
|
42177
|
+
beforeDestruct(jodit) {
|
|
42178
|
+
jodit.e
|
|
42179
|
+
.off(this.list)
|
|
42180
|
+
.off('keydown.autocomplete', this.onKeyDown)
|
|
42181
|
+
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
42182
|
+
.off('.autocomplete');
|
|
42183
|
+
this.list.destruct();
|
|
42184
|
+
this.popup.destruct();
|
|
42185
|
+
}
|
|
42186
|
+
}
|
|
42187
|
+
/** @override */
|
|
42188
|
+
autocomplete.requires = ['enter', 'license'];
|
|
42189
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42190
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42191
|
+
], autocomplete.prototype, "registerAutocompleteSource", null);
|
|
42192
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42193
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
|
|
42194
|
+
], autocomplete.prototype, "onKeyDown", null);
|
|
42195
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42196
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42197
|
+
], autocomplete.prototype, "onKeyControlDown", null);
|
|
42198
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42199
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42200
|
+
], autocomplete.prototype, "onEnter", null);
|
|
42201
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42202
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42203
|
+
], autocomplete.prototype, "onAutoComplete", null);
|
|
42204
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
42205
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
42206
|
+
], autocomplete.prototype, "resolveFeed", null);
|
|
42207
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.plugins.add */ .y.plugins.add('autocomplete', autocomplete);
|
|
41939
42208
|
|
|
41940
42209
|
|
|
41941
42210
|
/***/ }),
|
|
41942
42211
|
|
|
41943
|
-
/***/
|
|
42212
|
+
/***/ 47325:
|
|
41944
42213
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41945
42214
|
|
|
41946
42215
|
"use strict";
|
|
41947
|
-
__webpack_require__.r(__webpack_exports__);
|
|
41948
42216
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41949
|
-
/* harmony export */ "
|
|
42217
|
+
/* harmony export */ "Y": function() { return /* binding */ getTextLeftOfCursor; },
|
|
42218
|
+
/* harmony export */ "p": function() { return /* binding */ replaceTextLeftOfCursorAfterSpace; }
|
|
41950
42219
|
/* harmony export */ });
|
|
41951
|
-
/* harmony import */ var
|
|
41952
|
-
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
42220
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44913);
|
|
41953
42221
|
/*!
|
|
41954
42222
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41955
42223
|
* See LICENSE.md in the project root for license information.
|
|
41956
42224
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41957
42225
|
*/
|
|
41958
42226
|
|
|
42227
|
+
/**
|
|
42228
|
+
* For collapsed selection return left text value before cursor
|
|
42229
|
+
* @example
|
|
42230
|
+
* ```
|
|
42231
|
+
* <p><string>test</strong>pop|</p> => pop
|
|
42232
|
+
* <p><string>test|</strong>pop</p> => test
|
|
42233
|
+
* <p><string>te|st</strong>pop</p> => te
|
|
42234
|
+
* ```
|
|
42235
|
+
*/
|
|
42236
|
+
function getTextLeftOfCursor(range) {
|
|
42237
|
+
const { startContainer, startOffset } = range;
|
|
42238
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42239
|
+
return startContainer.nodeValue?.substr(0, startOffset) ?? '';
|
|
42240
|
+
}
|
|
42241
|
+
const node = startContainer.childNodes[startOffset];
|
|
42242
|
+
if (!node) {
|
|
42243
|
+
return '';
|
|
42244
|
+
}
|
|
42245
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(node)) {
|
|
42246
|
+
return node.nodeValue ?? '';
|
|
42247
|
+
}
|
|
42248
|
+
const previous = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.findNotEmptyNeighbor */ .i.findNotEmptyNeighbor(node, true, startContainer);
|
|
42249
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(previous)) {
|
|
42250
|
+
return node.nodeValue ?? '';
|
|
42251
|
+
}
|
|
42252
|
+
return '';
|
|
42253
|
+
}
|
|
42254
|
+
/**
|
|
42255
|
+
* For collapsed selection replace part of left text value before cursor but started after space
|
|
42256
|
+
* @example
|
|
42257
|
+
* ```
|
|
42258
|
+
* <p><string>test</strong>pap|</p> + pappy = <p><string>test</strong>pappy|</p>
|
|
42259
|
+
* <p><string>test</strong>pap| test</p> + pappy = <p><string>test</strong>pappy| test</p>
|
|
42260
|
+
* <p><string>test</strong>stat pap| test</p> + pappy = <p><string>test</strong>stat pappy| test</p>
|
|
42261
|
+
* ```
|
|
42262
|
+
*/
|
|
42263
|
+
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
42264
|
+
// eslint-disable-next-line prefer-const
|
|
42265
|
+
let { startContainer, startOffset } = range;
|
|
42266
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42267
|
+
startContainer = startContainer.childNodes[startOffset - 1];
|
|
42268
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42269
|
+
startOffset = startContainer.nodeValue?.length ?? 0;
|
|
42270
|
+
}
|
|
42271
|
+
}
|
|
42272
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
42273
|
+
const value = startContainer.nodeValue ?? '', leftSide = value.substring(0, startOffset), rightSide = value.substring(startOffset);
|
|
42274
|
+
const words = leftSide.split(' ');
|
|
42275
|
+
words[words.length - 1] = '';
|
|
42276
|
+
const newLeftSide = words.join(' ');
|
|
42277
|
+
startContainer.nodeValue = newLeftSide + rightSide;
|
|
42278
|
+
range.setStart(startContainer, newLeftSide.length);
|
|
42279
|
+
range.insertNode(elm);
|
|
42280
|
+
return;
|
|
42281
|
+
}
|
|
42282
|
+
}
|
|
41959
42283
|
|
|
41960
42284
|
|
|
41961
|
-
|
|
41962
|
-
|
|
41963
|
-
|
|
42285
|
+
/***/ }),
|
|
42286
|
+
|
|
42287
|
+
/***/ 77325:
|
|
42288
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42289
|
+
|
|
42290
|
+
"use strict";
|
|
42291
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42292
|
+
/* harmony export */ "F": function() { return /* binding */ Autocomplete; }
|
|
42293
|
+
/* harmony export */ });
|
|
42294
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
42295
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
|
|
42296
|
+
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91630);
|
|
42297
|
+
/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91381);
|
|
42298
|
+
/*!
|
|
42299
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42300
|
+
* See LICENSE.md in the project root for license information.
|
|
42301
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42302
|
+
*/
|
|
42303
|
+
|
|
42304
|
+
|
|
42305
|
+
|
|
42306
|
+
|
|
42307
|
+
|
|
42308
|
+
let Autocomplete = class Autocomplete extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__/* .UIGroup */ .q {
|
|
42309
|
+
constructor() {
|
|
42310
|
+
super(...arguments);
|
|
42311
|
+
this.elements = [];
|
|
42312
|
+
this.currentSelection = -1;
|
|
42313
|
+
}
|
|
42314
|
+
/** @override */
|
|
42315
|
+
className() {
|
|
42316
|
+
return 'Autocomplete';
|
|
42317
|
+
}
|
|
42318
|
+
onChangeSelection(_, previous) {
|
|
42319
|
+
previous != null && this.elements[previous]?.setMod('active', false);
|
|
42320
|
+
this.elements[this.currentSelection].setMod('active', true);
|
|
42321
|
+
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
42322
|
+
}
|
|
42323
|
+
build(list) {
|
|
42324
|
+
this.clear();
|
|
42325
|
+
list.forEach((elm, index) => {
|
|
42326
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_2__/* .AutocompleteItem */ .h(this.jodit, elm);
|
|
42327
|
+
this.j.e
|
|
42328
|
+
.on(item.container, 'mousedown touchstart', (e) => {
|
|
42329
|
+
e.preventDefault();
|
|
42330
|
+
})
|
|
42331
|
+
.on(item.container, 'click', () => {
|
|
42332
|
+
this.currentSelection = index;
|
|
42333
|
+
this.select();
|
|
42334
|
+
});
|
|
42335
|
+
this.append(item);
|
|
42336
|
+
});
|
|
42337
|
+
this.currentSelection = 0;
|
|
42338
|
+
this.onChangeSelection();
|
|
42339
|
+
}
|
|
42340
|
+
selectNext() {
|
|
42341
|
+
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
42342
|
+
this.currentSelection += 1;
|
|
42343
|
+
}
|
|
42344
|
+
else {
|
|
42345
|
+
this.currentSelection = 0;
|
|
42346
|
+
}
|
|
42347
|
+
}
|
|
42348
|
+
selectPrevious() {
|
|
42349
|
+
if (this.currentSelection - 1 >= 0) {
|
|
42350
|
+
this.currentSelection -= 1;
|
|
42351
|
+
}
|
|
42352
|
+
else {
|
|
42353
|
+
this.currentSelection = this.elements.length - 1;
|
|
42354
|
+
}
|
|
42355
|
+
}
|
|
42356
|
+
select() {
|
|
42357
|
+
this.j.e.fire('select.autocomplete', this.elements[this.currentSelection].item);
|
|
42358
|
+
}
|
|
42359
|
+
};
|
|
42360
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
42361
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.watch)('currentSelection')
|
|
42362
|
+
], Autocomplete.prototype, "onChangeSelection", null);
|
|
42363
|
+
Autocomplete = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
42364
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
42365
|
+
], Autocomplete);
|
|
42366
|
+
|
|
42367
|
+
|
|
42368
|
+
/***/ }),
|
|
42369
|
+
|
|
42370
|
+
/***/ 91381:
|
|
42371
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42372
|
+
|
|
42373
|
+
"use strict";
|
|
42374
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42375
|
+
/* harmony export */ "h": function() { return /* binding */ AutocompleteItem; }
|
|
42376
|
+
/* harmony export */ });
|
|
42377
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84789);
|
|
42378
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71350);
|
|
42379
|
+
/*!
|
|
42380
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42381
|
+
* See LICENSE.md in the project root for license information.
|
|
42382
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42383
|
+
*/
|
|
42384
|
+
|
|
42385
|
+
|
|
42386
|
+
|
|
42387
|
+
class AutocompleteItem extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u {
|
|
42388
|
+
/** @override */
|
|
42389
|
+
className() {
|
|
42390
|
+
return 'AutocompleteItem';
|
|
42391
|
+
}
|
|
42392
|
+
constructor(jodit, item) {
|
|
42393
|
+
super(jodit);
|
|
42394
|
+
this.item = item;
|
|
42395
|
+
const { container } = this;
|
|
42396
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .mf)(item.itemRenderer)) {
|
|
42397
|
+
const elm = item.itemRenderer(item);
|
|
42398
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .HD)(elm)) {
|
|
42399
|
+
container.innerHTML = elm;
|
|
42400
|
+
}
|
|
42401
|
+
else {
|
|
42402
|
+
container.appendChild(elm);
|
|
42403
|
+
}
|
|
42404
|
+
}
|
|
42405
|
+
else {
|
|
42406
|
+
container.innerText = item.title ?? item.value;
|
|
42407
|
+
}
|
|
42408
|
+
}
|
|
42409
|
+
}
|
|
41964
42410
|
|
|
41965
42411
|
|
|
41966
42412
|
/***/ }),
|
|
@@ -41969,7 +42415,9 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
41969
42415
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
41970
42416
|
|
|
41971
42417
|
"use strict";
|
|
41972
|
-
/* harmony import */ var
|
|
42418
|
+
/* harmony import */ var jodit_pro_plugins_license_license__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19564);
|
|
42419
|
+
/* harmony import */ var jodit_pro_plugins_autocomplete_autocomplete__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93123);
|
|
42420
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70322);
|
|
41973
42421
|
/*!
|
|
41974
42422
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41975
42423
|
* See LICENSE.md in the project root for license information.
|
|
@@ -41978,6 +42426,8 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
41978
42426
|
|
|
41979
42427
|
|
|
41980
42428
|
|
|
42429
|
+
|
|
42430
|
+
|
|
41981
42431
|
/***/ }),
|
|
41982
42432
|
|
|
41983
42433
|
/***/ 39401:
|
|
@@ -42062,8 +42512,8 @@ __webpack_unused_export__ = domainsHash;
|
|
|
42062
42512
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
42063
42513
|
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46232);
|
|
42064
42514
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11612);
|
|
42065
|
-
/* harmony import */ var
|
|
42066
|
-
/* harmony import */ var
|
|
42515
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
42516
|
+
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39401);
|
|
42067
42517
|
/*!
|
|
42068
42518
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42069
42519
|
* See LICENSE.md in the project root for license information.
|
|
@@ -42083,7 +42533,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42083
42533
|
afterInit(jodit) {
|
|
42084
42534
|
this.j.e.on('checkReserve', async () => {
|
|
42085
42535
|
const code = this.j.o.license, domain = location.host;
|
|
42086
|
-
let valid = (0,
|
|
42536
|
+
let valid = (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(code, domain);
|
|
42087
42537
|
if (!valid && code[12] > 'A' && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.IS_TEST) {
|
|
42088
42538
|
valid = await this.validateLicenseRemote(code, domain);
|
|
42089
42539
|
}
|
|
@@ -42094,7 +42544,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42094
42544
|
beforeDestruct(jodit) { }
|
|
42095
42545
|
async validateLicenseRemote(code, domain) {
|
|
42096
42546
|
const storageKey = 'validateJoditLicenseRemote', newCode = this.j.storage.get(storageKey);
|
|
42097
|
-
if (newCode && (0,
|
|
42547
|
+
if (newCode && (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
42098
42548
|
return true;
|
|
42099
42549
|
}
|
|
42100
42550
|
const s = document.createElement('script');
|
|
@@ -42106,7 +42556,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42106
42556
|
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_5__/* .isBoolean */ .j)(newCode)) {
|
|
42107
42557
|
return res(newCode);
|
|
42108
42558
|
}
|
|
42109
|
-
if ((0,
|
|
42559
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
42110
42560
|
this.j.storage.set(storageKey, newCode);
|
|
42111
42561
|
res(true);
|
|
42112
42562
|
}
|
|
@@ -42125,7 +42575,1534 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
42125
42575
|
});
|
|
42126
42576
|
}
|
|
42127
42577
|
}
|
|
42128
|
-
|
|
42578
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('license', license);
|
|
42579
|
+
|
|
42580
|
+
|
|
42581
|
+
/***/ }),
|
|
42582
|
+
|
|
42583
|
+
/***/ 12750:
|
|
42584
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42585
|
+
|
|
42586
|
+
"use strict";
|
|
42587
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42588
|
+
/* harmony export */ "C": function() { return /* binding */ cleanStyles; }
|
|
42589
|
+
/* harmony export */ });
|
|
42590
|
+
/*!
|
|
42591
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42592
|
+
* See LICENSE.md in the project root for license information.
|
|
42593
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42594
|
+
*/
|
|
42595
|
+
const forbiddenStyles = {
|
|
42596
|
+
'text-justify': ['inter-ideograph']
|
|
42597
|
+
};
|
|
42598
|
+
function cleanStyles(elm) {
|
|
42599
|
+
if (elm.isElement && elm.attributes.style) {
|
|
42600
|
+
Object.keys(forbiddenStyles).forEach((key) => {
|
|
42601
|
+
const values = forbiddenStyles[key];
|
|
42602
|
+
if (elm.style.has(key)) {
|
|
42603
|
+
// @ts-ignore
|
|
42604
|
+
if (values.includes(elm.style.get(key)?.toString())) {
|
|
42605
|
+
elm.style.set(key, null);
|
|
42606
|
+
}
|
|
42607
|
+
}
|
|
42608
|
+
});
|
|
42609
|
+
}
|
|
42610
|
+
return elm;
|
|
42611
|
+
}
|
|
42612
|
+
|
|
42613
|
+
|
|
42614
|
+
/***/ }),
|
|
42615
|
+
|
|
42616
|
+
/***/ 76995:
|
|
42617
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42618
|
+
|
|
42619
|
+
"use strict";
|
|
42620
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42621
|
+
/* harmony export */ "i": function() { return /* binding */ clearAttributes; }
|
|
42622
|
+
/* harmony export */ });
|
|
42623
|
+
/*!
|
|
42624
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42625
|
+
* See LICENSE.md in the project root for license information.
|
|
42626
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42627
|
+
*/
|
|
42628
|
+
const extraAttributes = [
|
|
42629
|
+
'cellspacing',
|
|
42630
|
+
'cellpadding',
|
|
42631
|
+
'border',
|
|
42632
|
+
'v:shapes',
|
|
42633
|
+
'o:spid'
|
|
42634
|
+
];
|
|
42635
|
+
function clearAttributes(elm) {
|
|
42636
|
+
if (/^OLE_LINK\d+$/.test(elm.attributes.name)) {
|
|
42637
|
+
elm.attributes.name = null;
|
|
42638
|
+
if (elm.length === 0) {
|
|
42639
|
+
elm.remove();
|
|
42640
|
+
return null;
|
|
42641
|
+
}
|
|
42642
|
+
}
|
|
42643
|
+
if (elm.attributes.name === '_GoBack') {
|
|
42644
|
+
elm.attributes.name = null;
|
|
42645
|
+
}
|
|
42646
|
+
// Remove extra attributes
|
|
42647
|
+
for (const attr of extraAttributes) {
|
|
42648
|
+
if (elm.attributes[attr]) {
|
|
42649
|
+
elm.attributes[attr] = null;
|
|
42650
|
+
}
|
|
42651
|
+
}
|
|
42652
|
+
return elm;
|
|
42653
|
+
}
|
|
42654
|
+
|
|
42655
|
+
|
|
42656
|
+
/***/ }),
|
|
42657
|
+
|
|
42658
|
+
/***/ 53614:
|
|
42659
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42660
|
+
|
|
42661
|
+
"use strict";
|
|
42662
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42663
|
+
/* harmony export */ "a": function() { return /* binding */ clearClassName; }
|
|
42664
|
+
/* harmony export */ });
|
|
42665
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
42666
|
+
/*!
|
|
42667
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42668
|
+
* See LICENSE.md in the project root for license information.
|
|
42669
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42670
|
+
*/
|
|
42671
|
+
|
|
42672
|
+
const clearClassName = (elm) => {
|
|
42673
|
+
// Normalize or remove class
|
|
42674
|
+
if (elm.attributes.class) {
|
|
42675
|
+
elm.attributes.class = elm.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi, '');
|
|
42676
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .f)(elm.attributes.class)) {
|
|
42677
|
+
elm.attributes.class = null;
|
|
42678
|
+
}
|
|
42679
|
+
}
|
|
42680
|
+
return elm;
|
|
42681
|
+
};
|
|
42682
|
+
|
|
42683
|
+
|
|
42684
|
+
/***/ }),
|
|
42685
|
+
|
|
42686
|
+
/***/ 50353:
|
|
42687
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42688
|
+
|
|
42689
|
+
"use strict";
|
|
42690
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42691
|
+
/* harmony export */ "b": function() { return /* binding */ convertStyleUnitToPixels; }
|
|
42692
|
+
/* harmony export */ });
|
|
42693
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18352);
|
|
42694
|
+
/*!
|
|
42695
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42696
|
+
* See LICENSE.md in the project root for license information.
|
|
42697
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42698
|
+
*/
|
|
42699
|
+
|
|
42700
|
+
const convertStyleUnitToPixels = (elm, { jodit }) => {
|
|
42701
|
+
if (!jodit.o.pasteFromWord.convertUnitsToPixel) {
|
|
42702
|
+
return elm;
|
|
42703
|
+
}
|
|
42704
|
+
const { style } = elm;
|
|
42705
|
+
style.forEach((key) => {
|
|
42706
|
+
const v = style.get(key);
|
|
42707
|
+
if (v) {
|
|
42708
|
+
style.set(key, v
|
|
42709
|
+
.toString()
|
|
42710
|
+
.replace(/\d+(\.\d+)?(pt|cm)/g, (match) => (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__/* .convertUnitToPx */ .Lp)(match) + 'px'));
|
|
42711
|
+
}
|
|
42712
|
+
});
|
|
42713
|
+
return elm;
|
|
42714
|
+
};
|
|
42715
|
+
|
|
42716
|
+
|
|
42717
|
+
/***/ }),
|
|
42718
|
+
|
|
42719
|
+
/***/ 45054:
|
|
42720
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42721
|
+
|
|
42722
|
+
"use strict";
|
|
42723
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42724
|
+
/* harmony export */ "S": function() { return /* binding */ convertToList; }
|
|
42725
|
+
/* harmony export */ });
|
|
42726
|
+
/* unused harmony export removeRedundancyStyle */
|
|
42727
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
42728
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18352);
|
|
42729
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
42730
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19438);
|
|
42731
|
+
/*!
|
|
42732
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42733
|
+
* See LICENSE.md in the project root for license information.
|
|
42734
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42735
|
+
*/
|
|
42736
|
+
|
|
42737
|
+
|
|
42738
|
+
|
|
42739
|
+
|
|
42740
|
+
function convertToList(elm) {
|
|
42741
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isPseudoLeaf */ .Hh)(elm)) {
|
|
42742
|
+
elm.name = 'li';
|
|
42743
|
+
elm.style.set('text-indent', null);
|
|
42744
|
+
const symbol = getSymbol(elm), listType = /[\da-np-zA-NP-Z].?/.test(symbol) ? 'ol' : 'ul', listStyle = defineOrderedListStyle(symbol, listType);
|
|
42745
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .TYPE_KEY */ .YJ] = listType;
|
|
42746
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf] = listStyle;
|
|
42747
|
+
(0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcListLevels */ .rd)(elm);
|
|
42748
|
+
moveUp(elm);
|
|
42749
|
+
const { parent } = elm;
|
|
42750
|
+
// After move up we inside List or Leaf
|
|
42751
|
+
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)) {
|
|
42752
|
+
const newList = wrapInNewList(elm, listType, symbol, listStyle);
|
|
42753
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(parent)) {
|
|
42754
|
+
newList.remove(); // Not to add to oneself
|
|
42755
|
+
parent.lastElement?.append(newList);
|
|
42756
|
+
}
|
|
42757
|
+
return elm;
|
|
42758
|
+
}
|
|
42759
|
+
}
|
|
42760
|
+
return elm;
|
|
42761
|
+
}
|
|
42762
|
+
function moveUp(leaf) {
|
|
42763
|
+
// eslint-disable-next-line no-constant-condition
|
|
42764
|
+
while (leaf) {
|
|
42765
|
+
const prev = leaf.previousElement;
|
|
42766
|
+
// Leaf after P
|
|
42767
|
+
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))) {
|
|
42768
|
+
break;
|
|
42769
|
+
}
|
|
42770
|
+
// Leaf after Leaf
|
|
42771
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isLeaf */ .Be)(prev)) {
|
|
42772
|
+
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]) {
|
|
42773
|
+
break;
|
|
42774
|
+
}
|
|
42775
|
+
// Leaf after leaf with same level and inside the right list
|
|
42776
|
+
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] &&
|
|
42777
|
+
leaf.parent &&
|
|
42778
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, leaf.parent)) {
|
|
42779
|
+
break;
|
|
42780
|
+
}
|
|
42781
|
+
prev.append(leaf);
|
|
42782
|
+
continue;
|
|
42783
|
+
}
|
|
42784
|
+
const list = prev;
|
|
42785
|
+
// Leaf after list with more level
|
|
42786
|
+
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]) {
|
|
42787
|
+
break;
|
|
42788
|
+
}
|
|
42789
|
+
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] &&
|
|
42790
|
+
!(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, list)) {
|
|
42791
|
+
break;
|
|
42792
|
+
}
|
|
42793
|
+
list.append(leaf);
|
|
42794
|
+
}
|
|
42795
|
+
}
|
|
42796
|
+
/**
|
|
42797
|
+
* Remove redundancy default list styles.
|
|
42798
|
+
*/
|
|
42799
|
+
function removeRedundancyStyle(newList) {
|
|
42800
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(newList) &&
|
|
42801
|
+
newList.parent?.name !== 'li' &&
|
|
42802
|
+
(newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'disc' ||
|
|
42803
|
+
newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'decimal')) {
|
|
42804
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, null);
|
|
42805
|
+
}
|
|
42806
|
+
}
|
|
42807
|
+
function defineOrderedListStyle(symbol, listType) {
|
|
42808
|
+
for (const reg in jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1) {
|
|
42809
|
+
if (RegExp(reg).test(symbol)) {
|
|
42810
|
+
return jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1[reg];
|
|
42811
|
+
}
|
|
42812
|
+
}
|
|
42813
|
+
return listType === 'ol' ? 'decimal' : 'disc';
|
|
42814
|
+
}
|
|
42815
|
+
const getSymbol = (elm) => elm
|
|
42816
|
+
.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)))
|
|
42817
|
+
.replace(/ /g, '')
|
|
42818
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
42819
|
+
function wrapInNewList(elm, listType, symbol, listStyle) {
|
|
42820
|
+
const newList = elm.wrap(listType);
|
|
42821
|
+
newList.attributes['start'] = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcStartBySymbol */ .Sg)(symbol);
|
|
42822
|
+
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];
|
|
42823
|
+
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];
|
|
42824
|
+
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];
|
|
42825
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, listStyle);
|
|
42826
|
+
removeRedundancyStyle(newList);
|
|
42827
|
+
return newList;
|
|
42828
|
+
}
|
|
42829
|
+
|
|
42830
|
+
|
|
42831
|
+
/***/ }),
|
|
42832
|
+
|
|
42833
|
+
/***/ 44669:
|
|
42834
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42835
|
+
|
|
42836
|
+
"use strict";
|
|
42837
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42838
|
+
/* harmony export */ "c": function() { return /* binding */ cases; }
|
|
42839
|
+
/* harmony export */ });
|
|
42840
|
+
/* harmony import */ var _convert_to_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45054);
|
|
42841
|
+
/* harmony import */ var _clear_attributes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(76995);
|
|
42842
|
+
/* harmony import */ var _remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76148);
|
|
42843
|
+
/* harmony import */ var _replace_old_tags__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38450);
|
|
42844
|
+
/* harmony import */ var _remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33135);
|
|
42845
|
+
/* harmony import */ var _convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50353);
|
|
42846
|
+
/* harmony import */ var _clear_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53614);
|
|
42847
|
+
/* harmony import */ var _process_links__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62094);
|
|
42848
|
+
/* harmony import */ var _normalize_image_props__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(83432);
|
|
42849
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(38933);
|
|
42850
|
+
/* harmony import */ var _mark_page_break__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50374);
|
|
42851
|
+
/* harmony import */ var _process_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38535);
|
|
42852
|
+
/* harmony import */ var _clean_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12750);
|
|
42853
|
+
/*!
|
|
42854
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42855
|
+
* See LICENSE.md in the project root for license information.
|
|
42856
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42857
|
+
*/
|
|
42858
|
+
|
|
42859
|
+
|
|
42860
|
+
|
|
42861
|
+
|
|
42862
|
+
|
|
42863
|
+
|
|
42864
|
+
|
|
42865
|
+
|
|
42866
|
+
|
|
42867
|
+
|
|
42868
|
+
|
|
42869
|
+
|
|
42870
|
+
|
|
42871
|
+
const cases = [
|
|
42872
|
+
_process_image__WEBPACK_IMPORTED_MODULE_6__/* .processImage */ .F,
|
|
42873
|
+
_mark_page_break__WEBPACK_IMPORTED_MODULE_8__/* .markPageBreakElements */ .a,
|
|
42874
|
+
_remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__/* .removeExtraTags */ .p,
|
|
42875
|
+
_replace_old_tags__WEBPACK_IMPORTED_MODULE_2__/* .replaceOldTags */ .G,
|
|
42876
|
+
_clear_attributes__WEBPACK_IMPORTED_MODULE_9__/* .clearAttributes */ .i,
|
|
42877
|
+
_convert_to_list__WEBPACK_IMPORTED_MODULE_0__/* .convertToList */ .S,
|
|
42878
|
+
_process_links__WEBPACK_IMPORTED_MODULE_10__/* .processLinks */ .z,
|
|
42879
|
+
_remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__/* .removeInsideComment */ .m,
|
|
42880
|
+
_convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__/* .convertStyleUnitToPixels */ .b,
|
|
42881
|
+
_clear_class_name__WEBPACK_IMPORTED_MODULE_5__/* .clearClassName */ .a,
|
|
42882
|
+
_normalize_image_props__WEBPACK_IMPORTED_MODULE_11__/* .normalizeImageProps */ .r,
|
|
42883
|
+
_table__WEBPACK_IMPORTED_MODULE_12__/* .removeWidthFromTableCell */ .Y,
|
|
42884
|
+
_clean_styles__WEBPACK_IMPORTED_MODULE_7__/* .cleanStyles */ .C
|
|
42885
|
+
];
|
|
42886
|
+
|
|
42887
|
+
|
|
42888
|
+
/***/ }),
|
|
42889
|
+
|
|
42890
|
+
/***/ 50374:
|
|
42891
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42892
|
+
|
|
42893
|
+
"use strict";
|
|
42894
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42895
|
+
/* harmony export */ "a": function() { return /* binding */ markPageBreakElements; }
|
|
42896
|
+
/* harmony export */ });
|
|
42897
|
+
/*!
|
|
42898
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42899
|
+
* See LICENSE.md in the project root for license information.
|
|
42900
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42901
|
+
*/
|
|
42902
|
+
const markPageBreakElements = (elm) => {
|
|
42903
|
+
if ((elm.isElement && elm.style.get('page-break-before') === 'always') ||
|
|
42904
|
+
elm.style.get('break-before') === 'page') {
|
|
42905
|
+
elm.attributes['jd-safe'] = true;
|
|
42906
|
+
elm.style.add('page-break-before', 'always');
|
|
42907
|
+
if (elm.isSingle) {
|
|
42908
|
+
elm.name = 'div';
|
|
42909
|
+
}
|
|
42910
|
+
}
|
|
42911
|
+
return elm;
|
|
42912
|
+
};
|
|
42913
|
+
|
|
42914
|
+
|
|
42915
|
+
/***/ }),
|
|
42916
|
+
|
|
42917
|
+
/***/ 83432:
|
|
42918
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42919
|
+
|
|
42920
|
+
"use strict";
|
|
42921
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42922
|
+
/* harmony export */ "r": function() { return /* binding */ normalizeImageProps; }
|
|
42923
|
+
/* harmony export */ });
|
|
42924
|
+
/*!
|
|
42925
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42926
|
+
* See LICENSE.md in the project root for license information.
|
|
42927
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42928
|
+
*/
|
|
42929
|
+
const normalizeImageProps = (elm) => {
|
|
42930
|
+
if (!elm.isElement) {
|
|
42931
|
+
return elm;
|
|
42932
|
+
}
|
|
42933
|
+
if (elm.name === 'img') {
|
|
42934
|
+
if (elm.attributes.align) {
|
|
42935
|
+
elm.style.add('float', elm.attributes.align);
|
|
42936
|
+
elm.attributes.align = null;
|
|
42937
|
+
}
|
|
42938
|
+
if (elm.attributes.hspace) {
|
|
42939
|
+
elm.style.add('marginLeft', elm.attributes.hspace + 'px');
|
|
42940
|
+
elm.style.add('marginRight', elm.attributes.hspace + 'px');
|
|
42941
|
+
elm.attributes.hspace = null;
|
|
42942
|
+
}
|
|
42943
|
+
}
|
|
42944
|
+
return elm;
|
|
42945
|
+
};
|
|
42946
|
+
|
|
42947
|
+
|
|
42948
|
+
/***/ }),
|
|
42949
|
+
|
|
42950
|
+
/***/ 38535:
|
|
42951
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42952
|
+
|
|
42953
|
+
"use strict";
|
|
42954
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42955
|
+
/* harmony export */ "F": function() { return /* binding */ processImage; }
|
|
42956
|
+
/* harmony export */ });
|
|
42957
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
42958
|
+
/*!
|
|
42959
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42960
|
+
* See LICENSE.md in the project root for license information.
|
|
42961
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42962
|
+
*/
|
|
42963
|
+
|
|
42964
|
+
const processImage = (elm, ctx) => {
|
|
42965
|
+
if (ctx.rtf &&
|
|
42966
|
+
elm.name === '#comment' &&
|
|
42967
|
+
elm.attributes.nodeValue &&
|
|
42968
|
+
elm.attributes.nodeValue.indexOf('<v:shape') !== -1) {
|
|
42969
|
+
if (!ctx.shapes) {
|
|
42970
|
+
ctx.shapes = {};
|
|
42971
|
+
}
|
|
42972
|
+
const elms = ctx.jodit.create.fromHTML(elm.attributes.nodeValue);
|
|
42973
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.toArray)(elms.getElementsByTagName('v:shape')).forEach((e) => {
|
|
42974
|
+
ctx.shapes[e.id] = e.getAttribute('o:spid');
|
|
42975
|
+
});
|
|
42976
|
+
return elm;
|
|
42977
|
+
}
|
|
42978
|
+
if (elm.name !== 'img') {
|
|
42979
|
+
return elm;
|
|
42980
|
+
}
|
|
42981
|
+
if (ctx.rtf && elm.attributes['v:shapes']) {
|
|
42982
|
+
const spid = ctx.shapes?.[elm.attributes['v:shapes']];
|
|
42983
|
+
if (spid) {
|
|
42984
|
+
const imageMap = ctx.imageMap ?? {};
|
|
42985
|
+
if (!ctx.imageMap) {
|
|
42986
|
+
ctx.imageMap = imageMap;
|
|
42987
|
+
parseImages(ctx.rtf, 'i', '\\shppict', ctx.imageMap);
|
|
42988
|
+
parseImages(ctx.rtf, 's', '\\shp{', ctx.imageMap);
|
|
42989
|
+
}
|
|
42990
|
+
const a = imageMap[spid.substring(7)];
|
|
42991
|
+
if (a) {
|
|
42992
|
+
const base = [], parsedD = a.hex.match(/[0-9a-f]{2}/gi);
|
|
42993
|
+
if (parsedD) {
|
|
42994
|
+
for (let i = 0; i < parsedD.length; i++) {
|
|
42995
|
+
const digit = parseInt(parsedD[i], 16);
|
|
42996
|
+
base.push(String.fromCharCode(digit));
|
|
42997
|
+
}
|
|
42998
|
+
elm.attributes.src =
|
|
42999
|
+
'data:' + a.type + ';base64,' + btoa(base.join(''));
|
|
43000
|
+
}
|
|
43001
|
+
}
|
|
43002
|
+
}
|
|
43003
|
+
}
|
|
43004
|
+
return elm;
|
|
43005
|
+
};
|
|
43006
|
+
function parseImages(rtf, prefix, separator, imageMap) {
|
|
43007
|
+
const parts = rtf.split(separator);
|
|
43008
|
+
for (const part of parts) {
|
|
43009
|
+
const shapes = part.split('shplid');
|
|
43010
|
+
if (1 < shapes.length) {
|
|
43011
|
+
const shape = shapes[1];
|
|
43012
|
+
let id = '';
|
|
43013
|
+
for (let i = 0; i < shape.length && !/[{ \r\n\\]/.test(shape[i]); i++) {
|
|
43014
|
+
id += shape[i];
|
|
43015
|
+
}
|
|
43016
|
+
const images = shape.split('bliptag');
|
|
43017
|
+
if (images && images.length < 2) {
|
|
43018
|
+
continue;
|
|
43019
|
+
}
|
|
43020
|
+
let format = null;
|
|
43021
|
+
if (images[0].indexOf('pngblip')) {
|
|
43022
|
+
format = 'image/png';
|
|
43023
|
+
}
|
|
43024
|
+
else if (images[0].indexOf('jpegblip') !== -1) {
|
|
43025
|
+
format = 'image/jpeg';
|
|
43026
|
+
}
|
|
43027
|
+
if (!format) {
|
|
43028
|
+
continue;
|
|
43029
|
+
}
|
|
43030
|
+
const endings = images[1].split('}');
|
|
43031
|
+
if (endings && endings.length < 2) {
|
|
43032
|
+
continue;
|
|
43033
|
+
}
|
|
43034
|
+
let result;
|
|
43035
|
+
if (2 < endings.length && endings[0].includes('blipuid')) {
|
|
43036
|
+
result = endings[1].split(' ');
|
|
43037
|
+
}
|
|
43038
|
+
else {
|
|
43039
|
+
result = endings[0].split(' ');
|
|
43040
|
+
if (result && result.length < 2) {
|
|
43041
|
+
continue;
|
|
43042
|
+
}
|
|
43043
|
+
result.shift();
|
|
43044
|
+
}
|
|
43045
|
+
imageMap[prefix + id] = {
|
|
43046
|
+
hex: result.join(''),
|
|
43047
|
+
type: format
|
|
43048
|
+
};
|
|
43049
|
+
}
|
|
43050
|
+
}
|
|
43051
|
+
}
|
|
43052
|
+
|
|
43053
|
+
|
|
43054
|
+
/***/ }),
|
|
43055
|
+
|
|
43056
|
+
/***/ 62094:
|
|
43057
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43058
|
+
|
|
43059
|
+
"use strict";
|
|
43060
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43061
|
+
/* harmony export */ "z": function() { return /* binding */ processLinks; }
|
|
43062
|
+
/* harmony export */ });
|
|
43063
|
+
/*!
|
|
43064
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43065
|
+
* See LICENSE.md in the project root for license information.
|
|
43066
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43067
|
+
*/
|
|
43068
|
+
const processLinks = (elm, ctx) => {
|
|
43069
|
+
const links = ctx.links ?? {};
|
|
43070
|
+
if (elm.attributes.href && elm.attributes.href.match(/#.+$/)) {
|
|
43071
|
+
const name = elm.attributes.href.match(/#(.+)$/)[1];
|
|
43072
|
+
links[name] = elm;
|
|
43073
|
+
}
|
|
43074
|
+
if (elm.attributes.name && links[elm.attributes.name]) {
|
|
43075
|
+
const link = links[elm.attributes.name];
|
|
43076
|
+
link.attributes.href = link.attributes.href.replace(/.*#(.*)$/, '#$1');
|
|
43077
|
+
}
|
|
43078
|
+
ctx.links = links;
|
|
43079
|
+
return elm;
|
|
43080
|
+
};
|
|
43081
|
+
|
|
43082
|
+
|
|
43083
|
+
/***/ }),
|
|
43084
|
+
|
|
43085
|
+
/***/ 76148:
|
|
43086
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43087
|
+
|
|
43088
|
+
"use strict";
|
|
43089
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43090
|
+
/* harmony export */ "p": function() { return /* binding */ removeExtraTags; }
|
|
43091
|
+
/* harmony export */ });
|
|
43092
|
+
/*!
|
|
43093
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43094
|
+
* See LICENSE.md in the project root for license information.
|
|
43095
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43096
|
+
*/
|
|
43097
|
+
const extraTags = new Set([
|
|
43098
|
+
'o:p',
|
|
43099
|
+
'xml',
|
|
43100
|
+
'script',
|
|
43101
|
+
'meta',
|
|
43102
|
+
'link',
|
|
43103
|
+
'v:imagedata',
|
|
43104
|
+
'style'
|
|
43105
|
+
]);
|
|
43106
|
+
function removeExtraTags(elm) {
|
|
43107
|
+
// Remove invisible
|
|
43108
|
+
if (elm.style.get('display') === 'none') {
|
|
43109
|
+
elm.remove();
|
|
43110
|
+
return null;
|
|
43111
|
+
}
|
|
43112
|
+
// Remove empty tag
|
|
43113
|
+
if (elm.length === 0 && elm.name === 'span') {
|
|
43114
|
+
elm.remove();
|
|
43115
|
+
return null;
|
|
43116
|
+
}
|
|
43117
|
+
// Remove invalid tags
|
|
43118
|
+
if (extraTags.has(elm.name)) {
|
|
43119
|
+
elm.remove();
|
|
43120
|
+
return null;
|
|
43121
|
+
}
|
|
43122
|
+
return elm;
|
|
43123
|
+
}
|
|
43124
|
+
|
|
43125
|
+
|
|
43126
|
+
/***/ }),
|
|
43127
|
+
|
|
43128
|
+
/***/ 33135:
|
|
43129
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43130
|
+
|
|
43131
|
+
"use strict";
|
|
43132
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43133
|
+
/* harmony export */ "m": function() { return /* binding */ removeInsideComment; }
|
|
43134
|
+
/* harmony export */ });
|
|
43135
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12787);
|
|
43136
|
+
/*!
|
|
43137
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43138
|
+
* See LICENSE.md in the project root for license information.
|
|
43139
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43140
|
+
*/
|
|
43141
|
+
|
|
43142
|
+
let inComment = 0;
|
|
43143
|
+
function removeInsideComment(elm) {
|
|
43144
|
+
if (elm.isComment && /\[if.*(supportLists|gte vml).*]/.test((0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm))) {
|
|
43145
|
+
inComment++;
|
|
43146
|
+
elm.remove();
|
|
43147
|
+
}
|
|
43148
|
+
if (elm.isComment && inComment > 0 && (0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm).includes('[endif]')) {
|
|
43149
|
+
inComment = inComment > 0 ? inComment - 1 : 0;
|
|
43150
|
+
elm.remove();
|
|
43151
|
+
}
|
|
43152
|
+
if (inComment) {
|
|
43153
|
+
if (elm.isText ||
|
|
43154
|
+
(elm.name === 'img' &&
|
|
43155
|
+
(!elm.attributes.src || /^file:/.test(elm.attributes.src)))) {
|
|
43156
|
+
elm.remove();
|
|
43157
|
+
return null;
|
|
43158
|
+
}
|
|
43159
|
+
}
|
|
43160
|
+
return elm;
|
|
43161
|
+
}
|
|
43162
|
+
|
|
43163
|
+
|
|
43164
|
+
/***/ }),
|
|
43165
|
+
|
|
43166
|
+
/***/ 38450:
|
|
43167
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43168
|
+
|
|
43169
|
+
"use strict";
|
|
43170
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43171
|
+
/* harmony export */ "G": function() { return /* binding */ replaceOldTags; }
|
|
43172
|
+
/* harmony export */ });
|
|
43173
|
+
/*!
|
|
43174
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43175
|
+
* See LICENSE.md in the project root for license information.
|
|
43176
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43177
|
+
*/
|
|
43178
|
+
const REPLACE_OLD_TAGS = {
|
|
43179
|
+
i: 'em',
|
|
43180
|
+
b: 'strong'
|
|
43181
|
+
};
|
|
43182
|
+
function replaceOldTags(elm) {
|
|
43183
|
+
const { name } = elm;
|
|
43184
|
+
if (name in REPLACE_OLD_TAGS) {
|
|
43185
|
+
elm.name = REPLACE_OLD_TAGS[name];
|
|
43186
|
+
}
|
|
43187
|
+
return elm;
|
|
43188
|
+
}
|
|
43189
|
+
|
|
43190
|
+
|
|
43191
|
+
/***/ }),
|
|
43192
|
+
|
|
43193
|
+
/***/ 38933:
|
|
43194
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43195
|
+
|
|
43196
|
+
"use strict";
|
|
43197
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43198
|
+
/* harmony export */ "Y": function() { return /* binding */ removeWidthFromTableCell; }
|
|
43199
|
+
/* harmony export */ });
|
|
43200
|
+
/*!
|
|
43201
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43202
|
+
* See LICENSE.md in the project root for license information.
|
|
43203
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43204
|
+
*/
|
|
43205
|
+
const removeWidthFromTableCell = (elm) => {
|
|
43206
|
+
if (elm.attributes.width && (elm.name === 'th' || elm.name === 'td')) {
|
|
43207
|
+
elm.attributes.width = null;
|
|
43208
|
+
}
|
|
43209
|
+
return elm;
|
|
43210
|
+
};
|
|
43211
|
+
|
|
43212
|
+
|
|
43213
|
+
/***/ }),
|
|
43214
|
+
|
|
43215
|
+
/***/ 48077:
|
|
43216
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
43217
|
+
|
|
43218
|
+
"use strict";
|
|
43219
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
43220
|
+
/*!
|
|
43221
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43222
|
+
* See LICENSE.md in the project root for license information.
|
|
43223
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43224
|
+
*/
|
|
43225
|
+
|
|
43226
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.pasteFromWord = {
|
|
43227
|
+
enable: false,
|
|
43228
|
+
convertUnitsToPixel: false,
|
|
43229
|
+
allowedStyleProps: [
|
|
43230
|
+
'background',
|
|
43231
|
+
'background-color',
|
|
43232
|
+
'border',
|
|
43233
|
+
'border-.*',
|
|
43234
|
+
'color',
|
|
43235
|
+
'float',
|
|
43236
|
+
'font-family',
|
|
43237
|
+
'font-size',
|
|
43238
|
+
'font-style',
|
|
43239
|
+
'font-weight',
|
|
43240
|
+
'height',
|
|
43241
|
+
'line-height',
|
|
43242
|
+
'list-style-type',
|
|
43243
|
+
'margin',
|
|
43244
|
+
'margin-bottom',
|
|
43245
|
+
'margin-left',
|
|
43246
|
+
'margin-right',
|
|
43247
|
+
'margin-top',
|
|
43248
|
+
'padding',
|
|
43249
|
+
'text-align',
|
|
43250
|
+
'text-justify',
|
|
43251
|
+
'text-decoration',
|
|
43252
|
+
'text-indent',
|
|
43253
|
+
'vertical-align',
|
|
43254
|
+
'width'
|
|
43255
|
+
]
|
|
43256
|
+
};
|
|
43257
|
+
|
|
43258
|
+
|
|
43259
|
+
/***/ }),
|
|
43260
|
+
|
|
43261
|
+
/***/ 19438:
|
|
43262
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43263
|
+
|
|
43264
|
+
"use strict";
|
|
43265
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43266
|
+
/* harmony export */ "Jf": function() { return /* binding */ STYLE_KEY; },
|
|
43267
|
+
/* harmony export */ "Ki": function() { return /* binding */ LEVEL_KEY; },
|
|
43268
|
+
/* harmony export */ "Y1": function() { return /* binding */ listStyleMap; },
|
|
43269
|
+
/* harmony export */ "YJ": function() { return /* binding */ TYPE_KEY; },
|
|
43270
|
+
/* harmony export */ "m3": function() { return /* binding */ STYLE_VALID_KEY; },
|
|
43271
|
+
/* harmony export */ "zQ": function() { return /* binding */ STYLE_CSS_KEY; }
|
|
43272
|
+
/* harmony export */ });
|
|
43273
|
+
/*!
|
|
43274
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43275
|
+
* See LICENSE.md in the project root for license information.
|
|
43276
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43277
|
+
*/
|
|
43278
|
+
const LEVEL_KEY = 'jd-list-level';
|
|
43279
|
+
const TYPE_KEY = 'jd-list-type';
|
|
43280
|
+
const STYLE_KEY = 'jd-list-style-type';
|
|
43281
|
+
const STYLE_VALID_KEY = 'data-list-style-type';
|
|
43282
|
+
const STYLE_CSS_KEY = 'list-style-type';
|
|
43283
|
+
const listStyleMap = {
|
|
43284
|
+
'·': 'disc',
|
|
43285
|
+
o: 'circle',
|
|
43286
|
+
'§': 'square',
|
|
43287
|
+
'[ivx]': 'lower-roman',
|
|
43288
|
+
'[IVX]': 'upper-roman',
|
|
43289
|
+
'[a-z]': 'lower-alpha',
|
|
43290
|
+
'[A-Z]': 'upper-alpha',
|
|
43291
|
+
'\\d': 'decimal'
|
|
43292
|
+
};
|
|
43293
|
+
|
|
43294
|
+
|
|
43295
|
+
/***/ }),
|
|
43296
|
+
|
|
43297
|
+
/***/ 69111:
|
|
43298
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43299
|
+
|
|
43300
|
+
"use strict";
|
|
43301
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43302
|
+
/* harmony export */ "Be": function() { return /* binding */ isLeaf; },
|
|
43303
|
+
/* harmony export */ "Hh": function() { return /* binding */ isPseudoLeaf; },
|
|
43304
|
+
/* harmony export */ "Y4": function() { return /* binding */ isSameType; },
|
|
43305
|
+
/* harmony export */ "nq": function() { return /* binding */ isList; }
|
|
43306
|
+
/* harmony export */ });
|
|
43307
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19438);
|
|
43308
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12787);
|
|
43309
|
+
/*!
|
|
43310
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43311
|
+
* See LICENSE.md in the project root for license information.
|
|
43312
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43313
|
+
*/
|
|
43314
|
+
|
|
43315
|
+
|
|
43316
|
+
function isList(elm) {
|
|
43317
|
+
return Boolean(elm && (elm.name === 'ol' || elm.name === 'ul'));
|
|
43318
|
+
}
|
|
43319
|
+
function isLeaf(elm) {
|
|
43320
|
+
return Boolean(elm && elm.name === 'li');
|
|
43321
|
+
}
|
|
43322
|
+
function isPseudoLeaf(elm) {
|
|
43323
|
+
return ((elm.name !== 'li' &&
|
|
43324
|
+
/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(elm.attributes.style)) ||
|
|
43325
|
+
(/msolistparagraph/i.test(elm.attributes.class) &&
|
|
43326
|
+
Boolean(elm.find((c) => c.isComment && (0,_render__WEBPACK_IMPORTED_MODULE_1__/* .html */ .d)(c).includes('supportLists'))
|
|
43327
|
+
.length)));
|
|
43328
|
+
}
|
|
43329
|
+
function isSameType(leaf, list) {
|
|
43330
|
+
const listType = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .TYPE_KEY */ .YJ];
|
|
43331
|
+
const listStyle = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf];
|
|
43332
|
+
return !(list.name !== listType ||
|
|
43333
|
+
list.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf] !== listStyle ||
|
|
43334
|
+
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]);
|
|
43335
|
+
}
|
|
43336
|
+
|
|
43337
|
+
|
|
43338
|
+
/***/ }),
|
|
43339
|
+
|
|
43340
|
+
/***/ 84300:
|
|
43341
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43342
|
+
|
|
43343
|
+
"use strict";
|
|
43344
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43345
|
+
/* harmony export */ "n": function() { return /* binding */ JElement; }
|
|
43346
|
+
/* harmony export */ });
|
|
43347
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
|
|
43348
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11612);
|
|
43349
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52378);
|
|
43350
|
+
/* 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__);
|
|
43351
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12787);
|
|
43352
|
+
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12481);
|
|
43353
|
+
/*!
|
|
43354
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43355
|
+
* See LICENSE.md in the project root for license information.
|
|
43356
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43357
|
+
*/
|
|
43358
|
+
|
|
43359
|
+
|
|
43360
|
+
|
|
43361
|
+
|
|
43362
|
+
|
|
43363
|
+
const singleTags = new Set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSEPARABLE_TAGS);
|
|
43364
|
+
class JElement {
|
|
43365
|
+
get isText() {
|
|
43366
|
+
return this.type === Node.TEXT_NODE;
|
|
43367
|
+
}
|
|
43368
|
+
get isElement() {
|
|
43369
|
+
return this.type === Node.ELEMENT_NODE;
|
|
43370
|
+
}
|
|
43371
|
+
get isComment() {
|
|
43372
|
+
return this.type === Node.COMMENT_NODE;
|
|
43373
|
+
}
|
|
43374
|
+
get isSingle() {
|
|
43375
|
+
return singleTags.has(this.name);
|
|
43376
|
+
}
|
|
43377
|
+
get length() {
|
|
43378
|
+
return this.children.length;
|
|
43379
|
+
}
|
|
43380
|
+
constructor(node, parent) {
|
|
43381
|
+
this.parent = parent;
|
|
43382
|
+
this.name = node.nodeName.toLowerCase();
|
|
43383
|
+
this.type = node.nodeType;
|
|
43384
|
+
this.attributes = readAttributes(node);
|
|
43385
|
+
this.style = new _style__WEBPACK_IMPORTED_MODULE_4__/* .Style */ .b(this.attributes.style);
|
|
43386
|
+
this.children = [];
|
|
43387
|
+
node.childNodes.forEach((node) => this.children.push(JElement.make(node, this)));
|
|
43388
|
+
}
|
|
43389
|
+
static make(node, parent = null) {
|
|
43390
|
+
return new JElement(node, parent);
|
|
43391
|
+
}
|
|
43392
|
+
wrap(tag) {
|
|
43393
|
+
void 0;
|
|
43394
|
+
const wrapper = JElement.make(document.createElement(tag), this.parent);
|
|
43395
|
+
const index = this.parent.children.indexOf(this) ?? -1;
|
|
43396
|
+
if (index === -1) {
|
|
43397
|
+
this.parent.append(wrapper);
|
|
43398
|
+
}
|
|
43399
|
+
else {
|
|
43400
|
+
this.parent.children[index] = wrapper;
|
|
43401
|
+
}
|
|
43402
|
+
wrapper.append(this);
|
|
43403
|
+
return wrapper;
|
|
43404
|
+
}
|
|
43405
|
+
append(child) {
|
|
43406
|
+
void 0;
|
|
43407
|
+
child.remove();
|
|
43408
|
+
this.children.push(child);
|
|
43409
|
+
child.parent = this;
|
|
43410
|
+
return this;
|
|
43411
|
+
}
|
|
43412
|
+
get previousElement() {
|
|
43413
|
+
if (!this.parent) {
|
|
43414
|
+
return null;
|
|
43415
|
+
}
|
|
43416
|
+
const { children } = this.parent, index = children.indexOf(this);
|
|
43417
|
+
if (index !== -1) {
|
|
43418
|
+
for (let i = index - 1; i >= 0; i -= 1) {
|
|
43419
|
+
if (children[i].isElement) {
|
|
43420
|
+
return children[i];
|
|
43421
|
+
}
|
|
43422
|
+
}
|
|
43423
|
+
}
|
|
43424
|
+
return null;
|
|
43425
|
+
}
|
|
43426
|
+
get lastElement() {
|
|
43427
|
+
const { children } = this;
|
|
43428
|
+
for (let i = children.length - 1; i >= 0; i -= 1) {
|
|
43429
|
+
if (children[i].isElement) {
|
|
43430
|
+
return children[i];
|
|
43431
|
+
}
|
|
43432
|
+
}
|
|
43433
|
+
return null;
|
|
43434
|
+
}
|
|
43435
|
+
get previous() {
|
|
43436
|
+
return this.sibling(false) ?? this.parent?.previous ?? null;
|
|
43437
|
+
}
|
|
43438
|
+
get next() {
|
|
43439
|
+
return this.sibling(true) ?? this.parent?.next ?? null;
|
|
43440
|
+
}
|
|
43441
|
+
sibling(next) {
|
|
43442
|
+
if (!this.parent) {
|
|
43443
|
+
return null;
|
|
43444
|
+
}
|
|
43445
|
+
const { children } = this.parent, index = children.indexOf(this);
|
|
43446
|
+
if (index !== -1 && children[index + (next ? 1 : -1)]) {
|
|
43447
|
+
return children[index + (next ? 1 : -1)];
|
|
43448
|
+
}
|
|
43449
|
+
return null;
|
|
43450
|
+
}
|
|
43451
|
+
forEach(callbackFn, recursion = false) {
|
|
43452
|
+
const children = [...this.children];
|
|
43453
|
+
for (const child of children) {
|
|
43454
|
+
if (callbackFn(child) === false) {
|
|
43455
|
+
return false;
|
|
43456
|
+
}
|
|
43457
|
+
if (recursion && child.forEach(callbackFn, true) === false) {
|
|
43458
|
+
return false;
|
|
43459
|
+
}
|
|
43460
|
+
}
|
|
43461
|
+
}
|
|
43462
|
+
find(predicate, recursion = true) {
|
|
43463
|
+
const result = [];
|
|
43464
|
+
this.forEach((elm) => {
|
|
43465
|
+
if (predicate(elm)) {
|
|
43466
|
+
result.push(elm);
|
|
43467
|
+
}
|
|
43468
|
+
}, recursion);
|
|
43469
|
+
return result;
|
|
43470
|
+
}
|
|
43471
|
+
map(callbackFn) {
|
|
43472
|
+
return this.children.map(callbackFn);
|
|
43473
|
+
}
|
|
43474
|
+
remove() {
|
|
43475
|
+
const index = this.parent?.children.indexOf(this);
|
|
43476
|
+
if (index != null && index !== -1) {
|
|
43477
|
+
this.parent?.children.splice(index, 1);
|
|
43478
|
+
}
|
|
43479
|
+
return this;
|
|
43480
|
+
}
|
|
43481
|
+
textBetween(start, end) {
|
|
43482
|
+
let startFound = false;
|
|
43483
|
+
const result = [];
|
|
43484
|
+
this.forEach((node) => {
|
|
43485
|
+
if (!startFound && start(node)) {
|
|
43486
|
+
startFound = true;
|
|
43487
|
+
}
|
|
43488
|
+
if (startFound && node.isText) {
|
|
43489
|
+
result.push((0,_render__WEBPACK_IMPORTED_MODULE_3__/* .html */ .d)(node));
|
|
43490
|
+
}
|
|
43491
|
+
if (startFound && end(node)) {
|
|
43492
|
+
return false;
|
|
43493
|
+
}
|
|
43494
|
+
}, true);
|
|
43495
|
+
return result.join('');
|
|
43496
|
+
}
|
|
43497
|
+
}
|
|
43498
|
+
function readAttributes(node) {
|
|
43499
|
+
const result = {};
|
|
43500
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isElement */ .i.isElement(node)) {
|
|
43501
|
+
for (let i = 0, attrs = node.attributes; i < attrs.length; i += 1) {
|
|
43502
|
+
result[attrs[i].name] = attrs[i].value;
|
|
43503
|
+
}
|
|
43504
|
+
}
|
|
43505
|
+
else {
|
|
43506
|
+
result['nodeValue'] = node.nodeValue;
|
|
43507
|
+
}
|
|
43508
|
+
return result;
|
|
43509
|
+
}
|
|
43510
|
+
|
|
43511
|
+
|
|
43512
|
+
/***/ }),
|
|
43513
|
+
|
|
43514
|
+
/***/ 93310:
|
|
43515
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43516
|
+
|
|
43517
|
+
"use strict";
|
|
43518
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43519
|
+
/* harmony export */ "Be": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Be; },
|
|
43520
|
+
/* harmony export */ "C7": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.C; },
|
|
43521
|
+
/* harmony export */ "Hh": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Hh; },
|
|
43522
|
+
/* harmony export */ "Y4": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Y4; },
|
|
43523
|
+
/* harmony export */ "dy": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.d; },
|
|
43524
|
+
/* harmony export */ "nK": function() { return /* reexport safe */ _element__WEBPACK_IMPORTED_MODULE_1__.n; },
|
|
43525
|
+
/* harmony export */ "nq": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.nq; }
|
|
43526
|
+
/* harmony export */ });
|
|
43527
|
+
/* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69111);
|
|
43528
|
+
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84300);
|
|
43529
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12787);
|
|
43530
|
+
/*!
|
|
43531
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43532
|
+
* See LICENSE.md in the project root for license information.
|
|
43533
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43534
|
+
*/
|
|
43535
|
+
|
|
43536
|
+
|
|
43537
|
+
|
|
43538
|
+
|
|
43539
|
+
|
|
43540
|
+
/***/ }),
|
|
43541
|
+
|
|
43542
|
+
/***/ 12787:
|
|
43543
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43544
|
+
|
|
43545
|
+
"use strict";
|
|
43546
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43547
|
+
/* harmony export */ "C": function() { return /* binding */ innerHTML; },
|
|
43548
|
+
/* harmony export */ "d": function() { return /* binding */ html; }
|
|
43549
|
+
/* harmony export */ });
|
|
43550
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
43551
|
+
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46232);
|
|
43552
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73076);
|
|
43553
|
+
/*!
|
|
43554
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43555
|
+
* See LICENSE.md in the project root for license information.
|
|
43556
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43557
|
+
*/
|
|
43558
|
+
|
|
43559
|
+
|
|
43560
|
+
|
|
43561
|
+
function html(elm, filter = () => true, removeEmpty = true, allowedStyleProps) {
|
|
43562
|
+
switch (true) {
|
|
43563
|
+
case elm.isComment:
|
|
43564
|
+
case elm.isText: {
|
|
43565
|
+
if (!filter(elm)) {
|
|
43566
|
+
return '';
|
|
43567
|
+
}
|
|
43568
|
+
const { nodeValue } = elm.attributes;
|
|
43569
|
+
return elm.isComment ? `<!--${nodeValue}-->` : nodeValue;
|
|
43570
|
+
}
|
|
43571
|
+
case elm.isElement: {
|
|
43572
|
+
const { attributes } = elm, innerContent = innerHTML(elm, filter, removeEmpty, allowedStyleProps);
|
|
43573
|
+
// remove empty tag with attributes
|
|
43574
|
+
if (!elm.attributes['jd-safe'] &&
|
|
43575
|
+
removeEmpty &&
|
|
43576
|
+
innerContent.replace(/[\n\t]/g, '').length === 0 &&
|
|
43577
|
+
!elm.isSingle) {
|
|
43578
|
+
return '';
|
|
43579
|
+
}
|
|
43580
|
+
const attrsList = Object.keys(attributes)
|
|
43581
|
+
.map((key) => {
|
|
43582
|
+
if (key === 'style' ||
|
|
43583
|
+
attributes[key] == null ||
|
|
43584
|
+
/^jd-/.test(key)) {
|
|
43585
|
+
return '';
|
|
43586
|
+
}
|
|
43587
|
+
return `${key}="${htmlEntity(attributes[key])}"`;
|
|
43588
|
+
})
|
|
43589
|
+
.filter(Boolean);
|
|
43590
|
+
const { str: styleStr } = elm.style;
|
|
43591
|
+
const styles = htmlEntity(styleStr((key) => keyInList(key, allowedStyleProps)));
|
|
43592
|
+
if (styles) {
|
|
43593
|
+
attrsList.push(`style="${styles}"`);
|
|
43594
|
+
}
|
|
43595
|
+
// unwrap empty tag without attributes
|
|
43596
|
+
if (removeEmpty &&
|
|
43597
|
+
attrsList.length === 0 &&
|
|
43598
|
+
['span', 'a'].includes(elm.name)) {
|
|
43599
|
+
return innerContent;
|
|
43600
|
+
}
|
|
43601
|
+
const attrs = attrsList.length ? ' ' + attrsList.join(' ') : '';
|
|
43602
|
+
if (!filter(elm)) {
|
|
43603
|
+
return innerContent;
|
|
43604
|
+
}
|
|
43605
|
+
return elm.isSingle
|
|
43606
|
+
? `<${elm.name}${attrs}/>`
|
|
43607
|
+
: `<${elm.name}${attrs}>${innerContent}</${elm.name}>`;
|
|
43608
|
+
}
|
|
43609
|
+
default:
|
|
43610
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
43611
|
+
throw Error('Need implementation for this type');
|
|
43612
|
+
}
|
|
43613
|
+
}
|
|
43614
|
+
return '';
|
|
43615
|
+
}
|
|
43616
|
+
function keyInList(key, list) {
|
|
43617
|
+
if (!list) {
|
|
43618
|
+
return true;
|
|
43619
|
+
}
|
|
43620
|
+
if (keyInList.cache.has(list)) {
|
|
43621
|
+
const isAllow = keyInList.cache.get(list)?.get(key);
|
|
43622
|
+
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__/* .isBoolean */ .j)(isAllow)) {
|
|
43623
|
+
return isAllow;
|
|
43624
|
+
}
|
|
43625
|
+
}
|
|
43626
|
+
const isAllow = list.some((allow) => new RegExp(allow).test(key));
|
|
43627
|
+
const map = keyInList.cache.get(list) || new Map();
|
|
43628
|
+
map.set(key, isAllow);
|
|
43629
|
+
keyInList.cache.set(list, map);
|
|
43630
|
+
return isAllow;
|
|
43631
|
+
}
|
|
43632
|
+
keyInList.cache = new WeakMap();
|
|
43633
|
+
function innerHTML(elm, filter = () => true, removeEmpty = true, allowedStyleProps) {
|
|
43634
|
+
let result = elm
|
|
43635
|
+
.map((e) => html(e, filter, removeEmpty, allowedStyleProps))
|
|
43636
|
+
.join('');
|
|
43637
|
+
if (elm.name === 'p' && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .f)(result).length === 0) {
|
|
43638
|
+
result = ' ';
|
|
43639
|
+
}
|
|
43640
|
+
return result;
|
|
43641
|
+
}
|
|
43642
|
+
function htmlEntity(str) {
|
|
43643
|
+
return str.toString().replace(/"/g, '"');
|
|
43644
|
+
}
|
|
43645
|
+
|
|
43646
|
+
|
|
43647
|
+
/***/ }),
|
|
43648
|
+
|
|
43649
|
+
/***/ 12481:
|
|
43650
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43651
|
+
|
|
43652
|
+
"use strict";
|
|
43653
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43654
|
+
/* harmony export */ "b": function() { return /* binding */ Style; }
|
|
43655
|
+
/* harmony export */ });
|
|
43656
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
43657
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
43658
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
43659
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18352);
|
|
43660
|
+
/*!
|
|
43661
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43662
|
+
* See LICENSE.md in the project root for license information.
|
|
43663
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43664
|
+
*/
|
|
43665
|
+
|
|
43666
|
+
|
|
43667
|
+
|
|
43668
|
+
|
|
43669
|
+
let Style = class Style {
|
|
43670
|
+
constructor(str) {
|
|
43671
|
+
this._data = readStyles(str);
|
|
43672
|
+
}
|
|
43673
|
+
get keys() {
|
|
43674
|
+
return Object.keys(this._data);
|
|
43675
|
+
}
|
|
43676
|
+
forEach(f) {
|
|
43677
|
+
this.keys.forEach((key) => f(key));
|
|
43678
|
+
}
|
|
43679
|
+
clear() {
|
|
43680
|
+
this._data = {};
|
|
43681
|
+
}
|
|
43682
|
+
set(key, value) {
|
|
43683
|
+
this._data[key] = value;
|
|
43684
|
+
}
|
|
43685
|
+
get(key) {
|
|
43686
|
+
return this._data[key] ?? null;
|
|
43687
|
+
}
|
|
43688
|
+
has(key) {
|
|
43689
|
+
return this._data[key] !== undefined;
|
|
43690
|
+
}
|
|
43691
|
+
add(key, value) {
|
|
43692
|
+
this._data = readStyles(this.str() + ';' + `${key}:${value}`);
|
|
43693
|
+
return this;
|
|
43694
|
+
}
|
|
43695
|
+
str(filter = (k) => true) {
|
|
43696
|
+
const styleKeys = Object.keys(this._data).filter((key) => key &&
|
|
43697
|
+
!/^mso-/.test(key) &&
|
|
43698
|
+
filter(key) &&
|
|
43699
|
+
this.get(key) != null);
|
|
43700
|
+
const n = (v) => {
|
|
43701
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isString)(v)) {
|
|
43702
|
+
return /^0[a-z]+$/i.test(v) ? '0' : v;
|
|
43703
|
+
}
|
|
43704
|
+
return v.toString();
|
|
43705
|
+
};
|
|
43706
|
+
['padding', 'margin'].forEach((key) => {
|
|
43707
|
+
if (this._data[key]) {
|
|
43708
|
+
const indexMain = styleKeys.indexOf(key);
|
|
43709
|
+
const margins = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__/* .calcMarginParts */ .Wb)(this._data[key]);
|
|
43710
|
+
['top', 'right', 'bottom', 'left'].forEach((side, index) => {
|
|
43711
|
+
const name = `${key}-${side}`, value = this._data[name];
|
|
43712
|
+
if (value != null &&
|
|
43713
|
+
(styleKeys.indexOf(name) < indexMain ||
|
|
43714
|
+
n(margins[index]) === n(value))) {
|
|
43715
|
+
styleKeys.indexOf(name) !== -1 &&
|
|
43716
|
+
styleKeys.splice(styleKeys.indexOf(name), 1);
|
|
43717
|
+
}
|
|
43718
|
+
});
|
|
43719
|
+
}
|
|
43720
|
+
});
|
|
43721
|
+
if (styleKeys.length) {
|
|
43722
|
+
return styleKeys
|
|
43723
|
+
.map((key) => `${(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.kebabCase)(key)}:${this.get(key)}`)
|
|
43724
|
+
.join(';');
|
|
43725
|
+
}
|
|
43726
|
+
return '';
|
|
43727
|
+
}
|
|
43728
|
+
};
|
|
43729
|
+
Style = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
43730
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
43731
|
+
], Style);
|
|
43732
|
+
function readStyles(style) {
|
|
43733
|
+
return uniqueMax((style ?? '')
|
|
43734
|
+
.replace(/"/g, '"')
|
|
43735
|
+
.split(';')
|
|
43736
|
+
.filter(Boolean)
|
|
43737
|
+
.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]) => {
|
|
43738
|
+
if (key && value) {
|
|
43739
|
+
acc[key] = value;
|
|
43740
|
+
}
|
|
43741
|
+
return acc;
|
|
43742
|
+
}, {});
|
|
43743
|
+
}
|
|
43744
|
+
function uniqueMax(array) {
|
|
43745
|
+
const keys = {};
|
|
43746
|
+
const result = [];
|
|
43747
|
+
for (let i = array.length - 1; i >= 0; i -= 1) {
|
|
43748
|
+
const key = array[i][0];
|
|
43749
|
+
if (keys[key]) {
|
|
43750
|
+
continue;
|
|
43751
|
+
}
|
|
43752
|
+
keys[key] = true;
|
|
43753
|
+
result.unshift(array[i]);
|
|
43754
|
+
}
|
|
43755
|
+
return result;
|
|
43756
|
+
}
|
|
43757
|
+
|
|
43758
|
+
|
|
43759
|
+
/***/ }),
|
|
43760
|
+
|
|
43761
|
+
/***/ 12049:
|
|
43762
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43763
|
+
|
|
43764
|
+
"use strict";
|
|
43765
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43766
|
+
/* harmony export */ "x": function() { return /* binding */ applyStylesPro; }
|
|
43767
|
+
/* harmony export */ });
|
|
43768
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98478);
|
|
43769
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
43770
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
43771
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79374);
|
|
43772
|
+
/*!
|
|
43773
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43774
|
+
* See LICENSE.md in the project root for license information.
|
|
43775
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43776
|
+
*/
|
|
43777
|
+
|
|
43778
|
+
|
|
43779
|
+
|
|
43780
|
+
|
|
43781
|
+
function applyStylesPro(jodit, html, removeStyles, rtf = '') {
|
|
43782
|
+
const iframe = document.createElement('iframe');
|
|
43783
|
+
iframe.style.display = 'none';
|
|
43784
|
+
document.body.appendChild(iframe);
|
|
43785
|
+
try {
|
|
43786
|
+
const doc = iframe.contentDocument ?? iframe.contentWindow?.document;
|
|
43787
|
+
if (!doc) {
|
|
43788
|
+
return html;
|
|
43789
|
+
}
|
|
43790
|
+
doc.open();
|
|
43791
|
+
doc.write(html);
|
|
43792
|
+
doc.close();
|
|
43793
|
+
const JDS = 'jd-style';
|
|
43794
|
+
for (let i = 0; i < doc.styleSheets.length; i += 1) {
|
|
43795
|
+
try {
|
|
43796
|
+
const rules = doc.styleSheets[i]
|
|
43797
|
+
.cssRules;
|
|
43798
|
+
for (let idx = 0; idx < rules.length; idx += 1) {
|
|
43799
|
+
if (!rules[idx].selectorText) {
|
|
43800
|
+
continue;
|
|
43801
|
+
}
|
|
43802
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(rules[idx].selectorText, doc.body).forEach((elm) => {
|
|
43803
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS)) {
|
|
43804
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS, (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style') || '');
|
|
43805
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', '');
|
|
43806
|
+
}
|
|
43807
|
+
(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}`);
|
|
43808
|
+
});
|
|
43809
|
+
}
|
|
43810
|
+
}
|
|
43811
|
+
catch (e) { }
|
|
43812
|
+
}
|
|
43813
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(`[${JDS}]`, doc.body).forEach((elm) => {
|
|
43814
|
+
(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)}`);
|
|
43815
|
+
});
|
|
43816
|
+
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);
|
|
43817
|
+
}
|
|
43818
|
+
finally {
|
|
43819
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(iframe);
|
|
43820
|
+
}
|
|
43821
|
+
return html;
|
|
43822
|
+
}
|
|
43823
|
+
|
|
43824
|
+
|
|
43825
|
+
/***/ }),
|
|
43826
|
+
|
|
43827
|
+
/***/ 45394:
|
|
43828
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43829
|
+
|
|
43830
|
+
"use strict";
|
|
43831
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43832
|
+
/* harmony export */ "r": function() { return /* binding */ calcListLevels; }
|
|
43833
|
+
/* harmony export */ });
|
|
43834
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93310);
|
|
43835
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19438);
|
|
43836
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81723);
|
|
43837
|
+
/*!
|
|
43838
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43839
|
+
* See LICENSE.md in the project root for license information.
|
|
43840
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43841
|
+
*/
|
|
43842
|
+
|
|
43843
|
+
|
|
43844
|
+
|
|
43845
|
+
function calcListLevels(item) {
|
|
43846
|
+
if (item.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] !== undefined) {
|
|
43847
|
+
return;
|
|
43848
|
+
}
|
|
43849
|
+
const indents = [(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(item)], items = [item];
|
|
43850
|
+
let next = item.next;
|
|
43851
|
+
while (next) {
|
|
43852
|
+
if (next.isElement &&
|
|
43853
|
+
!next.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] &&
|
|
43854
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__/* .isPseudoLeaf */ .Hh)(next)) {
|
|
43855
|
+
const indent = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(next);
|
|
43856
|
+
if (indent) {
|
|
43857
|
+
indents.push(indent);
|
|
43858
|
+
items.push(next);
|
|
43859
|
+
}
|
|
43860
|
+
}
|
|
43861
|
+
next = next.next;
|
|
43862
|
+
}
|
|
43863
|
+
const minIndent = Math.min(...indents.filter((val) => val > 0));
|
|
43864
|
+
let levels = indents.map((val) => Math.ceil(val / 10));
|
|
43865
|
+
if (levels.indexOf(0) !== -1) {
|
|
43866
|
+
levels = levels.map((val) => val + 1);
|
|
43867
|
+
}
|
|
43868
|
+
items.forEach((curItem, index) => {
|
|
43869
|
+
curItem.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] = levels[index];
|
|
43870
|
+
curItem.style.add('margin-left', `${Math.max((0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(curItem) -
|
|
43871
|
+
((levels[index] * 10) / minIndent) * 40, 0)}px`);
|
|
43872
|
+
});
|
|
43873
|
+
}
|
|
43874
|
+
|
|
43875
|
+
|
|
43876
|
+
/***/ }),
|
|
43877
|
+
|
|
43878
|
+
/***/ 81723:
|
|
43879
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43880
|
+
|
|
43881
|
+
"use strict";
|
|
43882
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43883
|
+
/* harmony export */ "D4": function() { return /* binding */ realPixelIndent; },
|
|
43884
|
+
/* harmony export */ "Lp": function() { return /* binding */ convertUnitToPx; },
|
|
43885
|
+
/* harmony export */ "Sg": function() { return /* binding */ calcStartBySymbol; },
|
|
43886
|
+
/* harmony export */ "Wb": function() { return /* binding */ calcMarginParts; }
|
|
43887
|
+
/* harmony export */ });
|
|
43888
|
+
/*!
|
|
43889
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43890
|
+
* See LICENSE.md in the project root for license information.
|
|
43891
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
43892
|
+
*/
|
|
43893
|
+
function calcMarginParts(margin) {
|
|
43894
|
+
if (!margin) {
|
|
43895
|
+
return [0, 0, 0, 0];
|
|
43896
|
+
}
|
|
43897
|
+
const widths = margin.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g) || ['0px'];
|
|
43898
|
+
switch (widths.length) {
|
|
43899
|
+
case 2:
|
|
43900
|
+
return [0, 1, 0, 1].map((index) => widths[index]);
|
|
43901
|
+
case 3:
|
|
43902
|
+
return [0, 1, 2, 1].map((index) => widths[index]);
|
|
43903
|
+
case 4:
|
|
43904
|
+
return [0, 1, 2, 3].map((index) => widths[index]);
|
|
43905
|
+
default:
|
|
43906
|
+
return [0, 0, 0, 0].map((index) => widths[index]);
|
|
43907
|
+
}
|
|
43908
|
+
}
|
|
43909
|
+
let fakeMeasureBox;
|
|
43910
|
+
/**
|
|
43911
|
+
* Convert css units to pixels, excluding percentages
|
|
43912
|
+
* @example
|
|
43913
|
+
* ```js
|
|
43914
|
+
* convertUnitToPx('55pt')
|
|
43915
|
+
* convertUnitToPx('55cm')
|
|
43916
|
+
* ```
|
|
43917
|
+
*/
|
|
43918
|
+
function convertUnitToPx(unit) {
|
|
43919
|
+
if (typeof unit === 'number') {
|
|
43920
|
+
return unit;
|
|
43921
|
+
}
|
|
43922
|
+
if (/%$/.test(unit)) {
|
|
43923
|
+
return 0;
|
|
43924
|
+
}
|
|
43925
|
+
if (!fakeMeasureBox) {
|
|
43926
|
+
fakeMeasureBox = document.createElement('div');
|
|
43927
|
+
Object.assign(fakeMeasureBox.style, {
|
|
43928
|
+
position: 'absolute',
|
|
43929
|
+
left: '-9999px',
|
|
43930
|
+
top: '-9999px',
|
|
43931
|
+
margin: '0',
|
|
43932
|
+
padding: '0',
|
|
43933
|
+
border: '0'
|
|
43934
|
+
});
|
|
43935
|
+
document.body.append(fakeMeasureBox);
|
|
43936
|
+
// Clean after work
|
|
43937
|
+
setTimeout(() => {
|
|
43938
|
+
fakeMeasureBox?.remove();
|
|
43939
|
+
fakeMeasureBox = null;
|
|
43940
|
+
});
|
|
43941
|
+
}
|
|
43942
|
+
const isNegative = parseFloat(unit) < 0;
|
|
43943
|
+
if (isNegative) {
|
|
43944
|
+
unit = unit.replace('-', '');
|
|
43945
|
+
}
|
|
43946
|
+
fakeMeasureBox.style.width = unit;
|
|
43947
|
+
const result = fakeMeasureBox.clientWidth;
|
|
43948
|
+
if (isNegative) {
|
|
43949
|
+
return -result;
|
|
43950
|
+
}
|
|
43951
|
+
return result;
|
|
43952
|
+
}
|
|
43953
|
+
function realPixelIndent(element) {
|
|
43954
|
+
const { style } = element;
|
|
43955
|
+
let marginSplit = [0, 0, 0, 0];
|
|
43956
|
+
const marginKeys = style.keys.filter((k) => /margin/.test(k));
|
|
43957
|
+
const maxMarginLeftIndex = Math.max(marginKeys.indexOf('margin-left'), marginKeys.indexOf('margin'));
|
|
43958
|
+
const marginKey = maxMarginLeftIndex > 0 ? marginKeys[maxMarginLeftIndex] : 'margin-left';
|
|
43959
|
+
let marginLeft;
|
|
43960
|
+
if (marginKey === 'margin') {
|
|
43961
|
+
const margin = style.get('margin');
|
|
43962
|
+
marginSplit = calcMarginParts(margin);
|
|
43963
|
+
marginLeft = marginSplit[3] || 0;
|
|
43964
|
+
}
|
|
43965
|
+
else {
|
|
43966
|
+
marginLeft = style.get(marginKey) || 0;
|
|
43967
|
+
}
|
|
43968
|
+
return convertUnitToPx(marginLeft);
|
|
43969
|
+
}
|
|
43970
|
+
function calcStartBySymbol(symbol) {
|
|
43971
|
+
if (/\d.\d/.test(symbol)) {
|
|
43972
|
+
return symbol.split('.').pop() || null;
|
|
43973
|
+
}
|
|
43974
|
+
if (/^\d/.test(symbol)) {
|
|
43975
|
+
return (parseInt(symbol, 10) || 1).toString();
|
|
43976
|
+
}
|
|
43977
|
+
return null;
|
|
43978
|
+
}
|
|
43979
|
+
|
|
43980
|
+
|
|
43981
|
+
/***/ }),
|
|
43982
|
+
|
|
43983
|
+
/***/ 18352:
|
|
43984
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43985
|
+
|
|
43986
|
+
"use strict";
|
|
43987
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43988
|
+
/* harmony export */ "Lp": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Lp; },
|
|
43989
|
+
/* harmony export */ "Sg": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Sg; },
|
|
43990
|
+
/* harmony export */ "Wb": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Wb; },
|
|
43991
|
+
/* harmony export */ "rd": function() { return /* reexport safe */ _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__.r; },
|
|
43992
|
+
/* harmony export */ "xk": function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__.x; }
|
|
43993
|
+
/* harmony export */ });
|
|
43994
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81723);
|
|
43995
|
+
/* harmony import */ var _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12049);
|
|
43996
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79374);
|
|
43997
|
+
/* harmony import */ var _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45394);
|
|
43998
|
+
/*!
|
|
43999
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44000
|
+
* See LICENSE.md in the project root for license information.
|
|
44001
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44002
|
+
*/
|
|
44003
|
+
|
|
44004
|
+
|
|
44005
|
+
|
|
44006
|
+
|
|
44007
|
+
|
|
44008
|
+
|
|
44009
|
+
/***/ }),
|
|
44010
|
+
|
|
44011
|
+
/***/ 79374:
|
|
44012
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44013
|
+
|
|
44014
|
+
"use strict";
|
|
44015
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44016
|
+
/* harmony export */ "W": function() { return /* binding */ transformWordToHtml; }
|
|
44017
|
+
/* harmony export */ });
|
|
44018
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
44019
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44669);
|
|
44020
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
44021
|
+
/*!
|
|
44022
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44023
|
+
* See LICENSE.md in the project root for license information.
|
|
44024
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44025
|
+
*/
|
|
44026
|
+
|
|
44027
|
+
|
|
44028
|
+
|
|
44029
|
+
function transformWordToHtml(jodit, body, removeStyles, rtf) {
|
|
44030
|
+
const ctx = {
|
|
44031
|
+
jodit,
|
|
44032
|
+
rtf
|
|
44033
|
+
};
|
|
44034
|
+
body.forEach(function eachElm(elm) {
|
|
44035
|
+
if (!elm) {
|
|
44036
|
+
return;
|
|
44037
|
+
}
|
|
44038
|
+
for (const fn of jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__/* .cases */ .c) {
|
|
44039
|
+
elm = fn(elm, ctx);
|
|
44040
|
+
if (elm == null) {
|
|
44041
|
+
break;
|
|
44042
|
+
}
|
|
44043
|
+
}
|
|
44044
|
+
elm?.forEach(eachElm);
|
|
44045
|
+
});
|
|
44046
|
+
if (removeStyles) {
|
|
44047
|
+
body.forEach((elm) => {
|
|
44048
|
+
elm.style.clear();
|
|
44049
|
+
}, true);
|
|
44050
|
+
}
|
|
44051
|
+
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));
|
|
44052
|
+
}
|
|
44053
|
+
|
|
44054
|
+
|
|
44055
|
+
/***/ }),
|
|
44056
|
+
|
|
44057
|
+
/***/ 70322:
|
|
44058
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44059
|
+
|
|
44060
|
+
"use strict";
|
|
44061
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44062
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44063
|
+
/* harmony export */ "PasteFromWordPro": function() { return /* binding */ PasteFromWordPro; }
|
|
44064
|
+
/* harmony export */ });
|
|
44065
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
44066
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4682);
|
|
44067
|
+
/* harmony import */ var jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54625);
|
|
44068
|
+
/* harmony import */ var jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79501);
|
|
44069
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
44070
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18352);
|
|
44071
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48077);
|
|
44072
|
+
/*!
|
|
44073
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44074
|
+
* See LICENSE.md in the project root for license information.
|
|
44075
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44076
|
+
*/
|
|
44077
|
+
|
|
44078
|
+
|
|
44079
|
+
|
|
44080
|
+
|
|
44081
|
+
|
|
44082
|
+
|
|
44083
|
+
|
|
44084
|
+
class PasteFromWordPro extends jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__/* .pasteFromWord */ .L {
|
|
44085
|
+
insertFromWordByType(e, html, insertType, texts) {
|
|
44086
|
+
if (this.j.o.pasteFromWord.enable &&
|
|
44087
|
+
(insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML || insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT)) {
|
|
44088
|
+
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);
|
|
44089
|
+
// @ts-ignore
|
|
44090
|
+
if (this.j.o.beautifyHTML) {
|
|
44091
|
+
const value = this.j.events?.fire('beautifyHTML', html);
|
|
44092
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__/* .isString */ .H)(value)) {
|
|
44093
|
+
html = value;
|
|
44094
|
+
}
|
|
44095
|
+
}
|
|
44096
|
+
(0,jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .kU)(e, this.j, html);
|
|
44097
|
+
return;
|
|
44098
|
+
}
|
|
44099
|
+
return super.insertFromWordByType(e, html, insertType, texts);
|
|
44100
|
+
}
|
|
44101
|
+
}
|
|
44102
|
+
/** @override */
|
|
44103
|
+
PasteFromWordPro.requires = ['license'];
|
|
44104
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.remove */ .y.plugins.remove('pasteFromWord');
|
|
44105
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('pasteFromWordPro', PasteFromWordPro);
|
|
42129
44106
|
|
|
42130
44107
|
|
|
42131
44108
|
/***/ }),
|
|
@@ -42631,13 +44608,30 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
42631
44608
|
/******/ }();
|
|
42632
44609
|
/******/
|
|
42633
44610
|
/************************************************************************/
|
|
42634
|
-
|
|
42635
|
-
|
|
42636
|
-
|
|
42637
|
-
|
|
42638
|
-
|
|
42639
|
-
|
|
42640
|
-
|
|
44611
|
+
var __webpack_exports__ = {};
|
|
44612
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
44613
|
+
!function() {
|
|
44614
|
+
"use strict";
|
|
44615
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44616
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44617
|
+
/* harmony export */ "Jodit": function() { return /* reexport safe */ _jodit_pro__WEBPACK_IMPORTED_MODULE_0__.y; }
|
|
44618
|
+
/* harmony export */ });
|
|
44619
|
+
/* harmony import */ var _jodit_pro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53852);
|
|
44620
|
+
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
44621
|
+
/*!
|
|
44622
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
44623
|
+
* See LICENSE.md in the project root for license information.
|
|
44624
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
44625
|
+
*/
|
|
44626
|
+
|
|
44627
|
+
|
|
44628
|
+
|
|
44629
|
+
// Disable CopyRight
|
|
44630
|
+
function poweredByJodit() { }
|
|
44631
|
+
_jodit_pro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add('poweredByJodit', poweredByJodit);
|
|
44632
|
+
|
|
44633
|
+
}();
|
|
44634
|
+
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
42641
44635
|
/******/ return __webpack_exports__;
|
|
42642
44636
|
/******/ })()
|
|
42643
44637
|
;
|