jodit-pro 4.2.24 → 4.2.31
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 +474 -246
- 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 +467 -239
- 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 +467 -239
- 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 +442 -233
- 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 +765 -5675
- 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/es2021/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.31
|
|
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/)
|
|
@@ -1804,17 +1800,18 @@ class Async {
|
|
|
1804
1800
|
return 0;
|
|
1805
1801
|
}
|
|
1806
1802
|
let options = {};
|
|
1807
|
-
if ((0,
|
|
1803
|
+
if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(timeout)) {
|
|
1808
1804
|
timeout = 0;
|
|
1809
1805
|
}
|
|
1810
|
-
if (!(0,
|
|
1806
|
+
if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__/* .isNumber */ .E)(timeout)) {
|
|
1811
1807
|
options = timeout;
|
|
1812
1808
|
timeout = options.timeout || 0;
|
|
1813
1809
|
}
|
|
1814
1810
|
if (options.label) {
|
|
1815
1811
|
this.clearLabel(options.label);
|
|
1816
1812
|
}
|
|
1817
|
-
const timer = (0,
|
|
1813
|
+
const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .setTimeout */ .w)(callback, timeout, ...args);
|
|
1814
|
+
const key = options.label || timer;
|
|
1818
1815
|
this.timers.set(key, timer);
|
|
1819
1816
|
this.__callbacks.set(key, callback);
|
|
1820
1817
|
return timer;
|
|
@@ -1830,7 +1827,7 @@ class Async {
|
|
|
1830
1827
|
}
|
|
1831
1828
|
clearLabel(label) {
|
|
1832
1829
|
if (label && this.timers.has(label)) {
|
|
1833
|
-
(0,
|
|
1830
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(label));
|
|
1834
1831
|
this.timers.delete(label);
|
|
1835
1832
|
this.__callbacks.delete(label);
|
|
1836
1833
|
}
|
|
@@ -1839,7 +1836,7 @@ class Async {
|
|
|
1839
1836
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .K)(timerOrLabel)) {
|
|
1840
1837
|
return this.clearLabel(timerOrLabel);
|
|
1841
1838
|
}
|
|
1842
|
-
(0,
|
|
1839
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timerOrLabel);
|
|
1843
1840
|
this.timers.delete(timerOrLabel);
|
|
1844
1841
|
this.__callbacks.delete(timerOrLabel);
|
|
1845
1842
|
}
|
|
@@ -1881,7 +1878,7 @@ class Async {
|
|
|
1881
1878
|
if (!timer && firstCallImmediately) {
|
|
1882
1879
|
callFn(...args);
|
|
1883
1880
|
}
|
|
1884
|
-
(0,
|
|
1881
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timer);
|
|
1885
1882
|
timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .T)(timeout) ? timeout() : timeout);
|
|
1886
1883
|
this.timers.set(fn, timer);
|
|
1887
1884
|
}
|
|
@@ -2035,7 +2032,7 @@ class Async {
|
|
|
2035
2032
|
clear() {
|
|
2036
2033
|
this.requestsIdle.forEach(key => this.cancelIdleCallback(key));
|
|
2037
2034
|
this.requestsRaf.forEach(key => this.cancelAnimationFrame(key));
|
|
2038
|
-
this.timers.forEach(key => (0,
|
|
2035
|
+
this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(key)));
|
|
2039
2036
|
this.timers.clear();
|
|
2040
2037
|
this.promisesRejections.forEach(reject => reject());
|
|
2041
2038
|
this.promisesRejections.clear();
|
|
@@ -2444,6 +2441,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2444
2441
|
/* harmony export */ TEXT_PLAIN: function() { return /* binding */ TEXT_PLAIN; },
|
|
2445
2442
|
/* harmony export */ TEXT_RTF: function() { return /* binding */ TEXT_RTF; },
|
|
2446
2443
|
/* harmony export */ TOKENS: function() { return /* binding */ TOKENS; },
|
|
2444
|
+
/* harmony export */ globalDocument: function() { return /* binding */ globalDocument; },
|
|
2445
|
+
/* harmony export */ globalWindow: function() { return /* binding */ globalWindow; },
|
|
2447
2446
|
/* harmony export */ lang: function() { return /* binding */ lang; }
|
|
2448
2447
|
/* harmony export */ });
|
|
2449
2448
|
/*!
|
|
@@ -2451,7 +2450,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2451
2450
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2452
2451
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2453
2452
|
*/
|
|
2454
|
-
const APP_VERSION = "4.2.
|
|
2453
|
+
const APP_VERSION = "4.2.31";
|
|
2455
2454
|
// prettier-ignore
|
|
2456
2455
|
const ES = "es2021";
|
|
2457
2456
|
const IS_ES_MODERN = true;
|
|
@@ -2470,6 +2469,10 @@ const INVISIBLE_SPACE_REG_EXP_START = () => /^[\uFEFF]+/g;
|
|
|
2470
2469
|
const SPACE_REG_EXP = () => /[\s\n\t\r\uFEFF\u200b]+/g;
|
|
2471
2470
|
const SPACE_REG_EXP_START = () => /^[\s\n\t\r\uFEFF\u200b]+/g;
|
|
2472
2471
|
const SPACE_REG_EXP_END = () => /[\s\n\t\r\uFEFF\u200b]+$/g;
|
|
2472
|
+
const globalWindow = typeof window !== 'undefined' ? window : undefined;
|
|
2473
|
+
const globalDocument = typeof document !== 'undefined'
|
|
2474
|
+
? document
|
|
2475
|
+
: undefined;
|
|
2473
2476
|
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;
|
|
2474
2477
|
const IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
|
|
2475
2478
|
const LIST_TAGS = new Set(['ul', 'ol']);
|
|
@@ -2594,8 +2597,8 @@ const INSERT_AS_TEXT = 'insert_as_text';
|
|
|
2594
2597
|
*/
|
|
2595
2598
|
const INSERT_ONLY_TEXT = 'insert_only_text';
|
|
2596
2599
|
const SAFE_COUNT_CHANGE_CALL = 10;
|
|
2597
|
-
const IS_MAC = typeof
|
|
2598
|
-
/Mac|iPod|iPhone|iPad/.test(
|
|
2600
|
+
const IS_MAC = typeof globalWindow !== 'undefined' &&
|
|
2601
|
+
/Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
|
|
2599
2602
|
const KEY_ALIASES = {
|
|
2600
2603
|
add: '+',
|
|
2601
2604
|
break: 'pause',
|
|
@@ -2623,7 +2626,7 @@ const BASE_PATH = (() => {
|
|
|
2623
2626
|
if (typeof document === 'undefined') {
|
|
2624
2627
|
return '';
|
|
2625
2628
|
}
|
|
2626
|
-
const script =
|
|
2629
|
+
const script = globalDocument.currentScript, removeScriptName = (s) => {
|
|
2627
2630
|
const parts = s.split('/');
|
|
2628
2631
|
if (/\.js/.test(parts[parts.length - 1])) {
|
|
2629
2632
|
return parts.slice(0, parts.length - 1).join('/') + '/';
|
|
@@ -2633,11 +2636,11 @@ const BASE_PATH = (() => {
|
|
|
2633
2636
|
if (script) {
|
|
2634
2637
|
return removeScriptName(script.src);
|
|
2635
2638
|
}
|
|
2636
|
-
const scripts =
|
|
2639
|
+
const scripts = globalDocument.querySelectorAll('script[src]');
|
|
2637
2640
|
if (scripts && scripts.length) {
|
|
2638
2641
|
return removeScriptName(scripts[scripts.length - 1].src);
|
|
2639
2642
|
}
|
|
2640
|
-
return
|
|
2643
|
+
return globalWindow.location.href;
|
|
2641
2644
|
})();
|
|
2642
2645
|
const TEMP_ATTR = 'data-jodit-temp';
|
|
2643
2646
|
const lang = {};
|
|
@@ -3381,7 +3384,6 @@ function watch(observeFields, opts) {
|
|
|
3381
3384
|
const [objectPath, eventName] = field.split(':');
|
|
3382
3385
|
let ctx = context;
|
|
3383
3386
|
if (objectPath.length) {
|
|
3384
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3385
3387
|
ctx = component.get(objectPath);
|
|
3386
3388
|
}
|
|
3387
3389
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__/* .isFunction */ .T)(ctx)) {
|
|
@@ -4042,7 +4044,7 @@ class Dom {
|
|
|
4042
4044
|
* Move all content to another element
|
|
4043
4045
|
*/
|
|
4044
4046
|
static moveContent(from, to, inStart = false, filter = () => true) {
|
|
4045
|
-
const fragment = (from.ownerDocument ||
|
|
4047
|
+
const fragment = (from.ownerDocument || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument).createDocumentFragment();
|
|
4046
4048
|
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(from.childNodes)
|
|
4047
4049
|
.filter(elm => {
|
|
4048
4050
|
if (filter(elm)) {
|
|
@@ -4499,7 +4501,7 @@ class EventEmitter {
|
|
|
4499
4501
|
passive: true,
|
|
4500
4502
|
capture: options?.capture ?? false
|
|
4501
4503
|
}
|
|
4502
|
-
: options?.capture ?? false;
|
|
4504
|
+
: (options?.capture ?? false);
|
|
4503
4505
|
syntheticCallback.options = eOpts;
|
|
4504
4506
|
subject.addEventListener(event, syntheticCallback, eOpts);
|
|
4505
4507
|
this.__memoryDOMSubjectToHandler(subject, syntheticCallback);
|
|
@@ -4730,7 +4732,7 @@ class EventEmitter {
|
|
|
4730
4732
|
this.__domEventsMap = new Map();
|
|
4731
4733
|
this.__mutedEvents = new Set();
|
|
4732
4734
|
this.__key = '__JoditEventEmitterNamespaces';
|
|
4733
|
-
this.__doc =
|
|
4735
|
+
this.__doc = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
|
|
4734
4736
|
this.__prepareEvent = (e) => {
|
|
4735
4737
|
if (e.cancelBubble) {
|
|
4736
4738
|
return;
|
|
@@ -5224,9 +5226,19 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5224
5226
|
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
|
|
5225
5227
|
if (!data[key]) {
|
|
5226
5228
|
let c = view.c;
|
|
5227
|
-
let body
|
|
5228
|
-
|
|
5229
|
-
|
|
5229
|
+
let body;
|
|
5230
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot) {
|
|
5231
|
+
body = jodit.o.shadowRoot;
|
|
5232
|
+
}
|
|
5233
|
+
else {
|
|
5234
|
+
body = jodit.od.body;
|
|
5235
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit)) {
|
|
5236
|
+
const dialog = _dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.closest(jodit.container, 'dialog', jodit.od.body);
|
|
5237
|
+
if (dialog) {
|
|
5238
|
+
body = dialog;
|
|
5239
|
+
}
|
|
5240
|
+
}
|
|
5241
|
+
}
|
|
5230
5242
|
if (createInsideEditor &&
|
|
5231
5243
|
(0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) &&
|
|
5232
5244
|
jodit.od !== jodit.ed) {
|
|
@@ -5380,7 +5392,7 @@ function splitArray(a) {
|
|
|
5380
5392
|
const toArray = function toArray(...args) {
|
|
5381
5393
|
const func = (0,jodit_core_helpers_checker_is_native_function__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from)
|
|
5382
5394
|
? Array.from
|
|
5383
|
-
: (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from') ?? Array.from;
|
|
5395
|
+
: ((0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from') ?? Array.from);
|
|
5384
5396
|
return func.apply(Array, args);
|
|
5385
5397
|
};
|
|
5386
5398
|
|
|
@@ -5417,6 +5429,7 @@ const toArray = function toArray(...args) {
|
|
|
5417
5429
|
/* harmony export */ D: function() { return /* binding */ clearTimeout; },
|
|
5418
5430
|
/* harmony export */ w: function() { return /* binding */ setTimeout; }
|
|
5419
5431
|
/* harmony export */ });
|
|
5432
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5420
5433
|
/*!
|
|
5421
5434
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5422
5435
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5425,6 +5438,7 @@ const toArray = function toArray(...args) {
|
|
|
5425
5438
|
/**
|
|
5426
5439
|
* @module helpers/async
|
|
5427
5440
|
*/
|
|
5441
|
+
|
|
5428
5442
|
/**
|
|
5429
5443
|
* Create async callback if set timeout value - else call function immediately
|
|
5430
5444
|
*/
|
|
@@ -5433,7 +5447,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
5433
5447
|
callback.call(null, ...args);
|
|
5434
5448
|
}
|
|
5435
5449
|
else {
|
|
5436
|
-
return
|
|
5450
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.setTimeout(callback, timeout, ...args);
|
|
5437
5451
|
}
|
|
5438
5452
|
return 0;
|
|
5439
5453
|
}
|
|
@@ -5441,7 +5455,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
5441
5455
|
* Clear timeout
|
|
5442
5456
|
*/
|
|
5443
5457
|
function clearTimeout(timer) {
|
|
5444
|
-
|
|
5458
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.clearTimeout(timer);
|
|
5445
5459
|
}
|
|
5446
5460
|
|
|
5447
5461
|
|
|
@@ -5454,6 +5468,7 @@ function clearTimeout(timer) {
|
|
|
5454
5468
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5455
5469
|
/* harmony export */ k: function() { return /* binding */ hasBrowserColorPicker; }
|
|
5456
5470
|
/* harmony export */ });
|
|
5471
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5457
5472
|
/*!
|
|
5458
5473
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5459
5474
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5462,13 +5477,14 @@ function clearTimeout(timer) {
|
|
|
5462
5477
|
/**
|
|
5463
5478
|
* @module helpers/checker
|
|
5464
5479
|
*/
|
|
5480
|
+
|
|
5465
5481
|
/**
|
|
5466
5482
|
* Check if browser has a color picker (a new HTML5 attribute for input tag)
|
|
5467
5483
|
*/
|
|
5468
5484
|
function hasBrowserColorPicker() {
|
|
5469
5485
|
let supportsColor = true;
|
|
5470
5486
|
try {
|
|
5471
|
-
const a =
|
|
5487
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
|
|
5472
5488
|
a.type = 'color';
|
|
5473
5489
|
a.value = '!';
|
|
5474
5490
|
supportsColor = a.type === 'color' && a.value !== '!';
|
|
@@ -6118,6 +6134,7 @@ function isStringArray(value) {
|
|
|
6118
6134
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6119
6135
|
/* harmony export */ m: function() { return /* binding */ isURL; }
|
|
6120
6136
|
/* harmony export */ });
|
|
6137
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6121
6138
|
/*!
|
|
6122
6139
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6123
6140
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6126,6 +6143,7 @@ function isStringArray(value) {
|
|
|
6126
6143
|
/**
|
|
6127
6144
|
* @module helpers/checker
|
|
6128
6145
|
*/
|
|
6146
|
+
|
|
6129
6147
|
/**
|
|
6130
6148
|
* Check if a string is an url
|
|
6131
6149
|
*/
|
|
@@ -6142,7 +6160,7 @@ function isURL(str) {
|
|
|
6142
6160
|
return false;
|
|
6143
6161
|
}
|
|
6144
6162
|
}
|
|
6145
|
-
const a =
|
|
6163
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
6146
6164
|
a.href = str;
|
|
6147
6165
|
return Boolean(a.hostname);
|
|
6148
6166
|
}
|
|
@@ -6377,9 +6395,9 @@ function applyStyles(html) {
|
|
|
6377
6395
|
}
|
|
6378
6396
|
html = html.substring(html.indexOf('<html '), html.length);
|
|
6379
6397
|
html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
|
|
6380
|
-
const iframe =
|
|
6398
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
6381
6399
|
iframe.style.display = 'none';
|
|
6382
|
-
|
|
6400
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
6383
6401
|
let convertedString = '', collection = [];
|
|
6384
6402
|
try {
|
|
6385
6403
|
const iframeDoc = iframe.contentDocument ||
|
|
@@ -6450,9 +6468,10 @@ function applyStyles(html) {
|
|
|
6450
6468
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6451
6469
|
/* harmony export */ w: function() { return /* binding */ cleanFromWord; }
|
|
6452
6470
|
/* harmony export */ });
|
|
6453
|
-
/* harmony import */ var
|
|
6454
|
-
/* harmony import */ var
|
|
6455
|
-
/* harmony import */ var
|
|
6471
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6472
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
6473
|
+
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7773);
|
|
6474
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22718);
|
|
6456
6475
|
/*!
|
|
6457
6476
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6458
6477
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6464,6 +6483,7 @@ function applyStyles(html) {
|
|
|
6464
6483
|
|
|
6465
6484
|
|
|
6466
6485
|
|
|
6486
|
+
|
|
6467
6487
|
/**
|
|
6468
6488
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
6469
6489
|
* content that matches the look and feel of the site.
|
|
@@ -6475,11 +6495,11 @@ function cleanFromWord(html) {
|
|
|
6475
6495
|
}
|
|
6476
6496
|
let convertedString = '';
|
|
6477
6497
|
try {
|
|
6478
|
-
const div =
|
|
6498
|
+
const div = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
6479
6499
|
div.innerHTML = html;
|
|
6480
6500
|
const marks = [];
|
|
6481
6501
|
if (div.firstChild) {
|
|
6482
|
-
|
|
6502
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.each(div, node => {
|
|
6483
6503
|
if (!node) {
|
|
6484
6504
|
return;
|
|
6485
6505
|
}
|
|
@@ -6494,10 +6514,10 @@ function cleanFromWord(html) {
|
|
|
6494
6514
|
case 'W:SDT':
|
|
6495
6515
|
case 'W:SDTPR':
|
|
6496
6516
|
case 'FONT':
|
|
6497
|
-
|
|
6517
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(node);
|
|
6498
6518
|
break;
|
|
6499
6519
|
default:
|
|
6500
|
-
(0,
|
|
6520
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(node.attributes).forEach((attr) => {
|
|
6501
6521
|
if ([
|
|
6502
6522
|
'src',
|
|
6503
6523
|
'href',
|
|
@@ -6516,14 +6536,14 @@ function cleanFromWord(html) {
|
|
|
6516
6536
|
}
|
|
6517
6537
|
});
|
|
6518
6538
|
}
|
|
6519
|
-
|
|
6539
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove.apply(null, marks);
|
|
6520
6540
|
convertedString = div.innerHTML;
|
|
6521
6541
|
}
|
|
6522
6542
|
catch (e) { }
|
|
6523
6543
|
if (convertedString) {
|
|
6524
6544
|
html = convertedString;
|
|
6525
6545
|
}
|
|
6526
|
-
html = html.split(/(\n)/).filter(
|
|
6546
|
+
html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq).join('\n');
|
|
6527
6547
|
return html
|
|
6528
6548
|
.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
|
|
6529
6549
|
.replace(/<!--[^>]*>/g, '');
|
|
@@ -6539,6 +6559,7 @@ function cleanFromWord(html) {
|
|
|
6539
6559
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6540
6560
|
/* harmony export */ G: function() { return /* binding */ htmlspecialchars; }
|
|
6541
6561
|
/* harmony export */ });
|
|
6562
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6542
6563
|
/*!
|
|
6543
6564
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6544
6565
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6547,11 +6568,12 @@ function cleanFromWord(html) {
|
|
|
6547
6568
|
/**
|
|
6548
6569
|
* @module helpers/html
|
|
6549
6570
|
*/
|
|
6571
|
+
|
|
6550
6572
|
/**
|
|
6551
6573
|
* Convert special characters to HTML entities
|
|
6552
6574
|
*/
|
|
6553
6575
|
function htmlspecialchars(html) {
|
|
6554
|
-
const tmp =
|
|
6576
|
+
const tmp = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
6555
6577
|
tmp.textContent = html;
|
|
6556
6578
|
return tmp.innerHTML;
|
|
6557
6579
|
}
|
|
@@ -7272,8 +7294,9 @@ const getContentWidth = (element, win) => {
|
|
|
7272
7294
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7273
7295
|
/* harmony export */ m: function() { return /* binding */ getScrollParent; }
|
|
7274
7296
|
/* harmony export */ });
|
|
7275
|
-
/* harmony import */ var
|
|
7276
|
-
/* harmony import */ var
|
|
7297
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
7298
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
7299
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
|
|
7277
7300
|
/*!
|
|
7278
7301
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7279
7302
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7281,19 +7304,20 @@ const getContentWidth = (element, win) => {
|
|
|
7281
7304
|
*/
|
|
7282
7305
|
|
|
7283
7306
|
|
|
7307
|
+
|
|
7284
7308
|
function getScrollParent(node) {
|
|
7285
7309
|
if (!node) {
|
|
7286
7310
|
return null;
|
|
7287
7311
|
}
|
|
7288
|
-
const isElement =
|
|
7289
|
-
const overflowY = isElement && (0,
|
|
7312
|
+
const isElement = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(node);
|
|
7313
|
+
const overflowY = isElement && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__.css)(node, 'overflowY');
|
|
7290
7314
|
const isScrollable = isElement && overflowY !== 'visible' && overflowY !== 'hidden';
|
|
7291
7315
|
if (isScrollable && node.scrollHeight >= node.clientHeight) {
|
|
7292
7316
|
return node;
|
|
7293
7317
|
}
|
|
7294
7318
|
return (getScrollParent(node.parentNode) ||
|
|
7295
|
-
|
|
7296
|
-
|
|
7319
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.scrollingElement ||
|
|
7320
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body);
|
|
7297
7321
|
}
|
|
7298
7322
|
|
|
7299
7323
|
|
|
@@ -8217,16 +8241,18 @@ const buildQuery = (data, prefix) => {
|
|
|
8217
8241
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8218
8242
|
/* harmony export */ X: function() { return /* binding */ completeUrl; }
|
|
8219
8243
|
/* harmony export */ });
|
|
8244
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8220
8245
|
/*!
|
|
8221
8246
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8222
8247
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8223
8248
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8224
8249
|
*/
|
|
8250
|
+
|
|
8225
8251
|
/**
|
|
8226
8252
|
* @module helpers/utils
|
|
8227
8253
|
*/
|
|
8228
8254
|
const completeUrl = (url) => {
|
|
8229
|
-
if (
|
|
8255
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
|
|
8230
8256
|
url = 'https:' + url;
|
|
8231
8257
|
}
|
|
8232
8258
|
return url;
|
|
@@ -8343,8 +8369,9 @@ function ConfigFlatten(obj) {
|
|
|
8343
8369
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8344
8370
|
/* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
|
|
8345
8371
|
/* harmony export */ });
|
|
8346
|
-
/* harmony import */ var
|
|
8347
|
-
/* harmony import */ var
|
|
8372
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8373
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
|
|
8374
|
+
/* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15896);
|
|
8348
8375
|
/*!
|
|
8349
8376
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8350
8377
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8355,14 +8382,15 @@ function ConfigFlatten(obj) {
|
|
|
8355
8382
|
*/
|
|
8356
8383
|
|
|
8357
8384
|
|
|
8385
|
+
|
|
8358
8386
|
/**
|
|
8359
8387
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8360
8388
|
*/
|
|
8361
8389
|
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8362
|
-
if (!(0,
|
|
8390
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8363
8391
|
return url;
|
|
8364
8392
|
}
|
|
8365
|
-
const parser =
|
|
8393
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8366
8394
|
parser.href = url;
|
|
8367
8395
|
if (!width) {
|
|
8368
8396
|
width = 400;
|
|
@@ -8388,7 +8416,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8388
8416
|
case 'youtu.be':
|
|
8389
8417
|
case 'www.youtu.be': {
|
|
8390
8418
|
const query = parser.search
|
|
8391
|
-
? (0,
|
|
8419
|
+
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8392
8420
|
: { v: parser.pathname.substr(1) };
|
|
8393
8421
|
return query.v
|
|
8394
8422
|
? '<iframe width="' +
|
|
@@ -8582,7 +8610,8 @@ const dataBind = (elm, key, value) => {
|
|
|
8582
8610
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8583
8611
|
/* harmony export */ e: function() { return /* binding */ defaultLanguage; }
|
|
8584
8612
|
/* harmony export */ });
|
|
8585
|
-
/* harmony import */ var
|
|
8613
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8614
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26986);
|
|
8586
8615
|
/*!
|
|
8587
8616
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8588
8617
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8592,15 +8621,16 @@ const dataBind = (elm, key, value) => {
|
|
|
8592
8621
|
* @module helpers/utils
|
|
8593
8622
|
*/
|
|
8594
8623
|
|
|
8624
|
+
|
|
8595
8625
|
/**
|
|
8596
8626
|
* Try define user language
|
|
8597
8627
|
*/
|
|
8598
8628
|
const defaultLanguage = (language, defaultLanguage = 'en') => {
|
|
8599
|
-
if (language !== 'auto' && (0,
|
|
8629
|
+
if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
|
|
8600
8630
|
return language;
|
|
8601
8631
|
}
|
|
8602
|
-
if (
|
|
8603
|
-
return
|
|
8632
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang) {
|
|
8633
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang;
|
|
8604
8634
|
}
|
|
8605
8635
|
if (navigator.language) {
|
|
8606
8636
|
return navigator.language.substring(0, 2);
|
|
@@ -9351,10 +9381,10 @@ const map = {};
|
|
|
9351
9381
|
*/
|
|
9352
9382
|
function reset(key) {
|
|
9353
9383
|
if (!(key in map)) {
|
|
9354
|
-
const iframe =
|
|
9384
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
9355
9385
|
try {
|
|
9356
9386
|
iframe.src = 'about:blank';
|
|
9357
|
-
|
|
9387
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
9358
9388
|
if (!iframe.contentWindow) {
|
|
9359
9389
|
return null;
|
|
9360
9390
|
}
|
|
@@ -10281,14 +10311,15 @@ Plugin.requires = [];
|
|
|
10281
10311
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10282
10312
|
/* harmony export */ d: function() { return /* binding */ Ajax; }
|
|
10283
10313
|
/* harmony export */ });
|
|
10284
|
-
/* harmony import */ var
|
|
10314
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
10285
10315
|
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61341);
|
|
10286
|
-
/* harmony import */ var
|
|
10287
|
-
/* harmony import */ var
|
|
10288
|
-
/* harmony import */ var
|
|
10289
|
-
/* harmony import */ var
|
|
10290
|
-
/* harmony import */ var
|
|
10291
|
-
/* harmony import */ var
|
|
10316
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
|
|
10317
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33442);
|
|
10318
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
10319
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24839);
|
|
10320
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
10321
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91596);
|
|
10322
|
+
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85349);
|
|
10292
10323
|
/*!
|
|
10293
10324
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10294
10325
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10302,33 +10333,34 @@ Plugin.requires = [];
|
|
|
10302
10333
|
|
|
10303
10334
|
|
|
10304
10335
|
|
|
10336
|
+
|
|
10305
10337
|
class Ajax {
|
|
10306
10338
|
className() {
|
|
10307
10339
|
return 'Ajax';
|
|
10308
10340
|
}
|
|
10309
|
-
constructor(options, defaultAjaxOptions =
|
|
10341
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
10310
10342
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
10311
10343
|
this.__isFulfilled = false;
|
|
10312
10344
|
this.__activated = false;
|
|
10313
10345
|
this.__isDestructed = false;
|
|
10314
|
-
this.options = (0,
|
|
10346
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
|
|
10315
10347
|
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
10316
10348
|
}
|
|
10317
10349
|
__buildParams(obj, prefix) {
|
|
10318
|
-
if ((0,
|
|
10350
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
|
|
10319
10351
|
this.options.contentType &&
|
|
10320
10352
|
this.options.contentType.includes('application/json')) {
|
|
10321
10353
|
return JSON.stringify(obj);
|
|
10322
10354
|
}
|
|
10323
|
-
if ((0,
|
|
10355
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
|
|
10324
10356
|
return this.o.queryBuild.call(this, obj, prefix);
|
|
10325
10357
|
}
|
|
10326
|
-
if ((0,
|
|
10327
|
-
obj instanceof
|
|
10328
|
-
(typeof obj === 'object' && obj != null && (0,
|
|
10358
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(obj) ||
|
|
10359
|
+
obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.globalWindow.FormData ||
|
|
10360
|
+
(typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(obj.append))) {
|
|
10329
10361
|
return obj;
|
|
10330
10362
|
}
|
|
10331
|
-
return (0,
|
|
10363
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
|
|
10332
10364
|
}
|
|
10333
10365
|
get o() {
|
|
10334
10366
|
return this.options;
|
|
@@ -10351,16 +10383,16 @@ class Ajax {
|
|
|
10351
10383
|
return this.__async.promise(async (resolve, reject) => {
|
|
10352
10384
|
const onReject = () => {
|
|
10353
10385
|
this.__isFulfilled = true;
|
|
10354
|
-
reject(
|
|
10386
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
|
|
10355
10387
|
};
|
|
10356
10388
|
const onResolve = () => {
|
|
10357
10389
|
this.__isFulfilled = true;
|
|
10358
|
-
resolve(new
|
|
10390
|
+
resolve(new _response__WEBPACK_IMPORTED_MODULE_6__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
|
|
10359
10391
|
};
|
|
10360
10392
|
xhr.onload = onResolve;
|
|
10361
10393
|
xhr.onabort = () => {
|
|
10362
10394
|
this.__isFulfilled = true;
|
|
10363
|
-
reject(
|
|
10395
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
|
|
10364
10396
|
};
|
|
10365
10397
|
xhr.onerror = onReject;
|
|
10366
10398
|
xhr.ontimeout = onReject;
|
|
@@ -10382,7 +10414,7 @@ class Ajax {
|
|
|
10382
10414
|
}
|
|
10383
10415
|
else if (xhr.statusText) {
|
|
10384
10416
|
this.__isFulfilled = true;
|
|
10385
|
-
reject(
|
|
10417
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
|
|
10386
10418
|
}
|
|
10387
10419
|
}
|
|
10388
10420
|
};
|
|
@@ -10393,7 +10425,7 @@ class Ajax {
|
|
|
10393
10425
|
xhr.setRequestHeader('Content-type', o.contentType);
|
|
10394
10426
|
}
|
|
10395
10427
|
let { headers } = o;
|
|
10396
|
-
if ((0,
|
|
10428
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
|
|
10397
10429
|
headers = await headers.call(this);
|
|
10398
10430
|
}
|
|
10399
10431
|
if (headers && xhr.setRequestHeader) {
|
|
@@ -10409,22 +10441,22 @@ class Ajax {
|
|
|
10409
10441
|
}
|
|
10410
10442
|
prepareRequest() {
|
|
10411
10443
|
if (!this.o.url) {
|
|
10412
|
-
throw
|
|
10444
|
+
throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
|
|
10413
10445
|
}
|
|
10414
10446
|
let url = this.o.url;
|
|
10415
10447
|
const data = this.o.data;
|
|
10416
10448
|
const method = (this.o.method || 'get').toLowerCase();
|
|
10417
|
-
if (method === 'get' && data && (0,
|
|
10449
|
+
if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
|
|
10418
10450
|
const qIndex = url.indexOf('?');
|
|
10419
10451
|
if (qIndex !== -1) {
|
|
10420
|
-
const urlData = (0,
|
|
10452
|
+
const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
|
|
10421
10453
|
url =
|
|
10422
10454
|
url.substring(0, qIndex) +
|
|
10423
10455
|
'?' +
|
|
10424
|
-
(0,
|
|
10456
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)({ ...urlData, ...data });
|
|
10425
10457
|
}
|
|
10426
10458
|
else {
|
|
10427
|
-
url += '?' + (0,
|
|
10459
|
+
url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
|
|
10428
10460
|
}
|
|
10429
10461
|
}
|
|
10430
10462
|
const request = {
|
|
@@ -10448,8 +10480,8 @@ class Ajax {
|
|
|
10448
10480
|
}
|
|
10449
10481
|
}
|
|
10450
10482
|
Ajax.log = [];
|
|
10451
|
-
(0,
|
|
10452
|
-
|
|
10483
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
10484
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
|
|
10453
10485
|
], Ajax.prototype, "destruct", null);
|
|
10454
10486
|
|
|
10455
10487
|
|
|
@@ -11335,6 +11367,7 @@ class Selection {
|
|
|
11335
11367
|
/**
|
|
11336
11368
|
* Call callback for all selection node
|
|
11337
11369
|
*/
|
|
11370
|
+
// eslint-disable-next-line complexity
|
|
11338
11371
|
eachSelection(callback) {
|
|
11339
11372
|
const sel = this.sel;
|
|
11340
11373
|
if (!sel || !sel.rangeCount) {
|
|
@@ -12115,12 +12148,13 @@ function getSuitParent(style, node, root) {
|
|
|
12115
12148
|
/* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
|
|
12116
12149
|
/* harmony export */ g: function() { return /* binding */ hasSameStyle; }
|
|
12117
12150
|
/* harmony export */ });
|
|
12118
|
-
/* harmony import */ var
|
|
12119
|
-
/* harmony import */ var
|
|
12120
|
-
/* harmony import */ var
|
|
12121
|
-
/* harmony import */ var
|
|
12122
|
-
/* harmony import */ var
|
|
12123
|
-
/* harmony import */ var
|
|
12151
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
12152
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
12153
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74197);
|
|
12154
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43581);
|
|
12155
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
12156
|
+
/* 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__);
|
|
12157
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4401);
|
|
12124
12158
|
/*!
|
|
12125
12159
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12126
12160
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12131,48 +12165,53 @@ function getSuitParent(style, node, root) {
|
|
|
12131
12165
|
|
|
12132
12166
|
|
|
12133
12167
|
|
|
12168
|
+
|
|
12134
12169
|
/**
|
|
12135
12170
|
* Element has the same styles as in the commit
|
|
12136
12171
|
* @private
|
|
12137
12172
|
*/
|
|
12138
12173
|
function hasSameStyle(elm, rules) {
|
|
12139
|
-
return Boolean(!
|
|
12140
|
-
|
|
12174
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
12175
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
12141
12176
|
Object.keys(rules).every(property => {
|
|
12142
|
-
const value = (0,
|
|
12177
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12143
12178
|
if (value === '' &&
|
|
12144
12179
|
(rules[property] === '' || rules[property] == null)) {
|
|
12145
12180
|
return true;
|
|
12146
12181
|
}
|
|
12147
|
-
return (!(0,
|
|
12182
|
+
return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
|
|
12148
12183
|
value !== '' &&
|
|
12149
|
-
!(0,
|
|
12150
|
-
(0,
|
|
12184
|
+
!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(rules[property]) &&
|
|
12185
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__/* .normalizeCssValue */ .iy)(property, rules[property])
|
|
12151
12186
|
.toString()
|
|
12152
12187
|
.toLowerCase() === value.toString().toLowerCase());
|
|
12153
12188
|
}));
|
|
12154
12189
|
}
|
|
12155
|
-
|
|
12156
|
-
elm
|
|
12157
|
-
|
|
12158
|
-
void 0;
|
|
12159
|
-
void 0;
|
|
12190
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
12191
|
+
const elm = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
12192
|
+
elm.style.color = 'red';
|
|
12193
|
+
void 0;
|
|
12194
|
+
void 0;
|
|
12195
|
+
void 0;
|
|
12196
|
+
}
|
|
12160
12197
|
/**
|
|
12161
12198
|
* Element has the similar styles keys
|
|
12162
12199
|
*/
|
|
12163
12200
|
function hasSameStyleKeys(elm, rules) {
|
|
12164
|
-
return Boolean(!
|
|
12165
|
-
|
|
12201
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
12202
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
12166
12203
|
Object.keys(rules).every(property => {
|
|
12167
|
-
const value = (0,
|
|
12204
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12168
12205
|
return value !== '';
|
|
12169
12206
|
}));
|
|
12170
12207
|
}
|
|
12171
|
-
|
|
12172
|
-
elm2
|
|
12173
|
-
|
|
12174
|
-
void 0;
|
|
12175
|
-
void 0;
|
|
12208
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
12209
|
+
const elm2 = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
12210
|
+
elm2.style.color = 'red';
|
|
12211
|
+
void 0;
|
|
12212
|
+
void 0;
|
|
12213
|
+
void 0;
|
|
12214
|
+
}
|
|
12176
12215
|
|
|
12177
12216
|
|
|
12178
12217
|
/***/ }),
|
|
@@ -12553,16 +12592,17 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12553
12592
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12554
12593
|
/* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
|
|
12555
12594
|
/* harmony export */ });
|
|
12556
|
-
/* harmony import */ var
|
|
12557
|
-
/* harmony import */ var
|
|
12558
|
-
/* harmony import */ var
|
|
12559
|
-
/* harmony import */ var
|
|
12560
|
-
/* harmony import */ var
|
|
12561
|
-
/* harmony import */ var
|
|
12562
|
-
/* harmony import */ var
|
|
12563
|
-
/* harmony import */ var
|
|
12564
|
-
/* harmony import */ var
|
|
12565
|
-
/* harmony import */ var
|
|
12595
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
12596
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
12597
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
12598
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58588);
|
|
12599
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43581);
|
|
12600
|
+
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88455);
|
|
12601
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18014);
|
|
12602
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71122);
|
|
12603
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4401);
|
|
12604
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49382);
|
|
12605
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43072);
|
|
12566
12606
|
/*!
|
|
12567
12607
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12568
12608
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12578,6 +12618,7 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12578
12618
|
|
|
12579
12619
|
|
|
12580
12620
|
|
|
12621
|
+
|
|
12581
12622
|
const tak = 'toggleAttributes';
|
|
12582
12623
|
/**
|
|
12583
12624
|
* Toggles attributes
|
|
@@ -12589,7 +12630,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12589
12630
|
}
|
|
12590
12631
|
!dry && commitStyle.setApplied(elm, tak);
|
|
12591
12632
|
const { attributes } = commitStyle.options;
|
|
12592
|
-
if (attributes && (0,
|
|
12633
|
+
if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
|
|
12593
12634
|
Object.keys(attributes).forEach((key) => {
|
|
12594
12635
|
const value = attributes[key];
|
|
12595
12636
|
switch (key) {
|
|
@@ -12611,24 +12652,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12611
12652
|
function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
12612
12653
|
void 0;
|
|
12613
12654
|
Object.keys(style).forEach((rule) => {
|
|
12614
|
-
const inlineValue = elm.style.getPropertyValue((0,
|
|
12655
|
+
const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__/* .kebabCase */ .k)(rule));
|
|
12615
12656
|
const newValue = style[rule];
|
|
12616
12657
|
if (inlineValue === '' && newValue == null) {
|
|
12617
12658
|
return;
|
|
12618
12659
|
}
|
|
12619
12660
|
if (getNativeCSSValue(jodit, elm, rule) ===
|
|
12620
|
-
(0,
|
|
12661
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
|
|
12621
12662
|
if (!inlineValue) {
|
|
12622
12663
|
return;
|
|
12623
12664
|
}
|
|
12624
|
-
!dry && (0,
|
|
12625
|
-
mode =
|
|
12665
|
+
!dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, null);
|
|
12666
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12626
12667
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12627
12668
|
return;
|
|
12628
12669
|
}
|
|
12629
|
-
mode =
|
|
12670
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12630
12671
|
if (!dry) {
|
|
12631
|
-
(0,
|
|
12672
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
|
|
12632
12673
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12633
12674
|
}
|
|
12634
12675
|
});
|
|
@@ -12636,19 +12677,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
|
12636
12677
|
}
|
|
12637
12678
|
function toggleClass(jodit, value, elm, mode, dry) {
|
|
12638
12679
|
void 0;
|
|
12639
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12680
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12640
12681
|
if (elm.classList.contains(value.toString())) {
|
|
12641
|
-
mode =
|
|
12682
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12642
12683
|
if (!dry) {
|
|
12643
12684
|
elm.classList.remove(value);
|
|
12644
12685
|
if (elm.classList.length === 0) {
|
|
12645
|
-
(0,
|
|
12686
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
|
|
12646
12687
|
hook(mode, elm, 'class', null);
|
|
12647
12688
|
}
|
|
12648
12689
|
}
|
|
12649
12690
|
}
|
|
12650
12691
|
else {
|
|
12651
|
-
mode =
|
|
12692
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12652
12693
|
if (!dry) {
|
|
12653
12694
|
elm.classList.add(value);
|
|
12654
12695
|
hook(mode, elm, 'class', value);
|
|
@@ -12658,16 +12699,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
|
|
|
12658
12699
|
}
|
|
12659
12700
|
function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
12660
12701
|
void 0;
|
|
12661
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12662
|
-
if ((0,
|
|
12663
|
-
!dry && (0,
|
|
12664
|
-
mode =
|
|
12702
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12703
|
+
if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key) === value) {
|
|
12704
|
+
!dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, null);
|
|
12705
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12665
12706
|
!dry && hook(mode, elm, key, value);
|
|
12666
12707
|
return mode;
|
|
12667
12708
|
}
|
|
12668
|
-
mode =
|
|
12709
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12669
12710
|
if (!dry) {
|
|
12670
|
-
(0,
|
|
12711
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
|
|
12671
12712
|
hook(mode, elm, key, value);
|
|
12672
12713
|
}
|
|
12673
12714
|
return mode;
|
|
@@ -12677,11 +12718,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
|
12677
12718
|
* and if it is default, it removes the element itself
|
|
12678
12719
|
*/
|
|
12679
12720
|
function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
12680
|
-
if (!(0,
|
|
12681
|
-
(0,
|
|
12721
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style')) {
|
|
12722
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style', null);
|
|
12682
12723
|
if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
|
|
12683
|
-
|
|
12684
|
-
mode =
|
|
12724
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(elm);
|
|
12725
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNWRAP */ .OJ;
|
|
12685
12726
|
}
|
|
12686
12727
|
}
|
|
12687
12728
|
return mode;
|
|
@@ -12690,12 +12731,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
|
12690
12731
|
* Creates an iframe into which elements will be inserted to test their default styles in the browser
|
|
12691
12732
|
*/
|
|
12692
12733
|
function getShadowRoot(jodit) {
|
|
12693
|
-
if ((0,
|
|
12694
|
-
return (0,
|
|
12734
|
+
if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
|
|
12735
|
+
return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
|
|
12695
12736
|
}
|
|
12696
|
-
const container = (0,
|
|
12697
|
-
const iframe =
|
|
12698
|
-
(0,
|
|
12737
|
+
const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(jodit);
|
|
12738
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
12739
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(iframe, {
|
|
12699
12740
|
width: 0,
|
|
12700
12741
|
height: 0,
|
|
12701
12742
|
position: 'absolute',
|
|
@@ -12705,7 +12746,7 @@ function getShadowRoot(jodit) {
|
|
|
12705
12746
|
container.appendChild(iframe);
|
|
12706
12747
|
const doc = iframe.contentWindow?.document;
|
|
12707
12748
|
const shadowRoot = !doc ? jodit.od.body : doc.body;
|
|
12708
|
-
(0,
|
|
12749
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
|
|
12709
12750
|
return shadowRoot;
|
|
12710
12751
|
}
|
|
12711
12752
|
/**
|
|
@@ -12716,8 +12757,8 @@ function getNativeCSSValue(jodit, elm, key) {
|
|
|
12716
12757
|
newElm.style.cssText = elm.style.cssText;
|
|
12717
12758
|
const root = getShadowRoot(jodit);
|
|
12718
12759
|
root.appendChild(newElm);
|
|
12719
|
-
const result = (0,
|
|
12720
|
-
|
|
12760
|
+
const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(newElm, key);
|
|
12761
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(newElm);
|
|
12721
12762
|
return result;
|
|
12722
12763
|
}
|
|
12723
12764
|
|
|
@@ -14745,6 +14786,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
|
|
|
14745
14786
|
}
|
|
14746
14787
|
createContainer(options) {
|
|
14747
14788
|
this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
|
|
14789
|
+
tooltip: options.tooltip,
|
|
14748
14790
|
icon: {
|
|
14749
14791
|
name: 'plus'
|
|
14750
14792
|
}
|
|
@@ -15181,8 +15223,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15181
15223
|
/* harmony export */ required: function() { return /* binding */ required; },
|
|
15182
15224
|
/* harmony export */ url: function() { return /* binding */ url; }
|
|
15183
15225
|
/* harmony export */ });
|
|
15184
|
-
/* harmony import */ var
|
|
15185
|
-
/* harmony import */ var
|
|
15226
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
|
|
15227
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
|
|
15186
15228
|
/*!
|
|
15187
15229
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15188
15230
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15194,7 +15236,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15194
15236
|
* Input is required
|
|
15195
15237
|
*/
|
|
15196
15238
|
const required = function (input) {
|
|
15197
|
-
if (!(0,
|
|
15239
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
|
|
15198
15240
|
input.error = 'Please fill out this field';
|
|
15199
15241
|
return false;
|
|
15200
15242
|
}
|
|
@@ -15204,7 +15246,7 @@ const required = function (input) {
|
|
|
15204
15246
|
* Input value should be valid URL
|
|
15205
15247
|
*/
|
|
15206
15248
|
const url = function (input) {
|
|
15207
|
-
if (!(0,
|
|
15249
|
+
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))) {
|
|
15208
15250
|
input.error = 'Please enter a web address';
|
|
15209
15251
|
return false;
|
|
15210
15252
|
}
|
|
@@ -17846,6 +17888,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17846
17888
|
}
|
|
17847
17889
|
}
|
|
17848
17890
|
catch (e) {
|
|
17891
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
17892
|
+
throw e;
|
|
17893
|
+
}
|
|
17849
17894
|
this.destruct();
|
|
17850
17895
|
throw e;
|
|
17851
17896
|
}
|
|
@@ -19836,10 +19881,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
|
|
|
19836
19881
|
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
19837
19882
|
upload: {
|
|
19838
19883
|
icon: 'plus',
|
|
19884
|
+
tooltip: 'Upload file',
|
|
19839
19885
|
isInput: true,
|
|
19840
19886
|
isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
|
|
19841
|
-
getContent: (filebrowser) => {
|
|
19887
|
+
getContent: (filebrowser, btnInt) => {
|
|
19842
19888
|
const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
19889
|
+
tooltip: btnInt.control.tooltip,
|
|
19843
19890
|
onlyImages: filebrowser.state.onlyImages
|
|
19844
19891
|
});
|
|
19845
19892
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -19848,6 +19895,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19848
19895
|
},
|
|
19849
19896
|
remove: {
|
|
19850
19897
|
icon: 'bin',
|
|
19898
|
+
tooltip: 'Remove file',
|
|
19851
19899
|
isDisabled: (browser) => {
|
|
19852
19900
|
return (!browser.state.activeElements.length ||
|
|
19853
19901
|
!browser.dataProvider.canI('FileRemove'));
|
|
@@ -19857,11 +19905,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19857
19905
|
}
|
|
19858
19906
|
},
|
|
19859
19907
|
update: {
|
|
19908
|
+
tooltip: 'Update file list',
|
|
19860
19909
|
exec: (editor) => {
|
|
19861
19910
|
editor.e.fire('update.filebrowser');
|
|
19862
19911
|
}
|
|
19863
19912
|
},
|
|
19864
19913
|
select: {
|
|
19914
|
+
tooltip: 'Select file',
|
|
19865
19915
|
icon: 'check',
|
|
19866
19916
|
isDisabled: (browser) => !browser.state.activeElements.length,
|
|
19867
19917
|
exec: (editor) => {
|
|
@@ -19869,6 +19919,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19869
19919
|
}
|
|
19870
19920
|
},
|
|
19871
19921
|
edit: {
|
|
19922
|
+
tooltip: 'Edit image',
|
|
19872
19923
|
icon: 'pencil',
|
|
19873
19924
|
isDisabled: (browser) => {
|
|
19874
19925
|
const selected = browser.state.activeElements;
|
|
@@ -19882,6 +19933,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19882
19933
|
}
|
|
19883
19934
|
},
|
|
19884
19935
|
tiles: {
|
|
19936
|
+
tooltip: 'Tiles view',
|
|
19885
19937
|
icon: 'th',
|
|
19886
19938
|
isActive: (filebrowser) => filebrowser.state.view === 'tiles',
|
|
19887
19939
|
exec: (filebrowser) => {
|
|
@@ -19889,6 +19941,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19889
19941
|
}
|
|
19890
19942
|
},
|
|
19891
19943
|
list: {
|
|
19944
|
+
tooltip: 'List view',
|
|
19892
19945
|
icon: 'th-list',
|
|
19893
19946
|
isActive: (filebrowser) => filebrowser.state.view === 'list',
|
|
19894
19947
|
exec: (filebrowser) => {
|
|
@@ -20302,7 +20355,6 @@ let DataProvider = class DataProvider {
|
|
|
20302
20355
|
data: {}
|
|
20303
20356
|
};
|
|
20304
20357
|
}
|
|
20305
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
20306
20358
|
const query = this.o[type];
|
|
20307
20359
|
if (query.data === undefined) {
|
|
20308
20360
|
query.data = {
|
|
@@ -20548,7 +20600,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20548
20600
|
get dataProvider() {
|
|
20549
20601
|
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
20550
20602
|
}
|
|
20551
|
-
// eslint-disable-next-line no-unused-vars
|
|
20552
20603
|
onSelect(callback) {
|
|
20553
20604
|
return () => {
|
|
20554
20605
|
if (this.state.activeElements.length) {
|
|
@@ -23061,7 +23112,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
23061
23112
|
const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
|
|
23062
23113
|
selector && selectors.push(selector);
|
|
23063
23114
|
});
|
|
23064
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
23065
23115
|
style.innerHTML = selectors.length
|
|
23066
23116
|
? selectors.join(',') +
|
|
23067
23117
|
`{${this.jodit.options.table.selectionCellStyle}}`
|
|
@@ -26860,6 +26910,7 @@ function checkNotCollapsed(jodit) {
|
|
|
26860
26910
|
* ```
|
|
26861
26911
|
* @private
|
|
26862
26912
|
*/
|
|
26913
|
+
// eslint-disable-next-line complexity
|
|
26863
26914
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26864
26915
|
const step = backspace ? -1 : 1;
|
|
26865
26916
|
const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
|
|
@@ -31656,6 +31707,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
|
|
|
31656
31707
|
'-ms-user-select: none' +
|
|
31657
31708
|
'}';
|
|
31658
31709
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
|
|
31710
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
|
|
31659
31711
|
|
|
31660
31712
|
|
|
31661
31713
|
/***/ }),
|
|
@@ -31732,6 +31784,9 @@ function iframe(editor) {
|
|
|
31732
31784
|
iframe.setAttribute('allowtransparency', 'true');
|
|
31733
31785
|
iframe.setAttribute('tabindex', opt.tabIndex.toString());
|
|
31734
31786
|
iframe.setAttribute('frameborder', '0');
|
|
31787
|
+
if (opt.iframeSandbox != null) {
|
|
31788
|
+
iframe.setAttribute('sandbox', opt.iframeSandbox);
|
|
31789
|
+
}
|
|
31735
31790
|
editor.workplace.appendChild(iframe);
|
|
31736
31791
|
editor.iframe = iframe;
|
|
31737
31792
|
const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
|
|
@@ -37508,13 +37563,13 @@ function generateCriticalCSS(jodit) {
|
|
|
37508
37563
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
37509
37564
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33465);
|
|
37510
37565
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
37511
|
-
/* harmony import */ var
|
|
37512
|
-
/* harmony import */ var
|
|
37513
|
-
/* harmony import */ var
|
|
37514
|
-
/* harmony import */ var
|
|
37515
|
-
/* harmony import */ var
|
|
37516
|
-
/* harmony import */ var
|
|
37517
|
-
/* harmony import */ var
|
|
37566
|
+
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54614);
|
|
37567
|
+
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85769);
|
|
37568
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80004);
|
|
37569
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
|
|
37570
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86134);
|
|
37571
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26899);
|
|
37572
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
37518
37573
|
/*!
|
|
37519
37574
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37520
37575
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37529,8 +37584,8 @@ function generateCriticalCSS(jodit) {
|
|
|
37529
37584
|
|
|
37530
37585
|
|
|
37531
37586
|
|
|
37532
|
-
|
|
37533
|
-
|
|
37587
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
37588
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.print = {
|
|
37534
37589
|
exec: (editor) => {
|
|
37535
37590
|
const iframe = editor.create.element('iframe');
|
|
37536
37591
|
Object.assign(iframe.style, {
|
|
@@ -37541,7 +37596,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
37541
37596
|
height: 0,
|
|
37542
37597
|
border: 0
|
|
37543
37598
|
});
|
|
37544
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
37599
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T).appendChild(iframe);
|
|
37545
37600
|
const afterFinishPrint = () => {
|
|
37546
37601
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
37547
37602
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -37557,12 +37612,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
37557
37612
|
}
|
|
37558
37613
|
else {
|
|
37559
37614
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
37560
|
-
(0,
|
|
37615
|
+
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
37561
37616
|
'"><head><title></title></head><style>' +
|
|
37562
|
-
(0,
|
|
37617
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
|
|
37563
37618
|
'</style><body></body></html>');
|
|
37564
37619
|
myWindow.document.close();
|
|
37565
|
-
(0,
|
|
37620
|
+
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
37566
37621
|
}
|
|
37567
37622
|
const style = myWindow.document.createElement('style');
|
|
37568
37623
|
style.innerHTML = `@media print {
|
|
@@ -38638,10 +38693,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38638
38693
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
38639
38694
|
|
|
38640
38695
|
"use strict";
|
|
38641
|
-
/* harmony import */ var
|
|
38642
|
-
/* harmony import */ var
|
|
38643
|
-
/* harmony import */ var
|
|
38644
|
-
/* harmony import */ var
|
|
38696
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
38697
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
38698
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
38699
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98973);
|
|
38700
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
38645
38701
|
/*!
|
|
38646
38702
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38647
38703
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38651,14 +38707,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
38651
38707
|
|
|
38652
38708
|
|
|
38653
38709
|
|
|
38654
|
-
|
|
38655
|
-
|
|
38710
|
+
|
|
38711
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
|
|
38712
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
|
|
38656
38713
|
lazyIdleTimeout: 0,
|
|
38657
|
-
|
|
38658
|
-
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
38714
|
+
useCustomHighlightAPI: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined'
|
|
38659
38715
|
};
|
|
38660
|
-
|
|
38661
|
-
|
|
38716
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
38717
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
|
|
38662
38718
|
tooltip: 'Find',
|
|
38663
38719
|
icon: 'search',
|
|
38664
38720
|
exec(jodit, _, { control }) {
|
|
@@ -38699,8 +38755,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38699
38755
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
38700
38756
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
38701
38757
|
/* harmony export */ });
|
|
38702
|
-
/* harmony
|
|
38703
|
-
/* harmony import */ var
|
|
38758
|
+
/* unused harmony export clearNativeSelection */
|
|
38759
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
38760
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
38761
|
+
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52989);
|
|
38704
38762
|
/*!
|
|
38705
38763
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38706
38764
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38708,6 +38766,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38708
38766
|
*/
|
|
38709
38767
|
|
|
38710
38768
|
|
|
38769
|
+
|
|
38711
38770
|
/**
|
|
38712
38771
|
* @private
|
|
38713
38772
|
*/
|
|
@@ -38726,15 +38785,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38726
38785
|
const span = ci.element('span', {
|
|
38727
38786
|
[TMP_ATTR]: true
|
|
38728
38787
|
});
|
|
38729
|
-
|
|
38788
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
|
|
38730
38789
|
normalizeRanges(rng, restRanges, ci);
|
|
38731
38790
|
let next = rng.startContainer;
|
|
38732
38791
|
do {
|
|
38733
38792
|
if (!next) {
|
|
38734
38793
|
break;
|
|
38735
38794
|
}
|
|
38736
|
-
if (
|
|
38737
|
-
|
|
38795
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
|
|
38796
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
|
|
38738
38797
|
}
|
|
38739
38798
|
if (next === rng.endContainer) {
|
|
38740
38799
|
break;
|
|
@@ -38753,13 +38812,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38753
38812
|
* @private
|
|
38754
38813
|
*/
|
|
38755
38814
|
function getSelectionWrappers(root) {
|
|
38756
|
-
return (0,
|
|
38815
|
+
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
|
|
38757
38816
|
}
|
|
38758
38817
|
/**
|
|
38759
38818
|
* @private
|
|
38760
38819
|
*/
|
|
38761
|
-
function clearSelectionWrappers(
|
|
38762
|
-
getSelectionWrappers(
|
|
38820
|
+
function clearSelectionWrappers(jodit) {
|
|
38821
|
+
getSelectionWrappers(jodit.editor).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
|
|
38822
|
+
clearNativeSelection(jodit);
|
|
38763
38823
|
}
|
|
38764
38824
|
/**
|
|
38765
38825
|
* @private
|
|
@@ -38771,19 +38831,19 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
38771
38831
|
* @private
|
|
38772
38832
|
*/
|
|
38773
38833
|
function isSelectionWrapper(node) {
|
|
38774
|
-
return
|
|
38834
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
38775
38835
|
}
|
|
38776
38836
|
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
38777
38837
|
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38778
38838
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38779
|
-
|
|
38839
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
38840
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
38780
38841
|
const ranges = [rng, ...restRanges].map(rng => {
|
|
38781
38842
|
const range = jodit.selection.createRange();
|
|
38782
38843
|
range.setStart(rng.startContainer, rng.startOffset);
|
|
38783
38844
|
range.setEnd(rng.endContainer, rng.endOffset);
|
|
38784
38845
|
return range;
|
|
38785
38846
|
});
|
|
38786
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38787
38847
|
const searchHighlight = new Highlight(...ranges);
|
|
38788
38848
|
// @ts-ignore
|
|
38789
38849
|
CSS.highlights.clear();
|
|
@@ -38794,13 +38854,22 @@ function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
|
38794
38854
|
}
|
|
38795
38855
|
return false;
|
|
38796
38856
|
}
|
|
38857
|
+
function clearNativeSelection(jodit) {
|
|
38858
|
+
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38859
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38860
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
38861
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
38862
|
+
// @ts-ignore
|
|
38863
|
+
CSS.highlights.clear();
|
|
38864
|
+
}
|
|
38865
|
+
}
|
|
38797
38866
|
function normalizeRanges(rng, restRanges, ci) {
|
|
38798
38867
|
const startText = rng.startContainer.nodeValue;
|
|
38799
38868
|
let diff = 0;
|
|
38800
38869
|
if (rng.startOffset !== 0) {
|
|
38801
38870
|
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
38802
38871
|
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
38803
|
-
|
|
38872
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
|
|
38804
38873
|
if (rng.startContainer === rng.endContainer) {
|
|
38805
38874
|
diff = rng.startOffset;
|
|
38806
38875
|
rng.endOffset -= diff;
|
|
@@ -38811,7 +38880,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
38811
38880
|
if (rng.endOffset !== endText.length) {
|
|
38812
38881
|
const text = ci.text(endText.substring(rng.endOffset));
|
|
38813
38882
|
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
38814
|
-
|
|
38883
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
|
|
38815
38884
|
for (const range of restRanges) {
|
|
38816
38885
|
if (range.startContainer === rng.endContainer) {
|
|
38817
38886
|
range.startContainer = text;
|
|
@@ -38967,11 +39036,11 @@ class SentenceFinder {
|
|
|
38967
39036
|
*
|
|
38968
39037
|
* @example
|
|
38969
39038
|
* ```typescript
|
|
38970
|
-
*
|
|
39039
|
+
* const jodit = Jodit.make('#editor', {
|
|
38971
39040
|
* useSearch: false
|
|
38972
39041
|
* });
|
|
38973
39042
|
* // or
|
|
38974
|
-
*
|
|
39043
|
+
* const jodit = Jodit.make('#editor', {
|
|
38975
39044
|
* disablePlugins: 'search'
|
|
38976
39045
|
* });
|
|
38977
39046
|
* ```
|
|
@@ -39050,7 +39119,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
39050
39119
|
rng.deleteContents();
|
|
39051
39120
|
const textNode = this.j.createInside.text(this.ui.replace);
|
|
39052
39121
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeInsertNode(rng, textNode);
|
|
39053
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j
|
|
39122
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
|
|
39054
39123
|
this.j.s.setCursorAfter(textNode);
|
|
39055
39124
|
this.tryScrollToElement(textNode);
|
|
39056
39125
|
this.cache = {};
|
|
@@ -39077,7 +39146,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
39077
39146
|
!(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .getSelectionWrappers */ .zy)(this.j.editor).length) {
|
|
39078
39147
|
this.drawPromise?.rejectCallback();
|
|
39079
39148
|
this.j.async.cancelAnimationFrame(this.wrapFrameRequest);
|
|
39080
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j
|
|
39149
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
|
|
39081
39150
|
this.drawPromise = this.__drawSelectionRanges(bounds);
|
|
39082
39151
|
}
|
|
39083
39152
|
this.previousQuery = query;
|
|
@@ -39190,14 +39259,15 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
39190
39259
|
this.ui.close();
|
|
39191
39260
|
})
|
|
39192
39261
|
.on(this.ui, 'afterClose', () => {
|
|
39193
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor
|
|
39262
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
|
|
39194
39263
|
this.ui.currentIndex = 0;
|
|
39195
39264
|
this.ui.count = 0;
|
|
39196
39265
|
this.cache = {};
|
|
39266
|
+
editor.focus();
|
|
39197
39267
|
})
|
|
39198
39268
|
.on('click', () => {
|
|
39199
39269
|
this.ui.currentIndex = 0;
|
|
39200
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor
|
|
39270
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
|
|
39201
39271
|
})
|
|
39202
39272
|
.on('change.search', () => {
|
|
39203
39273
|
this.cache = {};
|
|
@@ -39208,7 +39278,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
39208
39278
|
this.ui.selInfo = null;
|
|
39209
39279
|
}
|
|
39210
39280
|
if (this.ui.isOpened) {
|
|
39211
|
-
this.updateCounters();
|
|
39281
|
+
void this.updateCounters();
|
|
39212
39282
|
}
|
|
39213
39283
|
}, editor.defaultTimeout))
|
|
39214
39284
|
.on('searchNext.search searchPrevious.search', () => {
|
|
@@ -39388,7 +39458,7 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
|
|
|
39388
39458
|
return false;
|
|
39389
39459
|
})
|
|
39390
39460
|
.on(next, 'pointerdown', () => {
|
|
39391
|
-
jodit.e.fire('searchNext');
|
|
39461
|
+
void jodit.e.fire('searchNext');
|
|
39392
39462
|
return false;
|
|
39393
39463
|
})
|
|
39394
39464
|
.on(prev, 'pointerdown', () => {
|
|
@@ -39398,12 +39468,12 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
|
|
|
39398
39468
|
.on(this.queryInput, 'input', () => {
|
|
39399
39469
|
this.setMod('empty-query', !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(this.queryInput.value).length);
|
|
39400
39470
|
})
|
|
39401
|
-
.on(this.queryInput, 'keydown', this.j.async.debounce((e) => {
|
|
39471
|
+
.on(this.queryInput, 'keydown', this.j.async.debounce(async (e) => {
|
|
39402
39472
|
switch (e.key) {
|
|
39403
39473
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER:
|
|
39404
39474
|
e.preventDefault();
|
|
39405
39475
|
e.stopImmediatePropagation();
|
|
39406
|
-
if (jodit.e.fire('searchNext')) {
|
|
39476
|
+
if (await jodit.e.fire('searchNext')) {
|
|
39407
39477
|
this.close();
|
|
39408
39478
|
}
|
|
39409
39479
|
break;
|
|
@@ -41682,6 +41752,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
|
|
|
41682
41752
|
|
|
41683
41753
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
|
|
41684
41754
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
|
|
41755
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
|
|
41685
41756
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
|
|
41686
41757
|
|
|
41687
41758
|
|
|
@@ -41728,9 +41799,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
|
|
|
41728
41799
|
this.calc = this.j.async.throttle(() => {
|
|
41729
41800
|
const text = this.j.text;
|
|
41730
41801
|
if (this.j.o.showCharsCounter && this.charCounter) {
|
|
41731
|
-
|
|
41732
|
-
|
|
41733
|
-
|
|
41802
|
+
let chars;
|
|
41803
|
+
if (this.j.o.countHTMLChars) {
|
|
41804
|
+
chars = this.j.value;
|
|
41805
|
+
}
|
|
41806
|
+
else {
|
|
41807
|
+
if (this.j.o.countTextSpaces) {
|
|
41808
|
+
chars = text
|
|
41809
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), '')
|
|
41810
|
+
.replace(/[\r\n]/g, '');
|
|
41811
|
+
}
|
|
41812
|
+
else {
|
|
41813
|
+
chars = text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
41814
|
+
}
|
|
41815
|
+
}
|
|
41734
41816
|
this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
|
|
41735
41817
|
}
|
|
41736
41818
|
if (this.j.o.showWordsCounter && this.wordCounter) {
|
|
@@ -42364,8 +42446,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42364
42446
|
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
42365
42447
|
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
42366
42448
|
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
42367
|
-
/* harmony export */
|
|
42368
|
-
/* harmony export */
|
|
42449
|
+
/* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_19__; },
|
|
42450
|
+
/* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__; },
|
|
42451
|
+
/* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__; }
|
|
42369
42452
|
/* harmony export */ });
|
|
42370
42453
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52438);
|
|
42371
42454
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -42405,10 +42488,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42405
42488
|
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
42406
42489
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(64331);
|
|
42407
42490
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
42408
|
-
/* harmony import */ var
|
|
42409
|
-
/* harmony import */ var
|
|
42410
|
-
/* harmony import */ var
|
|
42411
|
-
/* harmony import */ var
|
|
42491
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(87983);
|
|
42492
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
42493
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(13599);
|
|
42494
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
42495
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(70871);
|
|
42496
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
42412
42497
|
/*!
|
|
42413
42498
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42414
42499
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42436,6 +42521,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42436
42521
|
|
|
42437
42522
|
|
|
42438
42523
|
|
|
42524
|
+
|
|
42439
42525
|
|
|
42440
42526
|
|
|
42441
42527
|
/***/ }),
|
|
@@ -42591,6 +42677,23 @@ module.exports = {
|
|
|
42591
42677
|
};
|
|
42592
42678
|
|
|
42593
42679
|
|
|
42680
|
+
/***/ }),
|
|
42681
|
+
|
|
42682
|
+
/***/ 87983:
|
|
42683
|
+
/***/ (function(module) {
|
|
42684
|
+
|
|
42685
|
+
"use strict";
|
|
42686
|
+
|
|
42687
|
+
/*!
|
|
42688
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42689
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
42690
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
42691
|
+
*/
|
|
42692
|
+
module.exports = {
|
|
42693
|
+
symbols: 'символ'
|
|
42694
|
+
};
|
|
42695
|
+
|
|
42696
|
+
|
|
42594
42697
|
/***/ }),
|
|
42595
42698
|
|
|
42596
42699
|
/***/ 13599:
|
|
@@ -44306,7 +44409,6 @@ function getTextLeftOfCursor(range) {
|
|
|
44306
44409
|
* ```
|
|
44307
44410
|
*/
|
|
44308
44411
|
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
44309
|
-
// eslint-disable-next-line prefer-const
|
|
44310
44412
|
let { startContainer, startOffset } = range;
|
|
44311
44413
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(startContainer)) {
|
|
44312
44414
|
startContainer = startContainer.childNodes[startOffset - 1];
|
|
@@ -44811,7 +44913,6 @@ function convertToList(elm) {
|
|
|
44811
44913
|
return elm;
|
|
44812
44914
|
}
|
|
44813
44915
|
function moveUp(leaf) {
|
|
44814
|
-
// eslint-disable-next-line no-constant-condition
|
|
44815
44916
|
while (leaf) {
|
|
44816
44917
|
const prev = leaf.previousElement;
|
|
44817
44918
|
// Leaf after P
|
|
@@ -46189,7 +46290,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
46189
46290
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
46190
46291
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46191
46292
|
***************************************************************************** */
|
|
46192
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
46293
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
46193
46294
|
|
|
46194
46295
|
var extendStatics = function(d, b) {
|
|
46195
46296
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -46300,8 +46401,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
46300
46401
|
}
|
|
46301
46402
|
|
|
46302
46403
|
function __generator(thisArg, body) {
|
|
46303
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
46304
|
-
return g =
|
|
46404
|
+
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);
|
|
46405
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
46305
46406
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
46306
46407
|
function step(op) {
|
|
46307
46408
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -46405,8 +46506,9 @@ function __await(v) {
|
|
|
46405
46506
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
46406
46507
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
46407
46508
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
46408
|
-
return i =
|
|
46409
|
-
function
|
|
46509
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
46510
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
46511
|
+
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]); } }
|
|
46410
46512
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
46411
46513
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
46412
46514
|
function fulfill(value) { resume("next", value); }
|
|
@@ -46472,16 +46574,18 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
46472
46574
|
function __addDisposableResource(env, value, async) {
|
|
46473
46575
|
if (value !== null && value !== void 0) {
|
|
46474
46576
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
46475
|
-
var dispose;
|
|
46577
|
+
var dispose, inner;
|
|
46476
46578
|
if (async) {
|
|
46477
|
-
|
|
46478
|
-
|
|
46579
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
46580
|
+
dispose = value[Symbol.asyncDispose];
|
|
46479
46581
|
}
|
|
46480
46582
|
if (dispose === void 0) {
|
|
46481
|
-
|
|
46482
|
-
|
|
46583
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
46584
|
+
dispose = value[Symbol.dispose];
|
|
46585
|
+
if (async) inner = dispose;
|
|
46483
46586
|
}
|
|
46484
46587
|
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
46588
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
46485
46589
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
46486
46590
|
}
|
|
46487
46591
|
else if (async) {
|
|
@@ -46500,17 +46604,22 @@ function __disposeResources(env) {
|
|
|
46500
46604
|
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
46501
46605
|
env.hasError = true;
|
|
46502
46606
|
}
|
|
46607
|
+
var r, s = 0;
|
|
46503
46608
|
function next() {
|
|
46504
|
-
while (env.stack.
|
|
46505
|
-
var rec = env.stack.pop();
|
|
46609
|
+
while (r = env.stack.pop()) {
|
|
46506
46610
|
try {
|
|
46507
|
-
|
|
46508
|
-
if (
|
|
46611
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
46612
|
+
if (r.dispose) {
|
|
46613
|
+
var result = r.dispose.call(r.value);
|
|
46614
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
46615
|
+
}
|
|
46616
|
+
else s |= 1;
|
|
46509
46617
|
}
|
|
46510
46618
|
catch (e) {
|
|
46511
|
-
|
|
46619
|
+
fail(e);
|
|
46512
46620
|
}
|
|
46513
46621
|
}
|
|
46622
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
46514
46623
|
if (env.hasError) throw env.error;
|
|
46515
46624
|
}
|
|
46516
46625
|
return next();
|
|
@@ -46637,11 +46746,88 @@ function __disposeResources(env) {
|
|
|
46637
46746
|
/******/ };
|
|
46638
46747
|
/******/ }();
|
|
46639
46748
|
/******/
|
|
46749
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
46750
|
+
/******/ !function() {
|
|
46751
|
+
/******/ __webpack_require__.f = {};
|
|
46752
|
+
/******/ // This file contains only the entry chunk.
|
|
46753
|
+
/******/ // The chunk loading function for additional chunks
|
|
46754
|
+
/******/ __webpack_require__.e = function(chunkId) {
|
|
46755
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
|
|
46756
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
46757
|
+
/******/ return promises;
|
|
46758
|
+
/******/ }, []));
|
|
46759
|
+
/******/ };
|
|
46760
|
+
/******/ }();
|
|
46761
|
+
/******/
|
|
46762
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
46763
|
+
/******/ !function() {
|
|
46764
|
+
/******/ // This function allow to reference async chunks
|
|
46765
|
+
/******/ __webpack_require__.u = function(chunkId) {
|
|
46766
|
+
/******/ // return url for filenames based on template
|
|
46767
|
+
/******/ return "" + chunkId + ".js";
|
|
46768
|
+
/******/ };
|
|
46769
|
+
/******/ }();
|
|
46770
|
+
/******/
|
|
46771
|
+
/******/ /* webpack/runtime/get mini-css chunk filename */
|
|
46772
|
+
/******/ !function() {
|
|
46773
|
+
/******/ // This function allow to reference async chunks
|
|
46774
|
+
/******/ __webpack_require__.miniCssF = function(chunkId) {
|
|
46775
|
+
/******/ // return url for filenames based on template
|
|
46776
|
+
/******/ return undefined;
|
|
46777
|
+
/******/ };
|
|
46778
|
+
/******/ }();
|
|
46779
|
+
/******/
|
|
46640
46780
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
46641
46781
|
/******/ !function() {
|
|
46642
46782
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
46643
46783
|
/******/ }();
|
|
46644
46784
|
/******/
|
|
46785
|
+
/******/ /* webpack/runtime/load script */
|
|
46786
|
+
/******/ !function() {
|
|
46787
|
+
/******/ var inProgress = {};
|
|
46788
|
+
/******/ var dataWebpackPrefix = "jodit-pro:";
|
|
46789
|
+
/******/ // loadScript function to load a script via script tag
|
|
46790
|
+
/******/ __webpack_require__.l = function(url, done, key, chunkId) {
|
|
46791
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
46792
|
+
/******/ var script, needAttach;
|
|
46793
|
+
/******/ if(key !== undefined) {
|
|
46794
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
46795
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
46796
|
+
/******/ var s = scripts[i];
|
|
46797
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
46798
|
+
/******/ }
|
|
46799
|
+
/******/ }
|
|
46800
|
+
/******/ if(!script) {
|
|
46801
|
+
/******/ needAttach = true;
|
|
46802
|
+
/******/ script = document.createElement('script');
|
|
46803
|
+
/******/
|
|
46804
|
+
/******/ script.charset = 'utf-8';
|
|
46805
|
+
/******/ script.timeout = 120;
|
|
46806
|
+
/******/ if (__webpack_require__.nc) {
|
|
46807
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
46808
|
+
/******/ }
|
|
46809
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
46810
|
+
/******/
|
|
46811
|
+
/******/ script.src = url;
|
|
46812
|
+
/******/ }
|
|
46813
|
+
/******/ inProgress[url] = [done];
|
|
46814
|
+
/******/ var onScriptComplete = function(prev, event) {
|
|
46815
|
+
/******/ // avoid mem leaks in IE.
|
|
46816
|
+
/******/ script.onerror = script.onload = null;
|
|
46817
|
+
/******/ clearTimeout(timeout);
|
|
46818
|
+
/******/ var doneFns = inProgress[url];
|
|
46819
|
+
/******/ delete inProgress[url];
|
|
46820
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
46821
|
+
/******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
|
|
46822
|
+
/******/ if(prev) return prev(event);
|
|
46823
|
+
/******/ }
|
|
46824
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
46825
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
46826
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
46827
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
46828
|
+
/******/ };
|
|
46829
|
+
/******/ }();
|
|
46830
|
+
/******/
|
|
46645
46831
|
/******/ /* webpack/runtime/make namespace object */
|
|
46646
46832
|
/******/ !function() {
|
|
46647
46833
|
/******/ // define __esModule on exports
|
|
@@ -46653,6 +46839,11 @@ function __disposeResources(env) {
|
|
|
46653
46839
|
/******/ };
|
|
46654
46840
|
/******/ }();
|
|
46655
46841
|
/******/
|
|
46842
|
+
/******/ /* webpack/runtime/publicPath */
|
|
46843
|
+
/******/ !function() {
|
|
46844
|
+
/******/ __webpack_require__.p = "/build/";
|
|
46845
|
+
/******/ }();
|
|
46846
|
+
/******/
|
|
46656
46847
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
46657
46848
|
/******/ !function() {
|
|
46658
46849
|
/******/ // no baseURI
|
|
@@ -46664,7 +46855,44 @@ function __disposeResources(env) {
|
|
|
46664
46855
|
/******/ 521: 0
|
|
46665
46856
|
/******/ };
|
|
46666
46857
|
/******/
|
|
46667
|
-
/******/
|
|
46858
|
+
/******/ __webpack_require__.f.j = function(chunkId, promises) {
|
|
46859
|
+
/******/ // JSONP chunk loading for javascript
|
|
46860
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
46861
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
46862
|
+
/******/
|
|
46863
|
+
/******/ // a Promise means "currently loading".
|
|
46864
|
+
/******/ if(installedChunkData) {
|
|
46865
|
+
/******/ promises.push(installedChunkData[2]);
|
|
46866
|
+
/******/ } else {
|
|
46867
|
+
/******/ if(true) { // all chunks have JS
|
|
46868
|
+
/******/ // setup Promise in chunk cache
|
|
46869
|
+
/******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
|
|
46870
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
46871
|
+
/******/
|
|
46872
|
+
/******/ // start chunk loading
|
|
46873
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
46874
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
46875
|
+
/******/ var error = new Error();
|
|
46876
|
+
/******/ var loadingEnded = function(event) {
|
|
46877
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
46878
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
46879
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
46880
|
+
/******/ if(installedChunkData) {
|
|
46881
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
46882
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
46883
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
46884
|
+
/******/ error.name = 'ChunkLoadError';
|
|
46885
|
+
/******/ error.type = errorType;
|
|
46886
|
+
/******/ error.request = realSrc;
|
|
46887
|
+
/******/ installedChunkData[1](error);
|
|
46888
|
+
/******/ }
|
|
46889
|
+
/******/ }
|
|
46890
|
+
/******/ };
|
|
46891
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
46892
|
+
/******/ }
|
|
46893
|
+
/******/ }
|
|
46894
|
+
/******/ }
|
|
46895
|
+
/******/ };
|
|
46668
46896
|
/******/
|
|
46669
46897
|
/******/ // no prefetching
|
|
46670
46898
|
/******/
|