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
|
@@ -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
|
*/
|
|
@@ -17,1650 +17,7 @@
|
|
|
17
17
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
18
18
|
}
|
|
19
19
|
})(self, function() {
|
|
20
|
-
return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[92],{
|
|
21
|
-
|
|
22
|
-
/***/ 12750:
|
|
23
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
24
|
-
|
|
25
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26
|
-
/* harmony export */ "C": function() { return /* binding */ cleanStyles; }
|
|
27
|
-
/* harmony export */ });
|
|
28
|
-
/*!
|
|
29
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
30
|
-
* See LICENSE.md in the project root for license information.
|
|
31
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
32
|
-
*/
|
|
33
|
-
var forbiddenStyles = {
|
|
34
|
-
'text-justify': ['inter-ideograph']
|
|
35
|
-
};
|
|
36
|
-
function cleanStyles(elm) {
|
|
37
|
-
if (elm.isElement && elm.attributes.style) {
|
|
38
|
-
Object.keys(forbiddenStyles).forEach(function (key) {
|
|
39
|
-
var _a;
|
|
40
|
-
var values = forbiddenStyles[key];
|
|
41
|
-
if (elm.style.has(key)) {
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
if (values.includes((_a = elm.style.get(key)) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
44
|
-
elm.style.set(key, null);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
return elm;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/***/ }),
|
|
54
|
-
|
|
55
|
-
/***/ 76995:
|
|
56
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
57
|
-
|
|
58
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
59
|
-
/* harmony export */ "i": function() { return /* binding */ clearAttributes; }
|
|
60
|
-
/* harmony export */ });
|
|
61
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97582);
|
|
62
|
-
/*!
|
|
63
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
64
|
-
* See LICENSE.md in the project root for license information.
|
|
65
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
var extraAttributes = [
|
|
69
|
-
'cellspacing',
|
|
70
|
-
'cellpadding',
|
|
71
|
-
'border',
|
|
72
|
-
'v:shapes',
|
|
73
|
-
'o:spid'
|
|
74
|
-
];
|
|
75
|
-
function clearAttributes(elm) {
|
|
76
|
-
var e_1, _a;
|
|
77
|
-
if (/^OLE_LINK\d+$/.test(elm.attributes.name)) {
|
|
78
|
-
elm.attributes.name = null;
|
|
79
|
-
if (elm.length === 0) {
|
|
80
|
-
elm.remove();
|
|
81
|
-
return null;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (elm.attributes.name === '_GoBack') {
|
|
85
|
-
elm.attributes.name = null;
|
|
86
|
-
}
|
|
87
|
-
try {
|
|
88
|
-
// Remove extra attributes
|
|
89
|
-
for (var extraAttributes_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__values */ .XA)(extraAttributes), extraAttributes_1_1 = extraAttributes_1.next(); !extraAttributes_1_1.done; extraAttributes_1_1 = extraAttributes_1.next()) {
|
|
90
|
-
var attr = extraAttributes_1_1.value;
|
|
91
|
-
if (elm.attributes[attr]) {
|
|
92
|
-
elm.attributes[attr] = null;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
97
|
-
finally {
|
|
98
|
-
try {
|
|
99
|
-
if (extraAttributes_1_1 && !extraAttributes_1_1.done && (_a = extraAttributes_1.return)) _a.call(extraAttributes_1);
|
|
100
|
-
}
|
|
101
|
-
finally { if (e_1) throw e_1.error; }
|
|
102
|
-
}
|
|
103
|
-
return elm;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/***/ }),
|
|
108
|
-
|
|
109
|
-
/***/ 53614:
|
|
110
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
111
|
-
|
|
112
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
113
|
-
/* harmony export */ "a": function() { return /* binding */ clearClassName; }
|
|
114
|
-
/* harmony export */ });
|
|
115
|
-
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73076);
|
|
116
|
-
/*!
|
|
117
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
118
|
-
* See LICENSE.md in the project root for license information.
|
|
119
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
var clearClassName = function (elm) {
|
|
123
|
-
// Normalize or remove class
|
|
124
|
-
if (elm.attributes.class) {
|
|
125
|
-
elm.attributes.class = elm.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi, '');
|
|
126
|
-
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .f)(elm.attributes.class)) {
|
|
127
|
-
elm.attributes.class = null;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return elm;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
/***/ }),
|
|
135
|
-
|
|
136
|
-
/***/ 50353:
|
|
137
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
138
|
-
|
|
139
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
140
|
-
/* harmony export */ "b": function() { return /* binding */ convertStyleUnitToPixels; }
|
|
141
|
-
/* harmony export */ });
|
|
142
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18352);
|
|
143
|
-
/*!
|
|
144
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
145
|
-
* See LICENSE.md in the project root for license information.
|
|
146
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
var convertStyleUnitToPixels = function (elm, _a) {
|
|
150
|
-
var jodit = _a.jodit;
|
|
151
|
-
if (!jodit.o.pasteFromWord.convertUnitsToPixel) {
|
|
152
|
-
return elm;
|
|
153
|
-
}
|
|
154
|
-
var style = elm.style;
|
|
155
|
-
style.forEach(function (key) {
|
|
156
|
-
var v = style.get(key);
|
|
157
|
-
if (v) {
|
|
158
|
-
style.set(key, v
|
|
159
|
-
.toString()
|
|
160
|
-
.replace(/\d+(\.\d+)?(pt|cm)/g, function (match) { return (0,_helpers__WEBPACK_IMPORTED_MODULE_0__/* .convertUnitToPx */ .Lp)(match) + 'px'; }));
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
return elm;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
/***/ }),
|
|
168
|
-
|
|
169
|
-
/***/ 45054:
|
|
170
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
171
|
-
|
|
172
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
173
|
-
/* harmony export */ "S": function() { return /* binding */ convertToList; }
|
|
174
|
-
/* harmony export */ });
|
|
175
|
-
/* unused harmony export removeRedundancyStyle */
|
|
176
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18352);
|
|
177
|
-
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93310);
|
|
178
|
-
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11612);
|
|
179
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19438);
|
|
180
|
-
/*!
|
|
181
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
182
|
-
* See LICENSE.md in the project root for license information.
|
|
183
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
184
|
-
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
function convertToList(elm) {
|
|
190
|
-
var _a;
|
|
191
|
-
if ((0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isPseudoLeaf */ .Hh)(elm)) {
|
|
192
|
-
elm.name = 'li';
|
|
193
|
-
elm.style.set('text-indent', null);
|
|
194
|
-
var symbol = getSymbol(elm), listType = /[\da-np-zA-NP-Z].?/.test(symbol) ? 'ol' : 'ul', listStyle = defineOrderedListStyle(symbol, listType);
|
|
195
|
-
elm.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .TYPE_KEY */ .YJ] = listType;
|
|
196
|
-
elm.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf] = listStyle;
|
|
197
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_0__/* .calcListLevels */ .rd)(elm);
|
|
198
|
-
moveUp(elm);
|
|
199
|
-
var parent = elm.parent;
|
|
200
|
-
// After move up we inside List or Leaf
|
|
201
|
-
if (!(0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isList */ .nq)(parent) || !(0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isSameType */ .Y4)(elm, parent)) {
|
|
202
|
-
var newList = wrapInNewList(elm, listType, symbol, listStyle);
|
|
203
|
-
if ((0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isList */ .nq)(parent)) {
|
|
204
|
-
newList.remove(); // Not to add to oneself
|
|
205
|
-
(_a = parent.lastElement) === null || _a === void 0 ? void 0 : _a.append(newList);
|
|
206
|
-
}
|
|
207
|
-
return elm;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
return elm;
|
|
211
|
-
}
|
|
212
|
-
function moveUp(leaf) {
|
|
213
|
-
// eslint-disable-next-line no-constant-condition
|
|
214
|
-
while (leaf) {
|
|
215
|
-
var prev = leaf.previousElement;
|
|
216
|
-
// Leaf after P
|
|
217
|
-
if (!((0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isLeaf */ .Be)(prev) || (0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isList */ .nq)(prev))) {
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
// Leaf after Leaf
|
|
221
|
-
if ((0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isLeaf */ .Be)(prev)) {
|
|
222
|
-
if (leaf.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] < prev.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki]) {
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
// Leaf after leaf with same level and inside the right list
|
|
226
|
-
if (leaf.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] === prev.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] &&
|
|
227
|
-
leaf.parent &&
|
|
228
|
-
(0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isSameType */ .Y4)(leaf, leaf.parent)) {
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
prev.append(leaf);
|
|
232
|
-
continue;
|
|
233
|
-
}
|
|
234
|
-
var list = prev;
|
|
235
|
-
// Leaf after list with more level
|
|
236
|
-
if (leaf.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] < list.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki]) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
if (leaf.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] === list.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] &&
|
|
240
|
-
!(0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isSameType */ .Y4)(leaf, list)) {
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
list.append(leaf);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Remove redundancy default list styles.
|
|
248
|
-
*/
|
|
249
|
-
function removeRedundancyStyle(newList) {
|
|
250
|
-
var _a;
|
|
251
|
-
if ((0,_element__WEBPACK_IMPORTED_MODULE_1__/* .isList */ .nq)(newList) &&
|
|
252
|
-
((_a = newList.parent) === null || _a === void 0 ? void 0 : _a.name) !== 'li' &&
|
|
253
|
-
(newList.style.get(_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'disc' ||
|
|
254
|
-
newList.style.get(_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ) === 'decimal')) {
|
|
255
|
-
newList.style.set(_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, null);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
function defineOrderedListStyle(symbol, listType) {
|
|
259
|
-
for (var reg in _constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1) {
|
|
260
|
-
if (RegExp(reg).test(symbol)) {
|
|
261
|
-
return _constants__WEBPACK_IMPORTED_MODULE_3__/* .listStyleMap */ .Y1[reg];
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
return listType === 'ol' ? 'decimal' : 'disc';
|
|
265
|
-
}
|
|
266
|
-
var getSymbol = function (elm) {
|
|
267
|
-
return elm
|
|
268
|
-
.textBetween(function (n) { return n.isComment && /\[if.*supportLists.*]/.test((0,_element__WEBPACK_IMPORTED_MODULE_1__/* .html */ .dy)(n)); }, function (n) { return n.isComment && /\[endif]/.test((0,_element__WEBPACK_IMPORTED_MODULE_1__/* .html */ .dy)(n)); })
|
|
269
|
-
.replace(/ /g, '')
|
|
270
|
-
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.SPACE_REG_EXP)(), '');
|
|
271
|
-
};
|
|
272
|
-
function wrapInNewList(elm, listType, symbol, listStyle) {
|
|
273
|
-
var newList = elm.wrap(listType);
|
|
274
|
-
newList.attributes['start'] = (0,_helpers__WEBPACK_IMPORTED_MODULE_0__/* .calcStartBySymbol */ .Sg)(symbol);
|
|
275
|
-
newList.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki] = elm.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .LEVEL_KEY */ .Ki];
|
|
276
|
-
newList.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf] = elm.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf];
|
|
277
|
-
newList.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_VALID_KEY */ .m3] = elm.attributes[_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_KEY */ .Jf];
|
|
278
|
-
newList.style.set(_constants__WEBPACK_IMPORTED_MODULE_3__/* .STYLE_CSS_KEY */ .zQ, listStyle);
|
|
279
|
-
removeRedundancyStyle(newList);
|
|
280
|
-
return newList;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
/***/ }),
|
|
285
|
-
|
|
286
|
-
/***/ 44669:
|
|
287
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
288
|
-
|
|
289
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
290
|
-
/* harmony export */ "c": function() { return /* binding */ cases; }
|
|
291
|
-
/* harmony export */ });
|
|
292
|
-
/* harmony import */ var _convert_to_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45054);
|
|
293
|
-
/* harmony import */ var _clear_attributes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(76995);
|
|
294
|
-
/* harmony import */ var _remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76148);
|
|
295
|
-
/* harmony import */ var _replace_old_tags__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38450);
|
|
296
|
-
/* harmony import */ var _remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33135);
|
|
297
|
-
/* harmony import */ var _convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50353);
|
|
298
|
-
/* harmony import */ var _clear_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53614);
|
|
299
|
-
/* harmony import */ var _process_links__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62094);
|
|
300
|
-
/* harmony import */ var _normalize_image_props__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(83432);
|
|
301
|
-
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(38933);
|
|
302
|
-
/* harmony import */ var _mark_page_break__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50374);
|
|
303
|
-
/* harmony import */ var _process_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38535);
|
|
304
|
-
/* harmony import */ var _clean_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12750);
|
|
305
|
-
/*!
|
|
306
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
307
|
-
* See LICENSE.md in the project root for license information.
|
|
308
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
309
|
-
*/
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
var cases = [
|
|
324
|
-
_process_image__WEBPACK_IMPORTED_MODULE_6__/* .processImage */ .F,
|
|
325
|
-
_mark_page_break__WEBPACK_IMPORTED_MODULE_8__/* .markPageBreakElements */ .a,
|
|
326
|
-
_remove_extra_tags__WEBPACK_IMPORTED_MODULE_1__/* .removeExtraTags */ .p,
|
|
327
|
-
_replace_old_tags__WEBPACK_IMPORTED_MODULE_2__/* .replaceOldTags */ .G,
|
|
328
|
-
_clear_attributes__WEBPACK_IMPORTED_MODULE_9__/* .clearAttributes */ .i,
|
|
329
|
-
_convert_to_list__WEBPACK_IMPORTED_MODULE_0__/* .convertToList */ .S,
|
|
330
|
-
_process_links__WEBPACK_IMPORTED_MODULE_10__/* .processLinks */ .z,
|
|
331
|
-
_remove_inside_comment__WEBPACK_IMPORTED_MODULE_3__/* .removeInsideComment */ .m,
|
|
332
|
-
_convert_style_unit_to_pixels__WEBPACK_IMPORTED_MODULE_4__/* .convertStyleUnitToPixels */ .b,
|
|
333
|
-
_clear_class_name__WEBPACK_IMPORTED_MODULE_5__/* .clearClassName */ .a,
|
|
334
|
-
_normalize_image_props__WEBPACK_IMPORTED_MODULE_11__/* .normalizeImageProps */ .r,
|
|
335
|
-
_table__WEBPACK_IMPORTED_MODULE_12__/* .removeWidthFromTableCell */ .Y,
|
|
336
|
-
_clean_styles__WEBPACK_IMPORTED_MODULE_7__/* .cleanStyles */ .C
|
|
337
|
-
];
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
/***/ }),
|
|
341
|
-
|
|
342
|
-
/***/ 50374:
|
|
343
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
344
|
-
|
|
345
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
346
|
-
/* harmony export */ "a": function() { return /* binding */ markPageBreakElements; }
|
|
347
|
-
/* harmony export */ });
|
|
348
|
-
/*!
|
|
349
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
350
|
-
* See LICENSE.md in the project root for license information.
|
|
351
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
352
|
-
*/
|
|
353
|
-
var markPageBreakElements = function (elm) {
|
|
354
|
-
if ((elm.isElement && elm.style.get('page-break-before') === 'always') ||
|
|
355
|
-
elm.style.get('break-before') === 'page') {
|
|
356
|
-
elm.attributes['jd-safe'] = true;
|
|
357
|
-
elm.style.add('page-break-before', 'always');
|
|
358
|
-
if (elm.isSingle) {
|
|
359
|
-
elm.name = 'div';
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
return elm;
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
/***/ }),
|
|
367
|
-
|
|
368
|
-
/***/ 83432:
|
|
369
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
370
|
-
|
|
371
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
372
|
-
/* harmony export */ "r": function() { return /* binding */ normalizeImageProps; }
|
|
373
|
-
/* harmony export */ });
|
|
374
|
-
/*!
|
|
375
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
376
|
-
* See LICENSE.md in the project root for license information.
|
|
377
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
378
|
-
*/
|
|
379
|
-
var normalizeImageProps = function (elm) {
|
|
380
|
-
if (!elm.isElement) {
|
|
381
|
-
return elm;
|
|
382
|
-
}
|
|
383
|
-
if (elm.name === 'img') {
|
|
384
|
-
if (elm.attributes.align) {
|
|
385
|
-
elm.style.add('float', elm.attributes.align);
|
|
386
|
-
elm.attributes.align = null;
|
|
387
|
-
}
|
|
388
|
-
if (elm.attributes.hspace) {
|
|
389
|
-
elm.style.add('marginLeft', elm.attributes.hspace + 'px');
|
|
390
|
-
elm.style.add('marginRight', elm.attributes.hspace + 'px');
|
|
391
|
-
elm.attributes.hspace = null;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
return elm;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
/***/ }),
|
|
399
|
-
|
|
400
|
-
/***/ 38535:
|
|
401
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
402
|
-
|
|
403
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
404
|
-
/* harmony export */ "F": function() { return /* binding */ processImage; }
|
|
405
|
-
/* harmony export */ });
|
|
406
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97582);
|
|
407
|
-
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
408
|
-
/*!
|
|
409
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
410
|
-
* See LICENSE.md in the project root for license information.
|
|
411
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
var processImage = function (elm, ctx) {
|
|
416
|
-
var _a, _b;
|
|
417
|
-
if (ctx.rtf &&
|
|
418
|
-
elm.name === '#comment' &&
|
|
419
|
-
elm.attributes.nodeValue &&
|
|
420
|
-
elm.attributes.nodeValue.indexOf('<v:shape') !== -1) {
|
|
421
|
-
if (!ctx.shapes) {
|
|
422
|
-
ctx.shapes = {};
|
|
423
|
-
}
|
|
424
|
-
var elms = ctx.jodit.create.fromHTML(elm.attributes.nodeValue);
|
|
425
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.toArray)(elms.getElementsByTagName('v:shape')).forEach(function (e) {
|
|
426
|
-
ctx.shapes[e.id] = e.getAttribute('o:spid');
|
|
427
|
-
});
|
|
428
|
-
return elm;
|
|
429
|
-
}
|
|
430
|
-
if (elm.name !== 'img') {
|
|
431
|
-
return elm;
|
|
432
|
-
}
|
|
433
|
-
if (ctx.rtf && elm.attributes['v:shapes']) {
|
|
434
|
-
var spid = (_a = ctx.shapes) === null || _a === void 0 ? void 0 : _a[elm.attributes['v:shapes']];
|
|
435
|
-
if (spid) {
|
|
436
|
-
var imageMap = (_b = ctx.imageMap) !== null && _b !== void 0 ? _b : {};
|
|
437
|
-
if (!ctx.imageMap) {
|
|
438
|
-
ctx.imageMap = imageMap;
|
|
439
|
-
parseImages(ctx.rtf, 'i', '\\shppict', ctx.imageMap);
|
|
440
|
-
parseImages(ctx.rtf, 's', '\\shp{', ctx.imageMap);
|
|
441
|
-
}
|
|
442
|
-
var a = imageMap[spid.substring(7)];
|
|
443
|
-
if (a) {
|
|
444
|
-
var base = [], parsedD = a.hex.match(/[0-9a-f]{2}/gi);
|
|
445
|
-
if (parsedD) {
|
|
446
|
-
for (var i = 0; i < parsedD.length; i++) {
|
|
447
|
-
var digit = parseInt(parsedD[i], 16);
|
|
448
|
-
base.push(String.fromCharCode(digit));
|
|
449
|
-
}
|
|
450
|
-
elm.attributes.src =
|
|
451
|
-
'data:' + a.type + ';base64,' + btoa(base.join(''));
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
return elm;
|
|
457
|
-
};
|
|
458
|
-
function parseImages(rtf, prefix, separator, imageMap) {
|
|
459
|
-
var e_1, _a;
|
|
460
|
-
var parts = rtf.split(separator);
|
|
461
|
-
try {
|
|
462
|
-
for (var parts_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__values */ .XA)(parts), parts_1_1 = parts_1.next(); !parts_1_1.done; parts_1_1 = parts_1.next()) {
|
|
463
|
-
var part = parts_1_1.value;
|
|
464
|
-
var shapes = part.split('shplid');
|
|
465
|
-
if (1 < shapes.length) {
|
|
466
|
-
var shape = shapes[1];
|
|
467
|
-
var id = '';
|
|
468
|
-
for (var i = 0; i < shape.length && !/[{ \r\n\\]/.test(shape[i]); i++) {
|
|
469
|
-
id += shape[i];
|
|
470
|
-
}
|
|
471
|
-
var images = shape.split('bliptag');
|
|
472
|
-
if (images && images.length < 2) {
|
|
473
|
-
continue;
|
|
474
|
-
}
|
|
475
|
-
var format = null;
|
|
476
|
-
if (images[0].indexOf('pngblip')) {
|
|
477
|
-
format = 'image/png';
|
|
478
|
-
}
|
|
479
|
-
else if (images[0].indexOf('jpegblip') !== -1) {
|
|
480
|
-
format = 'image/jpeg';
|
|
481
|
-
}
|
|
482
|
-
if (!format) {
|
|
483
|
-
continue;
|
|
484
|
-
}
|
|
485
|
-
var endings = images[1].split('}');
|
|
486
|
-
if (endings && endings.length < 2) {
|
|
487
|
-
continue;
|
|
488
|
-
}
|
|
489
|
-
var result = void 0;
|
|
490
|
-
if (2 < endings.length && endings[0].includes('blipuid')) {
|
|
491
|
-
result = endings[1].split(' ');
|
|
492
|
-
}
|
|
493
|
-
else {
|
|
494
|
-
result = endings[0].split(' ');
|
|
495
|
-
if (result && result.length < 2) {
|
|
496
|
-
continue;
|
|
497
|
-
}
|
|
498
|
-
result.shift();
|
|
499
|
-
}
|
|
500
|
-
imageMap[prefix + id] = {
|
|
501
|
-
hex: result.join(''),
|
|
502
|
-
type: format
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
508
|
-
finally {
|
|
509
|
-
try {
|
|
510
|
-
if (parts_1_1 && !parts_1_1.done && (_a = parts_1.return)) _a.call(parts_1);
|
|
511
|
-
}
|
|
512
|
-
finally { if (e_1) throw e_1.error; }
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
/***/ }),
|
|
518
|
-
|
|
519
|
-
/***/ 62094:
|
|
520
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
521
|
-
|
|
522
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
523
|
-
/* harmony export */ "z": function() { return /* binding */ processLinks; }
|
|
524
|
-
/* harmony export */ });
|
|
525
|
-
/*!
|
|
526
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
527
|
-
* See LICENSE.md in the project root for license information.
|
|
528
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
529
|
-
*/
|
|
530
|
-
var processLinks = function (elm, ctx) {
|
|
531
|
-
var _a;
|
|
532
|
-
var links = (_a = ctx.links) !== null && _a !== void 0 ? _a : {};
|
|
533
|
-
if (elm.attributes.href && elm.attributes.href.match(/#.+$/)) {
|
|
534
|
-
var name = elm.attributes.href.match(/#(.+)$/)[1];
|
|
535
|
-
links[name] = elm;
|
|
536
|
-
}
|
|
537
|
-
if (elm.attributes.name && links[elm.attributes.name]) {
|
|
538
|
-
var link = links[elm.attributes.name];
|
|
539
|
-
link.attributes.href = link.attributes.href.replace(/.*#(.*)$/, '#$1');
|
|
540
|
-
}
|
|
541
|
-
ctx.links = links;
|
|
542
|
-
return elm;
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
/***/ }),
|
|
547
|
-
|
|
548
|
-
/***/ 76148:
|
|
549
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
550
|
-
|
|
551
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
552
|
-
/* harmony export */ "p": function() { return /* binding */ removeExtraTags; }
|
|
553
|
-
/* harmony export */ });
|
|
554
|
-
/*!
|
|
555
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
556
|
-
* See LICENSE.md in the project root for license information.
|
|
557
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
558
|
-
*/
|
|
559
|
-
var extraTags = new Set([
|
|
560
|
-
'o:p',
|
|
561
|
-
'xml',
|
|
562
|
-
'script',
|
|
563
|
-
'meta',
|
|
564
|
-
'link',
|
|
565
|
-
'v:imagedata',
|
|
566
|
-
'style'
|
|
567
|
-
]);
|
|
568
|
-
function removeExtraTags(elm) {
|
|
569
|
-
// Remove invisible
|
|
570
|
-
if (elm.style.get('display') === 'none') {
|
|
571
|
-
elm.remove();
|
|
572
|
-
return null;
|
|
573
|
-
}
|
|
574
|
-
// Remove empty tag
|
|
575
|
-
if (elm.length === 0 && elm.name === 'span') {
|
|
576
|
-
elm.remove();
|
|
577
|
-
return null;
|
|
578
|
-
}
|
|
579
|
-
// Remove invalid tags
|
|
580
|
-
if (extraTags.has(elm.name)) {
|
|
581
|
-
elm.remove();
|
|
582
|
-
return null;
|
|
583
|
-
}
|
|
584
|
-
return elm;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
/***/ }),
|
|
589
|
-
|
|
590
|
-
/***/ 33135:
|
|
591
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
592
|
-
|
|
593
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
594
|
-
/* harmony export */ "m": function() { return /* binding */ removeInsideComment; }
|
|
595
|
-
/* harmony export */ });
|
|
596
|
-
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93310);
|
|
597
|
-
/*!
|
|
598
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
599
|
-
* See LICENSE.md in the project root for license information.
|
|
600
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
601
|
-
*/
|
|
602
|
-
|
|
603
|
-
var inComment = 0;
|
|
604
|
-
function removeInsideComment(elm) {
|
|
605
|
-
if (elm.isComment && /\[if.*(supportLists|gte vml).*]/.test((0,_element__WEBPACK_IMPORTED_MODULE_0__/* .html */ .dy)(elm))) {
|
|
606
|
-
inComment++;
|
|
607
|
-
elm.remove();
|
|
608
|
-
}
|
|
609
|
-
if (elm.isComment && inComment > 0 && (0,_element__WEBPACK_IMPORTED_MODULE_0__/* .html */ .dy)(elm).includes('[endif]')) {
|
|
610
|
-
inComment = inComment > 0 ? inComment - 1 : 0;
|
|
611
|
-
elm.remove();
|
|
612
|
-
}
|
|
613
|
-
if (inComment) {
|
|
614
|
-
if (elm.isText ||
|
|
615
|
-
(elm.name === 'img' &&
|
|
616
|
-
(!elm.attributes.src || /^file:/.test(elm.attributes.src)))) {
|
|
617
|
-
elm.remove();
|
|
618
|
-
return null;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
return elm;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
/***/ }),
|
|
626
|
-
|
|
627
|
-
/***/ 38450:
|
|
628
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
629
|
-
|
|
630
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
631
|
-
/* harmony export */ "G": function() { return /* binding */ replaceOldTags; }
|
|
632
|
-
/* harmony export */ });
|
|
633
|
-
/*!
|
|
634
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
635
|
-
* See LICENSE.md in the project root for license information.
|
|
636
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
637
|
-
*/
|
|
638
|
-
var REPLACE_OLD_TAGS = {
|
|
639
|
-
i: 'em',
|
|
640
|
-
b: 'strong'
|
|
641
|
-
};
|
|
642
|
-
function replaceOldTags(elm) {
|
|
643
|
-
var name = elm.name;
|
|
644
|
-
if (name in REPLACE_OLD_TAGS) {
|
|
645
|
-
elm.name = REPLACE_OLD_TAGS[name];
|
|
646
|
-
}
|
|
647
|
-
return elm;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
/***/ }),
|
|
652
|
-
|
|
653
|
-
/***/ 38933:
|
|
654
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
655
|
-
|
|
656
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
657
|
-
/* harmony export */ "Y": function() { return /* binding */ removeWidthFromTableCell; }
|
|
658
|
-
/* harmony export */ });
|
|
659
|
-
/*!
|
|
660
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
661
|
-
* See LICENSE.md in the project root for license information.
|
|
662
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
663
|
-
*/
|
|
664
|
-
var removeWidthFromTableCell = function (elm) {
|
|
665
|
-
if (elm.attributes.width && (elm.name === 'th' || elm.name === 'td')) {
|
|
666
|
-
elm.attributes.width = null;
|
|
667
|
-
}
|
|
668
|
-
return elm;
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
/***/ }),
|
|
673
|
-
|
|
674
|
-
/***/ 48077:
|
|
675
|
-
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
676
|
-
|
|
677
|
-
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
678
|
-
/*!
|
|
679
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
680
|
-
* See LICENSE.md in the project root for license information.
|
|
681
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
682
|
-
*/
|
|
683
|
-
|
|
684
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.pasteFromWord */ .D.prototype.pasteFromWord = {
|
|
685
|
-
enable: false,
|
|
686
|
-
convertUnitsToPixel: false,
|
|
687
|
-
allowedStyleProps: [
|
|
688
|
-
'background',
|
|
689
|
-
'background-color',
|
|
690
|
-
'border',
|
|
691
|
-
'border-.*',
|
|
692
|
-
'color',
|
|
693
|
-
'float',
|
|
694
|
-
'font-family',
|
|
695
|
-
'font-size',
|
|
696
|
-
'font-style',
|
|
697
|
-
'font-weight',
|
|
698
|
-
'height',
|
|
699
|
-
'line-height',
|
|
700
|
-
'list-style-type',
|
|
701
|
-
'margin',
|
|
702
|
-
'margin-bottom',
|
|
703
|
-
'margin-left',
|
|
704
|
-
'margin-right',
|
|
705
|
-
'margin-top',
|
|
706
|
-
'padding',
|
|
707
|
-
'text-align',
|
|
708
|
-
'text-justify',
|
|
709
|
-
'text-decoration',
|
|
710
|
-
'text-indent',
|
|
711
|
-
'vertical-align',
|
|
712
|
-
'width'
|
|
713
|
-
]
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
/***/ }),
|
|
718
|
-
|
|
719
|
-
/***/ 19438:
|
|
720
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
721
|
-
|
|
722
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
723
|
-
/* harmony export */ "Jf": function() { return /* binding */ STYLE_KEY; },
|
|
724
|
-
/* harmony export */ "Ki": function() { return /* binding */ LEVEL_KEY; },
|
|
725
|
-
/* harmony export */ "Y1": function() { return /* binding */ listStyleMap; },
|
|
726
|
-
/* harmony export */ "YJ": function() { return /* binding */ TYPE_KEY; },
|
|
727
|
-
/* harmony export */ "m3": function() { return /* binding */ STYLE_VALID_KEY; },
|
|
728
|
-
/* harmony export */ "zQ": function() { return /* binding */ STYLE_CSS_KEY; }
|
|
729
|
-
/* harmony export */ });
|
|
730
|
-
/*!
|
|
731
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
732
|
-
* See LICENSE.md in the project root for license information.
|
|
733
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
734
|
-
*/
|
|
735
|
-
var LEVEL_KEY = 'jd-list-level';
|
|
736
|
-
var TYPE_KEY = 'jd-list-type';
|
|
737
|
-
var STYLE_KEY = 'jd-list-style-type';
|
|
738
|
-
var STYLE_VALID_KEY = 'data-list-style-type';
|
|
739
|
-
var STYLE_CSS_KEY = 'list-style-type';
|
|
740
|
-
var listStyleMap = {
|
|
741
|
-
'·': 'disc',
|
|
742
|
-
o: 'circle',
|
|
743
|
-
'§': 'square',
|
|
744
|
-
'[ivx]': 'lower-roman',
|
|
745
|
-
'[IVX]': 'upper-roman',
|
|
746
|
-
'[a-z]': 'lower-alpha',
|
|
747
|
-
'[A-Z]': 'upper-alpha',
|
|
748
|
-
'\\d': 'decimal'
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
/***/ }),
|
|
753
|
-
|
|
754
|
-
/***/ 69111:
|
|
755
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
756
|
-
|
|
757
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
758
|
-
/* harmony export */ "Be": function() { return /* binding */ isLeaf; },
|
|
759
|
-
/* harmony export */ "Hh": function() { return /* binding */ isPseudoLeaf; },
|
|
760
|
-
/* harmony export */ "Y4": function() { return /* binding */ isSameType; },
|
|
761
|
-
/* harmony export */ "nq": function() { return /* binding */ isList; }
|
|
762
|
-
/* harmony export */ });
|
|
763
|
-
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12787);
|
|
764
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19438);
|
|
765
|
-
/*!
|
|
766
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
767
|
-
* See LICENSE.md in the project root for license information.
|
|
768
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
769
|
-
*/
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
function isList(elm) {
|
|
773
|
-
return Boolean(elm && (elm.name === 'ol' || elm.name === 'ul'));
|
|
774
|
-
}
|
|
775
|
-
function isLeaf(elm) {
|
|
776
|
-
return Boolean(elm && elm.name === 'li');
|
|
777
|
-
}
|
|
778
|
-
function isPseudoLeaf(elm) {
|
|
779
|
-
return ((elm.name !== 'li' &&
|
|
780
|
-
/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(elm.attributes.style)) ||
|
|
781
|
-
(/msolistparagraph/i.test(elm.attributes.class) &&
|
|
782
|
-
Boolean(elm.find(function (c) { return c.isComment && (0,_render__WEBPACK_IMPORTED_MODULE_0__/* .html */ .d)(c).includes('supportLists'); })
|
|
783
|
-
.length)));
|
|
784
|
-
}
|
|
785
|
-
function isSameType(leaf, list) {
|
|
786
|
-
var listType = leaf.attributes[_constants__WEBPACK_IMPORTED_MODULE_1__/* .TYPE_KEY */ .YJ];
|
|
787
|
-
var listStyle = leaf.attributes[_constants__WEBPACK_IMPORTED_MODULE_1__/* .STYLE_KEY */ .Jf];
|
|
788
|
-
return !(list.name !== listType ||
|
|
789
|
-
list.attributes[_constants__WEBPACK_IMPORTED_MODULE_1__/* .STYLE_KEY */ .Jf] !== listStyle ||
|
|
790
|
-
leaf.attributes[_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] !== list.attributes[_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki]);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
/***/ }),
|
|
795
|
-
|
|
796
|
-
/***/ 84300:
|
|
797
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
798
|
-
|
|
799
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
800
|
-
/* harmony export */ "n": function() { return /* binding */ JElement; }
|
|
801
|
-
/* harmony export */ });
|
|
802
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
803
|
-
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
|
|
804
|
-
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11612);
|
|
805
|
-
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
|
|
806
|
-
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12787);
|
|
807
|
-
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12481);
|
|
808
|
-
/*!
|
|
809
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
810
|
-
* See LICENSE.md in the project root for license information.
|
|
811
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
812
|
-
*/
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
var singleTags = new Set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSEPARABLE_TAGS);
|
|
820
|
-
var JElement = /** @class */ (function () {
|
|
821
|
-
function JElement(node, parent) {
|
|
822
|
-
var _this = this;
|
|
823
|
-
this.parent = parent;
|
|
824
|
-
this.name = node.nodeName.toLowerCase();
|
|
825
|
-
this.type = node.nodeType;
|
|
826
|
-
this.attributes = readAttributes(node);
|
|
827
|
-
this.style = new _style__WEBPACK_IMPORTED_MODULE_4__/* .Style */ .b(this.attributes.style);
|
|
828
|
-
this.children = [];
|
|
829
|
-
node.childNodes.forEach(function (node) {
|
|
830
|
-
return _this.children.push(JElement.make(node, _this));
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
Object.defineProperty(JElement.prototype, "isText", {
|
|
834
|
-
get: function () {
|
|
835
|
-
return this.type === Node.TEXT_NODE;
|
|
836
|
-
},
|
|
837
|
-
enumerable: false,
|
|
838
|
-
configurable: true
|
|
839
|
-
});
|
|
840
|
-
Object.defineProperty(JElement.prototype, "isElement", {
|
|
841
|
-
get: function () {
|
|
842
|
-
return this.type === Node.ELEMENT_NODE;
|
|
843
|
-
},
|
|
844
|
-
enumerable: false,
|
|
845
|
-
configurable: true
|
|
846
|
-
});
|
|
847
|
-
Object.defineProperty(JElement.prototype, "isComment", {
|
|
848
|
-
get: function () {
|
|
849
|
-
return this.type === Node.COMMENT_NODE;
|
|
850
|
-
},
|
|
851
|
-
enumerable: false,
|
|
852
|
-
configurable: true
|
|
853
|
-
});
|
|
854
|
-
Object.defineProperty(JElement.prototype, "isSingle", {
|
|
855
|
-
get: function () {
|
|
856
|
-
return singleTags.has(this.name);
|
|
857
|
-
},
|
|
858
|
-
enumerable: false,
|
|
859
|
-
configurable: true
|
|
860
|
-
});
|
|
861
|
-
Object.defineProperty(JElement.prototype, "length", {
|
|
862
|
-
get: function () {
|
|
863
|
-
return this.children.length;
|
|
864
|
-
},
|
|
865
|
-
enumerable: false,
|
|
866
|
-
configurable: true
|
|
867
|
-
});
|
|
868
|
-
JElement.make = function (node, parent) {
|
|
869
|
-
if (parent === void 0) { parent = null; }
|
|
870
|
-
return new JElement(node, parent);
|
|
871
|
-
};
|
|
872
|
-
JElement.prototype.wrap = function (tag) {
|
|
873
|
-
var _a;
|
|
874
|
-
void 0;
|
|
875
|
-
var wrapper = JElement.make(document.createElement(tag), this.parent);
|
|
876
|
-
var index = (_a = this.parent.children.indexOf(this)) !== null && _a !== void 0 ? _a : -1;
|
|
877
|
-
if (index === -1) {
|
|
878
|
-
this.parent.append(wrapper);
|
|
879
|
-
}
|
|
880
|
-
else {
|
|
881
|
-
this.parent.children[index] = wrapper;
|
|
882
|
-
}
|
|
883
|
-
wrapper.append(this);
|
|
884
|
-
return wrapper;
|
|
885
|
-
};
|
|
886
|
-
JElement.prototype.append = function (child) {
|
|
887
|
-
void 0;
|
|
888
|
-
child.remove();
|
|
889
|
-
this.children.push(child);
|
|
890
|
-
child.parent = this;
|
|
891
|
-
return this;
|
|
892
|
-
};
|
|
893
|
-
Object.defineProperty(JElement.prototype, "previousElement", {
|
|
894
|
-
get: function () {
|
|
895
|
-
if (!this.parent) {
|
|
896
|
-
return null;
|
|
897
|
-
}
|
|
898
|
-
var children = this.parent.children, index = children.indexOf(this);
|
|
899
|
-
if (index !== -1) {
|
|
900
|
-
for (var i = index - 1; i >= 0; i -= 1) {
|
|
901
|
-
if (children[i].isElement) {
|
|
902
|
-
return children[i];
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
return null;
|
|
907
|
-
},
|
|
908
|
-
enumerable: false,
|
|
909
|
-
configurable: true
|
|
910
|
-
});
|
|
911
|
-
Object.defineProperty(JElement.prototype, "lastElement", {
|
|
912
|
-
get: function () {
|
|
913
|
-
var children = this.children;
|
|
914
|
-
for (var i = children.length - 1; i >= 0; i -= 1) {
|
|
915
|
-
if (children[i].isElement) {
|
|
916
|
-
return children[i];
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
return null;
|
|
920
|
-
},
|
|
921
|
-
enumerable: false,
|
|
922
|
-
configurable: true
|
|
923
|
-
});
|
|
924
|
-
Object.defineProperty(JElement.prototype, "previous", {
|
|
925
|
-
get: function () {
|
|
926
|
-
var _a, _b, _c;
|
|
927
|
-
return (_c = (_a = this.sibling(false)) !== null && _a !== void 0 ? _a : (_b = this.parent) === null || _b === void 0 ? void 0 : _b.previous) !== null && _c !== void 0 ? _c : null;
|
|
928
|
-
},
|
|
929
|
-
enumerable: false,
|
|
930
|
-
configurable: true
|
|
931
|
-
});
|
|
932
|
-
Object.defineProperty(JElement.prototype, "next", {
|
|
933
|
-
get: function () {
|
|
934
|
-
var _a, _b, _c;
|
|
935
|
-
return (_c = (_a = this.sibling(true)) !== null && _a !== void 0 ? _a : (_b = this.parent) === null || _b === void 0 ? void 0 : _b.next) !== null && _c !== void 0 ? _c : null;
|
|
936
|
-
},
|
|
937
|
-
enumerable: false,
|
|
938
|
-
configurable: true
|
|
939
|
-
});
|
|
940
|
-
JElement.prototype.sibling = function (next) {
|
|
941
|
-
if (!this.parent) {
|
|
942
|
-
return null;
|
|
943
|
-
}
|
|
944
|
-
var children = this.parent.children, index = children.indexOf(this);
|
|
945
|
-
if (index !== -1 && children[index + (next ? 1 : -1)]) {
|
|
946
|
-
return children[index + (next ? 1 : -1)];
|
|
947
|
-
}
|
|
948
|
-
return null;
|
|
949
|
-
};
|
|
950
|
-
JElement.prototype.forEach = function (callbackFn, recursion) {
|
|
951
|
-
var e_1, _a;
|
|
952
|
-
if (recursion === void 0) { recursion = false; }
|
|
953
|
-
var children = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(this.children), false);
|
|
954
|
-
try {
|
|
955
|
-
for (var children_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__values */ .XA)(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
|
956
|
-
var child = children_1_1.value;
|
|
957
|
-
if (callbackFn(child) === false) {
|
|
958
|
-
return false;
|
|
959
|
-
}
|
|
960
|
-
if (recursion && child.forEach(callbackFn, true) === false) {
|
|
961
|
-
return false;
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
966
|
-
finally {
|
|
967
|
-
try {
|
|
968
|
-
if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
|
|
969
|
-
}
|
|
970
|
-
finally { if (e_1) throw e_1.error; }
|
|
971
|
-
}
|
|
972
|
-
};
|
|
973
|
-
JElement.prototype.find = function (predicate, recursion) {
|
|
974
|
-
if (recursion === void 0) { recursion = true; }
|
|
975
|
-
var result = [];
|
|
976
|
-
this.forEach(function (elm) {
|
|
977
|
-
if (predicate(elm)) {
|
|
978
|
-
result.push(elm);
|
|
979
|
-
}
|
|
980
|
-
}, recursion);
|
|
981
|
-
return result;
|
|
982
|
-
};
|
|
983
|
-
JElement.prototype.map = function (callbackFn) {
|
|
984
|
-
return this.children.map(callbackFn);
|
|
985
|
-
};
|
|
986
|
-
JElement.prototype.remove = function () {
|
|
987
|
-
var _a, _b;
|
|
988
|
-
var index = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.children.indexOf(this);
|
|
989
|
-
if (index != null && index !== -1) {
|
|
990
|
-
(_b = this.parent) === null || _b === void 0 ? void 0 : _b.children.splice(index, 1);
|
|
991
|
-
}
|
|
992
|
-
return this;
|
|
993
|
-
};
|
|
994
|
-
JElement.prototype.textBetween = function (start, end) {
|
|
995
|
-
var startFound = false;
|
|
996
|
-
var result = [];
|
|
997
|
-
this.forEach(function (node) {
|
|
998
|
-
if (!startFound && start(node)) {
|
|
999
|
-
startFound = true;
|
|
1000
|
-
}
|
|
1001
|
-
if (startFound && node.isText) {
|
|
1002
|
-
result.push((0,_render__WEBPACK_IMPORTED_MODULE_3__/* .html */ .d)(node));
|
|
1003
|
-
}
|
|
1004
|
-
if (startFound && end(node)) {
|
|
1005
|
-
return false;
|
|
1006
|
-
}
|
|
1007
|
-
}, true);
|
|
1008
|
-
return result.join('');
|
|
1009
|
-
};
|
|
1010
|
-
return JElement;
|
|
1011
|
-
}());
|
|
1012
|
-
|
|
1013
|
-
function readAttributes(node) {
|
|
1014
|
-
var result = {};
|
|
1015
|
-
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom.isElement */ .i.isElement(node)) {
|
|
1016
|
-
for (var i = 0, attrs = node.attributes; i < attrs.length; i += 1) {
|
|
1017
|
-
result[attrs[i].name] = attrs[i].value;
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
else {
|
|
1021
|
-
result['nodeValue'] = node.nodeValue;
|
|
1022
|
-
}
|
|
1023
|
-
return result;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
/***/ }),
|
|
1028
|
-
|
|
1029
|
-
/***/ 93310:
|
|
1030
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1031
|
-
|
|
1032
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1033
|
-
/* harmony export */ "Be": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Be; },
|
|
1034
|
-
/* harmony export */ "C7": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.C; },
|
|
1035
|
-
/* harmony export */ "Hh": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Hh; },
|
|
1036
|
-
/* harmony export */ "Y4": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.Y4; },
|
|
1037
|
-
/* harmony export */ "dy": function() { return /* reexport safe */ _render__WEBPACK_IMPORTED_MODULE_2__.d; },
|
|
1038
|
-
/* harmony export */ "nK": function() { return /* reexport safe */ _element__WEBPACK_IMPORTED_MODULE_1__.n; },
|
|
1039
|
-
/* harmony export */ "nq": function() { return /* reexport safe */ _checkers__WEBPACK_IMPORTED_MODULE_0__.nq; }
|
|
1040
|
-
/* harmony export */ });
|
|
1041
|
-
/* harmony import */ var _checkers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69111);
|
|
1042
|
-
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84300);
|
|
1043
|
-
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12787);
|
|
1044
|
-
/*!
|
|
1045
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1046
|
-
* See LICENSE.md in the project root for license information.
|
|
1047
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1048
|
-
*/
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
/***/ }),
|
|
1055
|
-
|
|
1056
|
-
/***/ 12787:
|
|
1057
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1058
|
-
|
|
1059
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1060
|
-
/* harmony export */ "C": function() { return /* binding */ innerHTML; },
|
|
1061
|
-
/* harmony export */ "d": function() { return /* binding */ html; }
|
|
1062
|
-
/* harmony export */ });
|
|
1063
|
-
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11612);
|
|
1064
|
-
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46232);
|
|
1065
|
-
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73076);
|
|
1066
|
-
/*!
|
|
1067
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1068
|
-
* See LICENSE.md in the project root for license information.
|
|
1069
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1070
|
-
*/
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
function html(elm, filter, removeEmpty, allowedStyleProps) {
|
|
1075
|
-
if (filter === void 0) { filter = function () { return true; }; }
|
|
1076
|
-
if (removeEmpty === void 0) { removeEmpty = true; }
|
|
1077
|
-
switch (true) {
|
|
1078
|
-
case elm.isComment:
|
|
1079
|
-
case elm.isText: {
|
|
1080
|
-
if (!filter(elm)) {
|
|
1081
|
-
return '';
|
|
1082
|
-
}
|
|
1083
|
-
var nodeValue = elm.attributes.nodeValue;
|
|
1084
|
-
return elm.isComment ? "<!--".concat(nodeValue, "-->") : nodeValue;
|
|
1085
|
-
}
|
|
1086
|
-
case elm.isElement: {
|
|
1087
|
-
var attributes_1 = elm.attributes, innerContent = innerHTML(elm, filter, removeEmpty, allowedStyleProps);
|
|
1088
|
-
// remove empty tag with attributes
|
|
1089
|
-
if (!elm.attributes['jd-safe'] &&
|
|
1090
|
-
removeEmpty &&
|
|
1091
|
-
innerContent.replace(/[\n\t]/g, '').length === 0 &&
|
|
1092
|
-
!elm.isSingle) {
|
|
1093
|
-
return '';
|
|
1094
|
-
}
|
|
1095
|
-
var attrsList = Object.keys(attributes_1)
|
|
1096
|
-
.map(function (key) {
|
|
1097
|
-
if (key === 'style' ||
|
|
1098
|
-
attributes_1[key] == null ||
|
|
1099
|
-
/^jd-/.test(key)) {
|
|
1100
|
-
return '';
|
|
1101
|
-
}
|
|
1102
|
-
return "".concat(key, "=\"").concat(htmlEntity(attributes_1[key]), "\"");
|
|
1103
|
-
})
|
|
1104
|
-
.filter(Boolean);
|
|
1105
|
-
var styleStr = elm.style.str;
|
|
1106
|
-
var styles = htmlEntity(styleStr(function (key) { return keyInList(key, allowedStyleProps); }));
|
|
1107
|
-
if (styles) {
|
|
1108
|
-
attrsList.push("style=\"".concat(styles, "\""));
|
|
1109
|
-
}
|
|
1110
|
-
// unwrap empty tag without attributes
|
|
1111
|
-
if (removeEmpty &&
|
|
1112
|
-
attrsList.length === 0 &&
|
|
1113
|
-
['span', 'a'].includes(elm.name)) {
|
|
1114
|
-
return innerContent;
|
|
1115
|
-
}
|
|
1116
|
-
var attrs = attrsList.length ? ' ' + attrsList.join(' ') : '';
|
|
1117
|
-
if (!filter(elm)) {
|
|
1118
|
-
return innerContent;
|
|
1119
|
-
}
|
|
1120
|
-
return elm.isSingle
|
|
1121
|
-
? "<".concat(elm.name).concat(attrs, "/>")
|
|
1122
|
-
: "<".concat(elm.name).concat(attrs, ">").concat(innerContent, "</").concat(elm.name, ">");
|
|
1123
|
-
}
|
|
1124
|
-
default:
|
|
1125
|
-
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
1126
|
-
throw Error('Need implementation for this type');
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
return '';
|
|
1130
|
-
}
|
|
1131
|
-
function keyInList(key, list) {
|
|
1132
|
-
var _a;
|
|
1133
|
-
if (!list) {
|
|
1134
|
-
return true;
|
|
1135
|
-
}
|
|
1136
|
-
if (keyInList.cache.has(list)) {
|
|
1137
|
-
var isAllow_1 = (_a = keyInList.cache.get(list)) === null || _a === void 0 ? void 0 : _a.get(key);
|
|
1138
|
-
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_2__/* .isBoolean */ .j)(isAllow_1)) {
|
|
1139
|
-
return isAllow_1;
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
var isAllow = list.some(function (allow) { return new RegExp(allow).test(key); });
|
|
1143
|
-
var map = keyInList.cache.get(list) || new Map();
|
|
1144
|
-
map.set(key, isAllow);
|
|
1145
|
-
keyInList.cache.set(list, map);
|
|
1146
|
-
return isAllow;
|
|
1147
|
-
}
|
|
1148
|
-
keyInList.cache = new WeakMap();
|
|
1149
|
-
function innerHTML(elm, filter, removeEmpty, allowedStyleProps) {
|
|
1150
|
-
if (filter === void 0) { filter = function () { return true; }; }
|
|
1151
|
-
if (removeEmpty === void 0) { removeEmpty = true; }
|
|
1152
|
-
var result = elm
|
|
1153
|
-
.map(function (e) { return html(e, filter, removeEmpty, allowedStyleProps); })
|
|
1154
|
-
.join('');
|
|
1155
|
-
if (elm.name === 'p' && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .f)(result).length === 0) {
|
|
1156
|
-
result = ' ';
|
|
1157
|
-
}
|
|
1158
|
-
return result;
|
|
1159
|
-
}
|
|
1160
|
-
function htmlEntity(str) {
|
|
1161
|
-
return str.toString().replace(/"/g, '"');
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
/***/ }),
|
|
1166
|
-
|
|
1167
|
-
/***/ 12481:
|
|
1168
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1169
|
-
|
|
1170
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1171
|
-
/* harmony export */ "b": function() { return /* binding */ Style; }
|
|
1172
|
-
/* harmony export */ });
|
|
1173
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
1174
|
-
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
1175
|
-
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
1176
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18352);
|
|
1177
|
-
/*!
|
|
1178
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1179
|
-
* See LICENSE.md in the project root for license information.
|
|
1180
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1181
|
-
*/
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
var Style = /** @class */ (function () {
|
|
1187
|
-
function Style(str) {
|
|
1188
|
-
this._data = readStyles(str);
|
|
1189
|
-
}
|
|
1190
|
-
Object.defineProperty(Style.prototype, "keys", {
|
|
1191
|
-
get: function () {
|
|
1192
|
-
return Object.keys(this._data);
|
|
1193
|
-
},
|
|
1194
|
-
enumerable: false,
|
|
1195
|
-
configurable: true
|
|
1196
|
-
});
|
|
1197
|
-
Style.prototype.forEach = function (f) {
|
|
1198
|
-
this.keys.forEach(function (key) { return f(key); });
|
|
1199
|
-
};
|
|
1200
|
-
Style.prototype.clear = function () {
|
|
1201
|
-
this._data = {};
|
|
1202
|
-
};
|
|
1203
|
-
Style.prototype.set = function (key, value) {
|
|
1204
|
-
this._data[key] = value;
|
|
1205
|
-
};
|
|
1206
|
-
Style.prototype.get = function (key) {
|
|
1207
|
-
var _a;
|
|
1208
|
-
return (_a = this._data[key]) !== null && _a !== void 0 ? _a : null;
|
|
1209
|
-
};
|
|
1210
|
-
Style.prototype.has = function (key) {
|
|
1211
|
-
return this._data[key] !== undefined;
|
|
1212
|
-
};
|
|
1213
|
-
Style.prototype.add = function (key, value) {
|
|
1214
|
-
this._data = readStyles(this.str() + ';' + "".concat(key, ":").concat(value));
|
|
1215
|
-
return this;
|
|
1216
|
-
};
|
|
1217
|
-
Style.prototype.str = function (filter) {
|
|
1218
|
-
var _this = this;
|
|
1219
|
-
if (filter === void 0) { filter = function (k) { return true; }; }
|
|
1220
|
-
var styleKeys = Object.keys(this._data).filter(function (key) {
|
|
1221
|
-
return key &&
|
|
1222
|
-
!/^mso-/.test(key) &&
|
|
1223
|
-
filter(key) &&
|
|
1224
|
-
_this.get(key) != null;
|
|
1225
|
-
});
|
|
1226
|
-
var n = function (v) {
|
|
1227
|
-
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isString)(v)) {
|
|
1228
|
-
return /^0[a-z]+$/i.test(v) ? '0' : v;
|
|
1229
|
-
}
|
|
1230
|
-
return v.toString();
|
|
1231
|
-
};
|
|
1232
|
-
['padding', 'margin'].forEach(function (key) {
|
|
1233
|
-
if (_this._data[key]) {
|
|
1234
|
-
var indexMain_1 = styleKeys.indexOf(key);
|
|
1235
|
-
var margins_1 = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .calcMarginParts */ .Wb)(_this._data[key]);
|
|
1236
|
-
['top', 'right', 'bottom', 'left'].forEach(function (side, index) {
|
|
1237
|
-
var name = "".concat(key, "-").concat(side), value = _this._data[name];
|
|
1238
|
-
if (value != null &&
|
|
1239
|
-
(styleKeys.indexOf(name) < indexMain_1 ||
|
|
1240
|
-
n(margins_1[index]) === n(value))) {
|
|
1241
|
-
styleKeys.indexOf(name) !== -1 &&
|
|
1242
|
-
styleKeys.splice(styleKeys.indexOf(name), 1);
|
|
1243
|
-
}
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
});
|
|
1247
|
-
if (styleKeys.length) {
|
|
1248
|
-
return styleKeys
|
|
1249
|
-
.map(function (key) { return "".concat((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.kebabCase)(key), ":").concat(_this.get(key)); })
|
|
1250
|
-
.join(';');
|
|
1251
|
-
}
|
|
1252
|
-
return '';
|
|
1253
|
-
};
|
|
1254
|
-
Style = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
1255
|
-
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
1256
|
-
], Style);
|
|
1257
|
-
return Style;
|
|
1258
|
-
}());
|
|
1259
|
-
function readStyles(style) {
|
|
1260
|
-
return uniqueMax((style !== null && style !== void 0 ? style : '')
|
|
1261
|
-
.replace(/"/g, '"')
|
|
1262
|
-
.split(';')
|
|
1263
|
-
.filter(Boolean)
|
|
1264
|
-
.map(function (s) { return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.trim)(s).split(':').map(jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.trim); })).reduce(function (acc, _a) {
|
|
1265
|
-
var _b = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(_a, 2), key = _b[0], value = _b[1];
|
|
1266
|
-
if (key && value) {
|
|
1267
|
-
acc[key] = value;
|
|
1268
|
-
}
|
|
1269
|
-
return acc;
|
|
1270
|
-
}, {});
|
|
1271
|
-
}
|
|
1272
|
-
function uniqueMax(array) {
|
|
1273
|
-
var keys = {};
|
|
1274
|
-
var result = [];
|
|
1275
|
-
for (var i = array.length - 1; i >= 0; i -= 1) {
|
|
1276
|
-
var key = array[i][0];
|
|
1277
|
-
if (keys[key]) {
|
|
1278
|
-
continue;
|
|
1279
|
-
}
|
|
1280
|
-
keys[key] = true;
|
|
1281
|
-
result.unshift(array[i]);
|
|
1282
|
-
}
|
|
1283
|
-
return result;
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
/***/ }),
|
|
1288
|
-
|
|
1289
|
-
/***/ 12049:
|
|
1290
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1291
|
-
|
|
1292
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1293
|
-
/* harmony export */ "x": function() { return /* binding */ applyStylesPro; }
|
|
1294
|
-
/* harmony export */ });
|
|
1295
|
-
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
|
|
1296
|
-
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44913);
|
|
1297
|
-
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79374);
|
|
1298
|
-
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(93310);
|
|
1299
|
-
/*!
|
|
1300
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1301
|
-
* See LICENSE.md in the project root for license information.
|
|
1302
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1303
|
-
*/
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
function applyStylesPro(jodit, html, removeStyles, rtf) {
|
|
1309
|
-
var _a, _b;
|
|
1310
|
-
if (rtf === void 0) { rtf = ''; }
|
|
1311
|
-
var iframe = document.createElement('iframe');
|
|
1312
|
-
iframe.style.display = 'none';
|
|
1313
|
-
document.body.appendChild(iframe);
|
|
1314
|
-
try {
|
|
1315
|
-
var doc = (_a = iframe.contentDocument) !== null && _a !== void 0 ? _a : (_b = iframe.contentWindow) === null || _b === void 0 ? void 0 : _b.document;
|
|
1316
|
-
if (!doc) {
|
|
1317
|
-
return html;
|
|
1318
|
-
}
|
|
1319
|
-
doc.open();
|
|
1320
|
-
doc.write(html);
|
|
1321
|
-
doc.close();
|
|
1322
|
-
var JDS_1 = 'jd-style';
|
|
1323
|
-
var _loop_1 = function (i) {
|
|
1324
|
-
try {
|
|
1325
|
-
var rules_1 = doc.styleSheets[i]
|
|
1326
|
-
.cssRules;
|
|
1327
|
-
var _loop_2 = function (idx) {
|
|
1328
|
-
if (!rules_1[idx].selectorText) {
|
|
1329
|
-
return "continue";
|
|
1330
|
-
}
|
|
1331
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.$$)(rules_1[idx].selectorText, doc.body).forEach(function (elm) {
|
|
1332
|
-
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS_1)) {
|
|
1333
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS_1, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style') || '');
|
|
1334
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', '');
|
|
1335
|
-
}
|
|
1336
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', "".concat((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style'), ";").concat(rules_1[idx].style.cssText));
|
|
1337
|
-
});
|
|
1338
|
-
};
|
|
1339
|
-
for (var idx = 0; idx < rules_1.length; idx += 1) {
|
|
1340
|
-
_loop_2(idx);
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
catch (e) { }
|
|
1344
|
-
};
|
|
1345
|
-
for (var i = 0; i < doc.styleSheets.length; i += 1) {
|
|
1346
|
-
_loop_1(i);
|
|
1347
|
-
}
|
|
1348
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.$$)("[".concat(JDS_1, "]"), doc.body).forEach(function (elm) {
|
|
1349
|
-
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style', "".concat((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'style'), ";").concat((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, JDS_1)));
|
|
1350
|
-
});
|
|
1351
|
-
return (0,_transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__/* .transformWordToHtml */ .W)(jodit, _element__WEBPACK_IMPORTED_MODULE_3__/* .JElement.make */ .nK.make(doc.body), removeStyles, rtf);
|
|
1352
|
-
}
|
|
1353
|
-
finally {
|
|
1354
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(iframe);
|
|
1355
|
-
}
|
|
1356
|
-
return html;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
/***/ }),
|
|
1361
|
-
|
|
1362
|
-
/***/ 45394:
|
|
1363
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1364
|
-
|
|
1365
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1366
|
-
/* harmony export */ "r": function() { return /* binding */ calcListLevels; }
|
|
1367
|
-
/* harmony export */ });
|
|
1368
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
1369
|
-
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93310);
|
|
1370
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19438);
|
|
1371
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81723);
|
|
1372
|
-
/*!
|
|
1373
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1374
|
-
* See LICENSE.md in the project root for license information.
|
|
1375
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1376
|
-
*/
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
function calcListLevels(item) {
|
|
1382
|
-
if (item.attributes[_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] !== undefined) {
|
|
1383
|
-
return;
|
|
1384
|
-
}
|
|
1385
|
-
var indents = [(0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(item)], items = [item];
|
|
1386
|
-
var next = item.next;
|
|
1387
|
-
while (next) {
|
|
1388
|
-
if (next.isElement &&
|
|
1389
|
-
!next.attributes[_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] &&
|
|
1390
|
-
(0,_element__WEBPACK_IMPORTED_MODULE_0__/* .isPseudoLeaf */ .Hh)(next)) {
|
|
1391
|
-
var indent = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(next);
|
|
1392
|
-
if (indent) {
|
|
1393
|
-
indents.push(indent);
|
|
1394
|
-
items.push(next);
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
next = next.next;
|
|
1398
|
-
}
|
|
1399
|
-
var minIndent = Math.min.apply(Math, (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(indents.filter(function (val) { return val > 0; })), false));
|
|
1400
|
-
var levels = indents.map(function (val) { return Math.ceil(val / 10); });
|
|
1401
|
-
if (levels.indexOf(0) !== -1) {
|
|
1402
|
-
levels = levels.map(function (val) { return val + 1; });
|
|
1403
|
-
}
|
|
1404
|
-
items.forEach(function (curItem, index) {
|
|
1405
|
-
curItem.attributes[_constants__WEBPACK_IMPORTED_MODULE_1__/* .LEVEL_KEY */ .Ki] = levels[index];
|
|
1406
|
-
curItem.style.add('margin-left', "".concat(Math.max((0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .realPixelIndent */ .D4)(curItem) -
|
|
1407
|
-
((levels[index] * 10) / minIndent) * 40, 0), "px"));
|
|
1408
|
-
});
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
/***/ }),
|
|
1413
|
-
|
|
1414
|
-
/***/ 81723:
|
|
1415
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1416
|
-
|
|
1417
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1418
|
-
/* harmony export */ "D4": function() { return /* binding */ realPixelIndent; },
|
|
1419
|
-
/* harmony export */ "Lp": function() { return /* binding */ convertUnitToPx; },
|
|
1420
|
-
/* harmony export */ "Sg": function() { return /* binding */ calcStartBySymbol; },
|
|
1421
|
-
/* harmony export */ "Wb": function() { return /* binding */ calcMarginParts; }
|
|
1422
|
-
/* harmony export */ });
|
|
1423
|
-
/*!
|
|
1424
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1425
|
-
* See LICENSE.md in the project root for license information.
|
|
1426
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1427
|
-
*/
|
|
1428
|
-
function calcMarginParts(margin) {
|
|
1429
|
-
if (!margin) {
|
|
1430
|
-
return [0, 0, 0, 0];
|
|
1431
|
-
}
|
|
1432
|
-
var widths = margin.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g) || ['0px'];
|
|
1433
|
-
switch (widths.length) {
|
|
1434
|
-
case 2:
|
|
1435
|
-
return [0, 1, 0, 1].map(function (index) { return widths[index]; });
|
|
1436
|
-
case 3:
|
|
1437
|
-
return [0, 1, 2, 1].map(function (index) { return widths[index]; });
|
|
1438
|
-
case 4:
|
|
1439
|
-
return [0, 1, 2, 3].map(function (index) { return widths[index]; });
|
|
1440
|
-
default:
|
|
1441
|
-
return [0, 0, 0, 0].map(function (index) { return widths[index]; });
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
var fakeMeasureBox;
|
|
1445
|
-
/**
|
|
1446
|
-
* Convert css units to pixels, excluding percentages
|
|
1447
|
-
* @example
|
|
1448
|
-
* ```js
|
|
1449
|
-
* convertUnitToPx('55pt')
|
|
1450
|
-
* convertUnitToPx('55cm')
|
|
1451
|
-
* ```
|
|
1452
|
-
*/
|
|
1453
|
-
function convertUnitToPx(unit) {
|
|
1454
|
-
if (typeof unit === 'number') {
|
|
1455
|
-
return unit;
|
|
1456
|
-
}
|
|
1457
|
-
if (/%$/.test(unit)) {
|
|
1458
|
-
return 0;
|
|
1459
|
-
}
|
|
1460
|
-
if (!fakeMeasureBox) {
|
|
1461
|
-
fakeMeasureBox = document.createElement('div');
|
|
1462
|
-
Object.assign(fakeMeasureBox.style, {
|
|
1463
|
-
position: 'absolute',
|
|
1464
|
-
left: '-9999px',
|
|
1465
|
-
top: '-9999px',
|
|
1466
|
-
margin: '0',
|
|
1467
|
-
padding: '0',
|
|
1468
|
-
border: '0'
|
|
1469
|
-
});
|
|
1470
|
-
document.body.append(fakeMeasureBox);
|
|
1471
|
-
// Clean after work
|
|
1472
|
-
setTimeout(function () {
|
|
1473
|
-
fakeMeasureBox === null || fakeMeasureBox === void 0 ? void 0 : fakeMeasureBox.remove();
|
|
1474
|
-
fakeMeasureBox = null;
|
|
1475
|
-
});
|
|
1476
|
-
}
|
|
1477
|
-
var isNegative = parseFloat(unit) < 0;
|
|
1478
|
-
if (isNegative) {
|
|
1479
|
-
unit = unit.replace('-', '');
|
|
1480
|
-
}
|
|
1481
|
-
fakeMeasureBox.style.width = unit;
|
|
1482
|
-
var result = fakeMeasureBox.clientWidth;
|
|
1483
|
-
if (isNegative) {
|
|
1484
|
-
return -result;
|
|
1485
|
-
}
|
|
1486
|
-
return result;
|
|
1487
|
-
}
|
|
1488
|
-
function realPixelIndent(element) {
|
|
1489
|
-
var style = element.style;
|
|
1490
|
-
var marginSplit = [0, 0, 0, 0];
|
|
1491
|
-
var marginKeys = style.keys.filter(function (k) { return /margin/.test(k); });
|
|
1492
|
-
var maxMarginLeftIndex = Math.max(marginKeys.indexOf('margin-left'), marginKeys.indexOf('margin'));
|
|
1493
|
-
var marginKey = maxMarginLeftIndex > 0 ? marginKeys[maxMarginLeftIndex] : 'margin-left';
|
|
1494
|
-
var marginLeft;
|
|
1495
|
-
if (marginKey === 'margin') {
|
|
1496
|
-
var margin = style.get('margin');
|
|
1497
|
-
marginSplit = calcMarginParts(margin);
|
|
1498
|
-
marginLeft = marginSplit[3] || 0;
|
|
1499
|
-
}
|
|
1500
|
-
else {
|
|
1501
|
-
marginLeft = style.get(marginKey) || 0;
|
|
1502
|
-
}
|
|
1503
|
-
return convertUnitToPx(marginLeft);
|
|
1504
|
-
}
|
|
1505
|
-
function calcStartBySymbol(symbol) {
|
|
1506
|
-
if (/\d.\d/.test(symbol)) {
|
|
1507
|
-
return symbol.split('.').pop() || null;
|
|
1508
|
-
}
|
|
1509
|
-
if (/^\d/.test(symbol)) {
|
|
1510
|
-
return (parseInt(symbol, 10) || 1).toString();
|
|
1511
|
-
}
|
|
1512
|
-
return null;
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
/***/ }),
|
|
1517
|
-
|
|
1518
|
-
/***/ 18352:
|
|
1519
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1520
|
-
|
|
1521
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1522
|
-
/* harmony export */ "Lp": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Lp; },
|
|
1523
|
-
/* harmony export */ "Sg": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Sg; },
|
|
1524
|
-
/* harmony export */ "Wb": function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_0__.Wb; },
|
|
1525
|
-
/* harmony export */ "rd": function() { return /* reexport safe */ _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__.r; },
|
|
1526
|
-
/* harmony export */ "xk": function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__.x; }
|
|
1527
|
-
/* harmony export */ });
|
|
1528
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81723);
|
|
1529
|
-
/* harmony import */ var _apply_styles_pro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12049);
|
|
1530
|
-
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79374);
|
|
1531
|
-
/* harmony import */ var _calc_list_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45394);
|
|
1532
|
-
/*!
|
|
1533
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1534
|
-
* See LICENSE.md in the project root for license information.
|
|
1535
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1536
|
-
*/
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
/***/ }),
|
|
1544
|
-
|
|
1545
|
-
/***/ 79374:
|
|
1546
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1547
|
-
|
|
1548
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1549
|
-
/* harmony export */ "W": function() { return /* binding */ transformWordToHtml; }
|
|
1550
|
-
/* harmony export */ });
|
|
1551
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
1552
|
-
/* harmony import */ var _cases__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44669);
|
|
1553
|
-
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73076);
|
|
1554
|
-
/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93310);
|
|
1555
|
-
/*!
|
|
1556
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1557
|
-
* See LICENSE.md in the project root for license information.
|
|
1558
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1559
|
-
*/
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
function transformWordToHtml(jodit, body, removeStyles, rtf) {
|
|
1565
|
-
var ctx = {
|
|
1566
|
-
jodit: jodit,
|
|
1567
|
-
rtf: rtf
|
|
1568
|
-
};
|
|
1569
|
-
body.forEach(function eachElm(elm) {
|
|
1570
|
-
var e_1, _a;
|
|
1571
|
-
if (!elm) {
|
|
1572
|
-
return;
|
|
1573
|
-
}
|
|
1574
|
-
try {
|
|
1575
|
-
for (var cases_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__values */ .XA)(_cases__WEBPACK_IMPORTED_MODULE_0__/* .cases */ .c), cases_1_1 = cases_1.next(); !cases_1_1.done; cases_1_1 = cases_1.next()) {
|
|
1576
|
-
var fn = cases_1_1.value;
|
|
1577
|
-
elm = fn(elm, ctx);
|
|
1578
|
-
if (elm == null) {
|
|
1579
|
-
break;
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1584
|
-
finally {
|
|
1585
|
-
try {
|
|
1586
|
-
if (cases_1_1 && !cases_1_1.done && (_a = cases_1.return)) _a.call(cases_1);
|
|
1587
|
-
}
|
|
1588
|
-
finally { if (e_1) throw e_1.error; }
|
|
1589
|
-
}
|
|
1590
|
-
elm === null || elm === void 0 ? void 0 : elm.forEach(eachElm);
|
|
1591
|
-
});
|
|
1592
|
-
if (removeStyles) {
|
|
1593
|
-
body.forEach(function (elm) {
|
|
1594
|
-
elm.style.clear();
|
|
1595
|
-
}, true);
|
|
1596
|
-
}
|
|
1597
|
-
return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .f)((0,_element__WEBPACK_IMPORTED_MODULE_2__/* .innerHTML */ .C7)(body, function (elm) { return !elm.isComment; }, true, jodit.o.pasteFromWord.allowedStyleProps));
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
/***/ }),
|
|
1602
|
-
|
|
1603
|
-
/***/ 70322:
|
|
1604
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1605
|
-
|
|
1606
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1607
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1608
|
-
/* harmony export */ "PasteFromWordPro": function() { return /* binding */ PasteFromWordPro; }
|
|
1609
|
-
/* harmony export */ });
|
|
1610
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97582);
|
|
1611
|
-
/* harmony import */ var _JoditPro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88292);
|
|
1612
|
-
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11612);
|
|
1613
|
-
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4682);
|
|
1614
|
-
/* harmony import */ var jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79501);
|
|
1615
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18352);
|
|
1616
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48077);
|
|
1617
|
-
/* harmony import */ var jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54625);
|
|
1618
|
-
/*!
|
|
1619
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1620
|
-
* See LICENSE.md in the project root for license information.
|
|
1621
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1622
|
-
*/
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
var PasteFromWordPro = /** @class */ (function (_super) {
|
|
1632
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__extends */ .ZT)(PasteFromWordPro, _super);
|
|
1633
|
-
function PasteFromWordPro() {
|
|
1634
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1635
|
-
}
|
|
1636
|
-
PasteFromWordPro.prototype.insertFromWordByType = function (e, html, insertType, texts) {
|
|
1637
|
-
var _a;
|
|
1638
|
-
if (this.j.o.pasteFromWord.enable &&
|
|
1639
|
-
(insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSERT_AS_HTML || insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSERT_AS_TEXT)) {
|
|
1640
|
-
html = (0,_helpers__WEBPACK_IMPORTED_MODULE_3__/* .applyStylesPro */ .xk)(this.j, html, insertType === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSERT_AS_TEXT, texts.rtf);
|
|
1641
|
-
// @ts-ignore
|
|
1642
|
-
if (this.j.o.beautifyHTML) {
|
|
1643
|
-
var value = (_a = this.j.events) === null || _a === void 0 ? void 0 : _a.fire('beautifyHTML', html);
|
|
1644
|
-
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_7__/* .isString */ .H)(value)) {
|
|
1645
|
-
html = value;
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1648
|
-
(0,jodit_plugins_paste_helpers__WEBPACK_IMPORTED_MODULE_5__/* .pasteInsertHtml */ .kU)(e, this.j, html);
|
|
1649
|
-
return;
|
|
1650
|
-
}
|
|
1651
|
-
return _super.prototype.insertFromWordByType.call(this, e, html, insertType, texts);
|
|
1652
|
-
};
|
|
1653
|
-
/** @override */
|
|
1654
|
-
PasteFromWordPro.requires = ['license'];
|
|
1655
|
-
return PasteFromWordPro;
|
|
1656
|
-
}(jodit_plugins_paste_from_word_paste_from_word__WEBPACK_IMPORTED_MODULE_2__/* .pasteFromWord */ .L));
|
|
1657
|
-
_JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.remove */ .y.plugins.remove('pasteFromWord');
|
|
1658
|
-
_JoditPro__WEBPACK_IMPORTED_MODULE_0__/* .JoditPro.plugins.add */ .y.plugins.add('pasteFromWordPro', PasteFromWordPro);
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
/***/ })
|
|
1662
|
-
|
|
1663
|
-
},
|
|
20
|
+
return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[92],{},
|
|
1664
21
|
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
1665
22
|
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
1666
23
|
/******/ var __webpack_exports__ = (__webpack_exec__(70322));
|