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/es2018/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 = "es2018";
|
|
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
|
|
|
@@ -8234,16 +8258,18 @@ const buildQuery = (data, prefix) => {
|
|
|
8234
8258
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8235
8259
|
/* harmony export */ X: function() { return /* binding */ completeUrl; }
|
|
8236
8260
|
/* harmony export */ });
|
|
8261
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8237
8262
|
/*!
|
|
8238
8263
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8239
8264
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8240
8265
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8241
8266
|
*/
|
|
8267
|
+
|
|
8242
8268
|
/**
|
|
8243
8269
|
* @module helpers/utils
|
|
8244
8270
|
*/
|
|
8245
8271
|
const completeUrl = (url) => {
|
|
8246
|
-
if (
|
|
8272
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
|
|
8247
8273
|
url = 'https:' + url;
|
|
8248
8274
|
}
|
|
8249
8275
|
return url;
|
|
@@ -8360,8 +8386,9 @@ function ConfigFlatten(obj) {
|
|
|
8360
8386
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8361
8387
|
/* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
|
|
8362
8388
|
/* harmony export */ });
|
|
8363
|
-
/* harmony import */ var
|
|
8364
|
-
/* harmony import */ var
|
|
8389
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8390
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
|
|
8391
|
+
/* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15896);
|
|
8365
8392
|
/*!
|
|
8366
8393
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8367
8394
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8372,14 +8399,15 @@ function ConfigFlatten(obj) {
|
|
|
8372
8399
|
*/
|
|
8373
8400
|
|
|
8374
8401
|
|
|
8402
|
+
|
|
8375
8403
|
/**
|
|
8376
8404
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8377
8405
|
*/
|
|
8378
8406
|
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8379
|
-
if (!(0,
|
|
8407
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8380
8408
|
return url;
|
|
8381
8409
|
}
|
|
8382
|
-
const parser =
|
|
8410
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8383
8411
|
parser.href = url;
|
|
8384
8412
|
if (!width) {
|
|
8385
8413
|
width = 400;
|
|
@@ -8405,7 +8433,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8405
8433
|
case 'youtu.be':
|
|
8406
8434
|
case 'www.youtu.be': {
|
|
8407
8435
|
const query = parser.search
|
|
8408
|
-
? (0,
|
|
8436
|
+
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8409
8437
|
: { v: parser.pathname.substr(1) };
|
|
8410
8438
|
return query.v
|
|
8411
8439
|
? '<iframe width="' +
|
|
@@ -8599,7 +8627,8 @@ const dataBind = (elm, key, value) => {
|
|
|
8599
8627
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8600
8628
|
/* harmony export */ e: function() { return /* binding */ defaultLanguage; }
|
|
8601
8629
|
/* harmony export */ });
|
|
8602
|
-
/* harmony import */ var
|
|
8630
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8631
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26986);
|
|
8603
8632
|
/*!
|
|
8604
8633
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8605
8634
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8609,15 +8638,16 @@ const dataBind = (elm, key, value) => {
|
|
|
8609
8638
|
* @module helpers/utils
|
|
8610
8639
|
*/
|
|
8611
8640
|
|
|
8641
|
+
|
|
8612
8642
|
/**
|
|
8613
8643
|
* Try define user language
|
|
8614
8644
|
*/
|
|
8615
8645
|
const defaultLanguage = (language, defaultLanguage = 'en') => {
|
|
8616
|
-
if (language !== 'auto' && (0,
|
|
8646
|
+
if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
|
|
8617
8647
|
return language;
|
|
8618
8648
|
}
|
|
8619
|
-
if (
|
|
8620
|
-
return
|
|
8649
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang) {
|
|
8650
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang;
|
|
8621
8651
|
}
|
|
8622
8652
|
if (navigator.language) {
|
|
8623
8653
|
return navigator.language.substring(0, 2);
|
|
@@ -9371,10 +9401,10 @@ const map = {};
|
|
|
9371
9401
|
function reset(key) {
|
|
9372
9402
|
var _a, _b;
|
|
9373
9403
|
if (!(key in map)) {
|
|
9374
|
-
const iframe =
|
|
9404
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
9375
9405
|
try {
|
|
9376
9406
|
iframe.src = 'about:blank';
|
|
9377
|
-
|
|
9407
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
9378
9408
|
if (!iframe.contentWindow) {
|
|
9379
9409
|
return null;
|
|
9380
9410
|
}
|
|
@@ -10303,14 +10333,15 @@ Plugin.requires = [];
|
|
|
10303
10333
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10304
10334
|
/* harmony export */ d: function() { return /* binding */ Ajax; }
|
|
10305
10335
|
/* harmony export */ });
|
|
10306
|
-
/* harmony import */ var
|
|
10336
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
10307
10337
|
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61341);
|
|
10308
|
-
/* harmony import */ var
|
|
10309
|
-
/* harmony import */ var
|
|
10310
|
-
/* harmony import */ var
|
|
10311
|
-
/* harmony import */ var
|
|
10312
|
-
/* harmony import */ var
|
|
10313
|
-
/* harmony import */ var
|
|
10338
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
|
|
10339
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33442);
|
|
10340
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
10341
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24839);
|
|
10342
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
10343
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91596);
|
|
10344
|
+
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85349);
|
|
10314
10345
|
/*!
|
|
10315
10346
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10316
10347
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10324,33 +10355,34 @@ Plugin.requires = [];
|
|
|
10324
10355
|
|
|
10325
10356
|
|
|
10326
10357
|
|
|
10358
|
+
|
|
10327
10359
|
class Ajax {
|
|
10328
10360
|
className() {
|
|
10329
10361
|
return 'Ajax';
|
|
10330
10362
|
}
|
|
10331
|
-
constructor(options, defaultAjaxOptions =
|
|
10363
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
10332
10364
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
10333
10365
|
this.__isFulfilled = false;
|
|
10334
10366
|
this.__activated = false;
|
|
10335
10367
|
this.__isDestructed = false;
|
|
10336
|
-
this.options = (0,
|
|
10368
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
|
|
10337
10369
|
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
10338
10370
|
}
|
|
10339
10371
|
__buildParams(obj, prefix) {
|
|
10340
|
-
if ((0,
|
|
10372
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
|
|
10341
10373
|
this.options.contentType &&
|
|
10342
10374
|
this.options.contentType.includes('application/json')) {
|
|
10343
10375
|
return JSON.stringify(obj);
|
|
10344
10376
|
}
|
|
10345
|
-
if ((0,
|
|
10377
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
|
|
10346
10378
|
return this.o.queryBuild.call(this, obj, prefix);
|
|
10347
10379
|
}
|
|
10348
|
-
if ((0,
|
|
10349
|
-
obj instanceof
|
|
10350
|
-
(typeof obj === 'object' && obj != null && (0,
|
|
10380
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(obj) ||
|
|
10381
|
+
obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.globalWindow.FormData ||
|
|
10382
|
+
(typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(obj.append))) {
|
|
10351
10383
|
return obj;
|
|
10352
10384
|
}
|
|
10353
|
-
return (0,
|
|
10385
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
|
|
10354
10386
|
}
|
|
10355
10387
|
get o() {
|
|
10356
10388
|
return this.options;
|
|
@@ -10374,16 +10406,16 @@ class Ajax {
|
|
|
10374
10406
|
var _a;
|
|
10375
10407
|
const onReject = () => {
|
|
10376
10408
|
this.__isFulfilled = true;
|
|
10377
|
-
reject(
|
|
10409
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
|
|
10378
10410
|
};
|
|
10379
10411
|
const onResolve = () => {
|
|
10380
10412
|
this.__isFulfilled = true;
|
|
10381
|
-
resolve(new
|
|
10413
|
+
resolve(new _response__WEBPACK_IMPORTED_MODULE_6__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
|
|
10382
10414
|
};
|
|
10383
10415
|
xhr.onload = onResolve;
|
|
10384
10416
|
xhr.onabort = () => {
|
|
10385
10417
|
this.__isFulfilled = true;
|
|
10386
|
-
reject(
|
|
10418
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
|
|
10387
10419
|
};
|
|
10388
10420
|
xhr.onerror = onReject;
|
|
10389
10421
|
xhr.ontimeout = onReject;
|
|
@@ -10407,7 +10439,7 @@ class Ajax {
|
|
|
10407
10439
|
}
|
|
10408
10440
|
else if (xhr.statusText) {
|
|
10409
10441
|
this.__isFulfilled = true;
|
|
10410
|
-
reject(
|
|
10442
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
|
|
10411
10443
|
}
|
|
10412
10444
|
}
|
|
10413
10445
|
};
|
|
@@ -10418,7 +10450,7 @@ class Ajax {
|
|
|
10418
10450
|
xhr.setRequestHeader('Content-type', o.contentType);
|
|
10419
10451
|
}
|
|
10420
10452
|
let { headers } = o;
|
|
10421
|
-
if ((0,
|
|
10453
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
|
|
10422
10454
|
headers = await headers.call(this);
|
|
10423
10455
|
}
|
|
10424
10456
|
if (headers && xhr.setRequestHeader) {
|
|
@@ -10434,22 +10466,22 @@ class Ajax {
|
|
|
10434
10466
|
}
|
|
10435
10467
|
prepareRequest() {
|
|
10436
10468
|
if (!this.o.url) {
|
|
10437
|
-
throw
|
|
10469
|
+
throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
|
|
10438
10470
|
}
|
|
10439
10471
|
let url = this.o.url;
|
|
10440
10472
|
const data = this.o.data;
|
|
10441
10473
|
const method = (this.o.method || 'get').toLowerCase();
|
|
10442
|
-
if (method === 'get' && data && (0,
|
|
10474
|
+
if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
|
|
10443
10475
|
const qIndex = url.indexOf('?');
|
|
10444
10476
|
if (qIndex !== -1) {
|
|
10445
|
-
const urlData = (0,
|
|
10477
|
+
const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
|
|
10446
10478
|
url =
|
|
10447
10479
|
url.substring(0, qIndex) +
|
|
10448
10480
|
'?' +
|
|
10449
|
-
(0,
|
|
10481
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)({ ...urlData, ...data });
|
|
10450
10482
|
}
|
|
10451
10483
|
else {
|
|
10452
|
-
url += '?' + (0,
|
|
10484
|
+
url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
|
|
10453
10485
|
}
|
|
10454
10486
|
}
|
|
10455
10487
|
const request = {
|
|
@@ -10473,8 +10505,8 @@ class Ajax {
|
|
|
10473
10505
|
}
|
|
10474
10506
|
}
|
|
10475
10507
|
Ajax.log = [];
|
|
10476
|
-
(0,
|
|
10477
|
-
|
|
10508
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
10509
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
|
|
10478
10510
|
], Ajax.prototype, "destruct", null);
|
|
10479
10511
|
|
|
10480
10512
|
|
|
@@ -11364,6 +11396,7 @@ class Selection {
|
|
|
11364
11396
|
/**
|
|
11365
11397
|
* Call callback for all selection node
|
|
11366
11398
|
*/
|
|
11399
|
+
// eslint-disable-next-line complexity
|
|
11367
11400
|
eachSelection(callback) {
|
|
11368
11401
|
var _a;
|
|
11369
11402
|
const sel = this.sel;
|
|
@@ -12148,12 +12181,13 @@ function getSuitParent(style, node, root) {
|
|
|
12148
12181
|
/* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
|
|
12149
12182
|
/* harmony export */ g: function() { return /* binding */ hasSameStyle; }
|
|
12150
12183
|
/* harmony export */ });
|
|
12151
|
-
/* harmony import */ var
|
|
12152
|
-
/* harmony import */ var
|
|
12153
|
-
/* harmony import */ var
|
|
12154
|
-
/* harmony import */ var
|
|
12155
|
-
/* harmony import */ var
|
|
12156
|
-
/* harmony import */ var
|
|
12184
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
12185
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
12186
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74197);
|
|
12187
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43581);
|
|
12188
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
12189
|
+
/* 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__);
|
|
12190
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4401);
|
|
12157
12191
|
/*!
|
|
12158
12192
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12159
12193
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12164,48 +12198,53 @@ function getSuitParent(style, node, root) {
|
|
|
12164
12198
|
|
|
12165
12199
|
|
|
12166
12200
|
|
|
12201
|
+
|
|
12167
12202
|
/**
|
|
12168
12203
|
* Element has the same styles as in the commit
|
|
12169
12204
|
* @private
|
|
12170
12205
|
*/
|
|
12171
12206
|
function hasSameStyle(elm, rules) {
|
|
12172
|
-
return Boolean(!
|
|
12173
|
-
|
|
12207
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
12208
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
12174
12209
|
Object.keys(rules).every(property => {
|
|
12175
|
-
const value = (0,
|
|
12210
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12176
12211
|
if (value === '' &&
|
|
12177
12212
|
(rules[property] === '' || rules[property] == null)) {
|
|
12178
12213
|
return true;
|
|
12179
12214
|
}
|
|
12180
|
-
return (!(0,
|
|
12215
|
+
return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
|
|
12181
12216
|
value !== '' &&
|
|
12182
|
-
!(0,
|
|
12183
|
-
(0,
|
|
12217
|
+
!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(rules[property]) &&
|
|
12218
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__/* .normalizeCssValue */ .iy)(property, rules[property])
|
|
12184
12219
|
.toString()
|
|
12185
12220
|
.toLowerCase() === value.toString().toLowerCase());
|
|
12186
12221
|
}));
|
|
12187
12222
|
}
|
|
12188
|
-
|
|
12189
|
-
elm
|
|
12190
|
-
|
|
12191
|
-
void 0;
|
|
12192
|
-
void 0;
|
|
12223
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
12224
|
+
const elm = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
12225
|
+
elm.style.color = 'red';
|
|
12226
|
+
void 0;
|
|
12227
|
+
void 0;
|
|
12228
|
+
void 0;
|
|
12229
|
+
}
|
|
12193
12230
|
/**
|
|
12194
12231
|
* Element has the similar styles keys
|
|
12195
12232
|
*/
|
|
12196
12233
|
function hasSameStyleKeys(elm, rules) {
|
|
12197
|
-
return Boolean(!
|
|
12198
|
-
|
|
12234
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
12235
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
12199
12236
|
Object.keys(rules).every(property => {
|
|
12200
|
-
const value = (0,
|
|
12237
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12201
12238
|
return value !== '';
|
|
12202
12239
|
}));
|
|
12203
12240
|
}
|
|
12204
|
-
|
|
12205
|
-
elm2
|
|
12206
|
-
|
|
12207
|
-
void 0;
|
|
12208
|
-
void 0;
|
|
12241
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
12242
|
+
const elm2 = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
12243
|
+
elm2.style.color = 'red';
|
|
12244
|
+
void 0;
|
|
12245
|
+
void 0;
|
|
12246
|
+
void 0;
|
|
12247
|
+
}
|
|
12209
12248
|
|
|
12210
12249
|
|
|
12211
12250
|
/***/ }),
|
|
@@ -12588,16 +12627,17 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12588
12627
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12589
12628
|
/* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
|
|
12590
12629
|
/* harmony export */ });
|
|
12591
|
-
/* harmony import */ var
|
|
12592
|
-
/* harmony import */ var
|
|
12593
|
-
/* harmony import */ var
|
|
12594
|
-
/* harmony import */ var
|
|
12595
|
-
/* harmony import */ var
|
|
12596
|
-
/* harmony import */ var
|
|
12597
|
-
/* harmony import */ var
|
|
12598
|
-
/* harmony import */ var
|
|
12599
|
-
/* harmony import */ var
|
|
12600
|
-
/* harmony import */ var
|
|
12630
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
12631
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
12632
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
12633
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58588);
|
|
12634
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43581);
|
|
12635
|
+
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88455);
|
|
12636
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18014);
|
|
12637
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71122);
|
|
12638
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4401);
|
|
12639
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49382);
|
|
12640
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43072);
|
|
12601
12641
|
/*!
|
|
12602
12642
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12603
12643
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12613,6 +12653,7 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12613
12653
|
|
|
12614
12654
|
|
|
12615
12655
|
|
|
12656
|
+
|
|
12616
12657
|
const tak = 'toggleAttributes';
|
|
12617
12658
|
/**
|
|
12618
12659
|
* Toggles attributes
|
|
@@ -12624,7 +12665,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12624
12665
|
}
|
|
12625
12666
|
!dry && commitStyle.setApplied(elm, tak);
|
|
12626
12667
|
const { attributes } = commitStyle.options;
|
|
12627
|
-
if (attributes && (0,
|
|
12668
|
+
if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
|
|
12628
12669
|
Object.keys(attributes).forEach((key) => {
|
|
12629
12670
|
const value = attributes[key];
|
|
12630
12671
|
switch (key) {
|
|
@@ -12646,24 +12687,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12646
12687
|
function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
12647
12688
|
void 0;
|
|
12648
12689
|
Object.keys(style).forEach((rule) => {
|
|
12649
|
-
const inlineValue = elm.style.getPropertyValue((0,
|
|
12690
|
+
const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__/* .kebabCase */ .k)(rule));
|
|
12650
12691
|
const newValue = style[rule];
|
|
12651
12692
|
if (inlineValue === '' && newValue == null) {
|
|
12652
12693
|
return;
|
|
12653
12694
|
}
|
|
12654
12695
|
if (getNativeCSSValue(jodit, elm, rule) ===
|
|
12655
|
-
(0,
|
|
12696
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
|
|
12656
12697
|
if (!inlineValue) {
|
|
12657
12698
|
return;
|
|
12658
12699
|
}
|
|
12659
|
-
!dry && (0,
|
|
12660
|
-
mode =
|
|
12700
|
+
!dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, null);
|
|
12701
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12661
12702
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12662
12703
|
return;
|
|
12663
12704
|
}
|
|
12664
|
-
mode =
|
|
12705
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12665
12706
|
if (!dry) {
|
|
12666
|
-
(0,
|
|
12707
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
|
|
12667
12708
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12668
12709
|
}
|
|
12669
12710
|
});
|
|
@@ -12671,19 +12712,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
|
12671
12712
|
}
|
|
12672
12713
|
function toggleClass(jodit, value, elm, mode, dry) {
|
|
12673
12714
|
void 0;
|
|
12674
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12715
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12675
12716
|
if (elm.classList.contains(value.toString())) {
|
|
12676
|
-
mode =
|
|
12717
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12677
12718
|
if (!dry) {
|
|
12678
12719
|
elm.classList.remove(value);
|
|
12679
12720
|
if (elm.classList.length === 0) {
|
|
12680
|
-
(0,
|
|
12721
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
|
|
12681
12722
|
hook(mode, elm, 'class', null);
|
|
12682
12723
|
}
|
|
12683
12724
|
}
|
|
12684
12725
|
}
|
|
12685
12726
|
else {
|
|
12686
|
-
mode =
|
|
12727
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12687
12728
|
if (!dry) {
|
|
12688
12729
|
elm.classList.add(value);
|
|
12689
12730
|
hook(mode, elm, 'class', value);
|
|
@@ -12693,16 +12734,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
|
|
|
12693
12734
|
}
|
|
12694
12735
|
function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
12695
12736
|
void 0;
|
|
12696
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12697
|
-
if ((0,
|
|
12698
|
-
!dry && (0,
|
|
12699
|
-
mode =
|
|
12737
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12738
|
+
if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key) === value) {
|
|
12739
|
+
!dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, null);
|
|
12740
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12700
12741
|
!dry && hook(mode, elm, key, value);
|
|
12701
12742
|
return mode;
|
|
12702
12743
|
}
|
|
12703
|
-
mode =
|
|
12744
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12704
12745
|
if (!dry) {
|
|
12705
|
-
(0,
|
|
12746
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
|
|
12706
12747
|
hook(mode, elm, key, value);
|
|
12707
12748
|
}
|
|
12708
12749
|
return mode;
|
|
@@ -12712,11 +12753,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
|
12712
12753
|
* and if it is default, it removes the element itself
|
|
12713
12754
|
*/
|
|
12714
12755
|
function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
12715
|
-
if (!(0,
|
|
12716
|
-
(0,
|
|
12756
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style')) {
|
|
12757
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style', null);
|
|
12717
12758
|
if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
|
|
12718
|
-
|
|
12719
|
-
mode =
|
|
12759
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(elm);
|
|
12760
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNWRAP */ .OJ;
|
|
12720
12761
|
}
|
|
12721
12762
|
}
|
|
12722
12763
|
return mode;
|
|
@@ -12726,12 +12767,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
|
12726
12767
|
*/
|
|
12727
12768
|
function getShadowRoot(jodit) {
|
|
12728
12769
|
var _a;
|
|
12729
|
-
if ((0,
|
|
12730
|
-
return (0,
|
|
12770
|
+
if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
|
|
12771
|
+
return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
|
|
12731
12772
|
}
|
|
12732
|
-
const container = (0,
|
|
12733
|
-
const iframe =
|
|
12734
|
-
(0,
|
|
12773
|
+
const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(jodit);
|
|
12774
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
12775
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(iframe, {
|
|
12735
12776
|
width: 0,
|
|
12736
12777
|
height: 0,
|
|
12737
12778
|
position: 'absolute',
|
|
@@ -12741,7 +12782,7 @@ function getShadowRoot(jodit) {
|
|
|
12741
12782
|
container.appendChild(iframe);
|
|
12742
12783
|
const doc = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document;
|
|
12743
12784
|
const shadowRoot = !doc ? jodit.od.body : doc.body;
|
|
12744
|
-
(0,
|
|
12785
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
|
|
12745
12786
|
return shadowRoot;
|
|
12746
12787
|
}
|
|
12747
12788
|
/**
|
|
@@ -12752,8 +12793,8 @@ function getNativeCSSValue(jodit, elm, key) {
|
|
|
12752
12793
|
newElm.style.cssText = elm.style.cssText;
|
|
12753
12794
|
const root = getShadowRoot(jodit);
|
|
12754
12795
|
root.appendChild(newElm);
|
|
12755
|
-
const result = (0,
|
|
12756
|
-
|
|
12796
|
+
const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(newElm, key);
|
|
12797
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(newElm);
|
|
12757
12798
|
return result;
|
|
12758
12799
|
}
|
|
12759
12800
|
|
|
@@ -14789,6 +14830,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
|
|
|
14789
14830
|
}
|
|
14790
14831
|
createContainer(options) {
|
|
14791
14832
|
this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
|
|
14833
|
+
tooltip: options.tooltip,
|
|
14792
14834
|
icon: {
|
|
14793
14835
|
name: 'plus'
|
|
14794
14836
|
}
|
|
@@ -15228,8 +15270,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15228
15270
|
/* harmony export */ required: function() { return /* binding */ required; },
|
|
15229
15271
|
/* harmony export */ url: function() { return /* binding */ url; }
|
|
15230
15272
|
/* harmony export */ });
|
|
15231
|
-
/* harmony import */ var
|
|
15232
|
-
/* harmony import */ var
|
|
15273
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
|
|
15274
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
|
|
15233
15275
|
/*!
|
|
15234
15276
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15235
15277
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15241,7 +15283,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15241
15283
|
* Input is required
|
|
15242
15284
|
*/
|
|
15243
15285
|
const required = function (input) {
|
|
15244
|
-
if (!(0,
|
|
15286
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
|
|
15245
15287
|
input.error = 'Please fill out this field';
|
|
15246
15288
|
return false;
|
|
15247
15289
|
}
|
|
@@ -15251,7 +15293,7 @@ const required = function (input) {
|
|
|
15251
15293
|
* Input value should be valid URL
|
|
15252
15294
|
*/
|
|
15253
15295
|
const url = function (input) {
|
|
15254
|
-
if (!(0,
|
|
15296
|
+
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))) {
|
|
15255
15297
|
input.error = 'Please enter a web address';
|
|
15256
15298
|
return false;
|
|
15257
15299
|
}
|
|
@@ -17900,6 +17942,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17900
17942
|
}
|
|
17901
17943
|
}
|
|
17902
17944
|
catch (e) {
|
|
17945
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
17946
|
+
throw e;
|
|
17947
|
+
}
|
|
17903
17948
|
this.destruct();
|
|
17904
17949
|
throw e;
|
|
17905
17950
|
}
|
|
@@ -19893,10 +19938,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
|
|
|
19893
19938
|
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
19894
19939
|
upload: {
|
|
19895
19940
|
icon: 'plus',
|
|
19941
|
+
tooltip: 'Upload file',
|
|
19896
19942
|
isInput: true,
|
|
19897
19943
|
isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
|
|
19898
|
-
getContent: (filebrowser) => {
|
|
19944
|
+
getContent: (filebrowser, btnInt) => {
|
|
19899
19945
|
const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
19946
|
+
tooltip: btnInt.control.tooltip,
|
|
19900
19947
|
onlyImages: filebrowser.state.onlyImages
|
|
19901
19948
|
});
|
|
19902
19949
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -19905,6 +19952,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19905
19952
|
},
|
|
19906
19953
|
remove: {
|
|
19907
19954
|
icon: 'bin',
|
|
19955
|
+
tooltip: 'Remove file',
|
|
19908
19956
|
isDisabled: (browser) => {
|
|
19909
19957
|
return (!browser.state.activeElements.length ||
|
|
19910
19958
|
!browser.dataProvider.canI('FileRemove'));
|
|
@@ -19914,11 +19962,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19914
19962
|
}
|
|
19915
19963
|
},
|
|
19916
19964
|
update: {
|
|
19965
|
+
tooltip: 'Update file list',
|
|
19917
19966
|
exec: (editor) => {
|
|
19918
19967
|
editor.e.fire('update.filebrowser');
|
|
19919
19968
|
}
|
|
19920
19969
|
},
|
|
19921
19970
|
select: {
|
|
19971
|
+
tooltip: 'Select file',
|
|
19922
19972
|
icon: 'check',
|
|
19923
19973
|
isDisabled: (browser) => !browser.state.activeElements.length,
|
|
19924
19974
|
exec: (editor) => {
|
|
@@ -19926,6 +19976,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19926
19976
|
}
|
|
19927
19977
|
},
|
|
19928
19978
|
edit: {
|
|
19979
|
+
tooltip: 'Edit image',
|
|
19929
19980
|
icon: 'pencil',
|
|
19930
19981
|
isDisabled: (browser) => {
|
|
19931
19982
|
const selected = browser.state.activeElements;
|
|
@@ -19939,6 +19990,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19939
19990
|
}
|
|
19940
19991
|
},
|
|
19941
19992
|
tiles: {
|
|
19993
|
+
tooltip: 'Tiles view',
|
|
19942
19994
|
icon: 'th',
|
|
19943
19995
|
isActive: (filebrowser) => filebrowser.state.view === 'tiles',
|
|
19944
19996
|
exec: (filebrowser) => {
|
|
@@ -19946,6 +19998,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19946
19998
|
}
|
|
19947
19999
|
},
|
|
19948
20000
|
list: {
|
|
20001
|
+
tooltip: 'List view',
|
|
19949
20002
|
icon: 'th-list',
|
|
19950
20003
|
isActive: (filebrowser) => filebrowser.state.view === 'list',
|
|
19951
20004
|
exec: (filebrowser) => {
|
|
@@ -20362,7 +20415,6 @@ let DataProvider = class DataProvider {
|
|
|
20362
20415
|
data: {}
|
|
20363
20416
|
};
|
|
20364
20417
|
}
|
|
20365
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
20366
20418
|
const query = this.o[type];
|
|
20367
20419
|
if (query.data === undefined) {
|
|
20368
20420
|
query.data = {
|
|
@@ -20608,7 +20660,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20608
20660
|
get dataProvider() {
|
|
20609
20661
|
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
20610
20662
|
}
|
|
20611
|
-
// eslint-disable-next-line no-unused-vars
|
|
20612
20663
|
onSelect(callback) {
|
|
20613
20664
|
return () => {
|
|
20614
20665
|
if (this.state.activeElements.length) {
|
|
@@ -23130,7 +23181,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23130
23181
|
const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
|
|
23131
23182
|
selector && selectors.push(selector);
|
|
23132
23183
|
});
|
|
23133
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
23134
23184
|
style.innerHTML = selectors.length
|
|
23135
23185
|
? selectors.join(',') +
|
|
23136
23186
|
`{${this.jodit.options.table.selectionCellStyle}}`
|
|
@@ -26946,6 +26996,7 @@ function checkNotCollapsed(jodit) {
|
|
|
26946
26996
|
* ```
|
|
26947
26997
|
* @private
|
|
26948
26998
|
*/
|
|
26999
|
+
// eslint-disable-next-line complexity
|
|
26949
27000
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26950
27001
|
var _a, _b;
|
|
26951
27002
|
const step = backspace ? -1 : 1;
|
|
@@ -31757,6 +31808,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
|
|
|
31757
31808
|
'-ms-user-select: none' +
|
|
31758
31809
|
'}';
|
|
31759
31810
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
|
|
31811
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
|
|
31760
31812
|
|
|
31761
31813
|
|
|
31762
31814
|
/***/ }),
|
|
@@ -31833,6 +31885,9 @@ function iframe(editor) {
|
|
|
31833
31885
|
iframe.setAttribute('allowtransparency', 'true');
|
|
31834
31886
|
iframe.setAttribute('tabindex', opt.tabIndex.toString());
|
|
31835
31887
|
iframe.setAttribute('frameborder', '0');
|
|
31888
|
+
if (opt.iframeSandbox != null) {
|
|
31889
|
+
iframe.setAttribute('sandbox', opt.iframeSandbox);
|
|
31890
|
+
}
|
|
31836
31891
|
editor.workplace.appendChild(iframe);
|
|
31837
31892
|
editor.iframe = iframe;
|
|
31838
31893
|
const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
|
|
@@ -37616,13 +37671,13 @@ function generateCriticalCSS(jodit) {
|
|
|
37616
37671
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
37617
37672
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33465);
|
|
37618
37673
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
37619
|
-
/* harmony import */ var
|
|
37620
|
-
/* harmony import */ var
|
|
37621
|
-
/* harmony import */ var
|
|
37622
|
-
/* harmony import */ var
|
|
37623
|
-
/* harmony import */ var
|
|
37624
|
-
/* harmony import */ var
|
|
37625
|
-
/* harmony import */ var
|
|
37674
|
+
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54614);
|
|
37675
|
+
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85769);
|
|
37676
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80004);
|
|
37677
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
|
|
37678
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86134);
|
|
37679
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26899);
|
|
37680
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
37626
37681
|
/*!
|
|
37627
37682
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37628
37683
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37637,8 +37692,8 @@ function generateCriticalCSS(jodit) {
|
|
|
37637
37692
|
|
|
37638
37693
|
|
|
37639
37694
|
|
|
37640
|
-
|
|
37641
|
-
|
|
37695
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
37696
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.print = {
|
|
37642
37697
|
exec: (editor) => {
|
|
37643
37698
|
const iframe = editor.create.element('iframe');
|
|
37644
37699
|
Object.assign(iframe.style, {
|
|
@@ -37649,7 +37704,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
37649
37704
|
height: 0,
|
|
37650
37705
|
border: 0
|
|
37651
37706
|
});
|
|
37652
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
37707
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T).appendChild(iframe);
|
|
37653
37708
|
const afterFinishPrint = () => {
|
|
37654
37709
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
37655
37710
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -37665,12 +37720,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
37665
37720
|
}
|
|
37666
37721
|
else {
|
|
37667
37722
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
37668
|
-
(0,
|
|
37723
|
+
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
37669
37724
|
'"><head><title></title></head><style>' +
|
|
37670
|
-
(0,
|
|
37725
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
|
|
37671
37726
|
'</style><body></body></html>');
|
|
37672
37727
|
myWindow.document.close();
|
|
37673
|
-
(0,
|
|
37728
|
+
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
37674
37729
|
}
|
|
37675
37730
|
const style = myWindow.document.createElement('style');
|
|
37676
37731
|
style.innerHTML = `@media print {
|
|
@@ -38746,10 +38801,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38746
38801
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
38747
38802
|
|
|
38748
38803
|
"use strict";
|
|
38749
|
-
/* harmony import */ var
|
|
38750
|
-
/* harmony import */ var
|
|
38751
|
-
/* harmony import */ var
|
|
38752
|
-
/* harmony import */ var
|
|
38804
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
38805
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
38806
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
38807
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98973);
|
|
38808
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
38753
38809
|
/*!
|
|
38754
38810
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38755
38811
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38759,14 +38815,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38759
38815
|
|
|
38760
38816
|
|
|
38761
38817
|
|
|
38762
|
-
|
|
38763
|
-
|
|
38818
|
+
|
|
38819
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
|
|
38820
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
|
|
38764
38821
|
lazyIdleTimeout: 0,
|
|
38765
|
-
|
|
38766
|
-
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
38822
|
+
useCustomHighlightAPI: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined'
|
|
38767
38823
|
};
|
|
38768
|
-
|
|
38769
|
-
|
|
38824
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
38825
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
|
|
38770
38826
|
tooltip: 'Find',
|
|
38771
38827
|
icon: 'search',
|
|
38772
38828
|
exec(jodit, _, { control }) {
|
|
@@ -38807,8 +38863,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38807
38863
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
38808
38864
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
38809
38865
|
/* harmony export */ });
|
|
38810
|
-
/* harmony import */ var
|
|
38811
|
-
/* harmony import */ var
|
|
38866
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
38867
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
38868
|
+
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52989);
|
|
38812
38869
|
/*!
|
|
38813
38870
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38814
38871
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38816,6 +38873,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38816
38873
|
*/
|
|
38817
38874
|
|
|
38818
38875
|
|
|
38876
|
+
|
|
38819
38877
|
/**
|
|
38820
38878
|
* @private
|
|
38821
38879
|
*/
|
|
@@ -38834,15 +38892,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38834
38892
|
const span = ci.element('span', {
|
|
38835
38893
|
[TMP_ATTR]: true
|
|
38836
38894
|
});
|
|
38837
|
-
|
|
38895
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
|
|
38838
38896
|
normalizeRanges(rng, restRanges, ci);
|
|
38839
38897
|
let next = rng.startContainer;
|
|
38840
38898
|
do {
|
|
38841
38899
|
if (!next) {
|
|
38842
38900
|
break;
|
|
38843
38901
|
}
|
|
38844
|
-
if (
|
|
38845
|
-
|
|
38902
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
|
|
38903
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
|
|
38846
38904
|
}
|
|
38847
38905
|
if (next === rng.endContainer) {
|
|
38848
38906
|
break;
|
|
@@ -38861,13 +38919,13 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38861
38919
|
* @private
|
|
38862
38920
|
*/
|
|
38863
38921
|
function getSelectionWrappers(root) {
|
|
38864
|
-
return (0,
|
|
38922
|
+
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
|
|
38865
38923
|
}
|
|
38866
38924
|
/**
|
|
38867
38925
|
* @private
|
|
38868
38926
|
*/
|
|
38869
38927
|
function clearSelectionWrappers(root) {
|
|
38870
|
-
getSelectionWrappers(root).forEach(span =>
|
|
38928
|
+
getSelectionWrappers(root).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
|
|
38871
38929
|
}
|
|
38872
38930
|
/**
|
|
38873
38931
|
* @private
|
|
@@ -38879,12 +38937,13 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
38879
38937
|
* @private
|
|
38880
38938
|
*/
|
|
38881
38939
|
function isSelectionWrapper(node) {
|
|
38882
|
-
return
|
|
38940
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
38883
38941
|
}
|
|
38884
38942
|
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
38885
38943
|
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38886
38944
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38887
|
-
|
|
38945
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
38946
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
38888
38947
|
const ranges = [rng, ...restRanges].map(rng => {
|
|
38889
38948
|
const range = jodit.selection.createRange();
|
|
38890
38949
|
range.setStart(rng.startContainer, rng.startOffset);
|
|
@@ -38908,7 +38967,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
38908
38967
|
if (rng.startOffset !== 0) {
|
|
38909
38968
|
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
38910
38969
|
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
38911
|
-
|
|
38970
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
|
|
38912
38971
|
if (rng.startContainer === rng.endContainer) {
|
|
38913
38972
|
diff = rng.startOffset;
|
|
38914
38973
|
rng.endOffset -= diff;
|
|
@@ -38919,7 +38978,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
38919
38978
|
if (rng.endOffset !== endText.length) {
|
|
38920
38979
|
const text = ci.text(endText.substring(rng.endOffset));
|
|
38921
38980
|
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
38922
|
-
|
|
38981
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
|
|
38923
38982
|
for (const range of restRanges) {
|
|
38924
38983
|
if (range.startContainer === rng.endContainer) {
|
|
38925
38984
|
range.startContainer = text;
|
|
@@ -41816,6 +41875,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
|
|
|
41816
41875
|
|
|
41817
41876
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
|
|
41818
41877
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
|
|
41878
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
|
|
41819
41879
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
|
|
41820
41880
|
|
|
41821
41881
|
|
|
@@ -41862,9 +41922,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
|
|
|
41862
41922
|
this.calc = this.j.async.throttle(() => {
|
|
41863
41923
|
const text = this.j.text;
|
|
41864
41924
|
if (this.j.o.showCharsCounter && this.charCounter) {
|
|
41865
|
-
|
|
41866
|
-
|
|
41867
|
-
|
|
41925
|
+
let chars;
|
|
41926
|
+
if (this.j.o.countHTMLChars) {
|
|
41927
|
+
chars = this.j.value;
|
|
41928
|
+
}
|
|
41929
|
+
else {
|
|
41930
|
+
if (this.j.o.countTextSpaces) {
|
|
41931
|
+
chars = text
|
|
41932
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), '')
|
|
41933
|
+
.replace(/[\r\n]/g, '');
|
|
41934
|
+
}
|
|
41935
|
+
else {
|
|
41936
|
+
chars = text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
41937
|
+
}
|
|
41938
|
+
}
|
|
41868
41939
|
this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
|
|
41869
41940
|
}
|
|
41870
41941
|
if (this.j.o.showWordsCounter && this.wordCounter) {
|
|
@@ -42498,8 +42569,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42498
42569
|
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
42499
42570
|
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
42500
42571
|
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
42501
|
-
/* harmony export */
|
|
42502
|
-
/* harmony export */
|
|
42572
|
+
/* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_19__; },
|
|
42573
|
+
/* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__; },
|
|
42574
|
+
/* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__; }
|
|
42503
42575
|
/* harmony export */ });
|
|
42504
42576
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52438);
|
|
42505
42577
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -42539,10 +42611,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42539
42611
|
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
42540
42612
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(64331);
|
|
42541
42613
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
42542
|
-
/* harmony import */ var
|
|
42543
|
-
/* harmony import */ var
|
|
42544
|
-
/* harmony import */ var
|
|
42545
|
-
/* harmony import */ var
|
|
42614
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(87983);
|
|
42615
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
42616
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(13599);
|
|
42617
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
42618
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(70871);
|
|
42619
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
42546
42620
|
/*!
|
|
42547
42621
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42548
42622
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42570,6 +42644,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42570
42644
|
|
|
42571
42645
|
|
|
42572
42646
|
|
|
42647
|
+
|
|
42573
42648
|
|
|
42574
42649
|
|
|
42575
42650
|
/***/ }),
|
|
@@ -42725,6 +42800,23 @@ module.exports = {
|
|
|
42725
42800
|
};
|
|
42726
42801
|
|
|
42727
42802
|
|
|
42803
|
+
/***/ }),
|
|
42804
|
+
|
|
42805
|
+
/***/ 87983:
|
|
42806
|
+
/***/ (function(module) {
|
|
42807
|
+
|
|
42808
|
+
"use strict";
|
|
42809
|
+
|
|
42810
|
+
/*!
|
|
42811
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42812
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
42813
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
42814
|
+
*/
|
|
42815
|
+
module.exports = {
|
|
42816
|
+
symbols: 'символ'
|
|
42817
|
+
};
|
|
42818
|
+
|
|
42819
|
+
|
|
42728
42820
|
/***/ }),
|
|
42729
42821
|
|
|
42730
42822
|
/***/ 13599:
|
|
@@ -44449,7 +44541,6 @@ function getTextLeftOfCursor(range) {
|
|
|
44449
44541
|
*/
|
|
44450
44542
|
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
44451
44543
|
var _a, _b, _c;
|
|
44452
|
-
// eslint-disable-next-line prefer-const
|
|
44453
44544
|
let { startContainer, startOffset } = range;
|
|
44454
44545
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(startContainer)) {
|
|
44455
44546
|
startContainer = startContainer.childNodes[startOffset - 1];
|
|
@@ -44958,7 +45049,6 @@ function convertToList(elm) {
|
|
|
44958
45049
|
return elm;
|
|
44959
45050
|
}
|
|
44960
45051
|
function moveUp(leaf) {
|
|
44961
|
-
// eslint-disable-next-line no-constant-condition
|
|
44962
45052
|
while (leaf) {
|
|
44963
45053
|
const prev = leaf.previousElement;
|
|
44964
45054
|
// Leaf after P
|
|
@@ -46347,7 +46437,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
46347
46437
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
46348
46438
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46349
46439
|
***************************************************************************** */
|
|
46350
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
46440
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
46351
46441
|
|
|
46352
46442
|
var extendStatics = function(d, b) {
|
|
46353
46443
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -46458,8 +46548,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
46458
46548
|
}
|
|
46459
46549
|
|
|
46460
46550
|
function __generator(thisArg, body) {
|
|
46461
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
46462
|
-
return g =
|
|
46551
|
+
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);
|
|
46552
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
46463
46553
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
46464
46554
|
function step(op) {
|
|
46465
46555
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -46563,8 +46653,9 @@ function __await(v) {
|
|
|
46563
46653
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
46564
46654
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
46565
46655
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
46566
|
-
return i =
|
|
46567
|
-
function
|
|
46656
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
46657
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
46658
|
+
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]); } }
|
|
46568
46659
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
46569
46660
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
46570
46661
|
function fulfill(value) { resume("next", value); }
|
|
@@ -46630,16 +46721,18 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
46630
46721
|
function __addDisposableResource(env, value, async) {
|
|
46631
46722
|
if (value !== null && value !== void 0) {
|
|
46632
46723
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
46633
|
-
var dispose;
|
|
46724
|
+
var dispose, inner;
|
|
46634
46725
|
if (async) {
|
|
46635
|
-
|
|
46636
|
-
|
|
46726
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
46727
|
+
dispose = value[Symbol.asyncDispose];
|
|
46637
46728
|
}
|
|
46638
46729
|
if (dispose === void 0) {
|
|
46639
|
-
|
|
46640
|
-
|
|
46730
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
46731
|
+
dispose = value[Symbol.dispose];
|
|
46732
|
+
if (async) inner = dispose;
|
|
46641
46733
|
}
|
|
46642
46734
|
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
46735
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
46643
46736
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
46644
46737
|
}
|
|
46645
46738
|
else if (async) {
|
|
@@ -46658,17 +46751,22 @@ function __disposeResources(env) {
|
|
|
46658
46751
|
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
46659
46752
|
env.hasError = true;
|
|
46660
46753
|
}
|
|
46754
|
+
var r, s = 0;
|
|
46661
46755
|
function next() {
|
|
46662
|
-
while (env.stack.
|
|
46663
|
-
var rec = env.stack.pop();
|
|
46756
|
+
while (r = env.stack.pop()) {
|
|
46664
46757
|
try {
|
|
46665
|
-
|
|
46666
|
-
if (
|
|
46758
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
46759
|
+
if (r.dispose) {
|
|
46760
|
+
var result = r.dispose.call(r.value);
|
|
46761
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
46762
|
+
}
|
|
46763
|
+
else s |= 1;
|
|
46667
46764
|
}
|
|
46668
46765
|
catch (e) {
|
|
46669
|
-
|
|
46766
|
+
fail(e);
|
|
46670
46767
|
}
|
|
46671
46768
|
}
|
|
46769
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
46672
46770
|
if (env.hasError) throw env.error;
|
|
46673
46771
|
}
|
|
46674
46772
|
return next();
|
|
@@ -46795,11 +46893,88 @@ function __disposeResources(env) {
|
|
|
46795
46893
|
/******/ };
|
|
46796
46894
|
/******/ }();
|
|
46797
46895
|
/******/
|
|
46896
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
46897
|
+
/******/ !function() {
|
|
46898
|
+
/******/ __webpack_require__.f = {};
|
|
46899
|
+
/******/ // This file contains only the entry chunk.
|
|
46900
|
+
/******/ // The chunk loading function for additional chunks
|
|
46901
|
+
/******/ __webpack_require__.e = function(chunkId) {
|
|
46902
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
|
|
46903
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
46904
|
+
/******/ return promises;
|
|
46905
|
+
/******/ }, []));
|
|
46906
|
+
/******/ };
|
|
46907
|
+
/******/ }();
|
|
46908
|
+
/******/
|
|
46909
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
46910
|
+
/******/ !function() {
|
|
46911
|
+
/******/ // This function allow to reference async chunks
|
|
46912
|
+
/******/ __webpack_require__.u = function(chunkId) {
|
|
46913
|
+
/******/ // return url for filenames based on template
|
|
46914
|
+
/******/ return "" + chunkId + ".js";
|
|
46915
|
+
/******/ };
|
|
46916
|
+
/******/ }();
|
|
46917
|
+
/******/
|
|
46918
|
+
/******/ /* webpack/runtime/get mini-css chunk filename */
|
|
46919
|
+
/******/ !function() {
|
|
46920
|
+
/******/ // This function allow to reference async chunks
|
|
46921
|
+
/******/ __webpack_require__.miniCssF = function(chunkId) {
|
|
46922
|
+
/******/ // return url for filenames based on template
|
|
46923
|
+
/******/ return undefined;
|
|
46924
|
+
/******/ };
|
|
46925
|
+
/******/ }();
|
|
46926
|
+
/******/
|
|
46798
46927
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
46799
46928
|
/******/ !function() {
|
|
46800
46929
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
46801
46930
|
/******/ }();
|
|
46802
46931
|
/******/
|
|
46932
|
+
/******/ /* webpack/runtime/load script */
|
|
46933
|
+
/******/ !function() {
|
|
46934
|
+
/******/ var inProgress = {};
|
|
46935
|
+
/******/ var dataWebpackPrefix = "jodit-pro:";
|
|
46936
|
+
/******/ // loadScript function to load a script via script tag
|
|
46937
|
+
/******/ __webpack_require__.l = function(url, done, key, chunkId) {
|
|
46938
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
46939
|
+
/******/ var script, needAttach;
|
|
46940
|
+
/******/ if(key !== undefined) {
|
|
46941
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
46942
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
46943
|
+
/******/ var s = scripts[i];
|
|
46944
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
46945
|
+
/******/ }
|
|
46946
|
+
/******/ }
|
|
46947
|
+
/******/ if(!script) {
|
|
46948
|
+
/******/ needAttach = true;
|
|
46949
|
+
/******/ script = document.createElement('script');
|
|
46950
|
+
/******/
|
|
46951
|
+
/******/ script.charset = 'utf-8';
|
|
46952
|
+
/******/ script.timeout = 120;
|
|
46953
|
+
/******/ if (__webpack_require__.nc) {
|
|
46954
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
46955
|
+
/******/ }
|
|
46956
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
46957
|
+
/******/
|
|
46958
|
+
/******/ script.src = url;
|
|
46959
|
+
/******/ }
|
|
46960
|
+
/******/ inProgress[url] = [done];
|
|
46961
|
+
/******/ var onScriptComplete = function(prev, event) {
|
|
46962
|
+
/******/ // avoid mem leaks in IE.
|
|
46963
|
+
/******/ script.onerror = script.onload = null;
|
|
46964
|
+
/******/ clearTimeout(timeout);
|
|
46965
|
+
/******/ var doneFns = inProgress[url];
|
|
46966
|
+
/******/ delete inProgress[url];
|
|
46967
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
46968
|
+
/******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
|
|
46969
|
+
/******/ if(prev) return prev(event);
|
|
46970
|
+
/******/ }
|
|
46971
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
46972
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
46973
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
46974
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
46975
|
+
/******/ };
|
|
46976
|
+
/******/ }();
|
|
46977
|
+
/******/
|
|
46803
46978
|
/******/ /* webpack/runtime/make namespace object */
|
|
46804
46979
|
/******/ !function() {
|
|
46805
46980
|
/******/ // define __esModule on exports
|
|
@@ -46811,6 +46986,11 @@ function __disposeResources(env) {
|
|
|
46811
46986
|
/******/ };
|
|
46812
46987
|
/******/ }();
|
|
46813
46988
|
/******/
|
|
46989
|
+
/******/ /* webpack/runtime/publicPath */
|
|
46990
|
+
/******/ !function() {
|
|
46991
|
+
/******/ __webpack_require__.p = "/build/";
|
|
46992
|
+
/******/ }();
|
|
46993
|
+
/******/
|
|
46814
46994
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
46815
46995
|
/******/ !function() {
|
|
46816
46996
|
/******/ // no baseURI
|
|
@@ -46822,7 +47002,44 @@ function __disposeResources(env) {
|
|
|
46822
47002
|
/******/ 521: 0
|
|
46823
47003
|
/******/ };
|
|
46824
47004
|
/******/
|
|
46825
|
-
/******/
|
|
47005
|
+
/******/ __webpack_require__.f.j = function(chunkId, promises) {
|
|
47006
|
+
/******/ // JSONP chunk loading for javascript
|
|
47007
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
47008
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
47009
|
+
/******/
|
|
47010
|
+
/******/ // a Promise means "currently loading".
|
|
47011
|
+
/******/ if(installedChunkData) {
|
|
47012
|
+
/******/ promises.push(installedChunkData[2]);
|
|
47013
|
+
/******/ } else {
|
|
47014
|
+
/******/ if(true) { // all chunks have JS
|
|
47015
|
+
/******/ // setup Promise in chunk cache
|
|
47016
|
+
/******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
|
|
47017
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
47018
|
+
/******/
|
|
47019
|
+
/******/ // start chunk loading
|
|
47020
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
47021
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
47022
|
+
/******/ var error = new Error();
|
|
47023
|
+
/******/ var loadingEnded = function(event) {
|
|
47024
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
47025
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
47026
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
47027
|
+
/******/ if(installedChunkData) {
|
|
47028
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
47029
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
47030
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
47031
|
+
/******/ error.name = 'ChunkLoadError';
|
|
47032
|
+
/******/ error.type = errorType;
|
|
47033
|
+
/******/ error.request = realSrc;
|
|
47034
|
+
/******/ installedChunkData[1](error);
|
|
47035
|
+
/******/ }
|
|
47036
|
+
/******/ }
|
|
47037
|
+
/******/ };
|
|
47038
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
47039
|
+
/******/ }
|
|
47040
|
+
/******/ }
|
|
47041
|
+
/******/ }
|
|
47042
|
+
/******/ };
|
|
46826
47043
|
/******/
|
|
46827
47044
|
/******/ // no prefetching
|
|
46828
47045
|
/******/
|