jodit-pro 4.2.23 → 4.2.30
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 -1
- package/es2015/889.fat.min.js +10 -0
- package/es2015/889.js +58 -0
- package/es2015/889.min.js +10 -0
- package/es2015/jodit.css +14 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +542 -287
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +2 -56
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +7 -3
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +47 -43
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +77 -39
- package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +18 -18
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/889.fat.min.js +10 -0
- package/es2018/889.js +58 -0
- package/es2018/889.min.js +10 -0
- package/es2018/jodit.css +14 -2
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +536 -281
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +2 -56
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +7 -3
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +40 -36
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +77 -39
- package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +18 -18
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/889.fat.min.js +10 -0
- package/es2021/889.js +58 -0
- package/es2021/889.min.js +10 -0
- package/es2021/jodit.css +14 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +536 -281
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +2 -56
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +7 -3
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +40 -36
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +77 -39
- package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +18 -18
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/889.fat.min.js +10 -0
- package/es2021.en/889.js +24 -0
- package/es2021.en/889.min.js +10 -0
- package/es2021.en/jodit.css +14 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +511 -275
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +2 -21
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +7 -3
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +40 -36
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +41 -39
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +18 -18
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/292.fat.min.js +10 -0
- package/es5/292.js +5011 -0
- package/es5/292.min.js +10 -0
- package/es5/889.fat.min.js +10 -0
- package/es5/889.js +58 -0
- package/es5/889.min.js +10 -0
- package/es5/jodit.css +21 -6
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +814 -5708
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +2 -56
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +7 -3
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +50 -46
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +77 -39
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +24 -24
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/esm/plugins/finder/config.js +1 -1
- package/esm/plugins/finder/langs/index.d.ts +1 -1
- package/esm/plugins/finder/langs/index.js +6 -0
- package/esm/plugins/finder/langs/ru.js +6 -0
- package/esm/plugins/google-maps/helpers/helpers.d.ts +0 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +0 -1
- package/esm/plugins/paste-from-word/element/render.js +1 -1
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/show-blocks/langs/ar.js +6 -0
- package/esm/plugins/show-blocks/langs/cs_cz.js +6 -0
- package/esm/plugins/show-blocks/langs/de.js +6 -0
- package/esm/plugins/show-blocks/langs/es.js +6 -0
- package/esm/plugins/show-blocks/langs/fa.js +6 -0
- package/esm/plugins/show-blocks/langs/fr.js +6 -0
- package/esm/plugins/show-blocks/langs/he.js +6 -0
- package/esm/plugins/show-blocks/langs/hu.js +6 -0
- package/esm/plugins/show-blocks/langs/id.js +6 -0
- package/esm/plugins/show-blocks/langs/index.d.ts +19 -19
- package/esm/plugins/show-blocks/langs/index.js +1 -1
- package/esm/plugins/show-blocks/langs/it.js +6 -0
- package/esm/plugins/show-blocks/langs/ja.js +6 -0
- package/esm/plugins/show-blocks/langs/ko.js +6 -0
- package/esm/plugins/show-blocks/langs/nl.js +6 -0
- package/esm/plugins/show-blocks/langs/pl.js +6 -0
- package/esm/plugins/show-blocks/langs/pt_br.js +6 -0
- package/esm/plugins/show-blocks/langs/ru.js +6 -0
- package/esm/plugins/show-blocks/langs/tr.js +6 -0
- package/esm/plugins/show-blocks/langs/zh_cn.js +6 -0
- package/esm/plugins/show-blocks/langs/zh_tw.js +6 -0
- package/package.json +1 -1
- package/types/plugins/finder/langs/index.d.ts +1 -1
- package/types/plugins/google-maps/helpers/helpers.d.ts +0 -1
- package/types/plugins/google-maps/ui/map/map.d.ts +0 -1
- package/types/plugins/show-blocks/langs/index.d.ts +19 -19
package/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.2.
|
|
4
|
+
* Version: v4.2.30
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -961,16 +961,12 @@ class Config {
|
|
|
961
961
|
showPlaceholder: false
|
|
962
962
|
}
|
|
963
963
|
};
|
|
964
|
-
this.ownerDocument =
|
|
965
|
-
? document
|
|
966
|
-
: null);
|
|
964
|
+
this.ownerDocument = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
|
|
967
965
|
/**
|
|
968
966
|
* Allows you to specify the window in which the editor will be created. Default - window
|
|
969
967
|
* This is necessary if you are creating the editor inside an iframe but the code is running in the parent window
|
|
970
968
|
*/
|
|
971
|
-
this.ownerWindow =
|
|
972
|
-
? window
|
|
973
|
-
: null);
|
|
969
|
+
this.ownerWindow = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow;
|
|
974
970
|
/**
|
|
975
971
|
* Shadow root if Jodit was created in it
|
|
976
972
|
*
|
|
@@ -1744,16 +1740,16 @@ Config.prototype.controls = {};
|
|
|
1744
1740
|
/* harmony export */ j: function() { return /* binding */ Async; }
|
|
1745
1741
|
/* harmony export */ });
|
|
1746
1742
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
1747
|
-
/* harmony import */ var
|
|
1743
|
+
/* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61239);
|
|
1748
1744
|
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54306);
|
|
1749
1745
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41959);
|
|
1750
|
-
/* harmony import */ var
|
|
1746
|
+
/* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72558);
|
|
1751
1747
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(47903);
|
|
1752
1748
|
/* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75138);
|
|
1753
1749
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26986);
|
|
1754
|
-
/* harmony import */ var
|
|
1755
|
-
/* harmony import */ var
|
|
1756
|
-
/* harmony import */ var
|
|
1750
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
|
|
1751
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
1752
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
1757
1753
|
/* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(30126);
|
|
1758
1754
|
/*!
|
|
1759
1755
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -1803,17 +1799,18 @@ class Async {
|
|
|
1803
1799
|
return 0;
|
|
1804
1800
|
}
|
|
1805
1801
|
let options = {};
|
|
1806
|
-
if ((0,
|
|
1802
|
+
if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(timeout)) {
|
|
1807
1803
|
timeout = 0;
|
|
1808
1804
|
}
|
|
1809
|
-
if (!(0,
|
|
1805
|
+
if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__/* .isNumber */ .E)(timeout)) {
|
|
1810
1806
|
options = timeout;
|
|
1811
1807
|
timeout = options.timeout || 0;
|
|
1812
1808
|
}
|
|
1813
1809
|
if (options.label) {
|
|
1814
1810
|
this.clearLabel(options.label);
|
|
1815
1811
|
}
|
|
1816
|
-
const timer = (0,
|
|
1812
|
+
const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .setTimeout */ .w)(callback, timeout, ...args);
|
|
1813
|
+
const key = options.label || timer;
|
|
1817
1814
|
this.timers.set(key, timer);
|
|
1818
1815
|
this.__callbacks.set(key, callback);
|
|
1819
1816
|
return timer;
|
|
@@ -1829,7 +1826,7 @@ class Async {
|
|
|
1829
1826
|
}
|
|
1830
1827
|
clearLabel(label) {
|
|
1831
1828
|
if (label && this.timers.has(label)) {
|
|
1832
|
-
(0,
|
|
1829
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(label));
|
|
1833
1830
|
this.timers.delete(label);
|
|
1834
1831
|
this.__callbacks.delete(label);
|
|
1835
1832
|
}
|
|
@@ -1838,7 +1835,7 @@ class Async {
|
|
|
1838
1835
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .K)(timerOrLabel)) {
|
|
1839
1836
|
return this.clearLabel(timerOrLabel);
|
|
1840
1837
|
}
|
|
1841
|
-
(0,
|
|
1838
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timerOrLabel);
|
|
1842
1839
|
this.timers.delete(timerOrLabel);
|
|
1843
1840
|
this.__callbacks.delete(timerOrLabel);
|
|
1844
1841
|
}
|
|
@@ -1880,7 +1877,7 @@ class Async {
|
|
|
1880
1877
|
if (!timer && firstCallImmediately) {
|
|
1881
1878
|
callFn(...args);
|
|
1882
1879
|
}
|
|
1883
|
-
(0,
|
|
1880
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timer);
|
|
1884
1881
|
timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .T)(timeout) ? timeout() : timeout);
|
|
1885
1882
|
this.timers.set(fn, timer);
|
|
1886
1883
|
}
|
|
@@ -2034,7 +2031,7 @@ class Async {
|
|
|
2034
2031
|
clear() {
|
|
2035
2032
|
this.requestsIdle.forEach(key => this.cancelIdleCallback(key));
|
|
2036
2033
|
this.requestsRaf.forEach(key => this.cancelAnimationFrame(key));
|
|
2037
|
-
this.timers.forEach(key => (0,
|
|
2034
|
+
this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(key)));
|
|
2038
2035
|
this.timers.clear();
|
|
2039
2036
|
this.promisesRejections.forEach(reject => reject());
|
|
2040
2037
|
this.promisesRejections.clear();
|
|
@@ -2443,6 +2440,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2443
2440
|
/* harmony export */ TEXT_PLAIN: function() { return /* binding */ TEXT_PLAIN; },
|
|
2444
2441
|
/* harmony export */ TEXT_RTF: function() { return /* binding */ TEXT_RTF; },
|
|
2445
2442
|
/* harmony export */ TOKENS: function() { return /* binding */ TOKENS; },
|
|
2443
|
+
/* harmony export */ globalDocument: function() { return /* binding */ globalDocument; },
|
|
2444
|
+
/* harmony export */ globalWindow: function() { return /* binding */ globalWindow; },
|
|
2446
2445
|
/* harmony export */ lang: function() { return /* binding */ lang; }
|
|
2447
2446
|
/* harmony export */ });
|
|
2448
2447
|
/*!
|
|
@@ -2450,7 +2449,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2450
2449
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2451
2450
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2452
2451
|
*/
|
|
2453
|
-
const APP_VERSION = "4.2.
|
|
2452
|
+
const APP_VERSION = "4.2.30";
|
|
2454
2453
|
// prettier-ignore
|
|
2455
2454
|
const ES = "es2015";
|
|
2456
2455
|
const IS_ES_MODERN = true;
|
|
@@ -2469,6 +2468,10 @@ const INVISIBLE_SPACE_REG_EXP_START = () => /^[\uFEFF]+/g;
|
|
|
2469
2468
|
const SPACE_REG_EXP = () => /[\s\n\t\r\uFEFF\u200b]+/g;
|
|
2470
2469
|
const SPACE_REG_EXP_START = () => /^[\s\n\t\r\uFEFF\u200b]+/g;
|
|
2471
2470
|
const SPACE_REG_EXP_END = () => /[\s\n\t\r\uFEFF\u200b]+$/g;
|
|
2471
|
+
const globalWindow = typeof window !== 'undefined' ? window : undefined;
|
|
2472
|
+
const globalDocument = typeof document !== 'undefined'
|
|
2473
|
+
? document
|
|
2474
|
+
: undefined;
|
|
2472
2475
|
const IS_BLOCK = /^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i;
|
|
2473
2476
|
const IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
|
|
2474
2477
|
const LIST_TAGS = new Set(['ul', 'ol']);
|
|
@@ -2593,8 +2596,8 @@ const INSERT_AS_TEXT = 'insert_as_text';
|
|
|
2593
2596
|
*/
|
|
2594
2597
|
const INSERT_ONLY_TEXT = 'insert_only_text';
|
|
2595
2598
|
const SAFE_COUNT_CHANGE_CALL = 10;
|
|
2596
|
-
const IS_MAC = typeof
|
|
2597
|
-
/Mac|iPod|iPhone|iPad/.test(
|
|
2599
|
+
const IS_MAC = typeof globalWindow !== 'undefined' &&
|
|
2600
|
+
/Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
|
|
2598
2601
|
const KEY_ALIASES = {
|
|
2599
2602
|
add: '+',
|
|
2600
2603
|
break: 'pause',
|
|
@@ -2612,8 +2615,8 @@ const KEY_ALIASES = {
|
|
|
2612
2615
|
option: 'alt',
|
|
2613
2616
|
return: 'enter',
|
|
2614
2617
|
right: 'arrowright',
|
|
2615
|
-
space: '
|
|
2616
|
-
spacebar: '
|
|
2618
|
+
space: 'space',
|
|
2619
|
+
spacebar: 'space',
|
|
2617
2620
|
up: 'arrowup',
|
|
2618
2621
|
win: 'meta',
|
|
2619
2622
|
windows: 'meta'
|
|
@@ -2622,7 +2625,7 @@ const BASE_PATH = (() => {
|
|
|
2622
2625
|
if (typeof document === 'undefined') {
|
|
2623
2626
|
return '';
|
|
2624
2627
|
}
|
|
2625
|
-
const script =
|
|
2628
|
+
const script = globalDocument.currentScript, removeScriptName = (s) => {
|
|
2626
2629
|
const parts = s.split('/');
|
|
2627
2630
|
if (/\.js/.test(parts[parts.length - 1])) {
|
|
2628
2631
|
return parts.slice(0, parts.length - 1).join('/') + '/';
|
|
@@ -2632,11 +2635,11 @@ const BASE_PATH = (() => {
|
|
|
2632
2635
|
if (script) {
|
|
2633
2636
|
return removeScriptName(script.src);
|
|
2634
2637
|
}
|
|
2635
|
-
const scripts =
|
|
2638
|
+
const scripts = globalDocument.querySelectorAll('script[src]');
|
|
2636
2639
|
if (scripts && scripts.length) {
|
|
2637
2640
|
return removeScriptName(scripts[scripts.length - 1].src);
|
|
2638
2641
|
}
|
|
2639
|
-
return
|
|
2642
|
+
return globalWindow.location.href;
|
|
2640
2643
|
})();
|
|
2641
2644
|
const TEMP_ATTR = 'data-jodit-temp';
|
|
2642
2645
|
const lang = {};
|
|
@@ -3384,7 +3387,6 @@ function watch(observeFields, opts) {
|
|
|
3384
3387
|
const [objectPath, eventName] = field.split(':');
|
|
3385
3388
|
let ctx = context;
|
|
3386
3389
|
if (objectPath.length) {
|
|
3387
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3388
3390
|
ctx = component.get(objectPath);
|
|
3389
3391
|
}
|
|
3390
3392
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__/* .isFunction */ .T)(ctx)) {
|
|
@@ -3575,11 +3577,17 @@ class Dom {
|
|
|
3575
3577
|
}
|
|
3576
3578
|
static replace(elm, newTagName, create, withAttributes = false, notMoveContent = false) {
|
|
3577
3579
|
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isHTML */ .AH)(newTagName)) {
|
|
3580
|
+
void 0;
|
|
3578
3581
|
newTagName = create.fromHTML(newTagName);
|
|
3579
3582
|
}
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
+
let tag;
|
|
3584
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .Kg)(newTagName)) {
|
|
3585
|
+
void 0;
|
|
3586
|
+
tag = create.element(newTagName);
|
|
3587
|
+
}
|
|
3588
|
+
else {
|
|
3589
|
+
tag = newTagName;
|
|
3590
|
+
}
|
|
3583
3591
|
if (!notMoveContent) {
|
|
3584
3592
|
while (elm.firstChild) {
|
|
3585
3593
|
tag.appendChild(elm.firstChild);
|
|
@@ -4043,7 +4051,7 @@ class Dom {
|
|
|
4043
4051
|
* Move all content to another element
|
|
4044
4052
|
*/
|
|
4045
4053
|
static moveContent(from, to, inStart = false, filter = () => true) {
|
|
4046
|
-
const fragment = (from.ownerDocument ||
|
|
4054
|
+
const fragment = (from.ownerDocument || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument).createDocumentFragment();
|
|
4047
4055
|
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(from.childNodes)
|
|
4048
4056
|
.filter(elm => {
|
|
4049
4057
|
if (filter(elm)) {
|
|
@@ -4504,7 +4512,7 @@ class EventEmitter {
|
|
|
4504
4512
|
passive: true,
|
|
4505
4513
|
capture: (_a = options === null || options === void 0 ? void 0 : options.capture) !== null && _a !== void 0 ? _a : false
|
|
4506
4514
|
}
|
|
4507
|
-
: (_b = options === null || options === void 0 ? void 0 : options.capture) !== null && _b !== void 0 ? _b : false;
|
|
4515
|
+
: ((_b = options === null || options === void 0 ? void 0 : options.capture) !== null && _b !== void 0 ? _b : false);
|
|
4508
4516
|
syntheticCallback.options = eOpts;
|
|
4509
4517
|
subject.addEventListener(event, syntheticCallback, eOpts);
|
|
4510
4518
|
this.__memoryDOMSubjectToHandler(subject, syntheticCallback);
|
|
@@ -4736,7 +4744,7 @@ class EventEmitter {
|
|
|
4736
4744
|
this.__domEventsMap = new Map();
|
|
4737
4745
|
this.__mutedEvents = new Set();
|
|
4738
4746
|
this.__key = '__JoditEventEmitterNamespaces';
|
|
4739
|
-
this.__doc =
|
|
4747
|
+
this.__doc = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
|
|
4740
4748
|
this.__prepareEvent = (e) => {
|
|
4741
4749
|
if (e.cancelBubble) {
|
|
4742
4750
|
return;
|
|
@@ -5232,9 +5240,20 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5232
5240
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
5233
5241
|
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
|
|
5234
5242
|
if (!data[key]) {
|
|
5235
|
-
let c = view.c
|
|
5236
|
-
|
|
5237
|
-
|
|
5243
|
+
let c = view.c;
|
|
5244
|
+
let body;
|
|
5245
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot) {
|
|
5246
|
+
body = jodit.o.shadowRoot;
|
|
5247
|
+
}
|
|
5248
|
+
else {
|
|
5249
|
+
body = jodit.od.body;
|
|
5250
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit)) {
|
|
5251
|
+
const dialog = _dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.closest(jodit.container, 'dialog', jodit.od.body);
|
|
5252
|
+
if (dialog) {
|
|
5253
|
+
body = dialog;
|
|
5254
|
+
}
|
|
5255
|
+
}
|
|
5256
|
+
}
|
|
5238
5257
|
if (createInsideEditor &&
|
|
5239
5258
|
(0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) &&
|
|
5240
5259
|
jodit.od !== jodit.ed) {
|
|
@@ -5252,6 +5271,7 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5252
5271
|
body.appendChild(box);
|
|
5253
5272
|
data[key] = box;
|
|
5254
5273
|
jodit.hookStatus('beforeDestruct', () => {
|
|
5274
|
+
view.events.off(box);
|
|
5255
5275
|
_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(box);
|
|
5256
5276
|
delete data[key];
|
|
5257
5277
|
if (Object.keys(data).length) {
|
|
@@ -5259,6 +5279,7 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5259
5279
|
}
|
|
5260
5280
|
});
|
|
5261
5281
|
boxes.set(jodit, data);
|
|
5282
|
+
view.events.fire('getContainer', box);
|
|
5262
5283
|
}
|
|
5263
5284
|
data[key].classList.remove('jodit_theme_default', 'jodit_theme_dark');
|
|
5264
5285
|
data[key].classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
@@ -5387,7 +5408,7 @@ const toArray = function toArray(...args) {
|
|
|
5387
5408
|
var _a;
|
|
5388
5409
|
const func = (0,jodit_core_helpers_checker_is_native_function__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from)
|
|
5389
5410
|
? Array.from
|
|
5390
|
-
: (_a = (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from')) !== null && _a !== void 0 ? _a : Array.from;
|
|
5411
|
+
: ((_a = (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from')) !== null && _a !== void 0 ? _a : Array.from);
|
|
5391
5412
|
return func.apply(Array, args);
|
|
5392
5413
|
};
|
|
5393
5414
|
|
|
@@ -5424,6 +5445,7 @@ const toArray = function toArray(...args) {
|
|
|
5424
5445
|
/* harmony export */ D: function() { return /* binding */ clearTimeout; },
|
|
5425
5446
|
/* harmony export */ w: function() { return /* binding */ setTimeout; }
|
|
5426
5447
|
/* harmony export */ });
|
|
5448
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5427
5449
|
/*!
|
|
5428
5450
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5429
5451
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5432,6 +5454,7 @@ const toArray = function toArray(...args) {
|
|
|
5432
5454
|
/**
|
|
5433
5455
|
* @module helpers/async
|
|
5434
5456
|
*/
|
|
5457
|
+
|
|
5435
5458
|
/**
|
|
5436
5459
|
* Create async callback if set timeout value - else call function immediately
|
|
5437
5460
|
*/
|
|
@@ -5440,7 +5463,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
5440
5463
|
callback.call(null, ...args);
|
|
5441
5464
|
}
|
|
5442
5465
|
else {
|
|
5443
|
-
return
|
|
5466
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.setTimeout(callback, timeout, ...args);
|
|
5444
5467
|
}
|
|
5445
5468
|
return 0;
|
|
5446
5469
|
}
|
|
@@ -5448,7 +5471,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
5448
5471
|
* Clear timeout
|
|
5449
5472
|
*/
|
|
5450
5473
|
function clearTimeout(timer) {
|
|
5451
|
-
|
|
5474
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.clearTimeout(timer);
|
|
5452
5475
|
}
|
|
5453
5476
|
|
|
5454
5477
|
|
|
@@ -5461,6 +5484,7 @@ function clearTimeout(timer) {
|
|
|
5461
5484
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5462
5485
|
/* harmony export */ k: function() { return /* binding */ hasBrowserColorPicker; }
|
|
5463
5486
|
/* harmony export */ });
|
|
5487
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5464
5488
|
/*!
|
|
5465
5489
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5466
5490
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5469,13 +5493,14 @@ function clearTimeout(timer) {
|
|
|
5469
5493
|
/**
|
|
5470
5494
|
* @module helpers/checker
|
|
5471
5495
|
*/
|
|
5496
|
+
|
|
5472
5497
|
/**
|
|
5473
5498
|
* Check if browser has a color picker (a new HTML5 attribute for input tag)
|
|
5474
5499
|
*/
|
|
5475
5500
|
function hasBrowserColorPicker() {
|
|
5476
5501
|
let supportsColor = true;
|
|
5477
5502
|
try {
|
|
5478
|
-
const a =
|
|
5503
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
|
|
5479
5504
|
a.type = 'color';
|
|
5480
5505
|
a.value = '!';
|
|
5481
5506
|
supportsColor = a.type === 'color' && a.value !== '!';
|
|
@@ -6125,6 +6150,7 @@ function isStringArray(value) {
|
|
|
6125
6150
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6126
6151
|
/* harmony export */ m: function() { return /* binding */ isURL; }
|
|
6127
6152
|
/* harmony export */ });
|
|
6153
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6128
6154
|
/*!
|
|
6129
6155
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6130
6156
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6133,6 +6159,7 @@ function isStringArray(value) {
|
|
|
6133
6159
|
/**
|
|
6134
6160
|
* @module helpers/checker
|
|
6135
6161
|
*/
|
|
6162
|
+
|
|
6136
6163
|
/**
|
|
6137
6164
|
* Check if a string is an url
|
|
6138
6165
|
*/
|
|
@@ -6149,7 +6176,7 @@ function isURL(str) {
|
|
|
6149
6176
|
return false;
|
|
6150
6177
|
}
|
|
6151
6178
|
}
|
|
6152
|
-
const a =
|
|
6179
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
6153
6180
|
a.href = str;
|
|
6154
6181
|
return Boolean(a.hostname);
|
|
6155
6182
|
}
|
|
@@ -6384,9 +6411,9 @@ function applyStyles(html) {
|
|
|
6384
6411
|
}
|
|
6385
6412
|
html = html.substring(html.indexOf('<html '), html.length);
|
|
6386
6413
|
html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
|
|
6387
|
-
const iframe =
|
|
6414
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
6388
6415
|
iframe.style.display = 'none';
|
|
6389
|
-
|
|
6416
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
6390
6417
|
let convertedString = '', collection = [];
|
|
6391
6418
|
try {
|
|
6392
6419
|
const iframeDoc = iframe.contentDocument ||
|
|
@@ -6457,9 +6484,10 @@ function applyStyles(html) {
|
|
|
6457
6484
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6458
6485
|
/* harmony export */ w: function() { return /* binding */ cleanFromWord; }
|
|
6459
6486
|
/* harmony export */ });
|
|
6460
|
-
/* harmony import */ var
|
|
6461
|
-
/* harmony import */ var
|
|
6462
|
-
/* harmony import */ var
|
|
6487
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6488
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
6489
|
+
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7773);
|
|
6490
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22718);
|
|
6463
6491
|
/*!
|
|
6464
6492
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6465
6493
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6471,6 +6499,7 @@ function applyStyles(html) {
|
|
|
6471
6499
|
|
|
6472
6500
|
|
|
6473
6501
|
|
|
6502
|
+
|
|
6474
6503
|
/**
|
|
6475
6504
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
6476
6505
|
* content that matches the look and feel of the site.
|
|
@@ -6482,11 +6511,11 @@ function cleanFromWord(html) {
|
|
|
6482
6511
|
}
|
|
6483
6512
|
let convertedString = '';
|
|
6484
6513
|
try {
|
|
6485
|
-
const div =
|
|
6514
|
+
const div = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
6486
6515
|
div.innerHTML = html;
|
|
6487
6516
|
const marks = [];
|
|
6488
6517
|
if (div.firstChild) {
|
|
6489
|
-
|
|
6518
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.each(div, node => {
|
|
6490
6519
|
if (!node) {
|
|
6491
6520
|
return;
|
|
6492
6521
|
}
|
|
@@ -6501,10 +6530,10 @@ function cleanFromWord(html) {
|
|
|
6501
6530
|
case 'W:SDT':
|
|
6502
6531
|
case 'W:SDTPR':
|
|
6503
6532
|
case 'FONT':
|
|
6504
|
-
|
|
6533
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(node);
|
|
6505
6534
|
break;
|
|
6506
6535
|
default:
|
|
6507
|
-
(0,
|
|
6536
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(node.attributes).forEach((attr) => {
|
|
6508
6537
|
if ([
|
|
6509
6538
|
'src',
|
|
6510
6539
|
'href',
|
|
@@ -6523,14 +6552,14 @@ function cleanFromWord(html) {
|
|
|
6523
6552
|
}
|
|
6524
6553
|
});
|
|
6525
6554
|
}
|
|
6526
|
-
|
|
6555
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove.apply(null, marks);
|
|
6527
6556
|
convertedString = div.innerHTML;
|
|
6528
6557
|
}
|
|
6529
6558
|
catch (e) { }
|
|
6530
6559
|
if (convertedString) {
|
|
6531
6560
|
html = convertedString;
|
|
6532
6561
|
}
|
|
6533
|
-
html = html.split(/(\n)/).filter(
|
|
6562
|
+
html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq).join('\n');
|
|
6534
6563
|
return html
|
|
6535
6564
|
.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
|
|
6536
6565
|
.replace(/<!--[^>]*>/g, '');
|
|
@@ -6546,6 +6575,7 @@ function cleanFromWord(html) {
|
|
|
6546
6575
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6547
6576
|
/* harmony export */ G: function() { return /* binding */ htmlspecialchars; }
|
|
6548
6577
|
/* harmony export */ });
|
|
6578
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6549
6579
|
/*!
|
|
6550
6580
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6551
6581
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6554,11 +6584,12 @@ function cleanFromWord(html) {
|
|
|
6554
6584
|
/**
|
|
6555
6585
|
* @module helpers/html
|
|
6556
6586
|
*/
|
|
6587
|
+
|
|
6557
6588
|
/**
|
|
6558
6589
|
* Convert special characters to HTML entities
|
|
6559
6590
|
*/
|
|
6560
6591
|
function htmlspecialchars(html) {
|
|
6561
|
-
const tmp =
|
|
6592
|
+
const tmp = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
6562
6593
|
tmp.textContent = html;
|
|
6563
6594
|
return tmp.innerHTML;
|
|
6564
6595
|
}
|
|
@@ -7059,7 +7090,8 @@ function normalizeKeyAliases(keys) {
|
|
|
7059
7090
|
ctrl: 2,
|
|
7060
7091
|
control: 2,
|
|
7061
7092
|
alt: 3,
|
|
7062
|
-
shift: 4
|
|
7093
|
+
shift: 4,
|
|
7094
|
+
space: 5
|
|
7063
7095
|
};
|
|
7064
7096
|
return keys
|
|
7065
7097
|
.replace(/\+\+/g, '+add')
|
|
@@ -7278,8 +7310,9 @@ const getContentWidth = (element, win) => {
|
|
|
7278
7310
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7279
7311
|
/* harmony export */ m: function() { return /* binding */ getScrollParent; }
|
|
7280
7312
|
/* harmony export */ });
|
|
7281
|
-
/* harmony import */ var
|
|
7282
|
-
/* harmony import */ var
|
|
7313
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
7314
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
7315
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
|
|
7283
7316
|
/*!
|
|
7284
7317
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7285
7318
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7287,19 +7320,20 @@ const getContentWidth = (element, win) => {
|
|
|
7287
7320
|
*/
|
|
7288
7321
|
|
|
7289
7322
|
|
|
7323
|
+
|
|
7290
7324
|
function getScrollParent(node) {
|
|
7291
7325
|
if (!node) {
|
|
7292
7326
|
return null;
|
|
7293
7327
|
}
|
|
7294
|
-
const isElement =
|
|
7295
|
-
const overflowY = isElement && (0,
|
|
7328
|
+
const isElement = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(node);
|
|
7329
|
+
const overflowY = isElement && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__.css)(node, 'overflowY');
|
|
7296
7330
|
const isScrollable = isElement && overflowY !== 'visible' && overflowY !== 'hidden';
|
|
7297
7331
|
if (isScrollable && node.scrollHeight >= node.clientHeight) {
|
|
7298
7332
|
return node;
|
|
7299
7333
|
}
|
|
7300
7334
|
return (getScrollParent(node.parentNode) ||
|
|
7301
|
-
|
|
7302
|
-
|
|
7335
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.scrollingElement ||
|
|
7336
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body);
|
|
7303
7337
|
}
|
|
7304
7338
|
|
|
7305
7339
|
|
|
@@ -7982,9 +8016,9 @@ function alignElement(command, box) {
|
|
|
7982
8016
|
/* harmony export */ w4: function() { return /* binding */ appendScriptAsync; },
|
|
7983
8017
|
/* harmony export */ x_: function() { return /* binding */ loadNextStyle; }
|
|
7984
8018
|
/* harmony export */ });
|
|
7985
|
-
/* harmony import */ var
|
|
8019
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
7986
8020
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
|
|
7987
|
-
/* harmony import */ var
|
|
8021
|
+
/* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5151);
|
|
7988
8022
|
/*!
|
|
7989
8023
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7990
8024
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7995,7 +8029,7 @@ function alignElement(command, box) {
|
|
|
7995
8029
|
|
|
7996
8030
|
const alreadyLoadedList = new Map();
|
|
7997
8031
|
const cacheLoaders = (loader) => {
|
|
7998
|
-
return (jodit, url) => (0,
|
|
8032
|
+
return (jodit, url) => (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__awaiter */ .sH)(void 0, void 0, void 0, function* () {
|
|
7999
8033
|
if (alreadyLoadedList.has(url)) {
|
|
8000
8034
|
return alreadyLoadedList.get(url);
|
|
8001
8035
|
}
|
|
@@ -8017,7 +8051,7 @@ const appendScriptAsync = cacheLoaders((jodit, url) => {
|
|
|
8017
8051
|
crossorigin: 'anonymous',
|
|
8018
8052
|
referrerpolicy: 'no-referrer',
|
|
8019
8053
|
async: true,
|
|
8020
|
-
src: (0,
|
|
8054
|
+
src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url)
|
|
8021
8055
|
});
|
|
8022
8056
|
jodit.od.body.appendChild(script);
|
|
8023
8057
|
jodit.e.on(script, 'error', reject).on(script, 'load', resolve);
|
|
@@ -8038,7 +8072,7 @@ const appendStyleAsync = cacheLoaders((jodit, url) => {
|
|
|
8038
8072
|
const callback = () => resolve(link);
|
|
8039
8073
|
!jodit.isInDestruct &&
|
|
8040
8074
|
jodit.e.on(link, 'load', callback).on(link, 'error', reject);
|
|
8041
|
-
link.href = (0,
|
|
8075
|
+
link.href = (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url);
|
|
8042
8076
|
if (jodit.o.shadowRoot) {
|
|
8043
8077
|
jodit.o.shadowRoot.appendChild(link);
|
|
8044
8078
|
}
|
|
@@ -8226,16 +8260,18 @@ const buildQuery = (data, prefix) => {
|
|
|
8226
8260
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8227
8261
|
/* harmony export */ X: function() { return /* binding */ completeUrl; }
|
|
8228
8262
|
/* harmony export */ });
|
|
8263
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8229
8264
|
/*!
|
|
8230
8265
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8231
8266
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8232
8267
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8233
8268
|
*/
|
|
8269
|
+
|
|
8234
8270
|
/**
|
|
8235
8271
|
* @module helpers/utils
|
|
8236
8272
|
*/
|
|
8237
8273
|
const completeUrl = (url) => {
|
|
8238
|
-
if (
|
|
8274
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
|
|
8239
8275
|
url = 'https:' + url;
|
|
8240
8276
|
}
|
|
8241
8277
|
return url;
|
|
@@ -8352,8 +8388,9 @@ function ConfigFlatten(obj) {
|
|
|
8352
8388
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8353
8389
|
/* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
|
|
8354
8390
|
/* harmony export */ });
|
|
8355
|
-
/* harmony import */ var
|
|
8356
|
-
/* harmony import */ var
|
|
8391
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8392
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
|
|
8393
|
+
/* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15896);
|
|
8357
8394
|
/*!
|
|
8358
8395
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8359
8396
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8364,14 +8401,15 @@ function ConfigFlatten(obj) {
|
|
|
8364
8401
|
*/
|
|
8365
8402
|
|
|
8366
8403
|
|
|
8404
|
+
|
|
8367
8405
|
/**
|
|
8368
8406
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8369
8407
|
*/
|
|
8370
8408
|
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8371
|
-
if (!(0,
|
|
8409
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8372
8410
|
return url;
|
|
8373
8411
|
}
|
|
8374
|
-
const parser =
|
|
8412
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8375
8413
|
parser.href = url;
|
|
8376
8414
|
if (!width) {
|
|
8377
8415
|
width = 400;
|
|
@@ -8397,7 +8435,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8397
8435
|
case 'youtu.be':
|
|
8398
8436
|
case 'www.youtu.be': {
|
|
8399
8437
|
const query = parser.search
|
|
8400
|
-
? (0,
|
|
8438
|
+
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8401
8439
|
: { v: parser.pathname.substr(1) };
|
|
8402
8440
|
return query.v
|
|
8403
8441
|
? '<iframe width="' +
|
|
@@ -8591,7 +8629,8 @@ const dataBind = (elm, key, value) => {
|
|
|
8591
8629
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8592
8630
|
/* harmony export */ e: function() { return /* binding */ defaultLanguage; }
|
|
8593
8631
|
/* harmony export */ });
|
|
8594
|
-
/* harmony import */ var
|
|
8632
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8633
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26986);
|
|
8595
8634
|
/*!
|
|
8596
8635
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8597
8636
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8601,15 +8640,16 @@ const dataBind = (elm, key, value) => {
|
|
|
8601
8640
|
* @module helpers/utils
|
|
8602
8641
|
*/
|
|
8603
8642
|
|
|
8643
|
+
|
|
8604
8644
|
/**
|
|
8605
8645
|
* Try define user language
|
|
8606
8646
|
*/
|
|
8607
8647
|
const defaultLanguage = (language, defaultLanguage = 'en') => {
|
|
8608
|
-
if (language !== 'auto' && (0,
|
|
8648
|
+
if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
|
|
8609
8649
|
return language;
|
|
8610
8650
|
}
|
|
8611
|
-
if (
|
|
8612
|
-
return
|
|
8651
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang) {
|
|
8652
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang;
|
|
8613
8653
|
}
|
|
8614
8654
|
if (navigator.language) {
|
|
8615
8655
|
return navigator.language.substring(0, 2);
|
|
@@ -9363,10 +9403,10 @@ const map = {};
|
|
|
9363
9403
|
function reset(key) {
|
|
9364
9404
|
var _a, _b;
|
|
9365
9405
|
if (!(key in map)) {
|
|
9366
|
-
const iframe =
|
|
9406
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
9367
9407
|
try {
|
|
9368
9408
|
iframe.src = 'about:blank';
|
|
9369
|
-
|
|
9409
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
9370
9410
|
if (!iframe.contentWindow) {
|
|
9371
9411
|
return null;
|
|
9372
9412
|
}
|
|
@@ -10299,14 +10339,15 @@ Plugin.requires = [];
|
|
|
10299
10339
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10300
10340
|
/* harmony export */ d: function() { return /* binding */ Ajax; }
|
|
10301
10341
|
/* harmony export */ });
|
|
10302
|
-
/* harmony import */ var
|
|
10342
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
10303
10343
|
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61341);
|
|
10304
|
-
/* harmony import */ var
|
|
10305
|
-
/* harmony import */ var
|
|
10306
|
-
/* harmony import */ var
|
|
10307
|
-
/* harmony import */ var
|
|
10308
|
-
/* harmony import */ var
|
|
10309
|
-
/* harmony import */ var
|
|
10344
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
|
|
10345
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33442);
|
|
10346
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
10347
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24839);
|
|
10348
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
10349
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91596);
|
|
10350
|
+
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(85349);
|
|
10310
10351
|
/*!
|
|
10311
10352
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10312
10353
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10320,33 +10361,34 @@ Plugin.requires = [];
|
|
|
10320
10361
|
|
|
10321
10362
|
|
|
10322
10363
|
|
|
10364
|
+
|
|
10323
10365
|
class Ajax {
|
|
10324
10366
|
className() {
|
|
10325
10367
|
return 'Ajax';
|
|
10326
10368
|
}
|
|
10327
|
-
constructor(options, defaultAjaxOptions =
|
|
10369
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
10328
10370
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
10329
10371
|
this.__isFulfilled = false;
|
|
10330
10372
|
this.__activated = false;
|
|
10331
10373
|
this.__isDestructed = false;
|
|
10332
|
-
this.options = (0,
|
|
10374
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
|
|
10333
10375
|
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
10334
10376
|
}
|
|
10335
10377
|
__buildParams(obj, prefix) {
|
|
10336
|
-
if ((0,
|
|
10378
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
|
|
10337
10379
|
this.options.contentType &&
|
|
10338
10380
|
this.options.contentType.includes('application/json')) {
|
|
10339
10381
|
return JSON.stringify(obj);
|
|
10340
10382
|
}
|
|
10341
|
-
if ((0,
|
|
10383
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
|
|
10342
10384
|
return this.o.queryBuild.call(this, obj, prefix);
|
|
10343
10385
|
}
|
|
10344
|
-
if ((0,
|
|
10345
|
-
obj instanceof
|
|
10346
|
-
(typeof obj === 'object' && obj != null && (0,
|
|
10386
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(obj) ||
|
|
10387
|
+
obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.globalWindow.FormData ||
|
|
10388
|
+
(typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(obj.append))) {
|
|
10347
10389
|
return obj;
|
|
10348
10390
|
}
|
|
10349
|
-
return (0,
|
|
10391
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
|
|
10350
10392
|
}
|
|
10351
10393
|
get o() {
|
|
10352
10394
|
return this.options;
|
|
@@ -10366,20 +10408,20 @@ class Ajax {
|
|
|
10366
10408
|
this.__activated = true;
|
|
10367
10409
|
const { xhr, o } = this;
|
|
10368
10410
|
const request = this.prepareRequest();
|
|
10369
|
-
return this.__async.promise((resolve, reject) => (0,
|
|
10411
|
+
return this.__async.promise((resolve, reject) => (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__awaiter */ .sH)(this, void 0, void 0, function* () {
|
|
10370
10412
|
var _a;
|
|
10371
10413
|
const onReject = () => {
|
|
10372
10414
|
this.__isFulfilled = true;
|
|
10373
|
-
reject(
|
|
10415
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
|
|
10374
10416
|
};
|
|
10375
10417
|
const onResolve = () => {
|
|
10376
10418
|
this.__isFulfilled = true;
|
|
10377
|
-
resolve(new
|
|
10419
|
+
resolve(new _response__WEBPACK_IMPORTED_MODULE_7__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
|
|
10378
10420
|
};
|
|
10379
10421
|
xhr.onload = onResolve;
|
|
10380
10422
|
xhr.onabort = () => {
|
|
10381
10423
|
this.__isFulfilled = true;
|
|
10382
|
-
reject(
|
|
10424
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
|
|
10383
10425
|
};
|
|
10384
10426
|
xhr.onerror = onReject;
|
|
10385
10427
|
xhr.ontimeout = onReject;
|
|
@@ -10403,7 +10445,7 @@ class Ajax {
|
|
|
10403
10445
|
}
|
|
10404
10446
|
else if (xhr.statusText) {
|
|
10405
10447
|
this.__isFulfilled = true;
|
|
10406
|
-
reject(
|
|
10448
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
|
|
10407
10449
|
}
|
|
10408
10450
|
}
|
|
10409
10451
|
};
|
|
@@ -10414,7 +10456,7 @@ class Ajax {
|
|
|
10414
10456
|
xhr.setRequestHeader('Content-type', o.contentType);
|
|
10415
10457
|
}
|
|
10416
10458
|
let { headers } = o;
|
|
10417
|
-
if ((0,
|
|
10459
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
|
|
10418
10460
|
headers = yield headers.call(this);
|
|
10419
10461
|
}
|
|
10420
10462
|
if (headers && xhr.setRequestHeader) {
|
|
@@ -10430,22 +10472,22 @@ class Ajax {
|
|
|
10430
10472
|
}
|
|
10431
10473
|
prepareRequest() {
|
|
10432
10474
|
if (!this.o.url) {
|
|
10433
|
-
throw
|
|
10475
|
+
throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
|
|
10434
10476
|
}
|
|
10435
10477
|
let url = this.o.url;
|
|
10436
10478
|
const data = this.o.data;
|
|
10437
10479
|
const method = (this.o.method || 'get').toLowerCase();
|
|
10438
|
-
if (method === 'get' && data && (0,
|
|
10480
|
+
if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
|
|
10439
10481
|
const qIndex = url.indexOf('?');
|
|
10440
10482
|
if (qIndex !== -1) {
|
|
10441
|
-
const urlData = (0,
|
|
10483
|
+
const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
|
|
10442
10484
|
url =
|
|
10443
10485
|
url.substring(0, qIndex) +
|
|
10444
10486
|
'?' +
|
|
10445
|
-
(0,
|
|
10487
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(Object.assign(Object.assign({}, urlData), data));
|
|
10446
10488
|
}
|
|
10447
10489
|
else {
|
|
10448
|
-
url += '?' + (0,
|
|
10490
|
+
url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
|
|
10449
10491
|
}
|
|
10450
10492
|
}
|
|
10451
10493
|
const request = {
|
|
@@ -10469,8 +10511,8 @@ class Ajax {
|
|
|
10469
10511
|
}
|
|
10470
10512
|
}
|
|
10471
10513
|
Ajax.log = [];
|
|
10472
|
-
(0,
|
|
10473
|
-
|
|
10514
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
10515
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
|
|
10474
10516
|
], Ajax.prototype, "destruct", null);
|
|
10475
10517
|
|
|
10476
10518
|
|
|
@@ -11366,6 +11408,7 @@ class Selection {
|
|
|
11366
11408
|
/**
|
|
11367
11409
|
* Call callback for all selection node
|
|
11368
11410
|
*/
|
|
11411
|
+
// eslint-disable-next-line complexity
|
|
11369
11412
|
eachSelection(callback) {
|
|
11370
11413
|
var _a;
|
|
11371
11414
|
const sel = this.sel;
|
|
@@ -12150,12 +12193,13 @@ function getSuitParent(style, node, root) {
|
|
|
12150
12193
|
/* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
|
|
12151
12194
|
/* harmony export */ g: function() { return /* binding */ hasSameStyle; }
|
|
12152
12195
|
/* harmony export */ });
|
|
12153
|
-
/* harmony import */ var
|
|
12154
|
-
/* harmony import */ var
|
|
12155
|
-
/* harmony import */ var
|
|
12156
|
-
/* harmony import */ var
|
|
12157
|
-
/* harmony import */ var
|
|
12158
|
-
/* harmony import */ var
|
|
12196
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
12197
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
12198
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74197);
|
|
12199
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43581);
|
|
12200
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
12201
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
12202
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4401);
|
|
12159
12203
|
/*!
|
|
12160
12204
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12161
12205
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12166,48 +12210,53 @@ function getSuitParent(style, node, root) {
|
|
|
12166
12210
|
|
|
12167
12211
|
|
|
12168
12212
|
|
|
12213
|
+
|
|
12169
12214
|
/**
|
|
12170
12215
|
* Element has the same styles as in the commit
|
|
12171
12216
|
* @private
|
|
12172
12217
|
*/
|
|
12173
12218
|
function hasSameStyle(elm, rules) {
|
|
12174
|
-
return Boolean(!
|
|
12175
|
-
|
|
12219
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
12220
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
12176
12221
|
Object.keys(rules).every(property => {
|
|
12177
|
-
const value = (0,
|
|
12222
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12178
12223
|
if (value === '' &&
|
|
12179
12224
|
(rules[property] === '' || rules[property] == null)) {
|
|
12180
12225
|
return true;
|
|
12181
12226
|
}
|
|
12182
|
-
return (!(0,
|
|
12227
|
+
return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
|
|
12183
12228
|
value !== '' &&
|
|
12184
|
-
!(0,
|
|
12185
|
-
(0,
|
|
12229
|
+
!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(rules[property]) &&
|
|
12230
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__/* .normalizeCssValue */ .iy)(property, rules[property])
|
|
12186
12231
|
.toString()
|
|
12187
12232
|
.toLowerCase() === value.toString().toLowerCase());
|
|
12188
12233
|
}));
|
|
12189
12234
|
}
|
|
12190
|
-
|
|
12191
|
-
elm
|
|
12192
|
-
|
|
12193
|
-
void 0;
|
|
12194
|
-
void 0;
|
|
12235
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
12236
|
+
const elm = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
12237
|
+
elm.style.color = 'red';
|
|
12238
|
+
void 0;
|
|
12239
|
+
void 0;
|
|
12240
|
+
void 0;
|
|
12241
|
+
}
|
|
12195
12242
|
/**
|
|
12196
12243
|
* Element has the similar styles keys
|
|
12197
12244
|
*/
|
|
12198
12245
|
function hasSameStyleKeys(elm, rules) {
|
|
12199
|
-
return Boolean(!
|
|
12200
|
-
|
|
12246
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
12247
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
12201
12248
|
Object.keys(rules).every(property => {
|
|
12202
|
-
const value = (0,
|
|
12249
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12203
12250
|
return value !== '';
|
|
12204
12251
|
}));
|
|
12205
12252
|
}
|
|
12206
|
-
|
|
12207
|
-
elm2
|
|
12208
|
-
|
|
12209
|
-
void 0;
|
|
12210
|
-
void 0;
|
|
12253
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
12254
|
+
const elm2 = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
12255
|
+
elm2.style.color = 'red';
|
|
12256
|
+
void 0;
|
|
12257
|
+
void 0;
|
|
12258
|
+
void 0;
|
|
12259
|
+
}
|
|
12211
12260
|
|
|
12212
12261
|
|
|
12213
12262
|
/***/ }),
|
|
@@ -12590,16 +12639,17 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12590
12639
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12591
12640
|
/* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
|
|
12592
12641
|
/* harmony export */ });
|
|
12593
|
-
/* harmony import */ var
|
|
12594
|
-
/* harmony import */ var
|
|
12595
|
-
/* harmony import */ var
|
|
12596
|
-
/* harmony import */ var
|
|
12597
|
-
/* harmony import */ var
|
|
12598
|
-
/* harmony import */ var
|
|
12599
|
-
/* harmony import */ var
|
|
12600
|
-
/* harmony import */ var
|
|
12601
|
-
/* harmony import */ var
|
|
12602
|
-
/* harmony import */ var
|
|
12642
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
12643
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
12644
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
12645
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58588);
|
|
12646
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43581);
|
|
12647
|
+
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88455);
|
|
12648
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18014);
|
|
12649
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71122);
|
|
12650
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4401);
|
|
12651
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49382);
|
|
12652
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43072);
|
|
12603
12653
|
/*!
|
|
12604
12654
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12605
12655
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12615,6 +12665,7 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12615
12665
|
|
|
12616
12666
|
|
|
12617
12667
|
|
|
12668
|
+
|
|
12618
12669
|
const tak = 'toggleAttributes';
|
|
12619
12670
|
/**
|
|
12620
12671
|
* Toggles attributes
|
|
@@ -12626,7 +12677,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12626
12677
|
}
|
|
12627
12678
|
!dry && commitStyle.setApplied(elm, tak);
|
|
12628
12679
|
const { attributes } = commitStyle.options;
|
|
12629
|
-
if (attributes && (0,
|
|
12680
|
+
if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
|
|
12630
12681
|
Object.keys(attributes).forEach((key) => {
|
|
12631
12682
|
const value = attributes[key];
|
|
12632
12683
|
switch (key) {
|
|
@@ -12648,24 +12699,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12648
12699
|
function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
12649
12700
|
void 0;
|
|
12650
12701
|
Object.keys(style).forEach((rule) => {
|
|
12651
|
-
const inlineValue = elm.style.getPropertyValue((0,
|
|
12702
|
+
const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__/* .kebabCase */ .k)(rule));
|
|
12652
12703
|
const newValue = style[rule];
|
|
12653
12704
|
if (inlineValue === '' && newValue == null) {
|
|
12654
12705
|
return;
|
|
12655
12706
|
}
|
|
12656
12707
|
if (getNativeCSSValue(jodit, elm, rule) ===
|
|
12657
|
-
(0,
|
|
12708
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
|
|
12658
12709
|
if (!inlineValue) {
|
|
12659
12710
|
return;
|
|
12660
12711
|
}
|
|
12661
|
-
!dry && (0,
|
|
12662
|
-
mode =
|
|
12712
|
+
!dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, null);
|
|
12713
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12663
12714
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12664
12715
|
return;
|
|
12665
12716
|
}
|
|
12666
|
-
mode =
|
|
12717
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12667
12718
|
if (!dry) {
|
|
12668
|
-
(0,
|
|
12719
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
|
|
12669
12720
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12670
12721
|
}
|
|
12671
12722
|
});
|
|
@@ -12673,19 +12724,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
|
12673
12724
|
}
|
|
12674
12725
|
function toggleClass(jodit, value, elm, mode, dry) {
|
|
12675
12726
|
void 0;
|
|
12676
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12727
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12677
12728
|
if (elm.classList.contains(value.toString())) {
|
|
12678
|
-
mode =
|
|
12729
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12679
12730
|
if (!dry) {
|
|
12680
12731
|
elm.classList.remove(value);
|
|
12681
12732
|
if (elm.classList.length === 0) {
|
|
12682
|
-
(0,
|
|
12733
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
|
|
12683
12734
|
hook(mode, elm, 'class', null);
|
|
12684
12735
|
}
|
|
12685
12736
|
}
|
|
12686
12737
|
}
|
|
12687
12738
|
else {
|
|
12688
|
-
mode =
|
|
12739
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12689
12740
|
if (!dry) {
|
|
12690
12741
|
elm.classList.add(value);
|
|
12691
12742
|
hook(mode, elm, 'class', value);
|
|
@@ -12695,16 +12746,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
|
|
|
12695
12746
|
}
|
|
12696
12747
|
function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
12697
12748
|
void 0;
|
|
12698
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12699
|
-
if ((0,
|
|
12700
|
-
!dry && (0,
|
|
12701
|
-
mode =
|
|
12749
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12750
|
+
if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key) === value) {
|
|
12751
|
+
!dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, null);
|
|
12752
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12702
12753
|
!dry && hook(mode, elm, key, value);
|
|
12703
12754
|
return mode;
|
|
12704
12755
|
}
|
|
12705
|
-
mode =
|
|
12756
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12706
12757
|
if (!dry) {
|
|
12707
|
-
(0,
|
|
12758
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
|
|
12708
12759
|
hook(mode, elm, key, value);
|
|
12709
12760
|
}
|
|
12710
12761
|
return mode;
|
|
@@ -12714,11 +12765,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
|
12714
12765
|
* and if it is default, it removes the element itself
|
|
12715
12766
|
*/
|
|
12716
12767
|
function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
12717
|
-
if (!(0,
|
|
12718
|
-
(0,
|
|
12768
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style')) {
|
|
12769
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style', null);
|
|
12719
12770
|
if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
|
|
12720
|
-
|
|
12721
|
-
mode =
|
|
12771
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(elm);
|
|
12772
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNWRAP */ .OJ;
|
|
12722
12773
|
}
|
|
12723
12774
|
}
|
|
12724
12775
|
return mode;
|
|
@@ -12728,12 +12779,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
|
12728
12779
|
*/
|
|
12729
12780
|
function getShadowRoot(jodit) {
|
|
12730
12781
|
var _a;
|
|
12731
|
-
if ((0,
|
|
12732
|
-
return (0,
|
|
12782
|
+
if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
|
|
12783
|
+
return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
|
|
12733
12784
|
}
|
|
12734
|
-
const container = (0,
|
|
12735
|
-
const iframe =
|
|
12736
|
-
(0,
|
|
12785
|
+
const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(jodit);
|
|
12786
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
12787
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(iframe, {
|
|
12737
12788
|
width: 0,
|
|
12738
12789
|
height: 0,
|
|
12739
12790
|
position: 'absolute',
|
|
@@ -12743,7 +12794,7 @@ function getShadowRoot(jodit) {
|
|
|
12743
12794
|
container.appendChild(iframe);
|
|
12744
12795
|
const doc = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document;
|
|
12745
12796
|
const shadowRoot = !doc ? jodit.od.body : doc.body;
|
|
12746
|
-
(0,
|
|
12797
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
|
|
12747
12798
|
return shadowRoot;
|
|
12748
12799
|
}
|
|
12749
12800
|
/**
|
|
@@ -12754,8 +12805,8 @@ function getNativeCSSValue(jodit, elm, key) {
|
|
|
12754
12805
|
newElm.style.cssText = elm.style.cssText;
|
|
12755
12806
|
const root = getShadowRoot(jodit);
|
|
12756
12807
|
root.appendChild(newElm);
|
|
12757
|
-
const result = (0,
|
|
12758
|
-
|
|
12808
|
+
const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(newElm, key);
|
|
12809
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(newElm);
|
|
12759
12810
|
return result;
|
|
12760
12811
|
}
|
|
12761
12812
|
|
|
@@ -14112,15 +14163,21 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
|
|
|
14112
14163
|
if (!view.o.textIcons &&
|
|
14113
14164
|
view.o.showTooltip &&
|
|
14114
14165
|
!view.o.useNativeTooltip) {
|
|
14166
|
+
this.j.e.on('getContainer', (box) => {
|
|
14167
|
+
this.__onAttach(box);
|
|
14168
|
+
});
|
|
14115
14169
|
view.hookStatus(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.ready, () => {
|
|
14116
|
-
|
|
14117
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14118
|
-
view.e.on(view.container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14119
|
-
capture: true
|
|
14120
|
-
});
|
|
14170
|
+
this.__onAttach(this.j.container);
|
|
14121
14171
|
});
|
|
14122
14172
|
}
|
|
14123
14173
|
}
|
|
14174
|
+
__onAttach(container) {
|
|
14175
|
+
// TODO Move it inside __show method. Now it is here because testcase failed with capturing
|
|
14176
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
|
|
14177
|
+
this.j.e.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
|
|
14178
|
+
capture: true
|
|
14179
|
+
});
|
|
14180
|
+
}
|
|
14124
14181
|
__addListenersOnEnter() {
|
|
14125
14182
|
if (this.__listenClose) {
|
|
14126
14183
|
return;
|
|
@@ -14740,6 +14797,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
|
|
|
14740
14797
|
}
|
|
14741
14798
|
createContainer(options) {
|
|
14742
14799
|
this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
|
|
14800
|
+
tooltip: options.tooltip,
|
|
14743
14801
|
icon: {
|
|
14744
14802
|
name: 'plus'
|
|
14745
14803
|
}
|
|
@@ -15167,8 +15225,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15167
15225
|
/* harmony export */ required: function() { return /* binding */ required; },
|
|
15168
15226
|
/* harmony export */ url: function() { return /* binding */ url; }
|
|
15169
15227
|
/* harmony export */ });
|
|
15170
|
-
/* harmony import */ var
|
|
15171
|
-
/* harmony import */ var
|
|
15228
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
|
|
15229
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
|
|
15172
15230
|
/*!
|
|
15173
15231
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15174
15232
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15180,7 +15238,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15180
15238
|
* Input is required
|
|
15181
15239
|
*/
|
|
15182
15240
|
const required = function (input) {
|
|
15183
|
-
if (!(0,
|
|
15241
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
|
|
15184
15242
|
input.error = 'Please fill out this field';
|
|
15185
15243
|
return false;
|
|
15186
15244
|
}
|
|
@@ -15190,7 +15248,7 @@ const required = function (input) {
|
|
|
15190
15248
|
* Input value should be valid URL
|
|
15191
15249
|
*/
|
|
15192
15250
|
const url = function (input) {
|
|
15193
|
-
if (!(0,
|
|
15251
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__/* .isURL */ .m)((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value))) {
|
|
15194
15252
|
input.error = 'Please enter a web address';
|
|
15195
15253
|
return false;
|
|
15196
15254
|
}
|
|
@@ -17829,6 +17887,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17829
17887
|
}
|
|
17830
17888
|
}
|
|
17831
17889
|
catch (e) {
|
|
17890
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
17891
|
+
throw e;
|
|
17892
|
+
}
|
|
17832
17893
|
this.destruct();
|
|
17833
17894
|
throw e;
|
|
17834
17895
|
}
|
|
@@ -19807,10 +19868,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
|
|
|
19807
19868
|
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
19808
19869
|
upload: {
|
|
19809
19870
|
icon: 'plus',
|
|
19871
|
+
tooltip: 'Upload file',
|
|
19810
19872
|
isInput: true,
|
|
19811
19873
|
isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
|
|
19812
|
-
getContent: (filebrowser) => {
|
|
19874
|
+
getContent: (filebrowser, btnInt) => {
|
|
19813
19875
|
const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
19876
|
+
tooltip: btnInt.control.tooltip,
|
|
19814
19877
|
onlyImages: filebrowser.state.onlyImages
|
|
19815
19878
|
});
|
|
19816
19879
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -19819,6 +19882,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19819
19882
|
},
|
|
19820
19883
|
remove: {
|
|
19821
19884
|
icon: 'bin',
|
|
19885
|
+
tooltip: 'Remove file',
|
|
19822
19886
|
isDisabled: (browser) => {
|
|
19823
19887
|
return (!browser.state.activeElements.length ||
|
|
19824
19888
|
!browser.dataProvider.canI('FileRemove'));
|
|
@@ -19828,11 +19892,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19828
19892
|
}
|
|
19829
19893
|
},
|
|
19830
19894
|
update: {
|
|
19895
|
+
tooltip: 'Update file list',
|
|
19831
19896
|
exec: (editor) => {
|
|
19832
19897
|
editor.e.fire('update.filebrowser');
|
|
19833
19898
|
}
|
|
19834
19899
|
},
|
|
19835
19900
|
select: {
|
|
19901
|
+
tooltip: 'Select file',
|
|
19836
19902
|
icon: 'check',
|
|
19837
19903
|
isDisabled: (browser) => !browser.state.activeElements.length,
|
|
19838
19904
|
exec: (editor) => {
|
|
@@ -19840,6 +19906,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19840
19906
|
}
|
|
19841
19907
|
},
|
|
19842
19908
|
edit: {
|
|
19909
|
+
tooltip: 'Edit image',
|
|
19843
19910
|
icon: 'pencil',
|
|
19844
19911
|
isDisabled: (browser) => {
|
|
19845
19912
|
const selected = browser.state.activeElements;
|
|
@@ -19853,6 +19920,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19853
19920
|
}
|
|
19854
19921
|
},
|
|
19855
19922
|
tiles: {
|
|
19923
|
+
tooltip: 'Tiles view',
|
|
19856
19924
|
icon: 'th',
|
|
19857
19925
|
isActive: (filebrowser) => filebrowser.state.view === 'tiles',
|
|
19858
19926
|
exec: (filebrowser) => {
|
|
@@ -19860,6 +19928,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19860
19928
|
}
|
|
19861
19929
|
},
|
|
19862
19930
|
list: {
|
|
19931
|
+
tooltip: 'List view',
|
|
19863
19932
|
icon: 'th-list',
|
|
19864
19933
|
isActive: (filebrowser) => filebrowser.state.view === 'list',
|
|
19865
19934
|
exec: (filebrowser) => {
|
|
@@ -20276,7 +20345,6 @@ let DataProvider = class DataProvider {
|
|
|
20276
20345
|
data: {}
|
|
20277
20346
|
};
|
|
20278
20347
|
}
|
|
20279
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
20280
20348
|
const query = this.o[type];
|
|
20281
20349
|
if (query.data === undefined) {
|
|
20282
20350
|
query.data = {
|
|
@@ -20526,7 +20594,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20526
20594
|
get dataProvider() {
|
|
20527
20595
|
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
20528
20596
|
}
|
|
20529
|
-
// eslint-disable-next-line no-unused-vars
|
|
20530
20597
|
onSelect(callback) {
|
|
20531
20598
|
return () => {
|
|
20532
20599
|
if (this.state.activeElements.length) {
|
|
@@ -23048,7 +23115,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23048
23115
|
const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
|
|
23049
23116
|
selector && selectors.push(selector);
|
|
23050
23117
|
});
|
|
23051
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
23052
23118
|
style.innerHTML = selectors.length
|
|
23053
23119
|
? selectors.join(',') +
|
|
23054
23120
|
`{${this.jodit.options.table.selectionCellStyle}}`
|
|
@@ -23267,46 +23333,39 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23267
23333
|
removeRow(table, rowIndex) {
|
|
23268
23334
|
return Table.__removeRow(table, rowIndex);
|
|
23269
23335
|
}
|
|
23270
|
-
|
|
23336
|
+
/**
|
|
23337
|
+
* Insert column before / after all the columns containing the selected cells
|
|
23338
|
+
*/
|
|
23339
|
+
appendColumn(table, selectedCell, insertAfter = true) {
|
|
23271
23340
|
const box = Table.__formalMatrix(table);
|
|
23272
|
-
|
|
23273
|
-
|
|
23274
|
-
|
|
23275
|
-
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
|
|
23281
|
-
|
|
23282
|
-
|
|
23283
|
-
|
|
23284
|
-
|
|
23285
|
-
|
|
23286
|
-
else {
|
|
23287
|
-
td.parentNode && td.parentNode.appendChild(cell);
|
|
23288
|
-
}
|
|
23289
|
-
added = true;
|
|
23341
|
+
if (!insertAfter && jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isCell(selectedCell.previousElementSibling)) {
|
|
23342
|
+
return this.appendColumn(table, selectedCell.previousElementSibling, true);
|
|
23343
|
+
}
|
|
23344
|
+
const columnIndex = insertAfter
|
|
23345
|
+
? selectedCell.cellIndex + ((selectedCell.colSpan || 1) - 1)
|
|
23346
|
+
: selectedCell.cellIndex;
|
|
23347
|
+
const newColumnIndex = insertAfter ? columnIndex + 1 : columnIndex;
|
|
23348
|
+
for (let i = 0; i < box.length;) {
|
|
23349
|
+
const cells = box[i];
|
|
23350
|
+
if (cells[columnIndex] !== cells[newColumnIndex] ||
|
|
23351
|
+
columnIndex === newColumnIndex) {
|
|
23352
|
+
const cell = this.j.createInside.element('td');
|
|
23353
|
+
if (insertAfter) {
|
|
23354
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.after(cells[columnIndex], cell);
|
|
23290
23355
|
}
|
|
23291
|
-
|
|
23292
|
-
|
|
23293
|
-
|
|
23294
|
-
|
|
23295
|
-
|
|
23296
|
-
added = true;
|
|
23356
|
+
else {
|
|
23357
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.before(cells[columnIndex], cell);
|
|
23358
|
+
}
|
|
23359
|
+
if (cells[columnIndex].rowSpan > 1) {
|
|
23360
|
+
cell.rowSpan = cells[columnIndex].rowSpan;
|
|
23297
23361
|
}
|
|
23298
23362
|
}
|
|
23299
|
-
|
|
23300
|
-
|
|
23363
|
+
else {
|
|
23364
|
+
cells[columnIndex].colSpan += 1;
|
|
23301
23365
|
}
|
|
23366
|
+
i += cells[columnIndex].rowSpan || 1;
|
|
23302
23367
|
}
|
|
23303
23368
|
}
|
|
23304
|
-
/**
|
|
23305
|
-
* Insert column before / after all the columns containing the selected cells
|
|
23306
|
-
*/
|
|
23307
|
-
appendColumn(table, j, after) {
|
|
23308
|
-
return Table.__appendColumn(table, j, after, this.j.createInside);
|
|
23309
|
-
}
|
|
23310
23369
|
static __removeColumn(table, j) {
|
|
23311
23370
|
const box = Table.__formalMatrix(table);
|
|
23312
23371
|
let dec;
|
|
@@ -23524,7 +23583,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23524
23583
|
alreadyMerged.delete(first);
|
|
23525
23584
|
Table.__unmark(__marked);
|
|
23526
23585
|
Table.__normalizeTable(table);
|
|
23527
|
-
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(
|
|
23586
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.toArray)(table.rows).forEach(tr => {
|
|
23528
23587
|
if (!tr.cells.length) {
|
|
23529
23588
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(tr);
|
|
23530
23589
|
}
|
|
@@ -23533,7 +23592,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23533
23592
|
}
|
|
23534
23593
|
}
|
|
23535
23594
|
/**
|
|
23536
|
-
* It combines all
|
|
23595
|
+
* It combines all the selected cells into one. The contents of the cells will also be combined
|
|
23537
23596
|
*/
|
|
23538
23597
|
mergeSelected(table) {
|
|
23539
23598
|
return Table.__mergeSelected(table, this.j);
|
|
@@ -25874,7 +25933,9 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Plugin {
|
|
|
25874
25933
|
editor.e
|
|
25875
25934
|
.off(editor.editor, '.' + ns)
|
|
25876
25935
|
.off(editor.container, '.' + ns)
|
|
25936
|
+
.off('.' + ns)
|
|
25877
25937
|
.on([editor.ow, editor.ew, editor.editor], 'scroll' + '.' + ns, this.__hideForce)
|
|
25938
|
+
.on('finishedCleanHTMLWorker' + '.' + ns, this.__hideForce)
|
|
25878
25939
|
.on(editor.editor, 'click' + '.' + ns, this.__hide)
|
|
25879
25940
|
.on(editor.container, 'mouseleave' + '.' + ns, this.__hide)
|
|
25880
25941
|
.on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
|
|
@@ -25962,7 +26023,8 @@ class addNewLine extends jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Plugin {
|
|
|
25962
26023
|
jodit_modules__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.__line);
|
|
25963
26024
|
this.j.e
|
|
25964
26025
|
.off([this.j.ow, this.j.ew, this.j.editor], '.' + ns)
|
|
25965
|
-
.off(this.j.container, '.' + ns)
|
|
26026
|
+
.off(this.j.container, '.' + ns)
|
|
26027
|
+
.off('.' + ns);
|
|
25966
26028
|
}
|
|
25967
26029
|
}
|
|
25968
26030
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
@@ -26853,6 +26915,7 @@ function checkNotCollapsed(jodit) {
|
|
|
26853
26915
|
* ```
|
|
26854
26916
|
* @private
|
|
26855
26917
|
*/
|
|
26918
|
+
// eslint-disable-next-line complexity
|
|
26856
26919
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26857
26920
|
var _a, _b;
|
|
26858
26921
|
const step = backspace ? -1 : 1;
|
|
@@ -28147,13 +28210,21 @@ function allowAttributes(jodit, nodeElm, hadEffect, allow) {
|
|
|
28147
28210
|
*/
|
|
28148
28211
|
|
|
28149
28212
|
|
|
28213
|
+
const TABLE_CONTAINER_TAGS = new Set([
|
|
28214
|
+
'table',
|
|
28215
|
+
'tbody',
|
|
28216
|
+
'thead',
|
|
28217
|
+
'tfoot',
|
|
28218
|
+
'tr'
|
|
28219
|
+
]);
|
|
28150
28220
|
/**
|
|
28151
28221
|
* @private
|
|
28152
28222
|
*/
|
|
28153
28223
|
function fillEmptyParagraph(jodit, nodeElm, hadEffect) {
|
|
28154
28224
|
if (jodit.o.cleanHTML.fillEmptyParagraph &&
|
|
28155
28225
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isBlock(nodeElm) &&
|
|
28156
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)
|
|
28226
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isEmpty(nodeElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS) &&
|
|
28227
|
+
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(nodeElm, TABLE_CONTAINER_TAGS)) {
|
|
28157
28228
|
const br = jodit.createInside.element('br');
|
|
28158
28229
|
nodeElm.appendChild(br);
|
|
28159
28230
|
return true;
|
|
@@ -31376,7 +31447,8 @@ class hotkeys extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin *
|
|
|
31376
31447
|
constructor() {
|
|
31377
31448
|
super(...arguments);
|
|
31378
31449
|
this.onKeyPress = (event) => {
|
|
31379
|
-
const special = this.specialKeys[event.which]
|
|
31450
|
+
const special = this.specialKeys[event.which];
|
|
31451
|
+
const character = (event.key || String.fromCharCode(event.which)).toLowerCase();
|
|
31380
31452
|
const modif = [special || character];
|
|
31381
31453
|
['alt', 'ctrl', 'shift', 'meta'].forEach(specialKey => {
|
|
31382
31454
|
if (event[specialKey + 'Key'] && special !== specialKey) {
|
|
@@ -31470,7 +31542,8 @@ class hotkeys extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin *
|
|
|
31470
31542
|
}
|
|
31471
31543
|
})
|
|
31472
31544
|
.on('keydown.hotkeys', (event) => {
|
|
31473
|
-
const shortcut = this.onKeyPress(event)
|
|
31545
|
+
const shortcut = this.onKeyPress(event);
|
|
31546
|
+
const stop = {
|
|
31474
31547
|
shouldStop: true
|
|
31475
31548
|
};
|
|
31476
31549
|
const resultOfFire = this.j.e.fire(shortcut + '.hotkey', event.type, stop);
|
|
@@ -31644,6 +31717,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
|
|
|
31644
31717
|
'-ms-user-select: none' +
|
|
31645
31718
|
'}';
|
|
31646
31719
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
|
|
31720
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
|
|
31647
31721
|
|
|
31648
31722
|
|
|
31649
31723
|
/***/ }),
|
|
@@ -31720,6 +31794,9 @@ function iframe(editor) {
|
|
|
31720
31794
|
iframe.setAttribute('allowtransparency', 'true');
|
|
31721
31795
|
iframe.setAttribute('tabindex', opt.tabIndex.toString());
|
|
31722
31796
|
iframe.setAttribute('frameborder', '0');
|
|
31797
|
+
if (opt.iframeSandbox != null) {
|
|
31798
|
+
iframe.setAttribute('sandbox', opt.iframeSandbox);
|
|
31799
|
+
}
|
|
31723
31800
|
editor.workplace.appendChild(iframe);
|
|
31724
31801
|
editor.iframe = iframe;
|
|
31725
31802
|
const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
|
|
@@ -37525,13 +37602,13 @@ function generateCriticalCSS(jodit) {
|
|
|
37525
37602
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
37526
37603
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33465);
|
|
37527
37604
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
37528
|
-
/* harmony import */ var
|
|
37529
|
-
/* harmony import */ var
|
|
37530
|
-
/* harmony import */ var
|
|
37531
|
-
/* harmony import */ var
|
|
37532
|
-
/* harmony import */ var
|
|
37533
|
-
/* harmony import */ var
|
|
37534
|
-
/* harmony import */ var
|
|
37605
|
+
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54614);
|
|
37606
|
+
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85769);
|
|
37607
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80004);
|
|
37608
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
|
|
37609
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86134);
|
|
37610
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26899);
|
|
37611
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
37535
37612
|
/*!
|
|
37536
37613
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37537
37614
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37546,8 +37623,8 @@ function generateCriticalCSS(jodit) {
|
|
|
37546
37623
|
|
|
37547
37624
|
|
|
37548
37625
|
|
|
37549
|
-
|
|
37550
|
-
|
|
37626
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
37627
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.print = {
|
|
37551
37628
|
exec: (editor) => {
|
|
37552
37629
|
const iframe = editor.create.element('iframe');
|
|
37553
37630
|
Object.assign(iframe.style, {
|
|
@@ -37558,7 +37635,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
37558
37635
|
height: 0,
|
|
37559
37636
|
border: 0
|
|
37560
37637
|
});
|
|
37561
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
37638
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T).appendChild(iframe);
|
|
37562
37639
|
const afterFinishPrint = () => {
|
|
37563
37640
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
37564
37641
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -37574,12 +37651,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
37574
37651
|
}
|
|
37575
37652
|
else {
|
|
37576
37653
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
37577
|
-
(0,
|
|
37654
|
+
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
37578
37655
|
'"><head><title></title></head><style>' +
|
|
37579
|
-
(0,
|
|
37656
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
|
|
37580
37657
|
'</style><body></body></html>');
|
|
37581
37658
|
myWindow.document.close();
|
|
37582
|
-
(0,
|
|
37659
|
+
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
37583
37660
|
}
|
|
37584
37661
|
const style = myWindow.document.createElement('style');
|
|
37585
37662
|
style.innerHTML = `@media print {
|
|
@@ -38655,10 +38732,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38655
38732
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
38656
38733
|
|
|
38657
38734
|
"use strict";
|
|
38658
|
-
/* harmony import */ var
|
|
38659
|
-
/* harmony import */ var
|
|
38660
|
-
/* harmony import */ var
|
|
38661
|
-
/* harmony import */ var
|
|
38735
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
38736
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
38737
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
38738
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98973);
|
|
38739
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
38662
38740
|
/*!
|
|
38663
38741
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38664
38742
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38668,14 +38746,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38668
38746
|
|
|
38669
38747
|
|
|
38670
38748
|
|
|
38671
|
-
|
|
38672
|
-
|
|
38749
|
+
|
|
38750
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
|
|
38751
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
|
|
38673
38752
|
lazyIdleTimeout: 0,
|
|
38674
|
-
|
|
38675
|
-
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
38753
|
+
useCustomHighlightAPI: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined'
|
|
38676
38754
|
};
|
|
38677
|
-
|
|
38678
|
-
|
|
38755
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
38756
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
|
|
38679
38757
|
tooltip: 'Find',
|
|
38680
38758
|
icon: 'search',
|
|
38681
38759
|
exec(jodit, _, { control }) {
|
|
@@ -38716,8 +38794,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38716
38794
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
38717
38795
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
38718
38796
|
/* harmony export */ });
|
|
38719
|
-
/* harmony import */ var
|
|
38720
|
-
/* harmony import */ var
|
|
38797
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
38798
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
38799
|
+
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52989);
|
|
38721
38800
|
/*!
|
|
38722
38801
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38723
38802
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38725,6 +38804,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38725
38804
|
*/
|
|
38726
38805
|
|
|
38727
38806
|
|
|
38807
|
+
|
|
38728
38808
|
/**
|
|
38729
38809
|
* @private
|
|
38730
38810
|
*/
|
|
@@ -38743,15 +38823,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38743
38823
|
const span = ci.element('span', {
|
|
38744
38824
|
[TMP_ATTR]: true
|
|
38745
38825
|
});
|
|
38746
|
-
|
|
38826
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
|
|
38747
38827
|
normalizeRanges(rng, restRanges, ci);
|
|
38748
38828
|
let next = rng.startContainer;
|
|
38749
38829
|
do {
|
|
38750
38830
|
if (!next) {
|
|
38751
38831
|
break;
|
|
38752
38832
|
}
|
|
38753
|
-
if (
|
|
38754
|
-
|
|
38833
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
|
|
38834
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
|
|
38755
38835
|
}
|
|
38756
38836
|
if (next === rng.endContainer) {
|
|
38757
38837
|
break;
|
|
@@ -38770,13 +38850,13 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38770
38850
|
* @private
|
|
38771
38851
|
*/
|
|
38772
38852
|
function getSelectionWrappers(root) {
|
|
38773
|
-
return (0,
|
|
38853
|
+
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
|
|
38774
38854
|
}
|
|
38775
38855
|
/**
|
|
38776
38856
|
* @private
|
|
38777
38857
|
*/
|
|
38778
38858
|
function clearSelectionWrappers(root) {
|
|
38779
|
-
getSelectionWrappers(root).forEach(span =>
|
|
38859
|
+
getSelectionWrappers(root).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
|
|
38780
38860
|
}
|
|
38781
38861
|
/**
|
|
38782
38862
|
* @private
|
|
@@ -38788,12 +38868,13 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
38788
38868
|
* @private
|
|
38789
38869
|
*/
|
|
38790
38870
|
function isSelectionWrapper(node) {
|
|
38791
|
-
return
|
|
38871
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
38792
38872
|
}
|
|
38793
38873
|
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
38794
38874
|
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38795
38875
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38796
|
-
|
|
38876
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
38877
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
38797
38878
|
const ranges = [rng, ...restRanges].map(rng => {
|
|
38798
38879
|
const range = jodit.selection.createRange();
|
|
38799
38880
|
range.setStart(rng.startContainer, rng.startOffset);
|
|
@@ -38817,7 +38898,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
38817
38898
|
if (rng.startOffset !== 0) {
|
|
38818
38899
|
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
38819
38900
|
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
38820
|
-
|
|
38901
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
|
|
38821
38902
|
if (rng.startContainer === rng.endContainer) {
|
|
38822
38903
|
diff = rng.startOffset;
|
|
38823
38904
|
rng.endOffset -= diff;
|
|
@@ -38828,7 +38909,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
38828
38909
|
if (rng.endOffset !== endText.length) {
|
|
38829
38910
|
const text = ci.text(endText.substring(rng.endOffset));
|
|
38830
38911
|
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
38831
|
-
|
|
38912
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
|
|
38832
38913
|
for (const range of restRanges) {
|
|
38833
38914
|
if (range.startContainer === rng.endContainer) {
|
|
38834
38915
|
range.startContainer = text;
|
|
@@ -39859,7 +39940,7 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
|
|
|
39859
39940
|
break;
|
|
39860
39941
|
case 'addcolumnafter':
|
|
39861
39942
|
case 'addcolumnbefore':
|
|
39862
|
-
this.__tableModule.appendColumn(table, cell
|
|
39943
|
+
this.__tableModule.appendColumn(table, cell, command === 'addcolumnafter');
|
|
39863
39944
|
break;
|
|
39864
39945
|
case 'addrowafter':
|
|
39865
39946
|
case 'addrowbefore':
|
|
@@ -41739,6 +41820,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
|
|
|
41739
41820
|
|
|
41740
41821
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
|
|
41741
41822
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
|
|
41823
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
|
|
41742
41824
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
|
|
41743
41825
|
|
|
41744
41826
|
|
|
@@ -41785,9 +41867,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
|
|
|
41785
41867
|
this.calc = this.j.async.throttle(() => {
|
|
41786
41868
|
const text = this.j.text;
|
|
41787
41869
|
if (this.j.o.showCharsCounter && this.charCounter) {
|
|
41788
|
-
|
|
41789
|
-
|
|
41790
|
-
|
|
41870
|
+
let chars;
|
|
41871
|
+
if (this.j.o.countHTMLChars) {
|
|
41872
|
+
chars = this.j.value;
|
|
41873
|
+
}
|
|
41874
|
+
else {
|
|
41875
|
+
if (this.j.o.countTextSpaces) {
|
|
41876
|
+
chars = text
|
|
41877
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), '')
|
|
41878
|
+
.replace(/[\r\n]/g, '');
|
|
41879
|
+
}
|
|
41880
|
+
else {
|
|
41881
|
+
chars = text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
41882
|
+
}
|
|
41883
|
+
}
|
|
41791
41884
|
this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
|
|
41792
41885
|
}
|
|
41793
41886
|
if (this.j.o.showWordsCounter && this.wordCounter) {
|
|
@@ -42421,8 +42514,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42421
42514
|
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
42422
42515
|
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
42423
42516
|
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
42424
|
-
/* harmony export */
|
|
42425
|
-
/* harmony export */
|
|
42517
|
+
/* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_19__; },
|
|
42518
|
+
/* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__; },
|
|
42519
|
+
/* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__; }
|
|
42426
42520
|
/* harmony export */ });
|
|
42427
42521
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52438);
|
|
42428
42522
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -42462,10 +42556,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42462
42556
|
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
42463
42557
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(64331);
|
|
42464
42558
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
42465
|
-
/* harmony import */ var
|
|
42466
|
-
/* harmony import */ var
|
|
42467
|
-
/* harmony import */ var
|
|
42468
|
-
/* harmony import */ var
|
|
42559
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(87983);
|
|
42560
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
42561
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(13599);
|
|
42562
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
42563
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(70871);
|
|
42564
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
42469
42565
|
/*!
|
|
42470
42566
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42471
42567
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42493,6 +42589,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42493
42589
|
|
|
42494
42590
|
|
|
42495
42591
|
|
|
42592
|
+
|
|
42496
42593
|
|
|
42497
42594
|
|
|
42498
42595
|
/***/ }),
|
|
@@ -42648,6 +42745,23 @@ module.exports = {
|
|
|
42648
42745
|
};
|
|
42649
42746
|
|
|
42650
42747
|
|
|
42748
|
+
/***/ }),
|
|
42749
|
+
|
|
42750
|
+
/***/ 87983:
|
|
42751
|
+
/***/ (function(module) {
|
|
42752
|
+
|
|
42753
|
+
"use strict";
|
|
42754
|
+
|
|
42755
|
+
/*!
|
|
42756
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42757
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
42758
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
42759
|
+
*/
|
|
42760
|
+
module.exports = {
|
|
42761
|
+
symbols: 'символ'
|
|
42762
|
+
};
|
|
42763
|
+
|
|
42764
|
+
|
|
42651
42765
|
/***/ }),
|
|
42652
42766
|
|
|
42653
42767
|
/***/ 13599:
|
|
@@ -43218,6 +43332,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
43218
43332
|
}
|
|
43219
43333
|
},
|
|
43220
43334
|
popup: (editor, current, close, button) => {
|
|
43335
|
+
editor.editor.normalize();
|
|
43336
|
+
const snapshot = editor.history.snapshot.make();
|
|
43221
43337
|
const control = button.control;
|
|
43222
43338
|
const default_rows_count = control.data && control.data.rows ? control.data.rows : 10, default_cols_count = control.data && control.data.cols ? control.data.cols : 10;
|
|
43223
43339
|
const generateExtraClasses = () => {
|
|
@@ -43310,10 +43426,24 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
43310
43426
|
table.classList.add(className);
|
|
43311
43427
|
});
|
|
43312
43428
|
});
|
|
43313
|
-
|
|
43314
|
-
|
|
43429
|
+
editor.s.restore();
|
|
43430
|
+
editor.s.removeMarkers();
|
|
43431
|
+
editor.editor.normalize();
|
|
43432
|
+
editor.history.snapshot.restore(snapshot);
|
|
43433
|
+
const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.furthest(editor.s.current(), jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
|
|
43434
|
+
if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isEmpty(block)) {
|
|
43435
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.replace(block, table, undefined, false, true);
|
|
43436
|
+
}
|
|
43437
|
+
else {
|
|
43438
|
+
if (block) {
|
|
43439
|
+
const fake = crt.text('\n');
|
|
43440
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(block, fake);
|
|
43441
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(fake, table);
|
|
43442
|
+
}
|
|
43443
|
+
else {
|
|
43444
|
+
editor.s.insertNode(table, false);
|
|
43445
|
+
}
|
|
43315
43446
|
}
|
|
43316
|
-
editor.s.insertNode(table, false);
|
|
43317
43447
|
if (first_td) {
|
|
43318
43448
|
editor.s.setCursorIn(first_td);
|
|
43319
43449
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.scrollIntoViewIfNeeded)(first_td, editor.editor, editor.ed);
|
|
@@ -44357,7 +44487,6 @@ function getTextLeftOfCursor(range) {
|
|
|
44357
44487
|
*/
|
|
44358
44488
|
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
44359
44489
|
var _a, _b, _c;
|
|
44360
|
-
// eslint-disable-next-line prefer-const
|
|
44361
44490
|
let { startContainer, startOffset } = range;
|
|
44362
44491
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(startContainer)) {
|
|
44363
44492
|
startContainer = startContainer.childNodes[startOffset - 1];
|
|
@@ -44870,7 +44999,6 @@ function convertToList(elm) {
|
|
|
44870
44999
|
return elm;
|
|
44871
45000
|
}
|
|
44872
45001
|
function moveUp(leaf) {
|
|
44873
|
-
// eslint-disable-next-line no-constant-condition
|
|
44874
45002
|
while (leaf) {
|
|
44875
45003
|
const prev = leaf.previousElement;
|
|
44876
45004
|
// Leaf after P
|
|
@@ -46260,7 +46388,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
46260
46388
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
46261
46389
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46262
46390
|
***************************************************************************** */
|
|
46263
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
46391
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
46264
46392
|
|
|
46265
46393
|
var extendStatics = function(d, b) {
|
|
46266
46394
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -46371,8 +46499,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
46371
46499
|
}
|
|
46372
46500
|
|
|
46373
46501
|
function __generator(thisArg, body) {
|
|
46374
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
46375
|
-
return g =
|
|
46502
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
46503
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
46376
46504
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
46377
46505
|
function step(op) {
|
|
46378
46506
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -46476,8 +46604,9 @@ function __await(v) {
|
|
|
46476
46604
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
46477
46605
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
46478
46606
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
46479
|
-
return i =
|
|
46480
|
-
function
|
|
46607
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
46608
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
46609
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
46481
46610
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
46482
46611
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
46483
46612
|
function fulfill(value) { resume("next", value); }
|
|
@@ -46543,16 +46672,18 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
46543
46672
|
function __addDisposableResource(env, value, async) {
|
|
46544
46673
|
if (value !== null && value !== void 0) {
|
|
46545
46674
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
46546
|
-
var dispose;
|
|
46675
|
+
var dispose, inner;
|
|
46547
46676
|
if (async) {
|
|
46548
|
-
|
|
46549
|
-
|
|
46677
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
46678
|
+
dispose = value[Symbol.asyncDispose];
|
|
46550
46679
|
}
|
|
46551
46680
|
if (dispose === void 0) {
|
|
46552
|
-
|
|
46553
|
-
|
|
46681
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
46682
|
+
dispose = value[Symbol.dispose];
|
|
46683
|
+
if (async) inner = dispose;
|
|
46554
46684
|
}
|
|
46555
46685
|
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
46686
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
46556
46687
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
46557
46688
|
}
|
|
46558
46689
|
else if (async) {
|
|
@@ -46571,17 +46702,22 @@ function __disposeResources(env) {
|
|
|
46571
46702
|
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
46572
46703
|
env.hasError = true;
|
|
46573
46704
|
}
|
|
46705
|
+
var r, s = 0;
|
|
46574
46706
|
function next() {
|
|
46575
|
-
while (env.stack.
|
|
46576
|
-
var rec = env.stack.pop();
|
|
46707
|
+
while (r = env.stack.pop()) {
|
|
46577
46708
|
try {
|
|
46578
|
-
|
|
46579
|
-
if (
|
|
46709
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
46710
|
+
if (r.dispose) {
|
|
46711
|
+
var result = r.dispose.call(r.value);
|
|
46712
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
46713
|
+
}
|
|
46714
|
+
else s |= 1;
|
|
46580
46715
|
}
|
|
46581
46716
|
catch (e) {
|
|
46582
|
-
|
|
46717
|
+
fail(e);
|
|
46583
46718
|
}
|
|
46584
46719
|
}
|
|
46720
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
46585
46721
|
if (env.hasError) throw env.error;
|
|
46586
46722
|
}
|
|
46587
46723
|
return next();
|
|
@@ -46708,11 +46844,88 @@ function __disposeResources(env) {
|
|
|
46708
46844
|
/******/ };
|
|
46709
46845
|
/******/ }();
|
|
46710
46846
|
/******/
|
|
46847
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
46848
|
+
/******/ !function() {
|
|
46849
|
+
/******/ __webpack_require__.f = {};
|
|
46850
|
+
/******/ // This file contains only the entry chunk.
|
|
46851
|
+
/******/ // The chunk loading function for additional chunks
|
|
46852
|
+
/******/ __webpack_require__.e = function(chunkId) {
|
|
46853
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
|
|
46854
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
46855
|
+
/******/ return promises;
|
|
46856
|
+
/******/ }, []));
|
|
46857
|
+
/******/ };
|
|
46858
|
+
/******/ }();
|
|
46859
|
+
/******/
|
|
46860
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
46861
|
+
/******/ !function() {
|
|
46862
|
+
/******/ // This function allow to reference async chunks
|
|
46863
|
+
/******/ __webpack_require__.u = function(chunkId) {
|
|
46864
|
+
/******/ // return url for filenames based on template
|
|
46865
|
+
/******/ return "" + chunkId + ".js";
|
|
46866
|
+
/******/ };
|
|
46867
|
+
/******/ }();
|
|
46868
|
+
/******/
|
|
46869
|
+
/******/ /* webpack/runtime/get mini-css chunk filename */
|
|
46870
|
+
/******/ !function() {
|
|
46871
|
+
/******/ // This function allow to reference async chunks
|
|
46872
|
+
/******/ __webpack_require__.miniCssF = function(chunkId) {
|
|
46873
|
+
/******/ // return url for filenames based on template
|
|
46874
|
+
/******/ return undefined;
|
|
46875
|
+
/******/ };
|
|
46876
|
+
/******/ }();
|
|
46877
|
+
/******/
|
|
46711
46878
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
46712
46879
|
/******/ !function() {
|
|
46713
46880
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
46714
46881
|
/******/ }();
|
|
46715
46882
|
/******/
|
|
46883
|
+
/******/ /* webpack/runtime/load script */
|
|
46884
|
+
/******/ !function() {
|
|
46885
|
+
/******/ var inProgress = {};
|
|
46886
|
+
/******/ var dataWebpackPrefix = "jodit-pro:";
|
|
46887
|
+
/******/ // loadScript function to load a script via script tag
|
|
46888
|
+
/******/ __webpack_require__.l = function(url, done, key, chunkId) {
|
|
46889
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
46890
|
+
/******/ var script, needAttach;
|
|
46891
|
+
/******/ if(key !== undefined) {
|
|
46892
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
46893
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
46894
|
+
/******/ var s = scripts[i];
|
|
46895
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
46896
|
+
/******/ }
|
|
46897
|
+
/******/ }
|
|
46898
|
+
/******/ if(!script) {
|
|
46899
|
+
/******/ needAttach = true;
|
|
46900
|
+
/******/ script = document.createElement('script');
|
|
46901
|
+
/******/
|
|
46902
|
+
/******/ script.charset = 'utf-8';
|
|
46903
|
+
/******/ script.timeout = 120;
|
|
46904
|
+
/******/ if (__webpack_require__.nc) {
|
|
46905
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
46906
|
+
/******/ }
|
|
46907
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
46908
|
+
/******/
|
|
46909
|
+
/******/ script.src = url;
|
|
46910
|
+
/******/ }
|
|
46911
|
+
/******/ inProgress[url] = [done];
|
|
46912
|
+
/******/ var onScriptComplete = function(prev, event) {
|
|
46913
|
+
/******/ // avoid mem leaks in IE.
|
|
46914
|
+
/******/ script.onerror = script.onload = null;
|
|
46915
|
+
/******/ clearTimeout(timeout);
|
|
46916
|
+
/******/ var doneFns = inProgress[url];
|
|
46917
|
+
/******/ delete inProgress[url];
|
|
46918
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
46919
|
+
/******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
|
|
46920
|
+
/******/ if(prev) return prev(event);
|
|
46921
|
+
/******/ }
|
|
46922
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
46923
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
46924
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
46925
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
46926
|
+
/******/ };
|
|
46927
|
+
/******/ }();
|
|
46928
|
+
/******/
|
|
46716
46929
|
/******/ /* webpack/runtime/make namespace object */
|
|
46717
46930
|
/******/ !function() {
|
|
46718
46931
|
/******/ // define __esModule on exports
|
|
@@ -46724,6 +46937,11 @@ function __disposeResources(env) {
|
|
|
46724
46937
|
/******/ };
|
|
46725
46938
|
/******/ }();
|
|
46726
46939
|
/******/
|
|
46940
|
+
/******/ /* webpack/runtime/publicPath */
|
|
46941
|
+
/******/ !function() {
|
|
46942
|
+
/******/ __webpack_require__.p = "/build/";
|
|
46943
|
+
/******/ }();
|
|
46944
|
+
/******/
|
|
46727
46945
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
46728
46946
|
/******/ !function() {
|
|
46729
46947
|
/******/ // no baseURI
|
|
@@ -46735,7 +46953,44 @@ function __disposeResources(env) {
|
|
|
46735
46953
|
/******/ 521: 0
|
|
46736
46954
|
/******/ };
|
|
46737
46955
|
/******/
|
|
46738
|
-
/******/
|
|
46956
|
+
/******/ __webpack_require__.f.j = function(chunkId, promises) {
|
|
46957
|
+
/******/ // JSONP chunk loading for javascript
|
|
46958
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
46959
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
46960
|
+
/******/
|
|
46961
|
+
/******/ // a Promise means "currently loading".
|
|
46962
|
+
/******/ if(installedChunkData) {
|
|
46963
|
+
/******/ promises.push(installedChunkData[2]);
|
|
46964
|
+
/******/ } else {
|
|
46965
|
+
/******/ if(true) { // all chunks have JS
|
|
46966
|
+
/******/ // setup Promise in chunk cache
|
|
46967
|
+
/******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
|
|
46968
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
46969
|
+
/******/
|
|
46970
|
+
/******/ // start chunk loading
|
|
46971
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
46972
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
46973
|
+
/******/ var error = new Error();
|
|
46974
|
+
/******/ var loadingEnded = function(event) {
|
|
46975
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
46976
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
46977
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
46978
|
+
/******/ if(installedChunkData) {
|
|
46979
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
46980
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
46981
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
46982
|
+
/******/ error.name = 'ChunkLoadError';
|
|
46983
|
+
/******/ error.type = errorType;
|
|
46984
|
+
/******/ error.request = realSrc;
|
|
46985
|
+
/******/ installedChunkData[1](error);
|
|
46986
|
+
/******/ }
|
|
46987
|
+
/******/ }
|
|
46988
|
+
/******/ };
|
|
46989
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
46990
|
+
/******/ }
|
|
46991
|
+
/******/ }
|
|
46992
|
+
/******/ }
|
|
46993
|
+
/******/ };
|
|
46739
46994
|
/******/
|
|
46740
46995
|
/******/ // no prefetching
|
|
46741
46996
|
/******/
|