jodit-pro 4.2.24 → 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 +11 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +450 -233
- 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 +11 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +444 -227
- 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 +11 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +444 -227
- 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 +11 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +419 -221
- 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 +12 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +741 -5676
- 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',
|
|
@@ -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)) {
|
|
@@ -4049,7 +4051,7 @@ class Dom {
|
|
|
4049
4051
|
* Move all content to another element
|
|
4050
4052
|
*/
|
|
4051
4053
|
static moveContent(from, to, inStart = false, filter = () => true) {
|
|
4052
|
-
const fragment = (from.ownerDocument ||
|
|
4054
|
+
const fragment = (from.ownerDocument || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument).createDocumentFragment();
|
|
4053
4055
|
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(from.childNodes)
|
|
4054
4056
|
.filter(elm => {
|
|
4055
4057
|
if (filter(elm)) {
|
|
@@ -4510,7 +4512,7 @@ class EventEmitter {
|
|
|
4510
4512
|
passive: true,
|
|
4511
4513
|
capture: (_a = options === null || options === void 0 ? void 0 : options.capture) !== null && _a !== void 0 ? _a : false
|
|
4512
4514
|
}
|
|
4513
|
-
: (_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);
|
|
4514
4516
|
syntheticCallback.options = eOpts;
|
|
4515
4517
|
subject.addEventListener(event, syntheticCallback, eOpts);
|
|
4516
4518
|
this.__memoryDOMSubjectToHandler(subject, syntheticCallback);
|
|
@@ -4742,7 +4744,7 @@ class EventEmitter {
|
|
|
4742
4744
|
this.__domEventsMap = new Map();
|
|
4743
4745
|
this.__mutedEvents = new Set();
|
|
4744
4746
|
this.__key = '__JoditEventEmitterNamespaces';
|
|
4745
|
-
this.__doc =
|
|
4747
|
+
this.__doc = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
|
|
4746
4748
|
this.__prepareEvent = (e) => {
|
|
4747
4749
|
if (e.cancelBubble) {
|
|
4748
4750
|
return;
|
|
@@ -5239,9 +5241,19 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5239
5241
|
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
|
|
5240
5242
|
if (!data[key]) {
|
|
5241
5243
|
let c = view.c;
|
|
5242
|
-
let body
|
|
5243
|
-
|
|
5244
|
-
|
|
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
|
+
}
|
|
5245
5257
|
if (createInsideEditor &&
|
|
5246
5258
|
(0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) &&
|
|
5247
5259
|
jodit.od !== jodit.ed) {
|
|
@@ -5396,7 +5408,7 @@ const toArray = function toArray(...args) {
|
|
|
5396
5408
|
var _a;
|
|
5397
5409
|
const func = (0,jodit_core_helpers_checker_is_native_function__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from)
|
|
5398
5410
|
? Array.from
|
|
5399
|
-
: (_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);
|
|
5400
5412
|
return func.apply(Array, args);
|
|
5401
5413
|
};
|
|
5402
5414
|
|
|
@@ -5433,6 +5445,7 @@ const toArray = function toArray(...args) {
|
|
|
5433
5445
|
/* harmony export */ D: function() { return /* binding */ clearTimeout; },
|
|
5434
5446
|
/* harmony export */ w: function() { return /* binding */ setTimeout; }
|
|
5435
5447
|
/* harmony export */ });
|
|
5448
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5436
5449
|
/*!
|
|
5437
5450
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5438
5451
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5441,6 +5454,7 @@ const toArray = function toArray(...args) {
|
|
|
5441
5454
|
/**
|
|
5442
5455
|
* @module helpers/async
|
|
5443
5456
|
*/
|
|
5457
|
+
|
|
5444
5458
|
/**
|
|
5445
5459
|
* Create async callback if set timeout value - else call function immediately
|
|
5446
5460
|
*/
|
|
@@ -5449,7 +5463,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
5449
5463
|
callback.call(null, ...args);
|
|
5450
5464
|
}
|
|
5451
5465
|
else {
|
|
5452
|
-
return
|
|
5466
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.setTimeout(callback, timeout, ...args);
|
|
5453
5467
|
}
|
|
5454
5468
|
return 0;
|
|
5455
5469
|
}
|
|
@@ -5457,7 +5471,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
5457
5471
|
* Clear timeout
|
|
5458
5472
|
*/
|
|
5459
5473
|
function clearTimeout(timer) {
|
|
5460
|
-
|
|
5474
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.clearTimeout(timer);
|
|
5461
5475
|
}
|
|
5462
5476
|
|
|
5463
5477
|
|
|
@@ -5470,6 +5484,7 @@ function clearTimeout(timer) {
|
|
|
5470
5484
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5471
5485
|
/* harmony export */ k: function() { return /* binding */ hasBrowserColorPicker; }
|
|
5472
5486
|
/* harmony export */ });
|
|
5487
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5473
5488
|
/*!
|
|
5474
5489
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5475
5490
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5478,13 +5493,14 @@ function clearTimeout(timer) {
|
|
|
5478
5493
|
/**
|
|
5479
5494
|
* @module helpers/checker
|
|
5480
5495
|
*/
|
|
5496
|
+
|
|
5481
5497
|
/**
|
|
5482
5498
|
* Check if browser has a color picker (a new HTML5 attribute for input tag)
|
|
5483
5499
|
*/
|
|
5484
5500
|
function hasBrowserColorPicker() {
|
|
5485
5501
|
let supportsColor = true;
|
|
5486
5502
|
try {
|
|
5487
|
-
const a =
|
|
5503
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
|
|
5488
5504
|
a.type = 'color';
|
|
5489
5505
|
a.value = '!';
|
|
5490
5506
|
supportsColor = a.type === 'color' && a.value !== '!';
|
|
@@ -6134,6 +6150,7 @@ function isStringArray(value) {
|
|
|
6134
6150
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6135
6151
|
/* harmony export */ m: function() { return /* binding */ isURL; }
|
|
6136
6152
|
/* harmony export */ });
|
|
6153
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6137
6154
|
/*!
|
|
6138
6155
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6139
6156
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6142,6 +6159,7 @@ function isStringArray(value) {
|
|
|
6142
6159
|
/**
|
|
6143
6160
|
* @module helpers/checker
|
|
6144
6161
|
*/
|
|
6162
|
+
|
|
6145
6163
|
/**
|
|
6146
6164
|
* Check if a string is an url
|
|
6147
6165
|
*/
|
|
@@ -6158,7 +6176,7 @@ function isURL(str) {
|
|
|
6158
6176
|
return false;
|
|
6159
6177
|
}
|
|
6160
6178
|
}
|
|
6161
|
-
const a =
|
|
6179
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
6162
6180
|
a.href = str;
|
|
6163
6181
|
return Boolean(a.hostname);
|
|
6164
6182
|
}
|
|
@@ -6393,9 +6411,9 @@ function applyStyles(html) {
|
|
|
6393
6411
|
}
|
|
6394
6412
|
html = html.substring(html.indexOf('<html '), html.length);
|
|
6395
6413
|
html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
|
|
6396
|
-
const iframe =
|
|
6414
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
6397
6415
|
iframe.style.display = 'none';
|
|
6398
|
-
|
|
6416
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
6399
6417
|
let convertedString = '', collection = [];
|
|
6400
6418
|
try {
|
|
6401
6419
|
const iframeDoc = iframe.contentDocument ||
|
|
@@ -6466,9 +6484,10 @@ function applyStyles(html) {
|
|
|
6466
6484
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6467
6485
|
/* harmony export */ w: function() { return /* binding */ cleanFromWord; }
|
|
6468
6486
|
/* harmony export */ });
|
|
6469
|
-
/* harmony import */ var
|
|
6470
|
-
/* harmony import */ var
|
|
6471
|
-
/* 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);
|
|
6472
6491
|
/*!
|
|
6473
6492
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6474
6493
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6480,6 +6499,7 @@ function applyStyles(html) {
|
|
|
6480
6499
|
|
|
6481
6500
|
|
|
6482
6501
|
|
|
6502
|
+
|
|
6483
6503
|
/**
|
|
6484
6504
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
6485
6505
|
* content that matches the look and feel of the site.
|
|
@@ -6491,11 +6511,11 @@ function cleanFromWord(html) {
|
|
|
6491
6511
|
}
|
|
6492
6512
|
let convertedString = '';
|
|
6493
6513
|
try {
|
|
6494
|
-
const div =
|
|
6514
|
+
const div = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
6495
6515
|
div.innerHTML = html;
|
|
6496
6516
|
const marks = [];
|
|
6497
6517
|
if (div.firstChild) {
|
|
6498
|
-
|
|
6518
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.each(div, node => {
|
|
6499
6519
|
if (!node) {
|
|
6500
6520
|
return;
|
|
6501
6521
|
}
|
|
@@ -6510,10 +6530,10 @@ function cleanFromWord(html) {
|
|
|
6510
6530
|
case 'W:SDT':
|
|
6511
6531
|
case 'W:SDTPR':
|
|
6512
6532
|
case 'FONT':
|
|
6513
|
-
|
|
6533
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(node);
|
|
6514
6534
|
break;
|
|
6515
6535
|
default:
|
|
6516
|
-
(0,
|
|
6536
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(node.attributes).forEach((attr) => {
|
|
6517
6537
|
if ([
|
|
6518
6538
|
'src',
|
|
6519
6539
|
'href',
|
|
@@ -6532,14 +6552,14 @@ function cleanFromWord(html) {
|
|
|
6532
6552
|
}
|
|
6533
6553
|
});
|
|
6534
6554
|
}
|
|
6535
|
-
|
|
6555
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove.apply(null, marks);
|
|
6536
6556
|
convertedString = div.innerHTML;
|
|
6537
6557
|
}
|
|
6538
6558
|
catch (e) { }
|
|
6539
6559
|
if (convertedString) {
|
|
6540
6560
|
html = convertedString;
|
|
6541
6561
|
}
|
|
6542
|
-
html = html.split(/(\n)/).filter(
|
|
6562
|
+
html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq).join('\n');
|
|
6543
6563
|
return html
|
|
6544
6564
|
.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
|
|
6545
6565
|
.replace(/<!--[^>]*>/g, '');
|
|
@@ -6555,6 +6575,7 @@ function cleanFromWord(html) {
|
|
|
6555
6575
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6556
6576
|
/* harmony export */ G: function() { return /* binding */ htmlspecialchars; }
|
|
6557
6577
|
/* harmony export */ });
|
|
6578
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6558
6579
|
/*!
|
|
6559
6580
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6560
6581
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6563,11 +6584,12 @@ function cleanFromWord(html) {
|
|
|
6563
6584
|
/**
|
|
6564
6585
|
* @module helpers/html
|
|
6565
6586
|
*/
|
|
6587
|
+
|
|
6566
6588
|
/**
|
|
6567
6589
|
* Convert special characters to HTML entities
|
|
6568
6590
|
*/
|
|
6569
6591
|
function htmlspecialchars(html) {
|
|
6570
|
-
const tmp =
|
|
6592
|
+
const tmp = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
6571
6593
|
tmp.textContent = html;
|
|
6572
6594
|
return tmp.innerHTML;
|
|
6573
6595
|
}
|
|
@@ -7288,8 +7310,9 @@ const getContentWidth = (element, win) => {
|
|
|
7288
7310
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7289
7311
|
/* harmony export */ m: function() { return /* binding */ getScrollParent; }
|
|
7290
7312
|
/* harmony export */ });
|
|
7291
|
-
/* harmony import */ var
|
|
7292
|
-
/* 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);
|
|
7293
7316
|
/*!
|
|
7294
7317
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7295
7318
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7297,19 +7320,20 @@ const getContentWidth = (element, win) => {
|
|
|
7297
7320
|
*/
|
|
7298
7321
|
|
|
7299
7322
|
|
|
7323
|
+
|
|
7300
7324
|
function getScrollParent(node) {
|
|
7301
7325
|
if (!node) {
|
|
7302
7326
|
return null;
|
|
7303
7327
|
}
|
|
7304
|
-
const isElement =
|
|
7305
|
-
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');
|
|
7306
7330
|
const isScrollable = isElement && overflowY !== 'visible' && overflowY !== 'hidden';
|
|
7307
7331
|
if (isScrollable && node.scrollHeight >= node.clientHeight) {
|
|
7308
7332
|
return node;
|
|
7309
7333
|
}
|
|
7310
7334
|
return (getScrollParent(node.parentNode) ||
|
|
7311
|
-
|
|
7312
|
-
|
|
7335
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.scrollingElement ||
|
|
7336
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body);
|
|
7313
7337
|
}
|
|
7314
7338
|
|
|
7315
7339
|
|
|
@@ -7992,9 +8016,9 @@ function alignElement(command, box) {
|
|
|
7992
8016
|
/* harmony export */ w4: function() { return /* binding */ appendScriptAsync; },
|
|
7993
8017
|
/* harmony export */ x_: function() { return /* binding */ loadNextStyle; }
|
|
7994
8018
|
/* harmony export */ });
|
|
7995
|
-
/* harmony import */ var
|
|
8019
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
7996
8020
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
|
|
7997
|
-
/* harmony import */ var
|
|
8021
|
+
/* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5151);
|
|
7998
8022
|
/*!
|
|
7999
8023
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8000
8024
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8005,7 +8029,7 @@ function alignElement(command, box) {
|
|
|
8005
8029
|
|
|
8006
8030
|
const alreadyLoadedList = new Map();
|
|
8007
8031
|
const cacheLoaders = (loader) => {
|
|
8008
|
-
return (jodit, url) => (0,
|
|
8032
|
+
return (jodit, url) => (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__awaiter */ .sH)(void 0, void 0, void 0, function* () {
|
|
8009
8033
|
if (alreadyLoadedList.has(url)) {
|
|
8010
8034
|
return alreadyLoadedList.get(url);
|
|
8011
8035
|
}
|
|
@@ -8027,7 +8051,7 @@ const appendScriptAsync = cacheLoaders((jodit, url) => {
|
|
|
8027
8051
|
crossorigin: 'anonymous',
|
|
8028
8052
|
referrerpolicy: 'no-referrer',
|
|
8029
8053
|
async: true,
|
|
8030
|
-
src: (0,
|
|
8054
|
+
src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url)
|
|
8031
8055
|
});
|
|
8032
8056
|
jodit.od.body.appendChild(script);
|
|
8033
8057
|
jodit.e.on(script, 'error', reject).on(script, 'load', resolve);
|
|
@@ -8048,7 +8072,7 @@ const appendStyleAsync = cacheLoaders((jodit, url) => {
|
|
|
8048
8072
|
const callback = () => resolve(link);
|
|
8049
8073
|
!jodit.isInDestruct &&
|
|
8050
8074
|
jodit.e.on(link, 'load', callback).on(link, 'error', reject);
|
|
8051
|
-
link.href = (0,
|
|
8075
|
+
link.href = (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url);
|
|
8052
8076
|
if (jodit.o.shadowRoot) {
|
|
8053
8077
|
jodit.o.shadowRoot.appendChild(link);
|
|
8054
8078
|
}
|
|
@@ -8236,16 +8260,18 @@ const buildQuery = (data, prefix) => {
|
|
|
8236
8260
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8237
8261
|
/* harmony export */ X: function() { return /* binding */ completeUrl; }
|
|
8238
8262
|
/* harmony export */ });
|
|
8263
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8239
8264
|
/*!
|
|
8240
8265
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8241
8266
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8242
8267
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8243
8268
|
*/
|
|
8269
|
+
|
|
8244
8270
|
/**
|
|
8245
8271
|
* @module helpers/utils
|
|
8246
8272
|
*/
|
|
8247
8273
|
const completeUrl = (url) => {
|
|
8248
|
-
if (
|
|
8274
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
|
|
8249
8275
|
url = 'https:' + url;
|
|
8250
8276
|
}
|
|
8251
8277
|
return url;
|
|
@@ -8362,8 +8388,9 @@ function ConfigFlatten(obj) {
|
|
|
8362
8388
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8363
8389
|
/* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
|
|
8364
8390
|
/* harmony export */ });
|
|
8365
|
-
/* harmony import */ var
|
|
8366
|
-
/* 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);
|
|
8367
8394
|
/*!
|
|
8368
8395
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8369
8396
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8374,14 +8401,15 @@ function ConfigFlatten(obj) {
|
|
|
8374
8401
|
*/
|
|
8375
8402
|
|
|
8376
8403
|
|
|
8404
|
+
|
|
8377
8405
|
/**
|
|
8378
8406
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8379
8407
|
*/
|
|
8380
8408
|
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8381
|
-
if (!(0,
|
|
8409
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8382
8410
|
return url;
|
|
8383
8411
|
}
|
|
8384
|
-
const parser =
|
|
8412
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8385
8413
|
parser.href = url;
|
|
8386
8414
|
if (!width) {
|
|
8387
8415
|
width = 400;
|
|
@@ -8407,7 +8435,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8407
8435
|
case 'youtu.be':
|
|
8408
8436
|
case 'www.youtu.be': {
|
|
8409
8437
|
const query = parser.search
|
|
8410
|
-
? (0,
|
|
8438
|
+
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8411
8439
|
: { v: parser.pathname.substr(1) };
|
|
8412
8440
|
return query.v
|
|
8413
8441
|
? '<iframe width="' +
|
|
@@ -8601,7 +8629,8 @@ const dataBind = (elm, key, value) => {
|
|
|
8601
8629
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8602
8630
|
/* harmony export */ e: function() { return /* binding */ defaultLanguage; }
|
|
8603
8631
|
/* harmony export */ });
|
|
8604
|
-
/* 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);
|
|
8605
8634
|
/*!
|
|
8606
8635
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8607
8636
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8611,15 +8640,16 @@ const dataBind = (elm, key, value) => {
|
|
|
8611
8640
|
* @module helpers/utils
|
|
8612
8641
|
*/
|
|
8613
8642
|
|
|
8643
|
+
|
|
8614
8644
|
/**
|
|
8615
8645
|
* Try define user language
|
|
8616
8646
|
*/
|
|
8617
8647
|
const defaultLanguage = (language, defaultLanguage = 'en') => {
|
|
8618
|
-
if (language !== 'auto' && (0,
|
|
8648
|
+
if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
|
|
8619
8649
|
return language;
|
|
8620
8650
|
}
|
|
8621
|
-
if (
|
|
8622
|
-
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;
|
|
8623
8653
|
}
|
|
8624
8654
|
if (navigator.language) {
|
|
8625
8655
|
return navigator.language.substring(0, 2);
|
|
@@ -9373,10 +9403,10 @@ const map = {};
|
|
|
9373
9403
|
function reset(key) {
|
|
9374
9404
|
var _a, _b;
|
|
9375
9405
|
if (!(key in map)) {
|
|
9376
|
-
const iframe =
|
|
9406
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
9377
9407
|
try {
|
|
9378
9408
|
iframe.src = 'about:blank';
|
|
9379
|
-
|
|
9409
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
9380
9410
|
if (!iframe.contentWindow) {
|
|
9381
9411
|
return null;
|
|
9382
9412
|
}
|
|
@@ -10309,14 +10339,15 @@ Plugin.requires = [];
|
|
|
10309
10339
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10310
10340
|
/* harmony export */ d: function() { return /* binding */ Ajax; }
|
|
10311
10341
|
/* harmony export */ });
|
|
10312
|
-
/* harmony import */ var
|
|
10342
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
10313
10343
|
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61341);
|
|
10314
|
-
/* harmony import */ var
|
|
10315
|
-
/* harmony import */ var
|
|
10316
|
-
/* harmony import */ var
|
|
10317
|
-
/* harmony import */ var
|
|
10318
|
-
/* harmony import */ var
|
|
10319
|
-
/* 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);
|
|
10320
10351
|
/*!
|
|
10321
10352
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10322
10353
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10330,33 +10361,34 @@ Plugin.requires = [];
|
|
|
10330
10361
|
|
|
10331
10362
|
|
|
10332
10363
|
|
|
10364
|
+
|
|
10333
10365
|
class Ajax {
|
|
10334
10366
|
className() {
|
|
10335
10367
|
return 'Ajax';
|
|
10336
10368
|
}
|
|
10337
|
-
constructor(options, defaultAjaxOptions =
|
|
10369
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
10338
10370
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
10339
10371
|
this.__isFulfilled = false;
|
|
10340
10372
|
this.__activated = false;
|
|
10341
10373
|
this.__isDestructed = false;
|
|
10342
|
-
this.options = (0,
|
|
10374
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
|
|
10343
10375
|
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
10344
10376
|
}
|
|
10345
10377
|
__buildParams(obj, prefix) {
|
|
10346
|
-
if ((0,
|
|
10378
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
|
|
10347
10379
|
this.options.contentType &&
|
|
10348
10380
|
this.options.contentType.includes('application/json')) {
|
|
10349
10381
|
return JSON.stringify(obj);
|
|
10350
10382
|
}
|
|
10351
|
-
if ((0,
|
|
10383
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
|
|
10352
10384
|
return this.o.queryBuild.call(this, obj, prefix);
|
|
10353
10385
|
}
|
|
10354
|
-
if ((0,
|
|
10355
|
-
obj instanceof
|
|
10356
|
-
(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))) {
|
|
10357
10389
|
return obj;
|
|
10358
10390
|
}
|
|
10359
|
-
return (0,
|
|
10391
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
|
|
10360
10392
|
}
|
|
10361
10393
|
get o() {
|
|
10362
10394
|
return this.options;
|
|
@@ -10376,20 +10408,20 @@ class Ajax {
|
|
|
10376
10408
|
this.__activated = true;
|
|
10377
10409
|
const { xhr, o } = this;
|
|
10378
10410
|
const request = this.prepareRequest();
|
|
10379
|
-
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* () {
|
|
10380
10412
|
var _a;
|
|
10381
10413
|
const onReject = () => {
|
|
10382
10414
|
this.__isFulfilled = true;
|
|
10383
|
-
reject(
|
|
10415
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
|
|
10384
10416
|
};
|
|
10385
10417
|
const onResolve = () => {
|
|
10386
10418
|
this.__isFulfilled = true;
|
|
10387
|
-
resolve(new
|
|
10419
|
+
resolve(new _response__WEBPACK_IMPORTED_MODULE_7__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
|
|
10388
10420
|
};
|
|
10389
10421
|
xhr.onload = onResolve;
|
|
10390
10422
|
xhr.onabort = () => {
|
|
10391
10423
|
this.__isFulfilled = true;
|
|
10392
|
-
reject(
|
|
10424
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
|
|
10393
10425
|
};
|
|
10394
10426
|
xhr.onerror = onReject;
|
|
10395
10427
|
xhr.ontimeout = onReject;
|
|
@@ -10413,7 +10445,7 @@ class Ajax {
|
|
|
10413
10445
|
}
|
|
10414
10446
|
else if (xhr.statusText) {
|
|
10415
10447
|
this.__isFulfilled = true;
|
|
10416
|
-
reject(
|
|
10448
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
|
|
10417
10449
|
}
|
|
10418
10450
|
}
|
|
10419
10451
|
};
|
|
@@ -10424,7 +10456,7 @@ class Ajax {
|
|
|
10424
10456
|
xhr.setRequestHeader('Content-type', o.contentType);
|
|
10425
10457
|
}
|
|
10426
10458
|
let { headers } = o;
|
|
10427
|
-
if ((0,
|
|
10459
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
|
|
10428
10460
|
headers = yield headers.call(this);
|
|
10429
10461
|
}
|
|
10430
10462
|
if (headers && xhr.setRequestHeader) {
|
|
@@ -10440,22 +10472,22 @@ class Ajax {
|
|
|
10440
10472
|
}
|
|
10441
10473
|
prepareRequest() {
|
|
10442
10474
|
if (!this.o.url) {
|
|
10443
|
-
throw
|
|
10475
|
+
throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
|
|
10444
10476
|
}
|
|
10445
10477
|
let url = this.o.url;
|
|
10446
10478
|
const data = this.o.data;
|
|
10447
10479
|
const method = (this.o.method || 'get').toLowerCase();
|
|
10448
|
-
if (method === 'get' && data && (0,
|
|
10480
|
+
if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
|
|
10449
10481
|
const qIndex = url.indexOf('?');
|
|
10450
10482
|
if (qIndex !== -1) {
|
|
10451
|
-
const urlData = (0,
|
|
10483
|
+
const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
|
|
10452
10484
|
url =
|
|
10453
10485
|
url.substring(0, qIndex) +
|
|
10454
10486
|
'?' +
|
|
10455
|
-
(0,
|
|
10487
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(Object.assign(Object.assign({}, urlData), data));
|
|
10456
10488
|
}
|
|
10457
10489
|
else {
|
|
10458
|
-
url += '?' + (0,
|
|
10490
|
+
url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
|
|
10459
10491
|
}
|
|
10460
10492
|
}
|
|
10461
10493
|
const request = {
|
|
@@ -10479,8 +10511,8 @@ class Ajax {
|
|
|
10479
10511
|
}
|
|
10480
10512
|
}
|
|
10481
10513
|
Ajax.log = [];
|
|
10482
|
-
(0,
|
|
10483
|
-
|
|
10514
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
10515
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
|
|
10484
10516
|
], Ajax.prototype, "destruct", null);
|
|
10485
10517
|
|
|
10486
10518
|
|
|
@@ -11376,6 +11408,7 @@ class Selection {
|
|
|
11376
11408
|
/**
|
|
11377
11409
|
* Call callback for all selection node
|
|
11378
11410
|
*/
|
|
11411
|
+
// eslint-disable-next-line complexity
|
|
11379
11412
|
eachSelection(callback) {
|
|
11380
11413
|
var _a;
|
|
11381
11414
|
const sel = this.sel;
|
|
@@ -12160,12 +12193,13 @@ function getSuitParent(style, node, root) {
|
|
|
12160
12193
|
/* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
|
|
12161
12194
|
/* harmony export */ g: function() { return /* binding */ hasSameStyle; }
|
|
12162
12195
|
/* harmony export */ });
|
|
12163
|
-
/* harmony import */ var
|
|
12164
|
-
/* harmony import */ var
|
|
12165
|
-
/* harmony import */ var
|
|
12166
|
-
/* harmony import */ var
|
|
12167
|
-
/* harmony import */ var
|
|
12168
|
-
/* 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);
|
|
12169
12203
|
/*!
|
|
12170
12204
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12171
12205
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12176,48 +12210,53 @@ function getSuitParent(style, node, root) {
|
|
|
12176
12210
|
|
|
12177
12211
|
|
|
12178
12212
|
|
|
12213
|
+
|
|
12179
12214
|
/**
|
|
12180
12215
|
* Element has the same styles as in the commit
|
|
12181
12216
|
* @private
|
|
12182
12217
|
*/
|
|
12183
12218
|
function hasSameStyle(elm, rules) {
|
|
12184
|
-
return Boolean(!
|
|
12185
|
-
|
|
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) &&
|
|
12186
12221
|
Object.keys(rules).every(property => {
|
|
12187
|
-
const value = (0,
|
|
12222
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12188
12223
|
if (value === '' &&
|
|
12189
12224
|
(rules[property] === '' || rules[property] == null)) {
|
|
12190
12225
|
return true;
|
|
12191
12226
|
}
|
|
12192
|
-
return (!(0,
|
|
12227
|
+
return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
|
|
12193
12228
|
value !== '' &&
|
|
12194
|
-
!(0,
|
|
12195
|
-
(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])
|
|
12196
12231
|
.toString()
|
|
12197
12232
|
.toLowerCase() === value.toString().toLowerCase());
|
|
12198
12233
|
}));
|
|
12199
12234
|
}
|
|
12200
|
-
|
|
12201
|
-
elm
|
|
12202
|
-
|
|
12203
|
-
void 0;
|
|
12204
|
-
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
|
+
}
|
|
12205
12242
|
/**
|
|
12206
12243
|
* Element has the similar styles keys
|
|
12207
12244
|
*/
|
|
12208
12245
|
function hasSameStyleKeys(elm, rules) {
|
|
12209
|
-
return Boolean(!
|
|
12210
|
-
|
|
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) &&
|
|
12211
12248
|
Object.keys(rules).every(property => {
|
|
12212
|
-
const value = (0,
|
|
12249
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12213
12250
|
return value !== '';
|
|
12214
12251
|
}));
|
|
12215
12252
|
}
|
|
12216
|
-
|
|
12217
|
-
elm2
|
|
12218
|
-
|
|
12219
|
-
void 0;
|
|
12220
|
-
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
|
+
}
|
|
12221
12260
|
|
|
12222
12261
|
|
|
12223
12262
|
/***/ }),
|
|
@@ -12600,16 +12639,17 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12600
12639
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12601
12640
|
/* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
|
|
12602
12641
|
/* harmony export */ });
|
|
12603
|
-
/* harmony import */ var
|
|
12604
|
-
/* harmony import */ var
|
|
12605
|
-
/* harmony import */ var
|
|
12606
|
-
/* harmony import */ var
|
|
12607
|
-
/* harmony import */ var
|
|
12608
|
-
/* harmony import */ var
|
|
12609
|
-
/* harmony import */ var
|
|
12610
|
-
/* harmony import */ var
|
|
12611
|
-
/* harmony import */ var
|
|
12612
|
-
/* 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);
|
|
12613
12653
|
/*!
|
|
12614
12654
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12615
12655
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12625,6 +12665,7 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12625
12665
|
|
|
12626
12666
|
|
|
12627
12667
|
|
|
12668
|
+
|
|
12628
12669
|
const tak = 'toggleAttributes';
|
|
12629
12670
|
/**
|
|
12630
12671
|
* Toggles attributes
|
|
@@ -12636,7 +12677,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12636
12677
|
}
|
|
12637
12678
|
!dry && commitStyle.setApplied(elm, tak);
|
|
12638
12679
|
const { attributes } = commitStyle.options;
|
|
12639
|
-
if (attributes && (0,
|
|
12680
|
+
if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
|
|
12640
12681
|
Object.keys(attributes).forEach((key) => {
|
|
12641
12682
|
const value = attributes[key];
|
|
12642
12683
|
switch (key) {
|
|
@@ -12658,24 +12699,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12658
12699
|
function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
12659
12700
|
void 0;
|
|
12660
12701
|
Object.keys(style).forEach((rule) => {
|
|
12661
|
-
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));
|
|
12662
12703
|
const newValue = style[rule];
|
|
12663
12704
|
if (inlineValue === '' && newValue == null) {
|
|
12664
12705
|
return;
|
|
12665
12706
|
}
|
|
12666
12707
|
if (getNativeCSSValue(jodit, elm, rule) ===
|
|
12667
|
-
(0,
|
|
12708
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
|
|
12668
12709
|
if (!inlineValue) {
|
|
12669
12710
|
return;
|
|
12670
12711
|
}
|
|
12671
|
-
!dry && (0,
|
|
12672
|
-
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;
|
|
12673
12714
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12674
12715
|
return;
|
|
12675
12716
|
}
|
|
12676
|
-
mode =
|
|
12717
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12677
12718
|
if (!dry) {
|
|
12678
|
-
(0,
|
|
12719
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
|
|
12679
12720
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12680
12721
|
}
|
|
12681
12722
|
});
|
|
@@ -12683,19 +12724,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
|
12683
12724
|
}
|
|
12684
12725
|
function toggleClass(jodit, value, elm, mode, dry) {
|
|
12685
12726
|
void 0;
|
|
12686
|
-
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`);
|
|
12687
12728
|
if (elm.classList.contains(value.toString())) {
|
|
12688
|
-
mode =
|
|
12729
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12689
12730
|
if (!dry) {
|
|
12690
12731
|
elm.classList.remove(value);
|
|
12691
12732
|
if (elm.classList.length === 0) {
|
|
12692
|
-
(0,
|
|
12733
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
|
|
12693
12734
|
hook(mode, elm, 'class', null);
|
|
12694
12735
|
}
|
|
12695
12736
|
}
|
|
12696
12737
|
}
|
|
12697
12738
|
else {
|
|
12698
|
-
mode =
|
|
12739
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12699
12740
|
if (!dry) {
|
|
12700
12741
|
elm.classList.add(value);
|
|
12701
12742
|
hook(mode, elm, 'class', value);
|
|
@@ -12705,16 +12746,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
|
|
|
12705
12746
|
}
|
|
12706
12747
|
function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
12707
12748
|
void 0;
|
|
12708
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12709
|
-
if ((0,
|
|
12710
|
-
!dry && (0,
|
|
12711
|
-
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;
|
|
12712
12753
|
!dry && hook(mode, elm, key, value);
|
|
12713
12754
|
return mode;
|
|
12714
12755
|
}
|
|
12715
|
-
mode =
|
|
12756
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12716
12757
|
if (!dry) {
|
|
12717
|
-
(0,
|
|
12758
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
|
|
12718
12759
|
hook(mode, elm, key, value);
|
|
12719
12760
|
}
|
|
12720
12761
|
return mode;
|
|
@@ -12724,11 +12765,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
|
12724
12765
|
* and if it is default, it removes the element itself
|
|
12725
12766
|
*/
|
|
12726
12767
|
function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
12727
|
-
if (!(0,
|
|
12728
|
-
(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);
|
|
12729
12770
|
if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
|
|
12730
|
-
|
|
12731
|
-
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;
|
|
12732
12773
|
}
|
|
12733
12774
|
}
|
|
12734
12775
|
return mode;
|
|
@@ -12738,12 +12779,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
|
12738
12779
|
*/
|
|
12739
12780
|
function getShadowRoot(jodit) {
|
|
12740
12781
|
var _a;
|
|
12741
|
-
if ((0,
|
|
12742
|
-
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');
|
|
12743
12784
|
}
|
|
12744
|
-
const container = (0,
|
|
12745
|
-
const iframe =
|
|
12746
|
-
(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, {
|
|
12747
12788
|
width: 0,
|
|
12748
12789
|
height: 0,
|
|
12749
12790
|
position: 'absolute',
|
|
@@ -12753,7 +12794,7 @@ function getShadowRoot(jodit) {
|
|
|
12753
12794
|
container.appendChild(iframe);
|
|
12754
12795
|
const doc = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document;
|
|
12755
12796
|
const shadowRoot = !doc ? jodit.od.body : doc.body;
|
|
12756
|
-
(0,
|
|
12797
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
|
|
12757
12798
|
return shadowRoot;
|
|
12758
12799
|
}
|
|
12759
12800
|
/**
|
|
@@ -12764,8 +12805,8 @@ function getNativeCSSValue(jodit, elm, key) {
|
|
|
12764
12805
|
newElm.style.cssText = elm.style.cssText;
|
|
12765
12806
|
const root = getShadowRoot(jodit);
|
|
12766
12807
|
root.appendChild(newElm);
|
|
12767
|
-
const result = (0,
|
|
12768
|
-
|
|
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);
|
|
12769
12810
|
return result;
|
|
12770
12811
|
}
|
|
12771
12812
|
|
|
@@ -14756,6 +14797,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
|
|
|
14756
14797
|
}
|
|
14757
14798
|
createContainer(options) {
|
|
14758
14799
|
this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
|
|
14800
|
+
tooltip: options.tooltip,
|
|
14759
14801
|
icon: {
|
|
14760
14802
|
name: 'plus'
|
|
14761
14803
|
}
|
|
@@ -15183,8 +15225,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15183
15225
|
/* harmony export */ required: function() { return /* binding */ required; },
|
|
15184
15226
|
/* harmony export */ url: function() { return /* binding */ url; }
|
|
15185
15227
|
/* harmony export */ });
|
|
15186
|
-
/* harmony import */ var
|
|
15187
|
-
/* 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);
|
|
15188
15230
|
/*!
|
|
15189
15231
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15190
15232
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15196,7 +15238,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15196
15238
|
* Input is required
|
|
15197
15239
|
*/
|
|
15198
15240
|
const required = function (input) {
|
|
15199
|
-
if (!(0,
|
|
15241
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
|
|
15200
15242
|
input.error = 'Please fill out this field';
|
|
15201
15243
|
return false;
|
|
15202
15244
|
}
|
|
@@ -15206,7 +15248,7 @@ const required = function (input) {
|
|
|
15206
15248
|
* Input value should be valid URL
|
|
15207
15249
|
*/
|
|
15208
15250
|
const url = function (input) {
|
|
15209
|
-
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))) {
|
|
15210
15252
|
input.error = 'Please enter a web address';
|
|
15211
15253
|
return false;
|
|
15212
15254
|
}
|
|
@@ -17845,6 +17887,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17845
17887
|
}
|
|
17846
17888
|
}
|
|
17847
17889
|
catch (e) {
|
|
17890
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
17891
|
+
throw e;
|
|
17892
|
+
}
|
|
17848
17893
|
this.destruct();
|
|
17849
17894
|
throw e;
|
|
17850
17895
|
}
|
|
@@ -19823,10 +19868,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
|
|
|
19823
19868
|
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
19824
19869
|
upload: {
|
|
19825
19870
|
icon: 'plus',
|
|
19871
|
+
tooltip: 'Upload file',
|
|
19826
19872
|
isInput: true,
|
|
19827
19873
|
isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
|
|
19828
|
-
getContent: (filebrowser) => {
|
|
19874
|
+
getContent: (filebrowser, btnInt) => {
|
|
19829
19875
|
const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
19876
|
+
tooltip: btnInt.control.tooltip,
|
|
19830
19877
|
onlyImages: filebrowser.state.onlyImages
|
|
19831
19878
|
});
|
|
19832
19879
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -19835,6 +19882,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19835
19882
|
},
|
|
19836
19883
|
remove: {
|
|
19837
19884
|
icon: 'bin',
|
|
19885
|
+
tooltip: 'Remove file',
|
|
19838
19886
|
isDisabled: (browser) => {
|
|
19839
19887
|
return (!browser.state.activeElements.length ||
|
|
19840
19888
|
!browser.dataProvider.canI('FileRemove'));
|
|
@@ -19844,11 +19892,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19844
19892
|
}
|
|
19845
19893
|
},
|
|
19846
19894
|
update: {
|
|
19895
|
+
tooltip: 'Update file list',
|
|
19847
19896
|
exec: (editor) => {
|
|
19848
19897
|
editor.e.fire('update.filebrowser');
|
|
19849
19898
|
}
|
|
19850
19899
|
},
|
|
19851
19900
|
select: {
|
|
19901
|
+
tooltip: 'Select file',
|
|
19852
19902
|
icon: 'check',
|
|
19853
19903
|
isDisabled: (browser) => !browser.state.activeElements.length,
|
|
19854
19904
|
exec: (editor) => {
|
|
@@ -19856,6 +19906,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19856
19906
|
}
|
|
19857
19907
|
},
|
|
19858
19908
|
edit: {
|
|
19909
|
+
tooltip: 'Edit image',
|
|
19859
19910
|
icon: 'pencil',
|
|
19860
19911
|
isDisabled: (browser) => {
|
|
19861
19912
|
const selected = browser.state.activeElements;
|
|
@@ -19869,6 +19920,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19869
19920
|
}
|
|
19870
19921
|
},
|
|
19871
19922
|
tiles: {
|
|
19923
|
+
tooltip: 'Tiles view',
|
|
19872
19924
|
icon: 'th',
|
|
19873
19925
|
isActive: (filebrowser) => filebrowser.state.view === 'tiles',
|
|
19874
19926
|
exec: (filebrowser) => {
|
|
@@ -19876,6 +19928,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19876
19928
|
}
|
|
19877
19929
|
},
|
|
19878
19930
|
list: {
|
|
19931
|
+
tooltip: 'List view',
|
|
19879
19932
|
icon: 'th-list',
|
|
19880
19933
|
isActive: (filebrowser) => filebrowser.state.view === 'list',
|
|
19881
19934
|
exec: (filebrowser) => {
|
|
@@ -20292,7 +20345,6 @@ let DataProvider = class DataProvider {
|
|
|
20292
20345
|
data: {}
|
|
20293
20346
|
};
|
|
20294
20347
|
}
|
|
20295
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
20296
20348
|
const query = this.o[type];
|
|
20297
20349
|
if (query.data === undefined) {
|
|
20298
20350
|
query.data = {
|
|
@@ -20542,7 +20594,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20542
20594
|
get dataProvider() {
|
|
20543
20595
|
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
20544
20596
|
}
|
|
20545
|
-
// eslint-disable-next-line no-unused-vars
|
|
20546
20597
|
onSelect(callback) {
|
|
20547
20598
|
return () => {
|
|
20548
20599
|
if (this.state.activeElements.length) {
|
|
@@ -23064,7 +23115,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23064
23115
|
const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
|
|
23065
23116
|
selector && selectors.push(selector);
|
|
23066
23117
|
});
|
|
23067
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
23068
23118
|
style.innerHTML = selectors.length
|
|
23069
23119
|
? selectors.join(',') +
|
|
23070
23120
|
`{${this.jodit.options.table.selectionCellStyle}}`
|
|
@@ -26865,6 +26915,7 @@ function checkNotCollapsed(jodit) {
|
|
|
26865
26915
|
* ```
|
|
26866
26916
|
* @private
|
|
26867
26917
|
*/
|
|
26918
|
+
// eslint-disable-next-line complexity
|
|
26868
26919
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26869
26920
|
var _a, _b;
|
|
26870
26921
|
const step = backspace ? -1 : 1;
|
|
@@ -31666,6 +31717,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
|
|
|
31666
31717
|
'-ms-user-select: none' +
|
|
31667
31718
|
'}';
|
|
31668
31719
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
|
|
31720
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
|
|
31669
31721
|
|
|
31670
31722
|
|
|
31671
31723
|
/***/ }),
|
|
@@ -31742,6 +31794,9 @@ function iframe(editor) {
|
|
|
31742
31794
|
iframe.setAttribute('allowtransparency', 'true');
|
|
31743
31795
|
iframe.setAttribute('tabindex', opt.tabIndex.toString());
|
|
31744
31796
|
iframe.setAttribute('frameborder', '0');
|
|
31797
|
+
if (opt.iframeSandbox != null) {
|
|
31798
|
+
iframe.setAttribute('sandbox', opt.iframeSandbox);
|
|
31799
|
+
}
|
|
31745
31800
|
editor.workplace.appendChild(iframe);
|
|
31746
31801
|
editor.iframe = iframe;
|
|
31747
31802
|
const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
|
|
@@ -37547,13 +37602,13 @@ function generateCriticalCSS(jodit) {
|
|
|
37547
37602
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
37548
37603
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33465);
|
|
37549
37604
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
37550
|
-
/* harmony import */ var
|
|
37551
|
-
/* harmony import */ var
|
|
37552
|
-
/* harmony import */ var
|
|
37553
|
-
/* harmony import */ var
|
|
37554
|
-
/* harmony import */ var
|
|
37555
|
-
/* harmony import */ var
|
|
37556
|
-
/* 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__);
|
|
37557
37612
|
/*!
|
|
37558
37613
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37559
37614
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37568,8 +37623,8 @@ function generateCriticalCSS(jodit) {
|
|
|
37568
37623
|
|
|
37569
37624
|
|
|
37570
37625
|
|
|
37571
|
-
|
|
37572
|
-
|
|
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 = {
|
|
37573
37628
|
exec: (editor) => {
|
|
37574
37629
|
const iframe = editor.create.element('iframe');
|
|
37575
37630
|
Object.assign(iframe.style, {
|
|
@@ -37580,7 +37635,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
37580
37635
|
height: 0,
|
|
37581
37636
|
border: 0
|
|
37582
37637
|
});
|
|
37583
|
-
(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);
|
|
37584
37639
|
const afterFinishPrint = () => {
|
|
37585
37640
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
37586
37641
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -37596,12 +37651,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
37596
37651
|
}
|
|
37597
37652
|
else {
|
|
37598
37653
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
37599
|
-
(0,
|
|
37654
|
+
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
37600
37655
|
'"><head><title></title></head><style>' +
|
|
37601
|
-
(0,
|
|
37656
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
|
|
37602
37657
|
'</style><body></body></html>');
|
|
37603
37658
|
myWindow.document.close();
|
|
37604
|
-
(0,
|
|
37659
|
+
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
37605
37660
|
}
|
|
37606
37661
|
const style = myWindow.document.createElement('style');
|
|
37607
37662
|
style.innerHTML = `@media print {
|
|
@@ -38677,10 +38732,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38677
38732
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
38678
38733
|
|
|
38679
38734
|
"use strict";
|
|
38680
|
-
/* harmony import */ var
|
|
38681
|
-
/* harmony import */ var
|
|
38682
|
-
/* harmony import */ var
|
|
38683
|
-
/* 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__);
|
|
38684
38740
|
/*!
|
|
38685
38741
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38686
38742
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38690,14 +38746,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38690
38746
|
|
|
38691
38747
|
|
|
38692
38748
|
|
|
38693
|
-
|
|
38694
|
-
|
|
38749
|
+
|
|
38750
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
|
|
38751
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
|
|
38695
38752
|
lazyIdleTimeout: 0,
|
|
38696
|
-
|
|
38697
|
-
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'
|
|
38698
38754
|
};
|
|
38699
|
-
|
|
38700
|
-
|
|
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 = {
|
|
38701
38757
|
tooltip: 'Find',
|
|
38702
38758
|
icon: 'search',
|
|
38703
38759
|
exec(jodit, _, { control }) {
|
|
@@ -38738,8 +38794,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38738
38794
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
38739
38795
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
38740
38796
|
/* harmony export */ });
|
|
38741
|
-
/* harmony import */ var
|
|
38742
|
-
/* 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);
|
|
38743
38800
|
/*!
|
|
38744
38801
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38745
38802
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38747,6 +38804,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38747
38804
|
*/
|
|
38748
38805
|
|
|
38749
38806
|
|
|
38807
|
+
|
|
38750
38808
|
/**
|
|
38751
38809
|
* @private
|
|
38752
38810
|
*/
|
|
@@ -38765,15 +38823,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38765
38823
|
const span = ci.element('span', {
|
|
38766
38824
|
[TMP_ATTR]: true
|
|
38767
38825
|
});
|
|
38768
|
-
|
|
38826
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
|
|
38769
38827
|
normalizeRanges(rng, restRanges, ci);
|
|
38770
38828
|
let next = rng.startContainer;
|
|
38771
38829
|
do {
|
|
38772
38830
|
if (!next) {
|
|
38773
38831
|
break;
|
|
38774
38832
|
}
|
|
38775
|
-
if (
|
|
38776
|
-
|
|
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);
|
|
38777
38835
|
}
|
|
38778
38836
|
if (next === rng.endContainer) {
|
|
38779
38837
|
break;
|
|
@@ -38792,13 +38850,13 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38792
38850
|
* @private
|
|
38793
38851
|
*/
|
|
38794
38852
|
function getSelectionWrappers(root) {
|
|
38795
|
-
return (0,
|
|
38853
|
+
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
|
|
38796
38854
|
}
|
|
38797
38855
|
/**
|
|
38798
38856
|
* @private
|
|
38799
38857
|
*/
|
|
38800
38858
|
function clearSelectionWrappers(root) {
|
|
38801
|
-
getSelectionWrappers(root).forEach(span =>
|
|
38859
|
+
getSelectionWrappers(root).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
|
|
38802
38860
|
}
|
|
38803
38861
|
/**
|
|
38804
38862
|
* @private
|
|
@@ -38810,12 +38868,13 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
38810
38868
|
* @private
|
|
38811
38869
|
*/
|
|
38812
38870
|
function isSelectionWrapper(node) {
|
|
38813
|
-
return
|
|
38871
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
38814
38872
|
}
|
|
38815
38873
|
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
38816
38874
|
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38817
38875
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38818
|
-
|
|
38876
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
38877
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
38819
38878
|
const ranges = [rng, ...restRanges].map(rng => {
|
|
38820
38879
|
const range = jodit.selection.createRange();
|
|
38821
38880
|
range.setStart(rng.startContainer, rng.startOffset);
|
|
@@ -38839,7 +38898,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
38839
38898
|
if (rng.startOffset !== 0) {
|
|
38840
38899
|
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
38841
38900
|
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
38842
|
-
|
|
38901
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
|
|
38843
38902
|
if (rng.startContainer === rng.endContainer) {
|
|
38844
38903
|
diff = rng.startOffset;
|
|
38845
38904
|
rng.endOffset -= diff;
|
|
@@ -38850,7 +38909,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
38850
38909
|
if (rng.endOffset !== endText.length) {
|
|
38851
38910
|
const text = ci.text(endText.substring(rng.endOffset));
|
|
38852
38911
|
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
38853
|
-
|
|
38912
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
|
|
38854
38913
|
for (const range of restRanges) {
|
|
38855
38914
|
if (range.startContainer === rng.endContainer) {
|
|
38856
38915
|
range.startContainer = text;
|
|
@@ -41761,6 +41820,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
|
|
|
41761
41820
|
|
|
41762
41821
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
|
|
41763
41822
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
|
|
41823
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
|
|
41764
41824
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
|
|
41765
41825
|
|
|
41766
41826
|
|
|
@@ -41807,9 +41867,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
|
|
|
41807
41867
|
this.calc = this.j.async.throttle(() => {
|
|
41808
41868
|
const text = this.j.text;
|
|
41809
41869
|
if (this.j.o.showCharsCounter && this.charCounter) {
|
|
41810
|
-
|
|
41811
|
-
|
|
41812
|
-
|
|
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
|
+
}
|
|
41813
41884
|
this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
|
|
41814
41885
|
}
|
|
41815
41886
|
if (this.j.o.showWordsCounter && this.wordCounter) {
|
|
@@ -42443,8 +42514,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42443
42514
|
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
42444
42515
|
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
42445
42516
|
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
42446
|
-
/* harmony export */
|
|
42447
|
-
/* 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__; }
|
|
42448
42520
|
/* harmony export */ });
|
|
42449
42521
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52438);
|
|
42450
42522
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -42484,10 +42556,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42484
42556
|
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
42485
42557
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(64331);
|
|
42486
42558
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
42487
|
-
/* harmony import */ var
|
|
42488
|
-
/* harmony import */ var
|
|
42489
|
-
/* harmony import */ var
|
|
42490
|
-
/* 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__);
|
|
42491
42565
|
/*!
|
|
42492
42566
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42493
42567
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42515,6 +42589,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42515
42589
|
|
|
42516
42590
|
|
|
42517
42591
|
|
|
42592
|
+
|
|
42518
42593
|
|
|
42519
42594
|
|
|
42520
42595
|
/***/ }),
|
|
@@ -42670,6 +42745,23 @@ module.exports = {
|
|
|
42670
42745
|
};
|
|
42671
42746
|
|
|
42672
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
|
+
|
|
42673
42765
|
/***/ }),
|
|
42674
42766
|
|
|
42675
42767
|
/***/ 13599:
|
|
@@ -44395,7 +44487,6 @@ function getTextLeftOfCursor(range) {
|
|
|
44395
44487
|
*/
|
|
44396
44488
|
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
44397
44489
|
var _a, _b, _c;
|
|
44398
|
-
// eslint-disable-next-line prefer-const
|
|
44399
44490
|
let { startContainer, startOffset } = range;
|
|
44400
44491
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(startContainer)) {
|
|
44401
44492
|
startContainer = startContainer.childNodes[startOffset - 1];
|
|
@@ -44908,7 +44999,6 @@ function convertToList(elm) {
|
|
|
44908
44999
|
return elm;
|
|
44909
45000
|
}
|
|
44910
45001
|
function moveUp(leaf) {
|
|
44911
|
-
// eslint-disable-next-line no-constant-condition
|
|
44912
45002
|
while (leaf) {
|
|
44913
45003
|
const prev = leaf.previousElement;
|
|
44914
45004
|
// Leaf after P
|
|
@@ -46298,7 +46388,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
46298
46388
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
46299
46389
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46300
46390
|
***************************************************************************** */
|
|
46301
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
46391
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
46302
46392
|
|
|
46303
46393
|
var extendStatics = function(d, b) {
|
|
46304
46394
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -46409,8 +46499,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
46409
46499
|
}
|
|
46410
46500
|
|
|
46411
46501
|
function __generator(thisArg, body) {
|
|
46412
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
46413
|
-
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;
|
|
46414
46504
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
46415
46505
|
function step(op) {
|
|
46416
46506
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -46514,8 +46604,9 @@ function __await(v) {
|
|
|
46514
46604
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
46515
46605
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
46516
46606
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
46517
|
-
return i =
|
|
46518
|
-
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]); } }
|
|
46519
46610
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
46520
46611
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
46521
46612
|
function fulfill(value) { resume("next", value); }
|
|
@@ -46581,16 +46672,18 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
46581
46672
|
function __addDisposableResource(env, value, async) {
|
|
46582
46673
|
if (value !== null && value !== void 0) {
|
|
46583
46674
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
46584
|
-
var dispose;
|
|
46675
|
+
var dispose, inner;
|
|
46585
46676
|
if (async) {
|
|
46586
|
-
|
|
46587
|
-
|
|
46677
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
46678
|
+
dispose = value[Symbol.asyncDispose];
|
|
46588
46679
|
}
|
|
46589
46680
|
if (dispose === void 0) {
|
|
46590
|
-
|
|
46591
|
-
|
|
46681
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
46682
|
+
dispose = value[Symbol.dispose];
|
|
46683
|
+
if (async) inner = dispose;
|
|
46592
46684
|
}
|
|
46593
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); } };
|
|
46594
46687
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
46595
46688
|
}
|
|
46596
46689
|
else if (async) {
|
|
@@ -46609,17 +46702,22 @@ function __disposeResources(env) {
|
|
|
46609
46702
|
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
46610
46703
|
env.hasError = true;
|
|
46611
46704
|
}
|
|
46705
|
+
var r, s = 0;
|
|
46612
46706
|
function next() {
|
|
46613
|
-
while (env.stack.
|
|
46614
|
-
var rec = env.stack.pop();
|
|
46707
|
+
while (r = env.stack.pop()) {
|
|
46615
46708
|
try {
|
|
46616
|
-
|
|
46617
|
-
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;
|
|
46618
46715
|
}
|
|
46619
46716
|
catch (e) {
|
|
46620
|
-
|
|
46717
|
+
fail(e);
|
|
46621
46718
|
}
|
|
46622
46719
|
}
|
|
46720
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
46623
46721
|
if (env.hasError) throw env.error;
|
|
46624
46722
|
}
|
|
46625
46723
|
return next();
|
|
@@ -46746,11 +46844,88 @@ function __disposeResources(env) {
|
|
|
46746
46844
|
/******/ };
|
|
46747
46845
|
/******/ }();
|
|
46748
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
|
+
/******/
|
|
46749
46878
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
46750
46879
|
/******/ !function() {
|
|
46751
46880
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
46752
46881
|
/******/ }();
|
|
46753
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
|
+
/******/
|
|
46754
46929
|
/******/ /* webpack/runtime/make namespace object */
|
|
46755
46930
|
/******/ !function() {
|
|
46756
46931
|
/******/ // define __esModule on exports
|
|
@@ -46762,6 +46937,11 @@ function __disposeResources(env) {
|
|
|
46762
46937
|
/******/ };
|
|
46763
46938
|
/******/ }();
|
|
46764
46939
|
/******/
|
|
46940
|
+
/******/ /* webpack/runtime/publicPath */
|
|
46941
|
+
/******/ !function() {
|
|
46942
|
+
/******/ __webpack_require__.p = "/build/";
|
|
46943
|
+
/******/ }();
|
|
46944
|
+
/******/
|
|
46765
46945
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
46766
46946
|
/******/ !function() {
|
|
46767
46947
|
/******/ // no baseURI
|
|
@@ -46773,7 +46953,44 @@ function __disposeResources(env) {
|
|
|
46773
46953
|
/******/ 521: 0
|
|
46774
46954
|
/******/ };
|
|
46775
46955
|
/******/
|
|
46776
|
-
/******/
|
|
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
|
+
/******/ };
|
|
46777
46994
|
/******/
|
|
46778
46995
|
/******/ // no prefetching
|
|
46779
46996
|
/******/
|