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