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.en/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
|
*/
|
|
@@ -2269,7 +2269,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2269
2269
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2270
2270
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2271
2271
|
*/
|
|
2272
|
-
const APP_VERSION = "2.0.0-beta.
|
|
2272
|
+
const APP_VERSION = "2.0.0-beta.21";
|
|
2273
2273
|
// eslint-disable-next-line prettier/prettier
|
|
2274
2274
|
const ES = "es2021";
|
|
2275
2275
|
const IS_ES_MODERN = true;
|
|
@@ -3848,8 +3848,15 @@ class Dom {
|
|
|
3848
3848
|
static safeInsertNode(range, node) {
|
|
3849
3849
|
range.collapsed || range.deleteContents();
|
|
3850
3850
|
const child = Dom.isFragment(node) ? node.lastChild : node;
|
|
3851
|
-
range.
|
|
3852
|
-
|
|
3851
|
+
if (range.startContainer === range.endContainer &&
|
|
3852
|
+
range.collapsed &&
|
|
3853
|
+
Dom.isTag(range.startContainer, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
3854
|
+
Dom.after(range.startContainer, node);
|
|
3855
|
+
}
|
|
3856
|
+
else {
|
|
3857
|
+
range.insertNode(node);
|
|
3858
|
+
child && range.setStartBefore(child);
|
|
3859
|
+
}
|
|
3853
3860
|
range.collapse(true);
|
|
3854
3861
|
// https://developer.mozilla.org/en-US/docs/Web/API/Range/insertNode
|
|
3855
3862
|
// if the new node is to be added to a text Node, that Node is split at the
|
|
@@ -7830,8 +7837,13 @@ function attr(elm, keyOrAttributes, value) {
|
|
|
7830
7837
|
elm.hasAttribute(key) && elm.removeAttribute(key);
|
|
7831
7838
|
}
|
|
7832
7839
|
else {
|
|
7833
|
-
|
|
7834
|
-
|
|
7840
|
+
let replaceValue = value.toString();
|
|
7841
|
+
if (elm.nodeName === 'IMG' &&
|
|
7842
|
+
(key === 'width' || key === 'height')) {
|
|
7843
|
+
replaceValue = replaceValue.replace('px', '');
|
|
7844
|
+
}
|
|
7845
|
+
elm.setAttribute(key, replaceValue);
|
|
7846
|
+
return replaceValue;
|
|
7835
7847
|
}
|
|
7836
7848
|
}
|
|
7837
7849
|
return elm.getAttribute(key);
|
|
@@ -9120,25 +9132,29 @@ function reset(key) {
|
|
|
9120
9132
|
/**
|
|
9121
9133
|
* @module helpers/utils
|
|
9122
9134
|
*/
|
|
9123
|
-
|
|
9135
|
+
/**
|
|
9136
|
+
* Check if element is in view
|
|
9137
|
+
*/
|
|
9138
|
+
function inView(elm, root, doc) {
|
|
9124
9139
|
let rect = elm.getBoundingClientRect(), el = elm;
|
|
9125
9140
|
const top = rect.top, height = rect.height;
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
return false;
|
|
9132
|
-
}
|
|
9133
|
-
// Check if the element is out of view due to a container scrolling
|
|
9134
|
-
if (top + height <= rect.top) {
|
|
9135
|
-
return false;
|
|
9136
|
-
}
|
|
9141
|
+
while (el && el !== root && el.parentNode) {
|
|
9142
|
+
el = el.parentNode;
|
|
9143
|
+
rect = el.getBoundingClientRect();
|
|
9144
|
+
if (!(top <= rect.bottom)) {
|
|
9145
|
+
return false;
|
|
9137
9146
|
}
|
|
9138
|
-
|
|
9139
|
-
|
|
9147
|
+
// Check if the element is out of view due to a container scrolling
|
|
9148
|
+
if (top + height <= rect.top) {
|
|
9149
|
+
return false;
|
|
9150
|
+
}
|
|
9151
|
+
}
|
|
9152
|
+
// Check it's within the document viewport
|
|
9140
9153
|
return (top <= ((doc.documentElement && doc.documentElement.clientHeight) || 0));
|
|
9141
|
-
}
|
|
9154
|
+
}
|
|
9155
|
+
/**
|
|
9156
|
+
* Scroll element into view if it is not in view
|
|
9157
|
+
*/
|
|
9142
9158
|
function scrollIntoViewIfNeeded(elm, root, doc) {
|
|
9143
9159
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isHTMLElement */ .i.isHTMLElement(elm) && !inView(elm, root, doc)) {
|
|
9144
9160
|
if (root.clientHeight !== root.scrollHeight) {
|
|
@@ -10664,14 +10680,14 @@ class Selection {
|
|
|
10664
10680
|
const left = range.cloneRange();
|
|
10665
10681
|
left.collapse(true);
|
|
10666
10682
|
const fakeLeft = this.j.createInside.fake();
|
|
10667
|
-
|
|
10683
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(left, fakeLeft);
|
|
10668
10684
|
range.setStartBefore(fakeLeft);
|
|
10669
10685
|
const result = [fakeLeft];
|
|
10670
10686
|
if (!range.collapsed) {
|
|
10671
10687
|
const right = range.cloneRange();
|
|
10672
10688
|
right.collapse(false);
|
|
10673
10689
|
const fakeRight = this.j.createInside.fake();
|
|
10674
|
-
|
|
10690
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(right, fakeRight);
|
|
10675
10691
|
range.setEndAfter(fakeRight);
|
|
10676
10692
|
result.push(fakeRight);
|
|
10677
10693
|
}
|
|
@@ -10895,13 +10911,7 @@ class Selection {
|
|
|
10895
10911
|
if (sel && sel.rangeCount) {
|
|
10896
10912
|
const range = sel.getRangeAt(0);
|
|
10897
10913
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isOrContains */ .i.isOrContains(this.area, range.commonAncestorContainer)) {
|
|
10898
|
-
|
|
10899
|
-
range.collapsed) {
|
|
10900
|
-
range.startContainer.parentNode?.insertBefore(node, range.startContainer);
|
|
10901
|
-
}
|
|
10902
|
-
else {
|
|
10903
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
10904
|
-
}
|
|
10914
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeInsertNode */ .i.safeInsertNode(range, node);
|
|
10905
10915
|
}
|
|
10906
10916
|
else {
|
|
10907
10917
|
this.area.appendChild(node);
|
|
@@ -10910,14 +10920,26 @@ class Selection {
|
|
|
10910
10920
|
else {
|
|
10911
10921
|
this.area.appendChild(node);
|
|
10912
10922
|
}
|
|
10923
|
+
const setCursor = (node) => {
|
|
10924
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isBlock */ .i.isBlock(node)) {
|
|
10925
|
+
const child = node.lastChild;
|
|
10926
|
+
if (child) {
|
|
10927
|
+
return setCursor(child);
|
|
10928
|
+
}
|
|
10929
|
+
}
|
|
10930
|
+
this.setCursorAfter(node);
|
|
10931
|
+
};
|
|
10913
10932
|
if (insertCursorAfter) {
|
|
10914
10933
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.isFragment */ .i.isFragment(node)) {
|
|
10915
|
-
child &&
|
|
10934
|
+
child && setCursor(child);
|
|
10916
10935
|
}
|
|
10917
10936
|
else {
|
|
10918
|
-
|
|
10937
|
+
setCursor(node);
|
|
10919
10938
|
}
|
|
10920
10939
|
}
|
|
10940
|
+
if (this.j.o.scrollToPastedContent) {
|
|
10941
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(child ?? node, this.j.editor, this.doc);
|
|
10942
|
+
}
|
|
10921
10943
|
});
|
|
10922
10944
|
if (fireChange && this.j.events) {
|
|
10923
10945
|
this.j.__imdSynchronizeValues();
|
|
@@ -15637,6 +15659,13 @@ Icon.__cache = new Map();
|
|
|
15637
15659
|
|
|
15638
15660
|
|
|
15639
15661
|
|
|
15662
|
+
const EVENTS_FOR_AUTOCLOSE = [
|
|
15663
|
+
'escape',
|
|
15664
|
+
'cut',
|
|
15665
|
+
'delete',
|
|
15666
|
+
'backSpaceAfterDelete',
|
|
15667
|
+
'beforeCommandDelete'
|
|
15668
|
+
];
|
|
15640
15669
|
class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .u {
|
|
15641
15670
|
/** @override */
|
|
15642
15671
|
className() {
|
|
@@ -15875,7 +15904,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
15875
15904
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.on */ .TB.on('closeAllPopups', this.close);
|
|
15876
15905
|
if (this.smart) {
|
|
15877
15906
|
this.j.e
|
|
15878
|
-
.on(
|
|
15907
|
+
.on(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
15879
15908
|
.on('mousedown touchstart', this.closeOnOutsideClick)
|
|
15880
15909
|
.on(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
15881
15910
|
}
|
|
@@ -15894,7 +15923,7 @@ class Popup extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElem
|
|
|
15894
15923
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_6__/* .eventEmitter.off */ .TB.off('closeAllPopups', this.close);
|
|
15895
15924
|
if (this.smart) {
|
|
15896
15925
|
this.j.e
|
|
15897
|
-
.off(
|
|
15926
|
+
.off(EVENTS_FOR_AUTOCLOSE, this.close)
|
|
15898
15927
|
.off('mousedown touchstart', this.closeOnOutsideClick)
|
|
15899
15928
|
.off(ow, 'mousedown touchstart', this.closeOnOutsideClick);
|
|
15900
15929
|
}
|
|
@@ -17084,7 +17113,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17084
17113
|
* })
|
|
17085
17114
|
* ```
|
|
17086
17115
|
*/
|
|
17087
|
-
result = this.e.fire(
|
|
17116
|
+
result = this.e.fire(`beforeCommand${(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ucfirst)(command)}`, showUI, value, ...args);
|
|
17117
|
+
if (result !== false) {
|
|
17118
|
+
result = this.e.fire('beforeCommand', command, showUI, value, ...args);
|
|
17119
|
+
}
|
|
17088
17120
|
if (result !== false) {
|
|
17089
17121
|
result = this.__execCustomCommands(command, showUI, value, ...args);
|
|
17090
17122
|
}
|
|
@@ -32024,7 +32056,7 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plug
|
|
|
32024
32056
|
* Hide opened popup
|
|
32025
32057
|
*/
|
|
32026
32058
|
hidePopup(type) {
|
|
32027
|
-
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type) {
|
|
32059
|
+
if (this.popup.isOpened && (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(type) || type === this.type)) {
|
|
32028
32060
|
this.popup.close();
|
|
32029
32061
|
}
|
|
32030
32062
|
}
|
|
@@ -32187,7 +32219,7 @@ inlinePopup.requires = ['select'];
|
|
|
32187
32219
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.wait)((ctx) => !ctx.j.isLocked)
|
|
32188
32220
|
], inlinePopup.prototype, "showPopup", null);
|
|
32189
32221
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
32190
|
-
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)(':clickEditor'),
|
|
32222
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.watch)([':clickEditor', ':beforeCommandDelete', ':backSpaceAfterDelete']),
|
|
32191
32223
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_6__.autobind
|
|
32192
32224
|
], inlinePopup.prototype, "hidePopup", null);
|
|
32193
32225
|
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
@@ -33858,6 +33890,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__/* .pluginSystem.add */ .pw.add('p
|
|
|
33858
33890
|
|
|
33859
33891
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.askBeforePasteHTML = true;
|
|
33860
33892
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.processPasteHTML = true;
|
|
33893
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.scrollToPastedContent = true;
|
|
33861
33894
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteHTMLActionList = [
|
|
33862
33895
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
|
|
33863
33896
|
{ value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
|
|
@@ -34159,7 +34192,7 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
34159
34192
|
text = result;
|
|
34160
34193
|
}
|
|
34161
34194
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(text) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isNode */ .i.isNode(text)) {
|
|
34162
|
-
this.
|
|
34195
|
+
this.__insertByType(e, text, this.j.o.defaultActionOnPaste);
|
|
34163
34196
|
}
|
|
34164
34197
|
e.preventDefault();
|
|
34165
34198
|
e.stopPropagation();
|
|
@@ -34169,35 +34202,35 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
34169
34202
|
* Process usual HTML text fragment
|
|
34170
34203
|
*/
|
|
34171
34204
|
processHTML(e, html) {
|
|
34172
|
-
if (this.j.o.askBeforePasteHTML) {
|
|
34173
|
-
|
|
34174
|
-
|
|
34175
|
-
|
|
34176
|
-
|
|
34177
|
-
|
|
34178
|
-
|
|
34179
|
-
}
|
|
34180
|
-
if (this._isDialogOpened) {
|
|
34205
|
+
if (!this.j.o.askBeforePasteHTML) {
|
|
34206
|
+
return false;
|
|
34207
|
+
}
|
|
34208
|
+
if (this.j.o.memorizeChoiceWhenPasteFragment) {
|
|
34209
|
+
const cached = this.pasteStack.find(cachedItem => cachedItem.html === html);
|
|
34210
|
+
if (cached) {
|
|
34211
|
+
this.__insertByType(e, html, cached.action || this.j.o.defaultActionOnPaste);
|
|
34181
34212
|
return true;
|
|
34182
34213
|
}
|
|
34183
|
-
|
|
34184
|
-
|
|
34185
|
-
this.insertByType(e, html, insertType);
|
|
34186
|
-
}, this.j.o.pasteHTMLActionList);
|
|
34187
|
-
if (dialog) {
|
|
34188
|
-
this._isDialogOpened = true;
|
|
34189
|
-
dialog.e.on('beforeClose', () => {
|
|
34190
|
-
this._isDialogOpened = false;
|
|
34191
|
-
});
|
|
34192
|
-
}
|
|
34214
|
+
}
|
|
34215
|
+
if (this._isDialogOpened) {
|
|
34193
34216
|
return true;
|
|
34194
34217
|
}
|
|
34195
|
-
|
|
34218
|
+
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 => {
|
|
34219
|
+
this._isDialogOpened = false;
|
|
34220
|
+
this.__insertByType(e, html, insertType);
|
|
34221
|
+
}, this.j.o.pasteHTMLActionList);
|
|
34222
|
+
if (dialog) {
|
|
34223
|
+
this._isDialogOpened = true;
|
|
34224
|
+
dialog.e.on('beforeClose', () => {
|
|
34225
|
+
this._isDialogOpened = false;
|
|
34226
|
+
});
|
|
34227
|
+
}
|
|
34228
|
+
return true;
|
|
34196
34229
|
}
|
|
34197
34230
|
/**
|
|
34198
34231
|
* Insert HTML by option type
|
|
34199
34232
|
*/
|
|
34200
|
-
|
|
34233
|
+
__insertByType(e, html, action) {
|
|
34201
34234
|
this.pasteStack.push({ html, action });
|
|
34202
34235
|
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(html)) {
|
|
34203
34236
|
this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.CLIPBOARD_ID, html);
|
|
@@ -40186,7 +40219,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40186
40219
|
|
|
40187
40220
|
/***/ }),
|
|
40188
40221
|
|
|
40189
|
-
/***/
|
|
40222
|
+
/***/ 68353:
|
|
40223
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
40224
|
+
|
|
40225
|
+
"use strict";
|
|
40226
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
40227
|
+
/*!
|
|
40228
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40229
|
+
* See LICENSE.md in the project root for license information.
|
|
40230
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
40231
|
+
*/
|
|
40232
|
+
|
|
40233
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font.list = {
|
|
40234
|
+
'andale mono,monospace': 'Andale Mono',
|
|
40235
|
+
'arial,helvetica,sans-serif': 'Arial',
|
|
40236
|
+
'arial black,sans-serif': 'Arial Black',
|
|
40237
|
+
'book antiqua,palatino,serif': 'Book Antiqua',
|
|
40238
|
+
'comic sans ms,sans-serif': 'Comic Sans MS',
|
|
40239
|
+
'courier new,courier,monospace': 'Courier New',
|
|
40240
|
+
'georgia,palatino,serif': 'Georgia',
|
|
40241
|
+
'helvetica,arial,sans-serif': 'Helvetica',
|
|
40242
|
+
'impact,charcoal,sans-serif': 'Impact',
|
|
40243
|
+
'symbol,sans-serif': 'Symbol',
|
|
40244
|
+
'tahoma,arial,helvetica,sans-serif': 'Tahoma',
|
|
40245
|
+
'terminal,monaco,monospace': 'Terminal',
|
|
40246
|
+
'times new roman,times,serif': 'Times New Roman',
|
|
40247
|
+
'trebuchet ms,geneva,sans-serif': 'Trebuchet MS',
|
|
40248
|
+
'verdana,geneva,sans-serif': 'Verdana',
|
|
40249
|
+
webdings: 'Webdings',
|
|
40250
|
+
'wingdings,zapf dingbats': 'Wingdings'
|
|
40251
|
+
};
|
|
40252
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.loadExternalConfig = true;
|
|
40253
|
+
|
|
40254
|
+
|
|
40255
|
+
/***/ }),
|
|
40256
|
+
|
|
40257
|
+
/***/ 53852:
|
|
40190
40258
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40191
40259
|
|
|
40192
40260
|
"use strict";
|
|
@@ -40243,62 +40311,440 @@ class JoditPro extends jodit_index__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .h {
|
|
|
40243
40311
|
|
|
40244
40312
|
/***/ }),
|
|
40245
40313
|
|
|
40246
|
-
/***/
|
|
40247
|
-
/***/ (function(__unused_webpack_module,
|
|
40314
|
+
/***/ 93123:
|
|
40315
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40248
40316
|
|
|
40249
40317
|
"use strict";
|
|
40250
|
-
|
|
40318
|
+
__webpack_require__.r(__webpack_exports__);
|
|
40319
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40320
|
+
/* harmony export */ "autocomplete": function() { return /* binding */ autocomplete; }
|
|
40321
|
+
/* harmony export */ });
|
|
40322
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(97582);
|
|
40323
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
|
|
40324
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77628);
|
|
40325
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
|
|
40326
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95582);
|
|
40327
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44913);
|
|
40328
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19797);
|
|
40329
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11612);
|
|
40330
|
+
/* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77325);
|
|
40331
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53852);
|
|
40332
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(47325);
|
|
40251
40333
|
/*!
|
|
40252
40334
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40253
40335
|
* See LICENSE.md in the project root for license information.
|
|
40254
40336
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
40255
40337
|
*/
|
|
40256
40338
|
|
|
40257
|
-
|
|
40258
|
-
|
|
40259
|
-
|
|
40260
|
-
|
|
40261
|
-
|
|
40262
|
-
|
|
40263
|
-
|
|
40264
|
-
|
|
40265
|
-
|
|
40266
|
-
|
|
40267
|
-
|
|
40268
|
-
|
|
40269
|
-
|
|
40270
|
-
|
|
40271
|
-
|
|
40272
|
-
|
|
40273
|
-
webdings: 'Webdings',
|
|
40274
|
-
'wingdings,zapf dingbats': 'Wingdings'
|
|
40339
|
+
|
|
40340
|
+
|
|
40341
|
+
|
|
40342
|
+
|
|
40343
|
+
|
|
40344
|
+
|
|
40345
|
+
|
|
40346
|
+
|
|
40347
|
+
|
|
40348
|
+
|
|
40349
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.autocomplete = {
|
|
40350
|
+
sources: [],
|
|
40351
|
+
maxItems: 50,
|
|
40352
|
+
isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
|
|
40353
|
+
itemRenderer: (item) => item.title ?? item.value,
|
|
40354
|
+
insertValueRenderer: (item) => item.value + ' '
|
|
40275
40355
|
};
|
|
40276
|
-
|
|
40356
|
+
class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
|
|
40357
|
+
constructor() {
|
|
40358
|
+
super(...arguments);
|
|
40359
|
+
/** @override */
|
|
40360
|
+
this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.fatMode */ .y.fatMode;
|
|
40361
|
+
this.sources = [];
|
|
40362
|
+
}
|
|
40363
|
+
/** @override */
|
|
40364
|
+
afterInit(jodit) {
|
|
40365
|
+
this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .G(jodit);
|
|
40366
|
+
this.popup.setMod('padding', false);
|
|
40367
|
+
this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .F(jodit);
|
|
40368
|
+
this.popup.setContent(this.list.container);
|
|
40369
|
+
jodit.e
|
|
40370
|
+
.on('select.autocomplete', (item) => {
|
|
40371
|
+
let insertValue = item.value;
|
|
40372
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(item.insertValueRenderer)) {
|
|
40373
|
+
insertValue = item.insertValueRenderer(item);
|
|
40374
|
+
}
|
|
40375
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom.isNode */ .i.isNode(insertValue)) {
|
|
40376
|
+
insertValue = jodit.createInside.fromHTML(insertValue);
|
|
40377
|
+
}
|
|
40378
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .replaceTextLeftOfCursorAfterSpace */ .p)(jodit.s.range, insertValue);
|
|
40379
|
+
this.j.s.setCursorAfter(insertValue);
|
|
40380
|
+
this.j.synchronizeValues();
|
|
40381
|
+
this.popup.close();
|
|
40382
|
+
})
|
|
40383
|
+
.on('keydown.autocomplete', this.onKeyDown)
|
|
40384
|
+
.on('keydown.autocomplete', this.onKeyControlDown, {
|
|
40385
|
+
top: true
|
|
40386
|
+
})
|
|
40387
|
+
.on('beforeEnter.autocomplete', this.onEnter, { top: true })
|
|
40388
|
+
.on('autocomplete.autocomplete', this.onAutoComplete)
|
|
40389
|
+
.on('registerAutocompleteSource.autocomplete', this.registerAutocompleteSource);
|
|
40390
|
+
}
|
|
40391
|
+
registerAutocompleteSource(source) {
|
|
40392
|
+
this.sources.push(source);
|
|
40393
|
+
}
|
|
40394
|
+
static isControlKey(key) {
|
|
40395
|
+
return (key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN ||
|
|
40396
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP ||
|
|
40397
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ENTER ||
|
|
40398
|
+
key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB);
|
|
40399
|
+
}
|
|
40400
|
+
async onKeyDown(e) {
|
|
40401
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_ESC) {
|
|
40402
|
+
this.popup.isOpened && this.popup.close();
|
|
40403
|
+
return;
|
|
40404
|
+
}
|
|
40405
|
+
const { s } = this.j;
|
|
40406
|
+
if (autocomplete.isControlKey(e.key) ||
|
|
40407
|
+
!s.isInsideArea ||
|
|
40408
|
+
!s.isCollapsed) {
|
|
40409
|
+
return;
|
|
40410
|
+
}
|
|
40411
|
+
const range = this.j.s.sel?.rangeCount
|
|
40412
|
+
? this.j.s.sel?.getRangeAt(0)
|
|
40413
|
+
: null;
|
|
40414
|
+
const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_9__/* .getTextLeftOfCursor */ .Y)(range).split(' ').pop();
|
|
40415
|
+
if (query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length) {
|
|
40416
|
+
const result = await this.onAutoComplete(query);
|
|
40417
|
+
if (result.length) {
|
|
40418
|
+
return this.openPopup(result);
|
|
40419
|
+
}
|
|
40420
|
+
}
|
|
40421
|
+
if (this.popup.isOpened) {
|
|
40422
|
+
this.popup.close();
|
|
40423
|
+
}
|
|
40424
|
+
}
|
|
40425
|
+
onKeyControlDown(e) {
|
|
40426
|
+
if (this.popup.isOpened && autocomplete.isControlKey(e.key)) {
|
|
40427
|
+
switch (e.key) {
|
|
40428
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_DOWN:
|
|
40429
|
+
this.list.selectNext();
|
|
40430
|
+
break;
|
|
40431
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_UP:
|
|
40432
|
+
this.list.selectPrevious();
|
|
40433
|
+
break;
|
|
40434
|
+
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_TAB:
|
|
40435
|
+
this.list.select();
|
|
40436
|
+
break;
|
|
40437
|
+
}
|
|
40438
|
+
this.j.e.stopPropagation(e.type);
|
|
40439
|
+
return false;
|
|
40440
|
+
}
|
|
40441
|
+
}
|
|
40442
|
+
onEnter() {
|
|
40443
|
+
if (this.popup.isOpened) {
|
|
40444
|
+
this.list.select();
|
|
40445
|
+
return false;
|
|
40446
|
+
}
|
|
40447
|
+
}
|
|
40448
|
+
async onAutoComplete(query) {
|
|
40449
|
+
const result = [];
|
|
40450
|
+
await Promise.all(this.sources
|
|
40451
|
+
.concat(this.j.o.autocomplete.sources)
|
|
40452
|
+
.map(async (source) => {
|
|
40453
|
+
result.push(...(await this.resolveFeed(query, source)));
|
|
40454
|
+
}));
|
|
40455
|
+
return result;
|
|
40456
|
+
}
|
|
40457
|
+
async resolveFeed(query, feed, baseSource) {
|
|
40458
|
+
let parts;
|
|
40459
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(feed)) {
|
|
40460
|
+
feed = await feed;
|
|
40461
|
+
}
|
|
40462
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(feed)) {
|
|
40463
|
+
parts = await feed(query);
|
|
40464
|
+
}
|
|
40465
|
+
else if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(feed)) {
|
|
40466
|
+
const arrayFeed = feed, { isMatchedQuery } = this.j.o.autocomplete;
|
|
40467
|
+
parts = arrayFeed
|
|
40468
|
+
.filter((item) => {
|
|
40469
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
40470
|
+
return isMatchedQuery(query, item);
|
|
40471
|
+
}
|
|
40472
|
+
return isMatchedQuery(query, item.value);
|
|
40473
|
+
})
|
|
40474
|
+
.map((item) => {
|
|
40475
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(item)) {
|
|
40476
|
+
return { title: item, value: item };
|
|
40477
|
+
}
|
|
40478
|
+
return item;
|
|
40479
|
+
});
|
|
40480
|
+
}
|
|
40481
|
+
else {
|
|
40482
|
+
parts = await this.resolveFeed(query, feed.feed, feed);
|
|
40483
|
+
}
|
|
40484
|
+
if (parts && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isArray)(parts)) {
|
|
40485
|
+
const { itemRenderer, insertValueRenderer, maxItems } = this.j.o.autocomplete;
|
|
40486
|
+
parts = parts.map((item) => ({
|
|
40487
|
+
itemRenderer: baseSource?.itemRenderer ?? itemRenderer,
|
|
40488
|
+
insertValueRenderer: baseSource?.insertValueRenderer ?? insertValueRenderer,
|
|
40489
|
+
...item
|
|
40490
|
+
}));
|
|
40491
|
+
return parts.slice(0, maxItems);
|
|
40492
|
+
}
|
|
40493
|
+
return [];
|
|
40494
|
+
}
|
|
40495
|
+
openPopup(result) {
|
|
40496
|
+
this.list.build(result);
|
|
40497
|
+
this.popup.open(() => {
|
|
40498
|
+
const { j } = this;
|
|
40499
|
+
const rect = j.s.range.getBoundingClientRect();
|
|
40500
|
+
const bound = {
|
|
40501
|
+
left: rect.left,
|
|
40502
|
+
top: rect.top,
|
|
40503
|
+
height: rect.height,
|
|
40504
|
+
width: rect.width
|
|
40505
|
+
};
|
|
40506
|
+
if (j.o.iframe && j.iframe) {
|
|
40507
|
+
const pos = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(j.iframe, j);
|
|
40508
|
+
bound.top += pos.top;
|
|
40509
|
+
bound.left += pos.left;
|
|
40510
|
+
}
|
|
40511
|
+
return bound;
|
|
40512
|
+
});
|
|
40513
|
+
}
|
|
40514
|
+
/** @override */
|
|
40515
|
+
beforeDestruct(jodit) {
|
|
40516
|
+
jodit.e
|
|
40517
|
+
.off(this.list)
|
|
40518
|
+
.off('keydown.autocomplete', this.onKeyDown)
|
|
40519
|
+
.off('autocomplete.autocomplete', this.onAutoComplete)
|
|
40520
|
+
.off('.autocomplete');
|
|
40521
|
+
this.list.destruct();
|
|
40522
|
+
this.popup.destruct();
|
|
40523
|
+
}
|
|
40524
|
+
}
|
|
40525
|
+
/** @override */
|
|
40526
|
+
autocomplete.requires = ['enter', 'license'];
|
|
40527
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
40528
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40529
|
+
], autocomplete.prototype, "registerAutocompleteSource", null);
|
|
40530
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
40531
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
|
|
40532
|
+
], autocomplete.prototype, "onKeyDown", null);
|
|
40533
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
40534
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40535
|
+
], autocomplete.prototype, "onKeyControlDown", null);
|
|
40536
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
40537
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40538
|
+
], autocomplete.prototype, "onEnter", null);
|
|
40539
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
40540
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40541
|
+
], autocomplete.prototype, "onAutoComplete", null);
|
|
40542
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
|
|
40543
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
40544
|
+
], autocomplete.prototype, "resolveFeed", null);
|
|
40545
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__/* .JoditPro.plugins.add */ .y.plugins.add('autocomplete', autocomplete);
|
|
40277
40546
|
|
|
40278
40547
|
|
|
40279
40548
|
/***/ }),
|
|
40280
40549
|
|
|
40281
|
-
/***/
|
|
40550
|
+
/***/ 47325:
|
|
40282
40551
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40283
40552
|
|
|
40284
40553
|
"use strict";
|
|
40285
|
-
__webpack_require__.r(__webpack_exports__);
|
|
40286
40554
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40287
|
-
/* harmony export */ "
|
|
40555
|
+
/* harmony export */ "Y": function() { return /* binding */ getTextLeftOfCursor; },
|
|
40556
|
+
/* harmony export */ "p": function() { return /* binding */ replaceTextLeftOfCursorAfterSpace; }
|
|
40288
40557
|
/* harmony export */ });
|
|
40289
|
-
/* harmony import */ var
|
|
40290
|
-
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
40558
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44913);
|
|
40291
40559
|
/*!
|
|
40292
40560
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40293
40561
|
* See LICENSE.md in the project root for license information.
|
|
40294
40562
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
40295
40563
|
*/
|
|
40296
40564
|
|
|
40565
|
+
/**
|
|
40566
|
+
* For collapsed selection return left text value before cursor
|
|
40567
|
+
* @example
|
|
40568
|
+
* ```
|
|
40569
|
+
* <p><string>test</strong>pop|</p> => pop
|
|
40570
|
+
* <p><string>test|</strong>pop</p> => test
|
|
40571
|
+
* <p><string>te|st</strong>pop</p> => te
|
|
40572
|
+
* ```
|
|
40573
|
+
*/
|
|
40574
|
+
function getTextLeftOfCursor(range) {
|
|
40575
|
+
const { startContainer, startOffset } = range;
|
|
40576
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
40577
|
+
return startContainer.nodeValue?.substr(0, startOffset) ?? '';
|
|
40578
|
+
}
|
|
40579
|
+
const node = startContainer.childNodes[startOffset];
|
|
40580
|
+
if (!node) {
|
|
40581
|
+
return '';
|
|
40582
|
+
}
|
|
40583
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(node)) {
|
|
40584
|
+
return node.nodeValue ?? '';
|
|
40585
|
+
}
|
|
40586
|
+
const previous = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.findNotEmptyNeighbor */ .i.findNotEmptyNeighbor(node, true, startContainer);
|
|
40587
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(previous)) {
|
|
40588
|
+
return node.nodeValue ?? '';
|
|
40589
|
+
}
|
|
40590
|
+
return '';
|
|
40591
|
+
}
|
|
40592
|
+
/**
|
|
40593
|
+
* For collapsed selection replace part of left text value before cursor but started after space
|
|
40594
|
+
* @example
|
|
40595
|
+
* ```
|
|
40596
|
+
* <p><string>test</strong>pap|</p> + pappy = <p><string>test</strong>pappy|</p>
|
|
40597
|
+
* <p><string>test</strong>pap| test</p> + pappy = <p><string>test</strong>pappy| test</p>
|
|
40598
|
+
* <p><string>test</strong>stat pap| test</p> + pappy = <p><string>test</strong>stat pappy| test</p>
|
|
40599
|
+
* ```
|
|
40600
|
+
*/
|
|
40601
|
+
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
40602
|
+
// eslint-disable-next-line prefer-const
|
|
40603
|
+
let { startContainer, startOffset } = range;
|
|
40604
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
40605
|
+
startContainer = startContainer.childNodes[startOffset - 1];
|
|
40606
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
40607
|
+
startOffset = startContainer.nodeValue?.length ?? 0;
|
|
40608
|
+
}
|
|
40609
|
+
}
|
|
40610
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isText */ .i.isText(startContainer)) {
|
|
40611
|
+
const value = startContainer.nodeValue ?? '', leftSide = value.substring(0, startOffset), rightSide = value.substring(startOffset);
|
|
40612
|
+
const words = leftSide.split(' ');
|
|
40613
|
+
words[words.length - 1] = '';
|
|
40614
|
+
const newLeftSide = words.join(' ');
|
|
40615
|
+
startContainer.nodeValue = newLeftSide + rightSide;
|
|
40616
|
+
range.setStart(startContainer, newLeftSide.length);
|
|
40617
|
+
range.insertNode(elm);
|
|
40618
|
+
return;
|
|
40619
|
+
}
|
|
40620
|
+
}
|
|
40297
40621
|
|
|
40298
40622
|
|
|
40299
|
-
|
|
40300
|
-
|
|
40301
|
-
|
|
40623
|
+
/***/ }),
|
|
40624
|
+
|
|
40625
|
+
/***/ 77325:
|
|
40626
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40627
|
+
|
|
40628
|
+
"use strict";
|
|
40629
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40630
|
+
/* harmony export */ "F": function() { return /* binding */ Autocomplete; }
|
|
40631
|
+
/* harmony export */ });
|
|
40632
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
40633
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
|
|
40634
|
+
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91630);
|
|
40635
|
+
/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91381);
|
|
40636
|
+
/*!
|
|
40637
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40638
|
+
* See LICENSE.md in the project root for license information.
|
|
40639
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
40640
|
+
*/
|
|
40641
|
+
|
|
40642
|
+
|
|
40643
|
+
|
|
40644
|
+
|
|
40645
|
+
|
|
40646
|
+
let Autocomplete = class Autocomplete extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_1__/* .UIGroup */ .q {
|
|
40647
|
+
constructor() {
|
|
40648
|
+
super(...arguments);
|
|
40649
|
+
this.elements = [];
|
|
40650
|
+
this.currentSelection = -1;
|
|
40651
|
+
}
|
|
40652
|
+
/** @override */
|
|
40653
|
+
className() {
|
|
40654
|
+
return 'Autocomplete';
|
|
40655
|
+
}
|
|
40656
|
+
onChangeSelection(_, previous) {
|
|
40657
|
+
previous != null && this.elements[previous]?.setMod('active', false);
|
|
40658
|
+
this.elements[this.currentSelection].setMod('active', true);
|
|
40659
|
+
this.elements[this.currentSelection].container.scrollIntoView(false);
|
|
40660
|
+
}
|
|
40661
|
+
build(list) {
|
|
40662
|
+
this.clear();
|
|
40663
|
+
list.forEach((elm, index) => {
|
|
40664
|
+
const item = new _item__WEBPACK_IMPORTED_MODULE_2__/* .AutocompleteItem */ .h(this.jodit, elm);
|
|
40665
|
+
this.j.e
|
|
40666
|
+
.on(item.container, 'mousedown touchstart', (e) => {
|
|
40667
|
+
e.preventDefault();
|
|
40668
|
+
})
|
|
40669
|
+
.on(item.container, 'click', () => {
|
|
40670
|
+
this.currentSelection = index;
|
|
40671
|
+
this.select();
|
|
40672
|
+
});
|
|
40673
|
+
this.append(item);
|
|
40674
|
+
});
|
|
40675
|
+
this.currentSelection = 0;
|
|
40676
|
+
this.onChangeSelection();
|
|
40677
|
+
}
|
|
40678
|
+
selectNext() {
|
|
40679
|
+
if (this.currentSelection + 1 <= this.elements.length - 1) {
|
|
40680
|
+
this.currentSelection += 1;
|
|
40681
|
+
}
|
|
40682
|
+
else {
|
|
40683
|
+
this.currentSelection = 0;
|
|
40684
|
+
}
|
|
40685
|
+
}
|
|
40686
|
+
selectPrevious() {
|
|
40687
|
+
if (this.currentSelection - 1 >= 0) {
|
|
40688
|
+
this.currentSelection -= 1;
|
|
40689
|
+
}
|
|
40690
|
+
else {
|
|
40691
|
+
this.currentSelection = this.elements.length - 1;
|
|
40692
|
+
}
|
|
40693
|
+
}
|
|
40694
|
+
select() {
|
|
40695
|
+
this.j.e.fire('select.autocomplete', this.elements[this.currentSelection].item);
|
|
40696
|
+
}
|
|
40697
|
+
};
|
|
40698
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
40699
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.watch)('currentSelection')
|
|
40700
|
+
], Autocomplete.prototype, "onChangeSelection", null);
|
|
40701
|
+
Autocomplete = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
40702
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
|
|
40703
|
+
], Autocomplete);
|
|
40704
|
+
|
|
40705
|
+
|
|
40706
|
+
/***/ }),
|
|
40707
|
+
|
|
40708
|
+
/***/ 91381:
|
|
40709
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40710
|
+
|
|
40711
|
+
"use strict";
|
|
40712
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40713
|
+
/* harmony export */ "h": function() { return /* binding */ AutocompleteItem; }
|
|
40714
|
+
/* harmony export */ });
|
|
40715
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84789);
|
|
40716
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71350);
|
|
40717
|
+
/*!
|
|
40718
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40719
|
+
* See LICENSE.md in the project root for license information.
|
|
40720
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
40721
|
+
*/
|
|
40722
|
+
|
|
40723
|
+
|
|
40724
|
+
|
|
40725
|
+
class AutocompleteItem extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u {
|
|
40726
|
+
/** @override */
|
|
40727
|
+
className() {
|
|
40728
|
+
return 'AutocompleteItem';
|
|
40729
|
+
}
|
|
40730
|
+
constructor(jodit, item) {
|
|
40731
|
+
super(jodit);
|
|
40732
|
+
this.item = item;
|
|
40733
|
+
const { container } = this;
|
|
40734
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .mf)(item.itemRenderer)) {
|
|
40735
|
+
const elm = item.itemRenderer(item);
|
|
40736
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .HD)(elm)) {
|
|
40737
|
+
container.innerHTML = elm;
|
|
40738
|
+
}
|
|
40739
|
+
else {
|
|
40740
|
+
container.appendChild(elm);
|
|
40741
|
+
}
|
|
40742
|
+
}
|
|
40743
|
+
else {
|
|
40744
|
+
container.innerText = item.title ?? item.value;
|
|
40745
|
+
}
|
|
40746
|
+
}
|
|
40747
|
+
}
|
|
40302
40748
|
|
|
40303
40749
|
|
|
40304
40750
|
/***/ }),
|
|
@@ -40307,7 +40753,9 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
40307
40753
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
40308
40754
|
|
|
40309
40755
|
"use strict";
|
|
40310
|
-
/* harmony import */ var
|
|
40756
|
+
/* harmony import */ var jodit_pro_plugins_license_license__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19564);
|
|
40757
|
+
/* harmony import */ var jodit_pro_plugins_autocomplete_autocomplete__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93123);
|
|
40758
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70322);
|
|
40311
40759
|
/*!
|
|
40312
40760
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40313
40761
|
* See LICENSE.md in the project root for license information.
|
|
@@ -40316,6 +40764,8 @@ _JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add
|
|
|
40316
40764
|
|
|
40317
40765
|
|
|
40318
40766
|
|
|
40767
|
+
|
|
40768
|
+
|
|
40319
40769
|
/***/ }),
|
|
40320
40770
|
|
|
40321
40771
|
/***/ 39401:
|
|
@@ -40400,8 +40850,8 @@ __webpack_unused_export__ = domainsHash;
|
|
|
40400
40850
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
40401
40851
|
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46232);
|
|
40402
40852
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11612);
|
|
40403
|
-
/* harmony import */ var
|
|
40404
|
-
/* harmony import */ var
|
|
40853
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
40854
|
+
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39401);
|
|
40405
40855
|
/*!
|
|
40406
40856
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40407
40857
|
* See LICENSE.md in the project root for license information.
|
|
@@ -40421,7 +40871,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
40421
40871
|
afterInit(jodit) {
|
|
40422
40872
|
this.j.e.on('checkReserve', async () => {
|
|
40423
40873
|
const code = this.j.o.license, domain = location.host;
|
|
40424
|
-
let valid = (0,
|
|
40874
|
+
let valid = (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(code, domain);
|
|
40425
40875
|
if (!valid && code[12] > 'A' && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.IS_TEST) {
|
|
40426
40876
|
valid = await this.validateLicenseRemote(code, domain);
|
|
40427
40877
|
}
|
|
@@ -40432,7 +40882,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
40432
40882
|
beforeDestruct(jodit) { }
|
|
40433
40883
|
async validateLicenseRemote(code, domain) {
|
|
40434
40884
|
const storageKey = 'validateJoditLicenseRemote', newCode = this.j.storage.get(storageKey);
|
|
40435
|
-
if (newCode && (0,
|
|
40885
|
+
if (newCode && (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
40436
40886
|
return true;
|
|
40437
40887
|
}
|
|
40438
40888
|
const s = document.createElement('script');
|
|
@@ -40444,7 +40894,7 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
40444
40894
|
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_5__/* .isBoolean */ .j)(newCode)) {
|
|
40445
40895
|
return res(newCode);
|
|
40446
40896
|
}
|
|
40447
|
-
if ((0,
|
|
40897
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .validateLicense */ .sx)(newCode, domain)) {
|
|
40448
40898
|
this.j.storage.set(storageKey, newCode);
|
|
40449
40899
|
res(true);
|
|
40450
40900
|
}
|
|
@@ -40463,7 +40913,1534 @@ class license extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .P
|
|
|
40463
40913
|
});
|
|
40464
40914
|
}
|
|
40465
40915
|
}
|
|
40466
|
-
|
|
40916
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('license', license);
|
|
40917
|
+
|
|
40918
|
+
|
|
40919
|
+
/***/ }),
|
|
40920
|
+
|
|
40921
|
+
/***/ 12750:
|
|
40922
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40923
|
+
|
|
40924
|
+
"use strict";
|
|
40925
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40926
|
+
/* harmony export */ "C": function() { return /* binding */ cleanStyles; }
|
|
40927
|
+
/* harmony export */ });
|
|
40928
|
+
/*!
|
|
40929
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40930
|
+
* See LICENSE.md in the project root for license information.
|
|
40931
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
40932
|
+
*/
|
|
40933
|
+
const forbiddenStyles = {
|
|
40934
|
+
'text-justify': ['inter-ideograph']
|
|
40935
|
+
};
|
|
40936
|
+
function cleanStyles(elm) {
|
|
40937
|
+
if (elm.isElement && elm.attributes.style) {
|
|
40938
|
+
Object.keys(forbiddenStyles).forEach((key) => {
|
|
40939
|
+
const values = forbiddenStyles[key];
|
|
40940
|
+
if (elm.style.has(key)) {
|
|
40941
|
+
// @ts-ignore
|
|
40942
|
+
if (values.includes(elm.style.get(key)?.toString())) {
|
|
40943
|
+
elm.style.set(key, null);
|
|
40944
|
+
}
|
|
40945
|
+
}
|
|
40946
|
+
});
|
|
40947
|
+
}
|
|
40948
|
+
return elm;
|
|
40949
|
+
}
|
|
40950
|
+
|
|
40951
|
+
|
|
40952
|
+
/***/ }),
|
|
40953
|
+
|
|
40954
|
+
/***/ 76995:
|
|
40955
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40956
|
+
|
|
40957
|
+
"use strict";
|
|
40958
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40959
|
+
/* harmony export */ "i": function() { return /* binding */ clearAttributes; }
|
|
40960
|
+
/* harmony export */ });
|
|
40961
|
+
/*!
|
|
40962
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
40963
|
+
* See LICENSE.md in the project root for license information.
|
|
40964
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
40965
|
+
*/
|
|
40966
|
+
const extraAttributes = [
|
|
40967
|
+
'cellspacing',
|
|
40968
|
+
'cellpadding',
|
|
40969
|
+
'border',
|
|
40970
|
+
'v:shapes',
|
|
40971
|
+
'o:spid'
|
|
40972
|
+
];
|
|
40973
|
+
function clearAttributes(elm) {
|
|
40974
|
+
if (/^OLE_LINK\d+$/.test(elm.attributes.name)) {
|
|
40975
|
+
elm.attributes.name = null;
|
|
40976
|
+
if (elm.length === 0) {
|
|
40977
|
+
elm.remove();
|
|
40978
|
+
return null;
|
|
40979
|
+
}
|
|
40980
|
+
}
|
|
40981
|
+
if (elm.attributes.name === '_GoBack') {
|
|
40982
|
+
elm.attributes.name = null;
|
|
40983
|
+
}
|
|
40984
|
+
// Remove extra attributes
|
|
40985
|
+
for (const attr of extraAttributes) {
|
|
40986
|
+
if (elm.attributes[attr]) {
|
|
40987
|
+
elm.attributes[attr] = null;
|
|
40988
|
+
}
|
|
40989
|
+
}
|
|
40990
|
+
return elm;
|
|
40991
|
+
}
|
|
40992
|
+
|
|
40993
|
+
|
|
40994
|
+
/***/ }),
|
|
40995
|
+
|
|
40996
|
+
/***/ 53614:
|
|
40997
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40998
|
+
|
|
40999
|
+
"use strict";
|
|
41000
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41001
|
+
/* harmony export */ "a": function() { return /* binding */ clearClassName; }
|
|
41002
|
+
/* harmony export */ });
|
|
41003
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
41004
|
+
/*!
|
|
41005
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41006
|
+
* See LICENSE.md in the project root for license information.
|
|
41007
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41008
|
+
*/
|
|
41009
|
+
|
|
41010
|
+
const clearClassName = (elm) => {
|
|
41011
|
+
// Normalize or remove class
|
|
41012
|
+
if (elm.attributes.class) {
|
|
41013
|
+
elm.attributes.class = elm.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi, '');
|
|
41014
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .f)(elm.attributes.class)) {
|
|
41015
|
+
elm.attributes.class = null;
|
|
41016
|
+
}
|
|
41017
|
+
}
|
|
41018
|
+
return elm;
|
|
41019
|
+
};
|
|
41020
|
+
|
|
41021
|
+
|
|
41022
|
+
/***/ }),
|
|
41023
|
+
|
|
41024
|
+
/***/ 50353:
|
|
41025
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41026
|
+
|
|
41027
|
+
"use strict";
|
|
41028
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41029
|
+
/* harmony export */ "b": function() { return /* binding */ convertStyleUnitToPixels; }
|
|
41030
|
+
/* harmony export */ });
|
|
41031
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18352);
|
|
41032
|
+
/*!
|
|
41033
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41034
|
+
* See LICENSE.md in the project root for license information.
|
|
41035
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41036
|
+
*/
|
|
41037
|
+
|
|
41038
|
+
const convertStyleUnitToPixels = (elm, { jodit }) => {
|
|
41039
|
+
if (!jodit.o.pasteFromWord.convertUnitsToPixel) {
|
|
41040
|
+
return elm;
|
|
41041
|
+
}
|
|
41042
|
+
const { style } = elm;
|
|
41043
|
+
style.forEach((key) => {
|
|
41044
|
+
const v = style.get(key);
|
|
41045
|
+
if (v) {
|
|
41046
|
+
style.set(key, v
|
|
41047
|
+
.toString()
|
|
41048
|
+
.replace(/\d+(\.\d+)?(pt|cm)/g, (match) => (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_0__/* .convertUnitToPx */ .Lp)(match) + 'px'));
|
|
41049
|
+
}
|
|
41050
|
+
});
|
|
41051
|
+
return elm;
|
|
41052
|
+
};
|
|
41053
|
+
|
|
41054
|
+
|
|
41055
|
+
/***/ }),
|
|
41056
|
+
|
|
41057
|
+
/***/ 45054:
|
|
41058
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41059
|
+
|
|
41060
|
+
"use strict";
|
|
41061
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41062
|
+
/* harmony export */ "S": function() { return /* binding */ convertToList; }
|
|
41063
|
+
/* harmony export */ });
|
|
41064
|
+
/* unused harmony export removeRedundancyStyle */
|
|
41065
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
41066
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18352);
|
|
41067
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
41068
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19438);
|
|
41069
|
+
/*!
|
|
41070
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41071
|
+
* See LICENSE.md in the project root for license information.
|
|
41072
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41073
|
+
*/
|
|
41074
|
+
|
|
41075
|
+
|
|
41076
|
+
|
|
41077
|
+
|
|
41078
|
+
function convertToList(elm) {
|
|
41079
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isPseudoLeaf */ .Hh)(elm)) {
|
|
41080
|
+
elm.name = 'li';
|
|
41081
|
+
elm.style.set('text-indent', null);
|
|
41082
|
+
const symbol = getSymbol(elm), listType = /[\da-np-zA-NP-Z].?/.test(symbol) ? 'ol' : 'ul', listStyle = defineOrderedListStyle(symbol, listType);
|
|
41083
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .TYPE_KEY */ .YJ] = listType;
|
|
41084
|
+
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf] = listStyle;
|
|
41085
|
+
(0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcListLevels */ .rd)(elm);
|
|
41086
|
+
moveUp(elm);
|
|
41087
|
+
const { parent } = elm;
|
|
41088
|
+
// After move up we inside List or Leaf
|
|
41089
|
+
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)) {
|
|
41090
|
+
const newList = wrapInNewList(elm, listType, symbol, listStyle);
|
|
41091
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(parent)) {
|
|
41092
|
+
newList.remove(); // Not to add to oneself
|
|
41093
|
+
parent.lastElement?.append(newList);
|
|
41094
|
+
}
|
|
41095
|
+
return elm;
|
|
41096
|
+
}
|
|
41097
|
+
}
|
|
41098
|
+
return elm;
|
|
41099
|
+
}
|
|
41100
|
+
function moveUp(leaf) {
|
|
41101
|
+
// eslint-disable-next-line no-constant-condition
|
|
41102
|
+
while (leaf) {
|
|
41103
|
+
const prev = leaf.previousElement;
|
|
41104
|
+
// Leaf after P
|
|
41105
|
+
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))) {
|
|
41106
|
+
break;
|
|
41107
|
+
}
|
|
41108
|
+
// Leaf after Leaf
|
|
41109
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isLeaf */ .Be)(prev)) {
|
|
41110
|
+
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]) {
|
|
41111
|
+
break;
|
|
41112
|
+
}
|
|
41113
|
+
// Leaf after leaf with same level and inside the right list
|
|
41114
|
+
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] &&
|
|
41115
|
+
leaf.parent &&
|
|
41116
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, leaf.parent)) {
|
|
41117
|
+
break;
|
|
41118
|
+
}
|
|
41119
|
+
prev.append(leaf);
|
|
41120
|
+
continue;
|
|
41121
|
+
}
|
|
41122
|
+
const list = prev;
|
|
41123
|
+
// Leaf after list with more level
|
|
41124
|
+
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]) {
|
|
41125
|
+
break;
|
|
41126
|
+
}
|
|
41127
|
+
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] &&
|
|
41128
|
+
!(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isSameType */ .Y4)(leaf, list)) {
|
|
41129
|
+
break;
|
|
41130
|
+
}
|
|
41131
|
+
list.append(leaf);
|
|
41132
|
+
}
|
|
41133
|
+
}
|
|
41134
|
+
/**
|
|
41135
|
+
* Remove redundancy default list styles.
|
|
41136
|
+
*/
|
|
41137
|
+
function removeRedundancyStyle(newList) {
|
|
41138
|
+
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__/* .isList */ .nq)(newList) &&
|
|
41139
|
+
newList.parent?.name !== 'li' &&
|
|
41140
|
+
(newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'disc' ||
|
|
41141
|
+
newList.style.get(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'decimal')) {
|
|
41142
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, null);
|
|
41143
|
+
}
|
|
41144
|
+
}
|
|
41145
|
+
function defineOrderedListStyle(symbol, listType) {
|
|
41146
|
+
for (const reg in jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1) {
|
|
41147
|
+
if (RegExp(reg).test(symbol)) {
|
|
41148
|
+
return jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1[reg];
|
|
41149
|
+
}
|
|
41150
|
+
}
|
|
41151
|
+
return listType === 'ol' ? 'decimal' : 'disc';
|
|
41152
|
+
}
|
|
41153
|
+
const getSymbol = (elm) => elm
|
|
41154
|
+
.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)))
|
|
41155
|
+
.replace(/ /g, '')
|
|
41156
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
41157
|
+
function wrapInNewList(elm, listType, symbol, listStyle) {
|
|
41158
|
+
const newList = elm.wrap(listType);
|
|
41159
|
+
newList.attributes['start'] = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_1__/* .calcStartBySymbol */ .Sg)(symbol);
|
|
41160
|
+
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];
|
|
41161
|
+
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];
|
|
41162
|
+
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];
|
|
41163
|
+
newList.style.set(jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, listStyle);
|
|
41164
|
+
removeRedundancyStyle(newList);
|
|
41165
|
+
return newList;
|
|
41166
|
+
}
|
|
41167
|
+
|
|
41168
|
+
|
|
41169
|
+
/***/ }),
|
|
41170
|
+
|
|
41171
|
+
/***/ 44669:
|
|
41172
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41173
|
+
|
|
41174
|
+
"use strict";
|
|
41175
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41176
|
+
/* harmony export */ "c": function() { return /* binding */ cases; }
|
|
41177
|
+
/* harmony export */ });
|
|
41178
|
+
/* harmony import */ var _convert_to_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45054);
|
|
41179
|
+
/* harmony import */ var _clear_attributes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(76995);
|
|
41180
|
+
/* harmony import */ var _remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76148);
|
|
41181
|
+
/* harmony import */ var _replace_old_tags__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38450);
|
|
41182
|
+
/* harmony import */ var _remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33135);
|
|
41183
|
+
/* harmony import */ var _convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50353);
|
|
41184
|
+
/* harmony import */ var _clear_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53614);
|
|
41185
|
+
/* harmony import */ var _process_links__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62094);
|
|
41186
|
+
/* harmony import */ var _normalize_image_props__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(83432);
|
|
41187
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(38933);
|
|
41188
|
+
/* harmony import */ var _mark_page_break__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50374);
|
|
41189
|
+
/* harmony import */ var _process_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38535);
|
|
41190
|
+
/* harmony import */ var _clean_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12750);
|
|
41191
|
+
/*!
|
|
41192
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41193
|
+
* See LICENSE.md in the project root for license information.
|
|
41194
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41195
|
+
*/
|
|
41196
|
+
|
|
41197
|
+
|
|
41198
|
+
|
|
41199
|
+
|
|
41200
|
+
|
|
41201
|
+
|
|
41202
|
+
|
|
41203
|
+
|
|
41204
|
+
|
|
41205
|
+
|
|
41206
|
+
|
|
41207
|
+
|
|
41208
|
+
|
|
41209
|
+
const cases = [
|
|
41210
|
+
_process_image__WEBPACK_IMPORTED_MODULE_6__/* .processImage */ .F,
|
|
41211
|
+
_mark_page_break__WEBPACK_IMPORTED_MODULE_8__/* .markPageBreakElements */ .a,
|
|
41212
|
+
_remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__/* .removeExtraTags */ .p,
|
|
41213
|
+
_replace_old_tags__WEBPACK_IMPORTED_MODULE_2__/* .replaceOldTags */ .G,
|
|
41214
|
+
_clear_attributes__WEBPACK_IMPORTED_MODULE_9__/* .clearAttributes */ .i,
|
|
41215
|
+
_convert_to_list__WEBPACK_IMPORTED_MODULE_0__/* .convertToList */ .S,
|
|
41216
|
+
_process_links__WEBPACK_IMPORTED_MODULE_10__/* .processLinks */ .z,
|
|
41217
|
+
_remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__/* .removeInsideComment */ .m,
|
|
41218
|
+
_convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__/* .convertStyleUnitToPixels */ .b,
|
|
41219
|
+
_clear_class_name__WEBPACK_IMPORTED_MODULE_5__/* .clearClassName */ .a,
|
|
41220
|
+
_normalize_image_props__WEBPACK_IMPORTED_MODULE_11__/* .normalizeImageProps */ .r,
|
|
41221
|
+
_table__WEBPACK_IMPORTED_MODULE_12__/* .removeWidthFromTableCell */ .Y,
|
|
41222
|
+
_clean_styles__WEBPACK_IMPORTED_MODULE_7__/* .cleanStyles */ .C
|
|
41223
|
+
];
|
|
41224
|
+
|
|
41225
|
+
|
|
41226
|
+
/***/ }),
|
|
41227
|
+
|
|
41228
|
+
/***/ 50374:
|
|
41229
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41230
|
+
|
|
41231
|
+
"use strict";
|
|
41232
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41233
|
+
/* harmony export */ "a": function() { return /* binding */ markPageBreakElements; }
|
|
41234
|
+
/* harmony export */ });
|
|
41235
|
+
/*!
|
|
41236
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41237
|
+
* See LICENSE.md in the project root for license information.
|
|
41238
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41239
|
+
*/
|
|
41240
|
+
const markPageBreakElements = (elm) => {
|
|
41241
|
+
if ((elm.isElement && elm.style.get('page-break-before') === 'always') ||
|
|
41242
|
+
elm.style.get('break-before') === 'page') {
|
|
41243
|
+
elm.attributes['jd-safe'] = true;
|
|
41244
|
+
elm.style.add('page-break-before', 'always');
|
|
41245
|
+
if (elm.isSingle) {
|
|
41246
|
+
elm.name = 'div';
|
|
41247
|
+
}
|
|
41248
|
+
}
|
|
41249
|
+
return elm;
|
|
41250
|
+
};
|
|
41251
|
+
|
|
41252
|
+
|
|
41253
|
+
/***/ }),
|
|
41254
|
+
|
|
41255
|
+
/***/ 83432:
|
|
41256
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41257
|
+
|
|
41258
|
+
"use strict";
|
|
41259
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41260
|
+
/* harmony export */ "r": function() { return /* binding */ normalizeImageProps; }
|
|
41261
|
+
/* harmony export */ });
|
|
41262
|
+
/*!
|
|
41263
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41264
|
+
* See LICENSE.md in the project root for license information.
|
|
41265
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41266
|
+
*/
|
|
41267
|
+
const normalizeImageProps = (elm) => {
|
|
41268
|
+
if (!elm.isElement) {
|
|
41269
|
+
return elm;
|
|
41270
|
+
}
|
|
41271
|
+
if (elm.name === 'img') {
|
|
41272
|
+
if (elm.attributes.align) {
|
|
41273
|
+
elm.style.add('float', elm.attributes.align);
|
|
41274
|
+
elm.attributes.align = null;
|
|
41275
|
+
}
|
|
41276
|
+
if (elm.attributes.hspace) {
|
|
41277
|
+
elm.style.add('marginLeft', elm.attributes.hspace + 'px');
|
|
41278
|
+
elm.style.add('marginRight', elm.attributes.hspace + 'px');
|
|
41279
|
+
elm.attributes.hspace = null;
|
|
41280
|
+
}
|
|
41281
|
+
}
|
|
41282
|
+
return elm;
|
|
41283
|
+
};
|
|
41284
|
+
|
|
41285
|
+
|
|
41286
|
+
/***/ }),
|
|
41287
|
+
|
|
41288
|
+
/***/ 38535:
|
|
41289
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41290
|
+
|
|
41291
|
+
"use strict";
|
|
41292
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41293
|
+
/* harmony export */ "F": function() { return /* binding */ processImage; }
|
|
41294
|
+
/* harmony export */ });
|
|
41295
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
41296
|
+
/*!
|
|
41297
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41298
|
+
* See LICENSE.md in the project root for license information.
|
|
41299
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41300
|
+
*/
|
|
41301
|
+
|
|
41302
|
+
const processImage = (elm, ctx) => {
|
|
41303
|
+
if (ctx.rtf &&
|
|
41304
|
+
elm.name === '#comment' &&
|
|
41305
|
+
elm.attributes.nodeValue &&
|
|
41306
|
+
elm.attributes.nodeValue.indexOf('<v:shape') !== -1) {
|
|
41307
|
+
if (!ctx.shapes) {
|
|
41308
|
+
ctx.shapes = {};
|
|
41309
|
+
}
|
|
41310
|
+
const elms = ctx.jodit.create.fromHTML(elm.attributes.nodeValue);
|
|
41311
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.toArray)(elms.getElementsByTagName('v:shape')).forEach((e) => {
|
|
41312
|
+
ctx.shapes[e.id] = e.getAttribute('o:spid');
|
|
41313
|
+
});
|
|
41314
|
+
return elm;
|
|
41315
|
+
}
|
|
41316
|
+
if (elm.name !== 'img') {
|
|
41317
|
+
return elm;
|
|
41318
|
+
}
|
|
41319
|
+
if (ctx.rtf && elm.attributes['v:shapes']) {
|
|
41320
|
+
const spid = ctx.shapes?.[elm.attributes['v:shapes']];
|
|
41321
|
+
if (spid) {
|
|
41322
|
+
const imageMap = ctx.imageMap ?? {};
|
|
41323
|
+
if (!ctx.imageMap) {
|
|
41324
|
+
ctx.imageMap = imageMap;
|
|
41325
|
+
parseImages(ctx.rtf, 'i', '\\shppict', ctx.imageMap);
|
|
41326
|
+
parseImages(ctx.rtf, 's', '\\shp{', ctx.imageMap);
|
|
41327
|
+
}
|
|
41328
|
+
const a = imageMap[spid.substring(7)];
|
|
41329
|
+
if (a) {
|
|
41330
|
+
const base = [], parsedD = a.hex.match(/[0-9a-f]{2}/gi);
|
|
41331
|
+
if (parsedD) {
|
|
41332
|
+
for (let i = 0; i < parsedD.length; i++) {
|
|
41333
|
+
const digit = parseInt(parsedD[i], 16);
|
|
41334
|
+
base.push(String.fromCharCode(digit));
|
|
41335
|
+
}
|
|
41336
|
+
elm.attributes.src =
|
|
41337
|
+
'data:' + a.type + ';base64,' + btoa(base.join(''));
|
|
41338
|
+
}
|
|
41339
|
+
}
|
|
41340
|
+
}
|
|
41341
|
+
}
|
|
41342
|
+
return elm;
|
|
41343
|
+
};
|
|
41344
|
+
function parseImages(rtf, prefix, separator, imageMap) {
|
|
41345
|
+
const parts = rtf.split(separator);
|
|
41346
|
+
for (const part of parts) {
|
|
41347
|
+
const shapes = part.split('shplid');
|
|
41348
|
+
if (1 < shapes.length) {
|
|
41349
|
+
const shape = shapes[1];
|
|
41350
|
+
let id = '';
|
|
41351
|
+
for (let i = 0; i < shape.length && !/[{ \r\n\\]/.test(shape[i]); i++) {
|
|
41352
|
+
id += shape[i];
|
|
41353
|
+
}
|
|
41354
|
+
const images = shape.split('bliptag');
|
|
41355
|
+
if (images && images.length < 2) {
|
|
41356
|
+
continue;
|
|
41357
|
+
}
|
|
41358
|
+
let format = null;
|
|
41359
|
+
if (images[0].indexOf('pngblip')) {
|
|
41360
|
+
format = 'image/png';
|
|
41361
|
+
}
|
|
41362
|
+
else if (images[0].indexOf('jpegblip') !== -1) {
|
|
41363
|
+
format = 'image/jpeg';
|
|
41364
|
+
}
|
|
41365
|
+
if (!format) {
|
|
41366
|
+
continue;
|
|
41367
|
+
}
|
|
41368
|
+
const endings = images[1].split('}');
|
|
41369
|
+
if (endings && endings.length < 2) {
|
|
41370
|
+
continue;
|
|
41371
|
+
}
|
|
41372
|
+
let result;
|
|
41373
|
+
if (2 < endings.length && endings[0].includes('blipuid')) {
|
|
41374
|
+
result = endings[1].split(' ');
|
|
41375
|
+
}
|
|
41376
|
+
else {
|
|
41377
|
+
result = endings[0].split(' ');
|
|
41378
|
+
if (result && result.length < 2) {
|
|
41379
|
+
continue;
|
|
41380
|
+
}
|
|
41381
|
+
result.shift();
|
|
41382
|
+
}
|
|
41383
|
+
imageMap[prefix + id] = {
|
|
41384
|
+
hex: result.join(''),
|
|
41385
|
+
type: format
|
|
41386
|
+
};
|
|
41387
|
+
}
|
|
41388
|
+
}
|
|
41389
|
+
}
|
|
41390
|
+
|
|
41391
|
+
|
|
41392
|
+
/***/ }),
|
|
41393
|
+
|
|
41394
|
+
/***/ 62094:
|
|
41395
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41396
|
+
|
|
41397
|
+
"use strict";
|
|
41398
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41399
|
+
/* harmony export */ "z": function() { return /* binding */ processLinks; }
|
|
41400
|
+
/* harmony export */ });
|
|
41401
|
+
/*!
|
|
41402
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41403
|
+
* See LICENSE.md in the project root for license information.
|
|
41404
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41405
|
+
*/
|
|
41406
|
+
const processLinks = (elm, ctx) => {
|
|
41407
|
+
const links = ctx.links ?? {};
|
|
41408
|
+
if (elm.attributes.href && elm.attributes.href.match(/#.+$/)) {
|
|
41409
|
+
const name = elm.attributes.href.match(/#(.+)$/)[1];
|
|
41410
|
+
links[name] = elm;
|
|
41411
|
+
}
|
|
41412
|
+
if (elm.attributes.name && links[elm.attributes.name]) {
|
|
41413
|
+
const link = links[elm.attributes.name];
|
|
41414
|
+
link.attributes.href = link.attributes.href.replace(/.*#(.*)$/, '#$1');
|
|
41415
|
+
}
|
|
41416
|
+
ctx.links = links;
|
|
41417
|
+
return elm;
|
|
41418
|
+
};
|
|
41419
|
+
|
|
41420
|
+
|
|
41421
|
+
/***/ }),
|
|
41422
|
+
|
|
41423
|
+
/***/ 76148:
|
|
41424
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41425
|
+
|
|
41426
|
+
"use strict";
|
|
41427
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41428
|
+
/* harmony export */ "p": function() { return /* binding */ removeExtraTags; }
|
|
41429
|
+
/* harmony export */ });
|
|
41430
|
+
/*!
|
|
41431
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41432
|
+
* See LICENSE.md in the project root for license information.
|
|
41433
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41434
|
+
*/
|
|
41435
|
+
const extraTags = new Set([
|
|
41436
|
+
'o:p',
|
|
41437
|
+
'xml',
|
|
41438
|
+
'script',
|
|
41439
|
+
'meta',
|
|
41440
|
+
'link',
|
|
41441
|
+
'v:imagedata',
|
|
41442
|
+
'style'
|
|
41443
|
+
]);
|
|
41444
|
+
function removeExtraTags(elm) {
|
|
41445
|
+
// Remove invisible
|
|
41446
|
+
if (elm.style.get('display') === 'none') {
|
|
41447
|
+
elm.remove();
|
|
41448
|
+
return null;
|
|
41449
|
+
}
|
|
41450
|
+
// Remove empty tag
|
|
41451
|
+
if (elm.length === 0 && elm.name === 'span') {
|
|
41452
|
+
elm.remove();
|
|
41453
|
+
return null;
|
|
41454
|
+
}
|
|
41455
|
+
// Remove invalid tags
|
|
41456
|
+
if (extraTags.has(elm.name)) {
|
|
41457
|
+
elm.remove();
|
|
41458
|
+
return null;
|
|
41459
|
+
}
|
|
41460
|
+
return elm;
|
|
41461
|
+
}
|
|
41462
|
+
|
|
41463
|
+
|
|
41464
|
+
/***/ }),
|
|
41465
|
+
|
|
41466
|
+
/***/ 33135:
|
|
41467
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41468
|
+
|
|
41469
|
+
"use strict";
|
|
41470
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41471
|
+
/* harmony export */ "m": function() { return /* binding */ removeInsideComment; }
|
|
41472
|
+
/* harmony export */ });
|
|
41473
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12787);
|
|
41474
|
+
/*!
|
|
41475
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41476
|
+
* See LICENSE.md in the project root for license information.
|
|
41477
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41478
|
+
*/
|
|
41479
|
+
|
|
41480
|
+
let inComment = 0;
|
|
41481
|
+
function removeInsideComment(elm) {
|
|
41482
|
+
if (elm.isComment && /\[if.*(supportLists|gte vml).*]/.test((0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm))) {
|
|
41483
|
+
inComment++;
|
|
41484
|
+
elm.remove();
|
|
41485
|
+
}
|
|
41486
|
+
if (elm.isComment && inComment > 0 && (0,jodit_pro_plugins_paste_from_word_element_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(elm).includes('[endif]')) {
|
|
41487
|
+
inComment = inComment > 0 ? inComment - 1 : 0;
|
|
41488
|
+
elm.remove();
|
|
41489
|
+
}
|
|
41490
|
+
if (inComment) {
|
|
41491
|
+
if (elm.isText ||
|
|
41492
|
+
(elm.name === 'img' &&
|
|
41493
|
+
(!elm.attributes.src || /^file:/.test(elm.attributes.src)))) {
|
|
41494
|
+
elm.remove();
|
|
41495
|
+
return null;
|
|
41496
|
+
}
|
|
41497
|
+
}
|
|
41498
|
+
return elm;
|
|
41499
|
+
}
|
|
41500
|
+
|
|
41501
|
+
|
|
41502
|
+
/***/ }),
|
|
41503
|
+
|
|
41504
|
+
/***/ 38450:
|
|
41505
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41506
|
+
|
|
41507
|
+
"use strict";
|
|
41508
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41509
|
+
/* harmony export */ "G": function() { return /* binding */ replaceOldTags; }
|
|
41510
|
+
/* harmony export */ });
|
|
41511
|
+
/*!
|
|
41512
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41513
|
+
* See LICENSE.md in the project root for license information.
|
|
41514
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41515
|
+
*/
|
|
41516
|
+
const REPLACE_OLD_TAGS = {
|
|
41517
|
+
i: 'em',
|
|
41518
|
+
b: 'strong'
|
|
41519
|
+
};
|
|
41520
|
+
function replaceOldTags(elm) {
|
|
41521
|
+
const { name } = elm;
|
|
41522
|
+
if (name in REPLACE_OLD_TAGS) {
|
|
41523
|
+
elm.name = REPLACE_OLD_TAGS[name];
|
|
41524
|
+
}
|
|
41525
|
+
return elm;
|
|
41526
|
+
}
|
|
41527
|
+
|
|
41528
|
+
|
|
41529
|
+
/***/ }),
|
|
41530
|
+
|
|
41531
|
+
/***/ 38933:
|
|
41532
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41533
|
+
|
|
41534
|
+
"use strict";
|
|
41535
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41536
|
+
/* harmony export */ "Y": function() { return /* binding */ removeWidthFromTableCell; }
|
|
41537
|
+
/* harmony export */ });
|
|
41538
|
+
/*!
|
|
41539
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41540
|
+
* See LICENSE.md in the project root for license information.
|
|
41541
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41542
|
+
*/
|
|
41543
|
+
const removeWidthFromTableCell = (elm) => {
|
|
41544
|
+
if (elm.attributes.width && (elm.name === 'th' || elm.name === 'td')) {
|
|
41545
|
+
elm.attributes.width = null;
|
|
41546
|
+
}
|
|
41547
|
+
return elm;
|
|
41548
|
+
};
|
|
41549
|
+
|
|
41550
|
+
|
|
41551
|
+
/***/ }),
|
|
41552
|
+
|
|
41553
|
+
/***/ 48077:
|
|
41554
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
41555
|
+
|
|
41556
|
+
"use strict";
|
|
41557
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
41558
|
+
/*!
|
|
41559
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41560
|
+
* See LICENSE.md in the project root for license information.
|
|
41561
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41562
|
+
*/
|
|
41563
|
+
|
|
41564
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.pasteFromWord = {
|
|
41565
|
+
enable: false,
|
|
41566
|
+
convertUnitsToPixel: false,
|
|
41567
|
+
allowedStyleProps: [
|
|
41568
|
+
'background',
|
|
41569
|
+
'background-color',
|
|
41570
|
+
'border',
|
|
41571
|
+
'border-.*',
|
|
41572
|
+
'color',
|
|
41573
|
+
'float',
|
|
41574
|
+
'font-family',
|
|
41575
|
+
'font-size',
|
|
41576
|
+
'font-style',
|
|
41577
|
+
'font-weight',
|
|
41578
|
+
'height',
|
|
41579
|
+
'line-height',
|
|
41580
|
+
'list-style-type',
|
|
41581
|
+
'margin',
|
|
41582
|
+
'margin-bottom',
|
|
41583
|
+
'margin-left',
|
|
41584
|
+
'margin-right',
|
|
41585
|
+
'margin-top',
|
|
41586
|
+
'padding',
|
|
41587
|
+
'text-align',
|
|
41588
|
+
'text-justify',
|
|
41589
|
+
'text-decoration',
|
|
41590
|
+
'text-indent',
|
|
41591
|
+
'vertical-align',
|
|
41592
|
+
'width'
|
|
41593
|
+
]
|
|
41594
|
+
};
|
|
41595
|
+
|
|
41596
|
+
|
|
41597
|
+
/***/ }),
|
|
41598
|
+
|
|
41599
|
+
/***/ 19438:
|
|
41600
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41601
|
+
|
|
41602
|
+
"use strict";
|
|
41603
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41604
|
+
/* harmony export */ "Jf": function() { return /* binding */ STYLE_KEY; },
|
|
41605
|
+
/* harmony export */ "Ki": function() { return /* binding */ LEVEL_KEY; },
|
|
41606
|
+
/* harmony export */ "Y1": function() { return /* binding */ listStyleMap; },
|
|
41607
|
+
/* harmony export */ "YJ": function() { return /* binding */ TYPE_KEY; },
|
|
41608
|
+
/* harmony export */ "m3": function() { return /* binding */ STYLE_VALID_KEY; },
|
|
41609
|
+
/* harmony export */ "zQ": function() { return /* binding */ STYLE_CSS_KEY; }
|
|
41610
|
+
/* harmony export */ });
|
|
41611
|
+
/*!
|
|
41612
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41613
|
+
* See LICENSE.md in the project root for license information.
|
|
41614
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41615
|
+
*/
|
|
41616
|
+
const LEVEL_KEY = 'jd-list-level';
|
|
41617
|
+
const TYPE_KEY = 'jd-list-type';
|
|
41618
|
+
const STYLE_KEY = 'jd-list-style-type';
|
|
41619
|
+
const STYLE_VALID_KEY = 'data-list-style-type';
|
|
41620
|
+
const STYLE_CSS_KEY = 'list-style-type';
|
|
41621
|
+
const listStyleMap = {
|
|
41622
|
+
'·': 'disc',
|
|
41623
|
+
o: 'circle',
|
|
41624
|
+
'§': 'square',
|
|
41625
|
+
'[ivx]': 'lower-roman',
|
|
41626
|
+
'[IVX]': 'upper-roman',
|
|
41627
|
+
'[a-z]': 'lower-alpha',
|
|
41628
|
+
'[A-Z]': 'upper-alpha',
|
|
41629
|
+
'\\d': 'decimal'
|
|
41630
|
+
};
|
|
41631
|
+
|
|
41632
|
+
|
|
41633
|
+
/***/ }),
|
|
41634
|
+
|
|
41635
|
+
/***/ 69111:
|
|
41636
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41637
|
+
|
|
41638
|
+
"use strict";
|
|
41639
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41640
|
+
/* harmony export */ "Be": function() { return /* binding */ isLeaf; },
|
|
41641
|
+
/* harmony export */ "Hh": function() { return /* binding */ isPseudoLeaf; },
|
|
41642
|
+
/* harmony export */ "Y4": function() { return /* binding */ isSameType; },
|
|
41643
|
+
/* harmony export */ "nq": function() { return /* binding */ isList; }
|
|
41644
|
+
/* harmony export */ });
|
|
41645
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19438);
|
|
41646
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12787);
|
|
41647
|
+
/*!
|
|
41648
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41649
|
+
* See LICENSE.md in the project root for license information.
|
|
41650
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41651
|
+
*/
|
|
41652
|
+
|
|
41653
|
+
|
|
41654
|
+
function isList(elm) {
|
|
41655
|
+
return Boolean(elm && (elm.name === 'ol' || elm.name === 'ul'));
|
|
41656
|
+
}
|
|
41657
|
+
function isLeaf(elm) {
|
|
41658
|
+
return Boolean(elm && elm.name === 'li');
|
|
41659
|
+
}
|
|
41660
|
+
function isPseudoLeaf(elm) {
|
|
41661
|
+
return ((elm.name !== 'li' &&
|
|
41662
|
+
/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(elm.attributes.style)) ||
|
|
41663
|
+
(/msolistparagraph/i.test(elm.attributes.class) &&
|
|
41664
|
+
Boolean(elm.find((c) => c.isComment && (0,_render__WEBPACK_IMPORTED_MODULE_1__/* .html */ .d)(c).includes('supportLists'))
|
|
41665
|
+
.length)));
|
|
41666
|
+
}
|
|
41667
|
+
function isSameType(leaf, list) {
|
|
41668
|
+
const listType = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .TYPE_KEY */ .YJ];
|
|
41669
|
+
const listStyle = leaf.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf];
|
|
41670
|
+
return !(list.name !== listType ||
|
|
41671
|
+
list.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_0__/* .STYLE_KEY */ .Jf] !== listStyle ||
|
|
41672
|
+
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]);
|
|
41673
|
+
}
|
|
41674
|
+
|
|
41675
|
+
|
|
41676
|
+
/***/ }),
|
|
41677
|
+
|
|
41678
|
+
/***/ 84300:
|
|
41679
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41680
|
+
|
|
41681
|
+
"use strict";
|
|
41682
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41683
|
+
/* harmony export */ "n": function() { return /* binding */ JElement; }
|
|
41684
|
+
/* harmony export */ });
|
|
41685
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
|
|
41686
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11612);
|
|
41687
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52378);
|
|
41688
|
+
/* 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__);
|
|
41689
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12787);
|
|
41690
|
+
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12481);
|
|
41691
|
+
/*!
|
|
41692
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41693
|
+
* See LICENSE.md in the project root for license information.
|
|
41694
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41695
|
+
*/
|
|
41696
|
+
|
|
41697
|
+
|
|
41698
|
+
|
|
41699
|
+
|
|
41700
|
+
|
|
41701
|
+
const singleTags = new Set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSEPARABLE_TAGS);
|
|
41702
|
+
class JElement {
|
|
41703
|
+
get isText() {
|
|
41704
|
+
return this.type === Node.TEXT_NODE;
|
|
41705
|
+
}
|
|
41706
|
+
get isElement() {
|
|
41707
|
+
return this.type === Node.ELEMENT_NODE;
|
|
41708
|
+
}
|
|
41709
|
+
get isComment() {
|
|
41710
|
+
return this.type === Node.COMMENT_NODE;
|
|
41711
|
+
}
|
|
41712
|
+
get isSingle() {
|
|
41713
|
+
return singleTags.has(this.name);
|
|
41714
|
+
}
|
|
41715
|
+
get length() {
|
|
41716
|
+
return this.children.length;
|
|
41717
|
+
}
|
|
41718
|
+
constructor(node, parent) {
|
|
41719
|
+
this.parent = parent;
|
|
41720
|
+
this.name = node.nodeName.toLowerCase();
|
|
41721
|
+
this.type = node.nodeType;
|
|
41722
|
+
this.attributes = readAttributes(node);
|
|
41723
|
+
this.style = new _style__WEBPACK_IMPORTED_MODULE_4__/* .Style */ .b(this.attributes.style);
|
|
41724
|
+
this.children = [];
|
|
41725
|
+
node.childNodes.forEach((node) => this.children.push(JElement.make(node, this)));
|
|
41726
|
+
}
|
|
41727
|
+
static make(node, parent = null) {
|
|
41728
|
+
return new JElement(node, parent);
|
|
41729
|
+
}
|
|
41730
|
+
wrap(tag) {
|
|
41731
|
+
void 0;
|
|
41732
|
+
const wrapper = JElement.make(document.createElement(tag), this.parent);
|
|
41733
|
+
const index = this.parent.children.indexOf(this) ?? -1;
|
|
41734
|
+
if (index === -1) {
|
|
41735
|
+
this.parent.append(wrapper);
|
|
41736
|
+
}
|
|
41737
|
+
else {
|
|
41738
|
+
this.parent.children[index] = wrapper;
|
|
41739
|
+
}
|
|
41740
|
+
wrapper.append(this);
|
|
41741
|
+
return wrapper;
|
|
41742
|
+
}
|
|
41743
|
+
append(child) {
|
|
41744
|
+
void 0;
|
|
41745
|
+
child.remove();
|
|
41746
|
+
this.children.push(child);
|
|
41747
|
+
child.parent = this;
|
|
41748
|
+
return this;
|
|
41749
|
+
}
|
|
41750
|
+
get previousElement() {
|
|
41751
|
+
if (!this.parent) {
|
|
41752
|
+
return null;
|
|
41753
|
+
}
|
|
41754
|
+
const { children } = this.parent, index = children.indexOf(this);
|
|
41755
|
+
if (index !== -1) {
|
|
41756
|
+
for (let i = index - 1; i >= 0; i -= 1) {
|
|
41757
|
+
if (children[i].isElement) {
|
|
41758
|
+
return children[i];
|
|
41759
|
+
}
|
|
41760
|
+
}
|
|
41761
|
+
}
|
|
41762
|
+
return null;
|
|
41763
|
+
}
|
|
41764
|
+
get lastElement() {
|
|
41765
|
+
const { children } = this;
|
|
41766
|
+
for (let i = children.length - 1; i >= 0; i -= 1) {
|
|
41767
|
+
if (children[i].isElement) {
|
|
41768
|
+
return children[i];
|
|
41769
|
+
}
|
|
41770
|
+
}
|
|
41771
|
+
return null;
|
|
41772
|
+
}
|
|
41773
|
+
get previous() {
|
|
41774
|
+
return this.sibling(false) ?? this.parent?.previous ?? null;
|
|
41775
|
+
}
|
|
41776
|
+
get next() {
|
|
41777
|
+
return this.sibling(true) ?? this.parent?.next ?? null;
|
|
41778
|
+
}
|
|
41779
|
+
sibling(next) {
|
|
41780
|
+
if (!this.parent) {
|
|
41781
|
+
return null;
|
|
41782
|
+
}
|
|
41783
|
+
const { children } = this.parent, index = children.indexOf(this);
|
|
41784
|
+
if (index !== -1 && children[index + (next ? 1 : -1)]) {
|
|
41785
|
+
return children[index + (next ? 1 : -1)];
|
|
41786
|
+
}
|
|
41787
|
+
return null;
|
|
41788
|
+
}
|
|
41789
|
+
forEach(callbackFn, recursion = false) {
|
|
41790
|
+
const children = [...this.children];
|
|
41791
|
+
for (const child of children) {
|
|
41792
|
+
if (callbackFn(child) === false) {
|
|
41793
|
+
return false;
|
|
41794
|
+
}
|
|
41795
|
+
if (recursion && child.forEach(callbackFn, true) === false) {
|
|
41796
|
+
return false;
|
|
41797
|
+
}
|
|
41798
|
+
}
|
|
41799
|
+
}
|
|
41800
|
+
find(predicate, recursion = true) {
|
|
41801
|
+
const result = [];
|
|
41802
|
+
this.forEach((elm) => {
|
|
41803
|
+
if (predicate(elm)) {
|
|
41804
|
+
result.push(elm);
|
|
41805
|
+
}
|
|
41806
|
+
}, recursion);
|
|
41807
|
+
return result;
|
|
41808
|
+
}
|
|
41809
|
+
map(callbackFn) {
|
|
41810
|
+
return this.children.map(callbackFn);
|
|
41811
|
+
}
|
|
41812
|
+
remove() {
|
|
41813
|
+
const index = this.parent?.children.indexOf(this);
|
|
41814
|
+
if (index != null && index !== -1) {
|
|
41815
|
+
this.parent?.children.splice(index, 1);
|
|
41816
|
+
}
|
|
41817
|
+
return this;
|
|
41818
|
+
}
|
|
41819
|
+
textBetween(start, end) {
|
|
41820
|
+
let startFound = false;
|
|
41821
|
+
const result = [];
|
|
41822
|
+
this.forEach((node) => {
|
|
41823
|
+
if (!startFound && start(node)) {
|
|
41824
|
+
startFound = true;
|
|
41825
|
+
}
|
|
41826
|
+
if (startFound && node.isText) {
|
|
41827
|
+
result.push((0,_render__WEBPACK_IMPORTED_MODULE_3__/* .html */ .d)(node));
|
|
41828
|
+
}
|
|
41829
|
+
if (startFound && end(node)) {
|
|
41830
|
+
return false;
|
|
41831
|
+
}
|
|
41832
|
+
}, true);
|
|
41833
|
+
return result.join('');
|
|
41834
|
+
}
|
|
41835
|
+
}
|
|
41836
|
+
function readAttributes(node) {
|
|
41837
|
+
const result = {};
|
|
41838
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isElement */ .i.isElement(node)) {
|
|
41839
|
+
for (let i = 0, attrs = node.attributes; i < attrs.length; i += 1) {
|
|
41840
|
+
result[attrs[i].name] = attrs[i].value;
|
|
41841
|
+
}
|
|
41842
|
+
}
|
|
41843
|
+
else {
|
|
41844
|
+
result['nodeValue'] = node.nodeValue;
|
|
41845
|
+
}
|
|
41846
|
+
return result;
|
|
41847
|
+
}
|
|
41848
|
+
|
|
41849
|
+
|
|
41850
|
+
/***/ }),
|
|
41851
|
+
|
|
41852
|
+
/***/ 93310:
|
|
41853
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41854
|
+
|
|
41855
|
+
"use strict";
|
|
41856
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41857
|
+
/* harmony export */ "Be": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Be; },
|
|
41858
|
+
/* harmony export */ "C7": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.C; },
|
|
41859
|
+
/* harmony export */ "Hh": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Hh; },
|
|
41860
|
+
/* harmony export */ "Y4": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Y4; },
|
|
41861
|
+
/* harmony export */ "dy": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.d; },
|
|
41862
|
+
/* harmony export */ "nK": function() { return /* reexport safe */ _element__WEBPACK_IMPORTED_MODULE_1__.n; },
|
|
41863
|
+
/* harmony export */ "nq": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.nq; }
|
|
41864
|
+
/* harmony export */ });
|
|
41865
|
+
/* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69111);
|
|
41866
|
+
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84300);
|
|
41867
|
+
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12787);
|
|
41868
|
+
/*!
|
|
41869
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41870
|
+
* See LICENSE.md in the project root for license information.
|
|
41871
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41872
|
+
*/
|
|
41873
|
+
|
|
41874
|
+
|
|
41875
|
+
|
|
41876
|
+
|
|
41877
|
+
|
|
41878
|
+
/***/ }),
|
|
41879
|
+
|
|
41880
|
+
/***/ 12787:
|
|
41881
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41882
|
+
|
|
41883
|
+
"use strict";
|
|
41884
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41885
|
+
/* harmony export */ "C": function() { return /* binding */ innerHTML; },
|
|
41886
|
+
/* harmony export */ "d": function() { return /* binding */ html; }
|
|
41887
|
+
/* harmony export */ });
|
|
41888
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
41889
|
+
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46232);
|
|
41890
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73076);
|
|
41891
|
+
/*!
|
|
41892
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41893
|
+
* See LICENSE.md in the project root for license information.
|
|
41894
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
41895
|
+
*/
|
|
41896
|
+
|
|
41897
|
+
|
|
41898
|
+
|
|
41899
|
+
function html(elm, filter = () => true, removeEmpty = true, allowedStyleProps) {
|
|
41900
|
+
switch (true) {
|
|
41901
|
+
case elm.isComment:
|
|
41902
|
+
case elm.isText: {
|
|
41903
|
+
if (!filter(elm)) {
|
|
41904
|
+
return '';
|
|
41905
|
+
}
|
|
41906
|
+
const { nodeValue } = elm.attributes;
|
|
41907
|
+
return elm.isComment ? `<!--${nodeValue}-->` : nodeValue;
|
|
41908
|
+
}
|
|
41909
|
+
case elm.isElement: {
|
|
41910
|
+
const { attributes } = elm, innerContent = innerHTML(elm, filter, removeEmpty, allowedStyleProps);
|
|
41911
|
+
// remove empty tag with attributes
|
|
41912
|
+
if (!elm.attributes['jd-safe'] &&
|
|
41913
|
+
removeEmpty &&
|
|
41914
|
+
innerContent.replace(/[\n\t]/g, '').length === 0 &&
|
|
41915
|
+
!elm.isSingle) {
|
|
41916
|
+
return '';
|
|
41917
|
+
}
|
|
41918
|
+
const attrsList = Object.keys(attributes)
|
|
41919
|
+
.map((key) => {
|
|
41920
|
+
if (key === 'style' ||
|
|
41921
|
+
attributes[key] == null ||
|
|
41922
|
+
/^jd-/.test(key)) {
|
|
41923
|
+
return '';
|
|
41924
|
+
}
|
|
41925
|
+
return `${key}="${htmlEntity(attributes[key])}"`;
|
|
41926
|
+
})
|
|
41927
|
+
.filter(Boolean);
|
|
41928
|
+
const { str: styleStr } = elm.style;
|
|
41929
|
+
const styles = htmlEntity(styleStr((key) => keyInList(key, allowedStyleProps)));
|
|
41930
|
+
if (styles) {
|
|
41931
|
+
attrsList.push(`style="${styles}"`);
|
|
41932
|
+
}
|
|
41933
|
+
// unwrap empty tag without attributes
|
|
41934
|
+
if (removeEmpty &&
|
|
41935
|
+
attrsList.length === 0 &&
|
|
41936
|
+
['span', 'a'].includes(elm.name)) {
|
|
41937
|
+
return innerContent;
|
|
41938
|
+
}
|
|
41939
|
+
const attrs = attrsList.length ? ' ' + attrsList.join(' ') : '';
|
|
41940
|
+
if (!filter(elm)) {
|
|
41941
|
+
return innerContent;
|
|
41942
|
+
}
|
|
41943
|
+
return elm.isSingle
|
|
41944
|
+
? `<${elm.name}${attrs}/>`
|
|
41945
|
+
: `<${elm.name}${attrs}>${innerContent}</${elm.name}>`;
|
|
41946
|
+
}
|
|
41947
|
+
default:
|
|
41948
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
41949
|
+
throw Error('Need implementation for this type');
|
|
41950
|
+
}
|
|
41951
|
+
}
|
|
41952
|
+
return '';
|
|
41953
|
+
}
|
|
41954
|
+
function keyInList(key, list) {
|
|
41955
|
+
if (!list) {
|
|
41956
|
+
return true;
|
|
41957
|
+
}
|
|
41958
|
+
if (keyInList.cache.has(list)) {
|
|
41959
|
+
const isAllow = keyInList.cache.get(list)?.get(key);
|
|
41960
|
+
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__/* .isBoolean */ .j)(isAllow)) {
|
|
41961
|
+
return isAllow;
|
|
41962
|
+
}
|
|
41963
|
+
}
|
|
41964
|
+
const isAllow = list.some((allow) => new RegExp(allow).test(key));
|
|
41965
|
+
const map = keyInList.cache.get(list) || new Map();
|
|
41966
|
+
map.set(key, isAllow);
|
|
41967
|
+
keyInList.cache.set(list, map);
|
|
41968
|
+
return isAllow;
|
|
41969
|
+
}
|
|
41970
|
+
keyInList.cache = new WeakMap();
|
|
41971
|
+
function innerHTML(elm, filter = () => true, removeEmpty = true, allowedStyleProps) {
|
|
41972
|
+
let result = elm
|
|
41973
|
+
.map((e) => html(e, filter, removeEmpty, allowedStyleProps))
|
|
41974
|
+
.join('');
|
|
41975
|
+
if (elm.name === 'p' && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .f)(result).length === 0) {
|
|
41976
|
+
result = ' ';
|
|
41977
|
+
}
|
|
41978
|
+
return result;
|
|
41979
|
+
}
|
|
41980
|
+
function htmlEntity(str) {
|
|
41981
|
+
return str.toString().replace(/"/g, '"');
|
|
41982
|
+
}
|
|
41983
|
+
|
|
41984
|
+
|
|
41985
|
+
/***/ }),
|
|
41986
|
+
|
|
41987
|
+
/***/ 12481:
|
|
41988
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41989
|
+
|
|
41990
|
+
"use strict";
|
|
41991
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41992
|
+
/* harmony export */ "b": function() { return /* binding */ Style; }
|
|
41993
|
+
/* harmony export */ });
|
|
41994
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
41995
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
41996
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
41997
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18352);
|
|
41998
|
+
/*!
|
|
41999
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42000
|
+
* See LICENSE.md in the project root for license information.
|
|
42001
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42002
|
+
*/
|
|
42003
|
+
|
|
42004
|
+
|
|
42005
|
+
|
|
42006
|
+
|
|
42007
|
+
let Style = class Style {
|
|
42008
|
+
constructor(str) {
|
|
42009
|
+
this._data = readStyles(str);
|
|
42010
|
+
}
|
|
42011
|
+
get keys() {
|
|
42012
|
+
return Object.keys(this._data);
|
|
42013
|
+
}
|
|
42014
|
+
forEach(f) {
|
|
42015
|
+
this.keys.forEach((key) => f(key));
|
|
42016
|
+
}
|
|
42017
|
+
clear() {
|
|
42018
|
+
this._data = {};
|
|
42019
|
+
}
|
|
42020
|
+
set(key, value) {
|
|
42021
|
+
this._data[key] = value;
|
|
42022
|
+
}
|
|
42023
|
+
get(key) {
|
|
42024
|
+
return this._data[key] ?? null;
|
|
42025
|
+
}
|
|
42026
|
+
has(key) {
|
|
42027
|
+
return this._data[key] !== undefined;
|
|
42028
|
+
}
|
|
42029
|
+
add(key, value) {
|
|
42030
|
+
this._data = readStyles(this.str() + ';' + `${key}:${value}`);
|
|
42031
|
+
return this;
|
|
42032
|
+
}
|
|
42033
|
+
str(filter = (k) => true) {
|
|
42034
|
+
const styleKeys = Object.keys(this._data).filter((key) => key &&
|
|
42035
|
+
!/^mso-/.test(key) &&
|
|
42036
|
+
filter(key) &&
|
|
42037
|
+
this.get(key) != null);
|
|
42038
|
+
const n = (v) => {
|
|
42039
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isString)(v)) {
|
|
42040
|
+
return /^0[a-z]+$/i.test(v) ? '0' : v;
|
|
42041
|
+
}
|
|
42042
|
+
return v.toString();
|
|
42043
|
+
};
|
|
42044
|
+
['padding', 'margin'].forEach((key) => {
|
|
42045
|
+
if (this._data[key]) {
|
|
42046
|
+
const indexMain = styleKeys.indexOf(key);
|
|
42047
|
+
const margins = (0,jodit_pro_plugins_paste_from_word_helpers__WEBPACK_IMPORTED_MODULE_2__/* .calcMarginParts */ .Wb)(this._data[key]);
|
|
42048
|
+
['top', 'right', 'bottom', 'left'].forEach((side, index) => {
|
|
42049
|
+
const name = `${key}-${side}`, value = this._data[name];
|
|
42050
|
+
if (value != null &&
|
|
42051
|
+
(styleKeys.indexOf(name) < indexMain ||
|
|
42052
|
+
n(margins[index]) === n(value))) {
|
|
42053
|
+
styleKeys.indexOf(name) !== -1 &&
|
|
42054
|
+
styleKeys.splice(styleKeys.indexOf(name), 1);
|
|
42055
|
+
}
|
|
42056
|
+
});
|
|
42057
|
+
}
|
|
42058
|
+
});
|
|
42059
|
+
if (styleKeys.length) {
|
|
42060
|
+
return styleKeys
|
|
42061
|
+
.map((key) => `${(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.kebabCase)(key)}:${this.get(key)}`)
|
|
42062
|
+
.join(';');
|
|
42063
|
+
}
|
|
42064
|
+
return '';
|
|
42065
|
+
}
|
|
42066
|
+
};
|
|
42067
|
+
Style = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
42068
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
42069
|
+
], Style);
|
|
42070
|
+
function readStyles(style) {
|
|
42071
|
+
return uniqueMax((style ?? '')
|
|
42072
|
+
.replace(/"/g, '"')
|
|
42073
|
+
.split(';')
|
|
42074
|
+
.filter(Boolean)
|
|
42075
|
+
.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]) => {
|
|
42076
|
+
if (key && value) {
|
|
42077
|
+
acc[key] = value;
|
|
42078
|
+
}
|
|
42079
|
+
return acc;
|
|
42080
|
+
}, {});
|
|
42081
|
+
}
|
|
42082
|
+
function uniqueMax(array) {
|
|
42083
|
+
const keys = {};
|
|
42084
|
+
const result = [];
|
|
42085
|
+
for (let i = array.length - 1; i >= 0; i -= 1) {
|
|
42086
|
+
const key = array[i][0];
|
|
42087
|
+
if (keys[key]) {
|
|
42088
|
+
continue;
|
|
42089
|
+
}
|
|
42090
|
+
keys[key] = true;
|
|
42091
|
+
result.unshift(array[i]);
|
|
42092
|
+
}
|
|
42093
|
+
return result;
|
|
42094
|
+
}
|
|
42095
|
+
|
|
42096
|
+
|
|
42097
|
+
/***/ }),
|
|
42098
|
+
|
|
42099
|
+
/***/ 12049:
|
|
42100
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42101
|
+
|
|
42102
|
+
"use strict";
|
|
42103
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42104
|
+
/* harmony export */ "x": function() { return /* binding */ applyStylesPro; }
|
|
42105
|
+
/* harmony export */ });
|
|
42106
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98478);
|
|
42107
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
42108
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
42109
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79374);
|
|
42110
|
+
/*!
|
|
42111
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42112
|
+
* See LICENSE.md in the project root for license information.
|
|
42113
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42114
|
+
*/
|
|
42115
|
+
|
|
42116
|
+
|
|
42117
|
+
|
|
42118
|
+
|
|
42119
|
+
function applyStylesPro(jodit, html, removeStyles, rtf = '') {
|
|
42120
|
+
const iframe = document.createElement('iframe');
|
|
42121
|
+
iframe.style.display = 'none';
|
|
42122
|
+
document.body.appendChild(iframe);
|
|
42123
|
+
try {
|
|
42124
|
+
const doc = iframe.contentDocument ?? iframe.contentWindow?.document;
|
|
42125
|
+
if (!doc) {
|
|
42126
|
+
return html;
|
|
42127
|
+
}
|
|
42128
|
+
doc.open();
|
|
42129
|
+
doc.write(html);
|
|
42130
|
+
doc.close();
|
|
42131
|
+
const JDS = 'jd-style';
|
|
42132
|
+
for (let i = 0; i < doc.styleSheets.length; i += 1) {
|
|
42133
|
+
try {
|
|
42134
|
+
const rules = doc.styleSheets[i]
|
|
42135
|
+
.cssRules;
|
|
42136
|
+
for (let idx = 0; idx < rules.length; idx += 1) {
|
|
42137
|
+
if (!rules[idx].selectorText) {
|
|
42138
|
+
continue;
|
|
42139
|
+
}
|
|
42140
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(rules[idx].selectorText, doc.body).forEach((elm) => {
|
|
42141
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS)) {
|
|
42142
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS, (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style') || '');
|
|
42143
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', '');
|
|
42144
|
+
}
|
|
42145
|
+
(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}`);
|
|
42146
|
+
});
|
|
42147
|
+
}
|
|
42148
|
+
}
|
|
42149
|
+
catch (e) { }
|
|
42150
|
+
}
|
|
42151
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.$$)(`[${JDS}]`, doc.body).forEach((elm) => {
|
|
42152
|
+
(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)}`);
|
|
42153
|
+
});
|
|
42154
|
+
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);
|
|
42155
|
+
}
|
|
42156
|
+
finally {
|
|
42157
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(iframe);
|
|
42158
|
+
}
|
|
42159
|
+
return html;
|
|
42160
|
+
}
|
|
42161
|
+
|
|
42162
|
+
|
|
42163
|
+
/***/ }),
|
|
42164
|
+
|
|
42165
|
+
/***/ 45394:
|
|
42166
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42167
|
+
|
|
42168
|
+
"use strict";
|
|
42169
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42170
|
+
/* harmony export */ "r": function() { return /* binding */ calcListLevels; }
|
|
42171
|
+
/* harmony export */ });
|
|
42172
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93310);
|
|
42173
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19438);
|
|
42174
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81723);
|
|
42175
|
+
/*!
|
|
42176
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42177
|
+
* See LICENSE.md in the project root for license information.
|
|
42178
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42179
|
+
*/
|
|
42180
|
+
|
|
42181
|
+
|
|
42182
|
+
|
|
42183
|
+
function calcListLevels(item) {
|
|
42184
|
+
if (item.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] !== undefined) {
|
|
42185
|
+
return;
|
|
42186
|
+
}
|
|
42187
|
+
const indents = [(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(item)], items = [item];
|
|
42188
|
+
let next = item.next;
|
|
42189
|
+
while (next) {
|
|
42190
|
+
if (next.isElement &&
|
|
42191
|
+
!next.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] &&
|
|
42192
|
+
(0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_0__/* .isPseudoLeaf */ .Hh)(next)) {
|
|
42193
|
+
const indent = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(next);
|
|
42194
|
+
if (indent) {
|
|
42195
|
+
indents.push(indent);
|
|
42196
|
+
items.push(next);
|
|
42197
|
+
}
|
|
42198
|
+
}
|
|
42199
|
+
next = next.next;
|
|
42200
|
+
}
|
|
42201
|
+
const minIndent = Math.min(...indents.filter((val) => val > 0));
|
|
42202
|
+
let levels = indents.map((val) => Math.ceil(val / 10));
|
|
42203
|
+
if (levels.indexOf(0) !== -1) {
|
|
42204
|
+
levels = levels.map((val) => val + 1);
|
|
42205
|
+
}
|
|
42206
|
+
items.forEach((curItem, index) => {
|
|
42207
|
+
curItem.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] = levels[index];
|
|
42208
|
+
curItem.style.add('margin-left', `${Math.max((0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(curItem) -
|
|
42209
|
+
((levels[index] * 10) / minIndent) * 40, 0)}px`);
|
|
42210
|
+
});
|
|
42211
|
+
}
|
|
42212
|
+
|
|
42213
|
+
|
|
42214
|
+
/***/ }),
|
|
42215
|
+
|
|
42216
|
+
/***/ 81723:
|
|
42217
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42218
|
+
|
|
42219
|
+
"use strict";
|
|
42220
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42221
|
+
/* harmony export */ "D4": function() { return /* binding */ realPixelIndent; },
|
|
42222
|
+
/* harmony export */ "Lp": function() { return /* binding */ convertUnitToPx; },
|
|
42223
|
+
/* harmony export */ "Sg": function() { return /* binding */ calcStartBySymbol; },
|
|
42224
|
+
/* harmony export */ "Wb": function() { return /* binding */ calcMarginParts; }
|
|
42225
|
+
/* harmony export */ });
|
|
42226
|
+
/*!
|
|
42227
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42228
|
+
* See LICENSE.md in the project root for license information.
|
|
42229
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42230
|
+
*/
|
|
42231
|
+
function calcMarginParts(margin) {
|
|
42232
|
+
if (!margin) {
|
|
42233
|
+
return [0, 0, 0, 0];
|
|
42234
|
+
}
|
|
42235
|
+
const widths = margin.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g) || ['0px'];
|
|
42236
|
+
switch (widths.length) {
|
|
42237
|
+
case 2:
|
|
42238
|
+
return [0, 1, 0, 1].map((index) => widths[index]);
|
|
42239
|
+
case 3:
|
|
42240
|
+
return [0, 1, 2, 1].map((index) => widths[index]);
|
|
42241
|
+
case 4:
|
|
42242
|
+
return [0, 1, 2, 3].map((index) => widths[index]);
|
|
42243
|
+
default:
|
|
42244
|
+
return [0, 0, 0, 0].map((index) => widths[index]);
|
|
42245
|
+
}
|
|
42246
|
+
}
|
|
42247
|
+
let fakeMeasureBox;
|
|
42248
|
+
/**
|
|
42249
|
+
* Convert css units to pixels, excluding percentages
|
|
42250
|
+
* @example
|
|
42251
|
+
* ```js
|
|
42252
|
+
* convertUnitToPx('55pt')
|
|
42253
|
+
* convertUnitToPx('55cm')
|
|
42254
|
+
* ```
|
|
42255
|
+
*/
|
|
42256
|
+
function convertUnitToPx(unit) {
|
|
42257
|
+
if (typeof unit === 'number') {
|
|
42258
|
+
return unit;
|
|
42259
|
+
}
|
|
42260
|
+
if (/%$/.test(unit)) {
|
|
42261
|
+
return 0;
|
|
42262
|
+
}
|
|
42263
|
+
if (!fakeMeasureBox) {
|
|
42264
|
+
fakeMeasureBox = document.createElement('div');
|
|
42265
|
+
Object.assign(fakeMeasureBox.style, {
|
|
42266
|
+
position: 'absolute',
|
|
42267
|
+
left: '-9999px',
|
|
42268
|
+
top: '-9999px',
|
|
42269
|
+
margin: '0',
|
|
42270
|
+
padding: '0',
|
|
42271
|
+
border: '0'
|
|
42272
|
+
});
|
|
42273
|
+
document.body.append(fakeMeasureBox);
|
|
42274
|
+
// Clean after work
|
|
42275
|
+
setTimeout(() => {
|
|
42276
|
+
fakeMeasureBox?.remove();
|
|
42277
|
+
fakeMeasureBox = null;
|
|
42278
|
+
});
|
|
42279
|
+
}
|
|
42280
|
+
const isNegative = parseFloat(unit) < 0;
|
|
42281
|
+
if (isNegative) {
|
|
42282
|
+
unit = unit.replace('-', '');
|
|
42283
|
+
}
|
|
42284
|
+
fakeMeasureBox.style.width = unit;
|
|
42285
|
+
const result = fakeMeasureBox.clientWidth;
|
|
42286
|
+
if (isNegative) {
|
|
42287
|
+
return -result;
|
|
42288
|
+
}
|
|
42289
|
+
return result;
|
|
42290
|
+
}
|
|
42291
|
+
function realPixelIndent(element) {
|
|
42292
|
+
const { style } = element;
|
|
42293
|
+
let marginSplit = [0, 0, 0, 0];
|
|
42294
|
+
const marginKeys = style.keys.filter((k) => /margin/.test(k));
|
|
42295
|
+
const maxMarginLeftIndex = Math.max(marginKeys.indexOf('margin-left'), marginKeys.indexOf('margin'));
|
|
42296
|
+
const marginKey = maxMarginLeftIndex > 0 ? marginKeys[maxMarginLeftIndex] : 'margin-left';
|
|
42297
|
+
let marginLeft;
|
|
42298
|
+
if (marginKey === 'margin') {
|
|
42299
|
+
const margin = style.get('margin');
|
|
42300
|
+
marginSplit = calcMarginParts(margin);
|
|
42301
|
+
marginLeft = marginSplit[3] || 0;
|
|
42302
|
+
}
|
|
42303
|
+
else {
|
|
42304
|
+
marginLeft = style.get(marginKey) || 0;
|
|
42305
|
+
}
|
|
42306
|
+
return convertUnitToPx(marginLeft);
|
|
42307
|
+
}
|
|
42308
|
+
function calcStartBySymbol(symbol) {
|
|
42309
|
+
if (/\d.\d/.test(symbol)) {
|
|
42310
|
+
return symbol.split('.').pop() || null;
|
|
42311
|
+
}
|
|
42312
|
+
if (/^\d/.test(symbol)) {
|
|
42313
|
+
return (parseInt(symbol, 10) || 1).toString();
|
|
42314
|
+
}
|
|
42315
|
+
return null;
|
|
42316
|
+
}
|
|
42317
|
+
|
|
42318
|
+
|
|
42319
|
+
/***/ }),
|
|
42320
|
+
|
|
42321
|
+
/***/ 18352:
|
|
42322
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42323
|
+
|
|
42324
|
+
"use strict";
|
|
42325
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42326
|
+
/* harmony export */ "Lp": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Lp; },
|
|
42327
|
+
/* harmony export */ "Sg": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Sg; },
|
|
42328
|
+
/* harmony export */ "Wb": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Wb; },
|
|
42329
|
+
/* harmony export */ "rd": function() { return /* reexport safe */ _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__.r; },
|
|
42330
|
+
/* harmony export */ "xk": function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__.x; }
|
|
42331
|
+
/* harmony export */ });
|
|
42332
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81723);
|
|
42333
|
+
/* harmony import */ var _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12049);
|
|
42334
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79374);
|
|
42335
|
+
/* harmony import */ var _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45394);
|
|
42336
|
+
/*!
|
|
42337
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42338
|
+
* See LICENSE.md in the project root for license information.
|
|
42339
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42340
|
+
*/
|
|
42341
|
+
|
|
42342
|
+
|
|
42343
|
+
|
|
42344
|
+
|
|
42345
|
+
|
|
42346
|
+
|
|
42347
|
+
/***/ }),
|
|
42348
|
+
|
|
42349
|
+
/***/ 79374:
|
|
42350
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42351
|
+
|
|
42352
|
+
"use strict";
|
|
42353
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42354
|
+
/* harmony export */ "W": function() { return /* binding */ transformWordToHtml; }
|
|
42355
|
+
/* harmony export */ });
|
|
42356
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
42357
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44669);
|
|
42358
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
42359
|
+
/*!
|
|
42360
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42361
|
+
* See LICENSE.md in the project root for license information.
|
|
42362
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42363
|
+
*/
|
|
42364
|
+
|
|
42365
|
+
|
|
42366
|
+
|
|
42367
|
+
function transformWordToHtml(jodit, body, removeStyles, rtf) {
|
|
42368
|
+
const ctx = {
|
|
42369
|
+
jodit,
|
|
42370
|
+
rtf
|
|
42371
|
+
};
|
|
42372
|
+
body.forEach(function eachElm(elm) {
|
|
42373
|
+
if (!elm) {
|
|
42374
|
+
return;
|
|
42375
|
+
}
|
|
42376
|
+
for (const fn of jodit_pro_plugins_paste_from_word_cases__WEBPACK_IMPORTED_MODULE_1__/* .cases */ .c) {
|
|
42377
|
+
elm = fn(elm, ctx);
|
|
42378
|
+
if (elm == null) {
|
|
42379
|
+
break;
|
|
42380
|
+
}
|
|
42381
|
+
}
|
|
42382
|
+
elm?.forEach(eachElm);
|
|
42383
|
+
});
|
|
42384
|
+
if (removeStyles) {
|
|
42385
|
+
body.forEach((elm) => {
|
|
42386
|
+
elm.style.clear();
|
|
42387
|
+
}, true);
|
|
42388
|
+
}
|
|
42389
|
+
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));
|
|
42390
|
+
}
|
|
42391
|
+
|
|
42392
|
+
|
|
42393
|
+
/***/ }),
|
|
42394
|
+
|
|
42395
|
+
/***/ 70322:
|
|
42396
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42397
|
+
|
|
42398
|
+
"use strict";
|
|
42399
|
+
__webpack_require__.r(__webpack_exports__);
|
|
42400
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42401
|
+
/* harmony export */ "PasteFromWordPro": function() { return /* binding */ PasteFromWordPro; }
|
|
42402
|
+
/* harmony export */ });
|
|
42403
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
42404
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4682);
|
|
42405
|
+
/* harmony import */ var jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54625);
|
|
42406
|
+
/* harmony import */ var jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79501);
|
|
42407
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53852);
|
|
42408
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18352);
|
|
42409
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48077);
|
|
42410
|
+
/*!
|
|
42411
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42412
|
+
* See LICENSE.md in the project root for license information.
|
|
42413
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42414
|
+
*/
|
|
42415
|
+
|
|
42416
|
+
|
|
42417
|
+
|
|
42418
|
+
|
|
42419
|
+
|
|
42420
|
+
|
|
42421
|
+
|
|
42422
|
+
class PasteFromWordPro extends jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__/* .pasteFromWord */ .L {
|
|
42423
|
+
insertFromWordByType(e, html, insertType, texts) {
|
|
42424
|
+
if (this.j.o.pasteFromWord.enable &&
|
|
42425
|
+
(insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML || insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT)) {
|
|
42426
|
+
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);
|
|
42427
|
+
// @ts-ignore
|
|
42428
|
+
if (this.j.o.beautifyHTML) {
|
|
42429
|
+
const value = this.j.events?.fire('beautifyHTML', html);
|
|
42430
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__/* .isString */ .H)(value)) {
|
|
42431
|
+
html = value;
|
|
42432
|
+
}
|
|
42433
|
+
}
|
|
42434
|
+
(0,jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .kU)(e, this.j, html);
|
|
42435
|
+
return;
|
|
42436
|
+
}
|
|
42437
|
+
return super.insertFromWordByType(e, html, insertType, texts);
|
|
42438
|
+
}
|
|
42439
|
+
}
|
|
42440
|
+
/** @override */
|
|
42441
|
+
PasteFromWordPro.requires = ['license'];
|
|
42442
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.remove */ .y.plugins.remove('pasteFromWord');
|
|
42443
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_3__/* .JoditPro.plugins.add */ .y.plugins.add('pasteFromWordPro', PasteFromWordPro);
|
|
40467
42444
|
|
|
40468
42445
|
|
|
40469
42446
|
/***/ }),
|
|
@@ -40977,13 +42954,30 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
40977
42954
|
/******/ }();
|
|
40978
42955
|
/******/
|
|
40979
42956
|
/************************************************************************/
|
|
40980
|
-
|
|
40981
|
-
|
|
40982
|
-
|
|
40983
|
-
|
|
40984
|
-
|
|
40985
|
-
|
|
40986
|
-
|
|
42957
|
+
var __webpack_exports__ = {};
|
|
42958
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
42959
|
+
!function() {
|
|
42960
|
+
"use strict";
|
|
42961
|
+
__webpack_require__.r(__webpack_exports__);
|
|
42962
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42963
|
+
/* harmony export */ "Jodit": function() { return /* reexport safe */ _jodit_pro__WEBPACK_IMPORTED_MODULE_0__.y; }
|
|
42964
|
+
/* harmony export */ });
|
|
42965
|
+
/* harmony import */ var _jodit_pro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53852);
|
|
42966
|
+
/* harmony import */ var _plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5832);
|
|
42967
|
+
/*!
|
|
42968
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
42969
|
+
* See LICENSE.md in the project root for license information.
|
|
42970
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
42971
|
+
*/
|
|
42972
|
+
|
|
42973
|
+
|
|
42974
|
+
|
|
42975
|
+
// Disable CopyRight
|
|
42976
|
+
function poweredByJodit() { }
|
|
42977
|
+
_jodit_pro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add('poweredByJodit', poweredByJodit);
|
|
42978
|
+
|
|
42979
|
+
}();
|
|
42980
|
+
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
40987
42981
|
/******/ return __webpack_exports__;
|
|
40988
42982
|
/******/ })()
|
|
40989
42983
|
;
|