jodit-pro 4.19.8 → 4.19.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +11 -11
- package/es2015/jodit.js +739 -163
- package/es2015/jodit.min.js +41 -41
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- 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/chart/chart.css +1 -1
- package/es2015/plugins/chart/chart.js +1 -1
- package/es2015/plugins/chart/chart.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 +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.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/math/math.css +1 -1
- package/es2015/plugins/math/math.js +1 -1
- package/es2015/plugins/math/math.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 +1 -1
- 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 +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- 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 +1 -1
- 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/jodit.fat.min.js +11 -11
- package/es2018/jodit.min.js +14 -14
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/chart/chart.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/math/math.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +15 -15
- package/es2021/jodit.js +739 -163
- package/es2021/jodit.min.js +33 -33
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- 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/chart/chart.css +1 -1
- package/es2021/plugins/chart/chart.js +1 -1
- package/es2021/plugins/chart/chart.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 +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.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/math/math.css +1 -1
- package/es2021/plugins/math/math.js +1 -1
- package/es2021/plugins/math/math.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 +1 -1
- 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 +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- 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 +1 -1
- 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/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +13 -13
- package/es2021.en/jodit.js +739 -163
- package/es2021.en/jodit.min.js +14 -14
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- 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/chart/chart.css +1 -1
- package/es2021.en/plugins/chart/chart.js +1 -1
- package/es2021.en/plugins/chart/chart.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 +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.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/math/math.css +1 -1
- package/es2021.en/plugins/math/math.js +1 -1
- package/es2021.en/plugins/math/math.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 +1 -1
- 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 +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- 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 +1 -1
- 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/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +817 -168
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- 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/chart/chart.css +1 -1
- package/es5/plugins/chart/chart.js +1 -1
- package/es5/plugins/chart/chart.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 +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.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/math/math.css +1 -1
- package/es5/plugins/math/math.js +1 -1
- package/es5/plugins/math/math.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 +1 -1
- 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 +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- 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 +1 -1
- 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/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/package.json +1 -1
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.19.
|
|
4
|
+
* Version: v4.19.10
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2334,7 +2334,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2334
2334
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2335
2335
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
2336
2336
|
}
|
|
2337
|
-
var APP_VERSION = "4.19.
|
|
2337
|
+
var APP_VERSION = "4.19.10";
|
|
2338
2338
|
// prettier-ignore
|
|
2339
2339
|
var ES = "es5";
|
|
2340
2340
|
var IS_ES_MODERN = false;
|
|
@@ -3812,13 +3812,14 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
3812
3812
|
/* harmony import */ var _helpers_checker_is_set_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42320);
|
|
3813
3813
|
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70799);
|
|
3814
3814
|
/* harmony import */ var _helpers_checker_is_void_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86068);
|
|
3815
|
-
/* harmony import */ var
|
|
3816
|
-
/* harmony import */ var
|
|
3817
|
-
/* harmony import */ var
|
|
3818
|
-
/* harmony import */ var
|
|
3819
|
-
/* harmony import */ var
|
|
3820
|
-
/* harmony import */ var
|
|
3821
|
-
/* harmony import */ var
|
|
3815
|
+
/* harmony import */ var _helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76241);
|
|
3816
|
+
/* harmony import */ var _helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(49055);
|
|
3817
|
+
/* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(38837);
|
|
3818
|
+
/* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(29960);
|
|
3819
|
+
/* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(41180);
|
|
3820
|
+
/* harmony import */ var _helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(86583);
|
|
3821
|
+
/* harmony import */ var _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(89890);
|
|
3822
|
+
/* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37790);
|
|
3822
3823
|
function _class_call_check(instance, Constructor) {
|
|
3823
3824
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
3824
3825
|
}
|
|
@@ -3985,7 +3986,7 @@ function _type_of(obj) {
|
|
|
3985
3986
|
|
|
3986
3987
|
|
|
3987
3988
|
|
|
3988
|
-
|
|
3989
|
+
|
|
3989
3990
|
/**
|
|
3990
3991
|
* Module for working with DOM
|
|
3991
3992
|
*/ var Dom = /*#__PURE__*/ function() {
|
|
@@ -4083,7 +4084,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4083
4084
|
var wrapper = (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? create.element(tag) : tag;
|
|
4084
4085
|
if (Dom.isNode(current)) {
|
|
4085
4086
|
if (!current.parentNode) {
|
|
4086
|
-
throw (0,
|
|
4087
|
+
throw (0,_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_14__.error)('Element should be in DOM');
|
|
4087
4088
|
}
|
|
4088
4089
|
current.parentNode.insertBefore(wrapper, current);
|
|
4089
4090
|
wrapper.appendChild(current);
|
|
@@ -4143,12 +4144,12 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4143
4144
|
value: function replace(elm, newTagName, create) {
|
|
4144
4145
|
var withAttributes = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, notMoveContent = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
4145
4146
|
if ((0,_helpers_checker_is_html_js__WEBPACK_IMPORTED_MODULE_4__.isHTML)(newTagName)) {
|
|
4146
|
-
(0,
|
|
4147
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_10__.assert)(create, 'Need create instance for new tag');
|
|
4147
4148
|
newTagName = create.fromHTML(newTagName);
|
|
4148
4149
|
}
|
|
4149
4150
|
var tag;
|
|
4150
4151
|
if ((0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(newTagName)) {
|
|
4151
|
-
(0,
|
|
4152
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_10__.assert)(create, 'Need create instance for new tag');
|
|
4152
4153
|
tag = create.element(newTagName);
|
|
4153
4154
|
} else {
|
|
4154
4155
|
tag = newTagName;
|
|
@@ -4217,7 +4218,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4217
4218
|
cond = condNoEmptyElement;
|
|
4218
4219
|
}
|
|
4219
4220
|
var emptyText = function emptyText(node) {
|
|
4220
|
-
return node.nodeValue == null || (0,
|
|
4221
|
+
return node.nodeValue == null || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_9__.trim)(node.nodeValue).length === 0;
|
|
4221
4222
|
};
|
|
4222
4223
|
if (Dom.isText(node)) {
|
|
4223
4224
|
return emptyText(node);
|
|
@@ -4345,7 +4346,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4345
4346
|
return Dom.isElement(node) && !/^(BR|HR)$/i.test(node.tagName) && [
|
|
4346
4347
|
'inline',
|
|
4347
4348
|
'inline-block'
|
|
4348
|
-
].indexOf((0,
|
|
4349
|
+
].indexOf((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_12__.css)(node, 'display').toString()) !== -1;
|
|
4349
4350
|
}
|
|
4350
4351
|
},
|
|
4351
4352
|
{
|
|
@@ -4635,7 +4636,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4635
4636
|
*/ function findNotEmptySibling(node, left) {
|
|
4636
4637
|
return Dom.findSibling(node, left, function(n) {
|
|
4637
4638
|
var _a;
|
|
4638
|
-
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,
|
|
4639
|
+
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_9__.trim)(n.nodeValue));
|
|
4639
4640
|
});
|
|
4640
4641
|
}
|
|
4641
4642
|
},
|
|
@@ -4644,8 +4645,8 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4644
4645
|
value: /**
|
|
4645
4646
|
* Returns the nearest non-empty neighbor
|
|
4646
4647
|
*/ function findNotEmptyNeighbor(node, left, root) {
|
|
4647
|
-
return (0,
|
|
4648
|
-
return Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,
|
|
4648
|
+
return (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_15__.call)(left ? Dom.prev : Dom.next, node, function(n) {
|
|
4649
|
+
return Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_9__.trim)((n === null || n === void 0 ? void 0 : n.nodeValue) || '').length));
|
|
4649
4650
|
}, root);
|
|
4650
4651
|
}
|
|
4651
4652
|
},
|
|
@@ -4856,7 +4857,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4856
4857
|
if (!node) {
|
|
4857
4858
|
return;
|
|
4858
4859
|
}
|
|
4859
|
-
;(0,
|
|
4860
|
+
;(0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_13__.dataBind)(node, '__old_display', node.style.getPropertyValue('display'));
|
|
4860
4861
|
node.style.setProperty('display', 'none');
|
|
4861
4862
|
}
|
|
4862
4863
|
},
|
|
@@ -4868,7 +4869,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4868
4869
|
if (!node) {
|
|
4869
4870
|
return;
|
|
4870
4871
|
}
|
|
4871
|
-
var display = (0,
|
|
4872
|
+
var display = (0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_13__.dataBind)(node, '__old_display');
|
|
4872
4873
|
if (node.style.getPropertyValue('display') === 'none') {
|
|
4873
4874
|
node.style.setProperty('display', display || null);
|
|
4874
4875
|
}
|
|
@@ -4895,8 +4896,8 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4895
4896
|
value: /**
|
|
4896
4897
|
* Marks an item as temporary
|
|
4897
4898
|
*/ function markTemporary(element, attributes) {
|
|
4898
|
-
attributes && (0,
|
|
4899
|
-
(0,
|
|
4899
|
+
attributes && (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_11__.attr)(element, attributes);
|
|
4900
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_11__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
|
|
4900
4901
|
return element;
|
|
4901
4902
|
}
|
|
4902
4903
|
},
|
|
@@ -4908,7 +4909,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4908
4909
|
if (!Dom.isElement(element)) {
|
|
4909
4910
|
return false;
|
|
4910
4911
|
}
|
|
4911
|
-
return Dom.isMarker(element) || (0,
|
|
4912
|
+
return Dom.isMarker(element) || (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_11__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR) === 'true';
|
|
4912
4913
|
}
|
|
4913
4914
|
},
|
|
4914
4915
|
{
|
|
@@ -4924,7 +4925,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(_constants_js__WEB
|
|
|
4924
4925
|
value: /**
|
|
4925
4926
|
* Unwrap temporary elements inside a HTML string (keeps their content)
|
|
4926
4927
|
*/ function replaceTemporaryFromString(value) {
|
|
4927
|
-
return
|
|
4928
|
+
return (0,_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_8__.unwrapMarkedTags)(value, null, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR);
|
|
4928
4929
|
}
|
|
4929
4930
|
},
|
|
4930
4931
|
{
|
|
@@ -6908,16 +6909,96 @@ function isFastEqual(a, b) {
|
|
|
6908
6909
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
6909
6910
|
*/ /**
|
|
6910
6911
|
* @module helpers/checker
|
|
6911
|
-
*/
|
|
6912
|
+
*/ var SPACE = /\s/;
|
|
6913
|
+
var DIGIT = /\d/;
|
|
6914
|
+
var WORD_CHAR = /\w/;
|
|
6915
|
+
// `content="Microsoft Word 15"` — the name followed by a space and a version digit
|
|
6916
|
+
function hasGenerator(tag, name) {
|
|
6917
|
+
var index = tag.indexOf(name);
|
|
6918
|
+
while(index !== -1){
|
|
6919
|
+
var after = index + name.length;
|
|
6920
|
+
if (SPACE.test(tag.charAt(after)) && DIGIT.test(tag.charAt(after + 1))) {
|
|
6921
|
+
return true;
|
|
6922
|
+
}
|
|
6923
|
+
index = tag.indexOf(name, after);
|
|
6924
|
+
}
|
|
6925
|
+
return false;
|
|
6926
|
+
}
|
|
6927
|
+
// `<meta name=ProgId content=Word.Document>`, `<meta name=Generator content="LibreOffice 7.6">`
|
|
6928
|
+
function isOfficeMeta(tag) {
|
|
6929
|
+
if (hasGenerator(tag, 'Microsoft Word') || hasGenerator(tag, 'Microsoft Excel')) {
|
|
6930
|
+
return true;
|
|
6931
|
+
}
|
|
6932
|
+
var lower = tag.toLowerCase();
|
|
6933
|
+
var progId = lower.indexOf('progid');
|
|
6934
|
+
if (progId !== -1 && (lower.indexOf('word.', progId) !== -1 || lower.indexOf('excel.', progId) !== -1)) {
|
|
6935
|
+
return true;
|
|
6936
|
+
}
|
|
6937
|
+
return lower.includes('libreoffice') || lower.includes('openoffice');
|
|
6938
|
+
}
|
|
6939
|
+
// ` class=MsoNormal`, ` class="MsoListParagraph"` inside one tag
|
|
6940
|
+
function hasMsoClass(tag) {
|
|
6941
|
+
var index = tag.indexOf('class=');
|
|
6942
|
+
while(index !== -1){
|
|
6943
|
+
if (index > 0 && SPACE.test(tag.charAt(index - 1))) {
|
|
6944
|
+
var value = index + 'class='.length;
|
|
6945
|
+
var quote = tag.charAt(value);
|
|
6946
|
+
if (quote === '"' || quote === "'") {
|
|
6947
|
+
value += 1;
|
|
6948
|
+
}
|
|
6949
|
+
if (tag.startsWith('Mso', value)) {
|
|
6950
|
+
return true;
|
|
6951
|
+
}
|
|
6952
|
+
}
|
|
6953
|
+
index = tag.indexOf('class=', index + 'class='.length);
|
|
6954
|
+
}
|
|
6955
|
+
return false;
|
|
6956
|
+
}
|
|
6957
|
+
// `style='mso-list:l0 level1 lfo1'` — an `mso-` property inside a style attribute with the given quote
|
|
6958
|
+
function hasMsoStyle(data, quote) {
|
|
6959
|
+
var open = 'style=' + quote;
|
|
6960
|
+
var index = data.indexOf(open);
|
|
6961
|
+
while(index !== -1){
|
|
6962
|
+
var start = index + open.length;
|
|
6963
|
+
var end = data.indexOf(quote, start);
|
|
6964
|
+
if (end === -1) {
|
|
6965
|
+
end = data.length;
|
|
6966
|
+
}
|
|
6967
|
+
if (data.slice(start, end).includes('mso-')) {
|
|
6968
|
+
return true;
|
|
6969
|
+
}
|
|
6970
|
+
index = data.indexOf(open, end);
|
|
6971
|
+
}
|
|
6972
|
+
return false;
|
|
6973
|
+
}
|
|
6974
|
+
/**
|
|
6912
6975
|
* Detect if string is HTML from MS Word, Excel or LibreOffice/OpenOffice
|
|
6976
|
+
*
|
|
6977
|
+
* The clipboard text is attacker controlled, so every check walks the string
|
|
6978
|
+
* once with `indexOf`: a regex with an unbounded group before a required
|
|
6979
|
+
* literal was quadratic on a long run of `<meta` and froze the tab.
|
|
6913
6980
|
*/ function isHtmlFromWord(data) {
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6981
|
+
if (data.includes('urn:schemas-microsoft-com:office:word') || data.includes('urn:schemas-microsoft-com:office:excel')) {
|
|
6982
|
+
return true;
|
|
6983
|
+
}
|
|
6984
|
+
// Each tag is taken once, from its `<` to the next `>`, so the scan stays linear
|
|
6985
|
+
var index = data.indexOf('<');
|
|
6986
|
+
while(index !== -1){
|
|
6987
|
+
if (!WORD_CHAR.test(data.charAt(index + 1))) {
|
|
6988
|
+
index = data.indexOf('<', index + 1);
|
|
6989
|
+
continue;
|
|
6990
|
+
}
|
|
6991
|
+
var end = data.indexOf('>', index);
|
|
6992
|
+
if (end === -1) {
|
|
6993
|
+
end = data.length;
|
|
6994
|
+
}
|
|
6995
|
+
var tag = data.slice(index, end);
|
|
6996
|
+
if (tag.slice(0, 5).toLowerCase() === '<meta' && isOfficeMeta(tag) || hasMsoClass(tag)) {
|
|
6997
|
+
return true;
|
|
6998
|
+
}
|
|
6999
|
+
index = data.indexOf('<', end);
|
|
7000
|
+
}
|
|
7001
|
+
return hasMsoStyle(data, "'") || hasMsoStyle(data, '"') && data.includes('<font');
|
|
6921
7002
|
}
|
|
6922
7003
|
|
|
6923
7004
|
|
|
@@ -6937,10 +7018,63 @@ function isFastEqual(a, b) {
|
|
|
6937
7018
|
*/ /**
|
|
6938
7019
|
* @module helpers/checker
|
|
6939
7020
|
*/
|
|
7021
|
+
var NAME_START = /[A-Za-z]/;
|
|
7022
|
+
var NAME_CHAR = /[A-Za-z0-9]/;
|
|
7023
|
+
var WORD_CHAR = /\w/;
|
|
7024
|
+
// The tag name at `from`, or '' when there is none
|
|
7025
|
+
function readTagName(str, from) {
|
|
7026
|
+
if (!NAME_START.test(str.charAt(from))) {
|
|
7027
|
+
return '';
|
|
7028
|
+
}
|
|
7029
|
+
var end = from + 1;
|
|
7030
|
+
while(NAME_CHAR.test(str.charAt(end))){
|
|
7031
|
+
end += 1;
|
|
7032
|
+
}
|
|
7033
|
+
return str.slice(from, end);
|
|
7034
|
+
}
|
|
7035
|
+
// Is there an element `<name ...>` closed later by `</name>`? One pass for the closing tags, one for the opening ones
|
|
7036
|
+
function hasElement(str) {
|
|
7037
|
+
var lastClose = new Map();
|
|
7038
|
+
var index = str.indexOf('</');
|
|
7039
|
+
while(index !== -1){
|
|
7040
|
+
var name = readTagName(str, index + 2);
|
|
7041
|
+
if (name !== '' && str.charAt(index + 2 + name.length) === '>') {
|
|
7042
|
+
lastClose.set(name, index);
|
|
7043
|
+
}
|
|
7044
|
+
index = str.indexOf('</', index + 2);
|
|
7045
|
+
}
|
|
7046
|
+
if (lastClose.size === 0) {
|
|
7047
|
+
return false;
|
|
7048
|
+
}
|
|
7049
|
+
var gt = -1;
|
|
7050
|
+
index = str.indexOf('<');
|
|
7051
|
+
while(index !== -1){
|
|
7052
|
+
var name1 = readTagName(str, index + 1);
|
|
7053
|
+
var after = index + 1 + name1.length;
|
|
7054
|
+
if (name1 !== '' && !WORD_CHAR.test(str.charAt(after))) {
|
|
7055
|
+
if (gt < after) {
|
|
7056
|
+
gt = str.indexOf('>', after);
|
|
7057
|
+
}
|
|
7058
|
+
if (gt === -1) {
|
|
7059
|
+
return false;
|
|
7060
|
+
}
|
|
7061
|
+
var close = lastClose.get(name1);
|
|
7062
|
+
if (close !== undefined && close > gt) {
|
|
7063
|
+
return true;
|
|
7064
|
+
}
|
|
7065
|
+
}
|
|
7066
|
+
index = str.indexOf('<', index + 1);
|
|
7067
|
+
}
|
|
7068
|
+
return false;
|
|
7069
|
+
}
|
|
6940
7070
|
/**
|
|
6941
7071
|
* Check if a string is html or not
|
|
7072
|
+
*
|
|
7073
|
+
* The pasted text is attacker controlled, so the check walks the string with
|
|
7074
|
+
* `indexOf`: the former regex `<(\w+)[^>]*>(.*?)<\/\1>` was quadratic on a
|
|
7075
|
+
* long run of `<a>` and froze the tab.
|
|
6942
7076
|
*/ var isHTML = function isHTML(str) {
|
|
6943
|
-
return (0,_is_string_js__WEBPACK_IMPORTED_MODULE_0__.isString)(str) &&
|
|
7077
|
+
return (0,_is_string_js__WEBPACK_IMPORTED_MODULE_0__.isString)(str) && hasElement(str);
|
|
6944
7078
|
};
|
|
6945
7079
|
|
|
6946
7080
|
|
|
@@ -7447,11 +7581,12 @@ function _instanceof(left, right) {
|
|
|
7447
7581
|
/* harmony export */ });
|
|
7448
7582
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
7449
7583
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
7450
|
-
/* harmony import */ var
|
|
7451
|
-
/* harmony import */ var
|
|
7452
|
-
/* harmony import */ var
|
|
7453
|
-
/* harmony import */ var
|
|
7454
|
-
/* harmony import */ var
|
|
7584
|
+
/* harmony import */ var _tag_scan_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76241);
|
|
7585
|
+
/* harmony import */ var _word_lists_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(90723);
|
|
7586
|
+
/* harmony import */ var _string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
|
|
7587
|
+
/* harmony import */ var _utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
7588
|
+
/* harmony import */ var _utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
|
|
7589
|
+
/* harmony import */ var _utils_selector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76078);
|
|
7455
7590
|
/*!
|
|
7456
7591
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7457
7592
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7465,8 +7600,19 @@ function _instanceof(left, right) {
|
|
|
7465
7600
|
|
|
7466
7601
|
|
|
7467
7602
|
|
|
7603
|
+
|
|
7604
|
+
// Drop the `mso-*` and `border*` declarations and turn pt/cm into px; one declaration at a time, so a long value cannot make the regexes backtrack
|
|
7468
7605
|
function normalizeCSS(s) {
|
|
7469
|
-
|
|
7606
|
+
var declarations = s.split(';');
|
|
7607
|
+
var last = declarations.length - 1;
|
|
7608
|
+
return declarations.filter(function(declaration, index) {
|
|
7609
|
+
var match = /^\s*([a-z-]{1,64})\s*:/i.exec(declaration);
|
|
7610
|
+
if (!match) {
|
|
7611
|
+
return true;
|
|
7612
|
+
}
|
|
7613
|
+
var property = match[1].toLowerCase();
|
|
7614
|
+
return !(property.startsWith('mso-') || property.startsWith('border') && index !== last);
|
|
7615
|
+
}).join(';').replace(/([0-9.]{1,32})(pt|cm)/gi, function(match, units, metrics) {
|
|
7470
7616
|
switch(metrics.toLowerCase()){
|
|
7471
7617
|
case 'pt':
|
|
7472
7618
|
return (parseFloat(units) * 1.328).toFixed(0) + 'px';
|
|
@@ -7488,17 +7634,17 @@ function normalizeCSS(s) {
|
|
|
7488
7634
|
// cell backgrounds/borders, e.g. `.xl31 { background:#FCE4D6 }`) were never
|
|
7489
7635
|
// inlined and all styling was lost once the `<style>` block got stripped.
|
|
7490
7636
|
// See https://github.com/xdan/jodit/issues/1362
|
|
7491
|
-
var
|
|
7492
|
-
if (
|
|
7637
|
+
var open = (0,_tag_scan_js__WEBPACK_IMPORTED_MODULE_2__.indexOfOpenTag)(html, 'html');
|
|
7638
|
+
if (open === -1) {
|
|
7493
7639
|
return html;
|
|
7494
7640
|
}
|
|
7495
|
-
html = html.substring(
|
|
7641
|
+
html = html.substring(open);
|
|
7496
7642
|
var closeIndex = html.toLowerCase().lastIndexOf('</html>');
|
|
7497
7643
|
if (closeIndex !== -1) {
|
|
7498
7644
|
html = html.substring(0, closeIndex + '</html>'.length);
|
|
7499
7645
|
}
|
|
7500
7646
|
var iframe = _constants_js__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
7501
|
-
(0,
|
|
7647
|
+
(0,_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(iframe, 'display', 'none');
|
|
7502
7648
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(_constants_js__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body, iframe);
|
|
7503
7649
|
var convertedString = '', collection;
|
|
7504
7650
|
try {
|
|
@@ -7507,14 +7653,14 @@ function normalizeCSS(s) {
|
|
|
7507
7653
|
iframeDoc.open();
|
|
7508
7654
|
iframeDoc.write(html);
|
|
7509
7655
|
iframeDoc.close();
|
|
7510
|
-
var listItems = (0,
|
|
7656
|
+
var listItems = (0,_word_lists_js__WEBPACK_IMPORTED_MODULE_3__.readWordListItems)(iframeDoc.body);
|
|
7511
7657
|
// Word marks its auto-generated list markers (the literal
|
|
7512
7658
|
// bullet/number, e.g. `1.` or `·`) with `mso-list:Ignore`.
|
|
7513
7659
|
// They are display-only and must not be imported, otherwise
|
|
7514
7660
|
// the marker text leaks into the content. Drop them before any
|
|
7515
7661
|
// style normalization strips the `mso-list` hint. See #948
|
|
7516
7662
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.each(iframeDoc.body, function(node) {
|
|
7517
|
-
if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(node) && /mso-list:\s*ignore/i.test((0,
|
|
7663
|
+
if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(node) && /mso-list:\s*ignore/i.test((0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style') || '')) {
|
|
7518
7664
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(node);
|
|
7519
7665
|
}
|
|
7520
7666
|
});
|
|
@@ -7524,7 +7670,7 @@ function normalizeCSS(s) {
|
|
|
7524
7670
|
if (rules[idx].selectorText === '') {
|
|
7525
7671
|
return "continue";
|
|
7526
7672
|
}
|
|
7527
|
-
collection = (0,
|
|
7673
|
+
collection = (0,_utils_selector_js__WEBPACK_IMPORTED_MODULE_7__.$$)(rules[idx].selectorText, iframeDoc.body);
|
|
7528
7674
|
// `style.cssText` on purpose: the CSSOM parses the text,
|
|
7529
7675
|
// drops invalid declarations and re-serializes it. The raw
|
|
7530
7676
|
// `style` attribute would keep Word-only junk verbatim
|
|
@@ -7541,19 +7687,19 @@ function normalizeCSS(s) {
|
|
|
7541
7687
|
throw e;
|
|
7542
7688
|
}
|
|
7543
7689
|
}
|
|
7544
|
-
;(0,
|
|
7690
|
+
;(0,_word_lists_js__WEBPACK_IMPORTED_MODULE_3__.wrapWordListItems)(listItems);
|
|
7545
7691
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.each(iframeDoc.body, function(node) {
|
|
7546
7692
|
if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(node)) {
|
|
7547
|
-
var cssText = (0,
|
|
7693
|
+
var cssText = (0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style');
|
|
7548
7694
|
if (cssText) {
|
|
7549
7695
|
node.style.cssText = normalizeCSS(cssText);
|
|
7550
7696
|
}
|
|
7551
|
-
if (!(0,
|
|
7552
|
-
(0,
|
|
7697
|
+
if (!(0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style')) {
|
|
7698
|
+
(0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(node, 'style', null);
|
|
7553
7699
|
}
|
|
7554
7700
|
}
|
|
7555
7701
|
});
|
|
7556
|
-
convertedString = iframeDoc.firstChild ? (0,
|
|
7702
|
+
convertedString = iframeDoc.firstChild ? (0,_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim)(iframeDoc.body.innerHTML) : '';
|
|
7557
7703
|
}
|
|
7558
7704
|
} catch (_a) {} finally{
|
|
7559
7705
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(iframe);
|
|
@@ -7561,7 +7707,7 @@ function normalizeCSS(s) {
|
|
|
7561
7707
|
if (convertedString) {
|
|
7562
7708
|
html = convertedString;
|
|
7563
7709
|
}
|
|
7564
|
-
return (0,
|
|
7710
|
+
return (0,_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim)((0,_tag_scan_js__WEBPACK_IMPORTED_MODULE_2__.removeWordWrappers)(html));
|
|
7565
7711
|
}
|
|
7566
7712
|
|
|
7567
7713
|
|
|
@@ -7576,9 +7722,10 @@ function normalizeCSS(s) {
|
|
|
7576
7722
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
7577
7723
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
7578
7724
|
/* harmony import */ var _array_to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
7579
|
-
/* harmony import */ var
|
|
7580
|
-
/* harmony import */ var
|
|
7581
|
-
/* harmony import */ var
|
|
7725
|
+
/* harmony import */ var _tag_scan_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76241);
|
|
7726
|
+
/* harmony import */ var _word_lists_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(90723);
|
|
7727
|
+
/* harmony import */ var _string_trim_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49055);
|
|
7728
|
+
/* harmony import */ var _utils_attr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29960);
|
|
7582
7729
|
/*!
|
|
7583
7730
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7584
7731
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7591,6 +7738,7 @@ function normalizeCSS(s) {
|
|
|
7591
7738
|
|
|
7592
7739
|
|
|
7593
7740
|
|
|
7741
|
+
|
|
7594
7742
|
/**
|
|
7595
7743
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
7596
7744
|
* content that matches the look and feel of the site.
|
|
@@ -7604,7 +7752,7 @@ function normalizeCSS(s) {
|
|
|
7604
7752
|
var div = _constants_js__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
7605
7753
|
div.innerHTML = html;
|
|
7606
7754
|
var marks = [];
|
|
7607
|
-
var listItems = (0,
|
|
7755
|
+
var listItems = (0,_word_lists_js__WEBPACK_IMPORTED_MODULE_4__.readWordListItems)(div);
|
|
7608
7756
|
if (div.firstChild) {
|
|
7609
7757
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.each(div, function(node) {
|
|
7610
7758
|
if (!node) {
|
|
@@ -7629,7 +7777,7 @@ function normalizeCSS(s) {
|
|
|
7629
7777
|
// with `mso-list:Ignore`. They are display-only
|
|
7630
7778
|
// and must not be imported, otherwise the marker
|
|
7631
7779
|
// text leaks into the content. See #948
|
|
7632
|
-
if (/mso-list:\s*ignore/i.test((0,
|
|
7780
|
+
if (/mso-list:\s*ignore/i.test((0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__.attr)(node, 'style') || '')) {
|
|
7633
7781
|
marks.push(node);
|
|
7634
7782
|
break;
|
|
7635
7783
|
}
|
|
@@ -7643,7 +7791,7 @@ function normalizeCSS(s) {
|
|
|
7643
7791
|
// `attrRaw`: SVG keeps camelCase names
|
|
7644
7792
|
// (`viewBox`), `attr()` would kebab-case
|
|
7645
7793
|
// them and silently skip the removal
|
|
7646
|
-
(0,
|
|
7794
|
+
(0,_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__.attrRaw)(node, attribute.name, null);
|
|
7647
7795
|
}
|
|
7648
7796
|
});
|
|
7649
7797
|
}
|
|
@@ -7656,14 +7804,14 @@ function normalizeCSS(s) {
|
|
|
7656
7804
|
});
|
|
7657
7805
|
}
|
|
7658
7806
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove.apply(null, marks);
|
|
7659
|
-
(0,
|
|
7807
|
+
(0,_word_lists_js__WEBPACK_IMPORTED_MODULE_4__.wrapWordListItems)(listItems);
|
|
7660
7808
|
convertedString = div.innerHTML;
|
|
7661
7809
|
} catch (e) {}
|
|
7662
7810
|
if (convertedString) {
|
|
7663
7811
|
html = convertedString;
|
|
7664
7812
|
}
|
|
7665
|
-
html = html.split(/(\n)/).filter(
|
|
7666
|
-
return
|
|
7813
|
+
html = html.split(/(\n)/).filter(_string_trim_js__WEBPACK_IMPORTED_MODULE_5__.trim).join('\n');
|
|
7814
|
+
return (0,_tag_scan_js__WEBPACK_IMPORTED_MODULE_3__.removeWordWrappers)(html);
|
|
7667
7815
|
}
|
|
7668
7816
|
|
|
7669
7817
|
|
|
@@ -7701,10 +7849,17 @@ function normalizeCSS(s) {
|
|
|
7701
7849
|
/* harmony export */ applyStyles: function() { return /* reexport safe */ _apply_styles_js__WEBPACK_IMPORTED_MODULE_0__.applyStyles; },
|
|
7702
7850
|
/* harmony export */ cleanFromWord: function() { return /* reexport safe */ _clean_from_word_js__WEBPACK_IMPORTED_MODULE_1__.cleanFromWord; },
|
|
7703
7851
|
/* harmony export */ htmlspecialchars: function() { return /* reexport safe */ _htmlspecialchars_js__WEBPACK_IMPORTED_MODULE_2__.htmlspecialchars; },
|
|
7852
|
+
/* harmony export */ indexOfClosingTag: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.indexOfClosingTag; },
|
|
7853
|
+
/* harmony export */ indexOfOpenTag: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.indexOfOpenTag; },
|
|
7704
7854
|
/* harmony export */ nl2br: function() { return /* reexport safe */ _nl2br_js__WEBPACK_IMPORTED_MODULE_3__.nl2br; },
|
|
7855
|
+
/* harmony export */ removeBetween: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.removeBetween; },
|
|
7856
|
+
/* harmony export */ removeEmptyMarkedTags: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.removeEmptyMarkedTags; },
|
|
7857
|
+
/* harmony export */ removeTagsByPrefix: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.removeTagsByPrefix; },
|
|
7858
|
+
/* harmony export */ removeWordWrappers: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.removeWordWrappers; },
|
|
7705
7859
|
/* harmony export */ safeHTML: function() { return /* reexport safe */ _safe_html_js__WEBPACK_IMPORTED_MODULE_4__.safeHTML; },
|
|
7706
7860
|
/* harmony export */ sanitizeHTMLElement: function() { return /* reexport safe */ _safe_html_js__WEBPACK_IMPORTED_MODULE_4__.sanitizeHTMLElement; },
|
|
7707
|
-
/* harmony export */ stripTags: function() { return /* reexport safe */ _strip_tags_js__WEBPACK_IMPORTED_MODULE_5__.stripTags; }
|
|
7861
|
+
/* harmony export */ stripTags: function() { return /* reexport safe */ _strip_tags_js__WEBPACK_IMPORTED_MODULE_5__.stripTags; },
|
|
7862
|
+
/* harmony export */ unwrapMarkedTags: function() { return /* reexport safe */ _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__.unwrapMarkedTags; }
|
|
7708
7863
|
/* harmony export */ });
|
|
7709
7864
|
/* harmony import */ var _apply_styles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32574);
|
|
7710
7865
|
/* harmony import */ var _clean_from_word_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53212);
|
|
@@ -7712,6 +7867,7 @@ function normalizeCSS(s) {
|
|
|
7712
7867
|
/* harmony import */ var _nl2br_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45971);
|
|
7713
7868
|
/* harmony import */ var _safe_html_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86518);
|
|
7714
7869
|
/* harmony import */ var _strip_tags_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91003);
|
|
7870
|
+
/* harmony import */ var _tag_scan_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(76241);
|
|
7715
7871
|
/*!
|
|
7716
7872
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7717
7873
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7726,6 +7882,7 @@ function normalizeCSS(s) {
|
|
|
7726
7882
|
|
|
7727
7883
|
|
|
7728
7884
|
|
|
7885
|
+
|
|
7729
7886
|
/***/ }),
|
|
7730
7887
|
|
|
7731
7888
|
/***/ 45971:
|
|
@@ -8153,6 +8310,347 @@ function restoreTags(content) {
|
|
|
8153
8310
|
}
|
|
8154
8311
|
|
|
8155
8312
|
|
|
8313
|
+
/***/ }),
|
|
8314
|
+
|
|
8315
|
+
/***/ 76241:
|
|
8316
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8317
|
+
|
|
8318
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8319
|
+
/* harmony export */ indexOfClosingTag: function() { return /* binding */ indexOfClosingTag; },
|
|
8320
|
+
/* harmony export */ indexOfOpenTag: function() { return /* binding */ indexOfOpenTag; },
|
|
8321
|
+
/* harmony export */ removeBetween: function() { return /* binding */ removeBetween; },
|
|
8322
|
+
/* harmony export */ removeEmptyMarkedTags: function() { return /* binding */ removeEmptyMarkedTags; },
|
|
8323
|
+
/* harmony export */ removeTagsByPrefix: function() { return /* binding */ removeTagsByPrefix; },
|
|
8324
|
+
/* harmony export */ removeWordWrappers: function() { return /* binding */ removeWordWrappers; },
|
|
8325
|
+
/* harmony export */ unwrapMarkedTags: function() { return /* binding */ unwrapMarkedTags; }
|
|
8326
|
+
/* harmony export */ });
|
|
8327
|
+
function _array_like_to_array(arr, len) {
|
|
8328
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
8329
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8330
|
+
return arr2;
|
|
8331
|
+
}
|
|
8332
|
+
function _array_with_holes(arr) {
|
|
8333
|
+
if (Array.isArray(arr)) return arr;
|
|
8334
|
+
}
|
|
8335
|
+
function _iterable_to_array_limit(arr, i) {
|
|
8336
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8337
|
+
if (_i == null) return;
|
|
8338
|
+
var _arr = [];
|
|
8339
|
+
var _n = true;
|
|
8340
|
+
var _d = false;
|
|
8341
|
+
var _s, _e;
|
|
8342
|
+
try {
|
|
8343
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
8344
|
+
_arr.push(_s.value);
|
|
8345
|
+
if (i && _arr.length === i) break;
|
|
8346
|
+
}
|
|
8347
|
+
} catch (err) {
|
|
8348
|
+
_d = true;
|
|
8349
|
+
_e = err;
|
|
8350
|
+
} finally{
|
|
8351
|
+
try {
|
|
8352
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
8353
|
+
} finally{
|
|
8354
|
+
if (_d) throw _e;
|
|
8355
|
+
}
|
|
8356
|
+
}
|
|
8357
|
+
return _arr;
|
|
8358
|
+
}
|
|
8359
|
+
function _non_iterable_rest() {
|
|
8360
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8361
|
+
}
|
|
8362
|
+
function _sliced_to_array(arr, i) {
|
|
8363
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
8364
|
+
}
|
|
8365
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
8366
|
+
if (!o) return;
|
|
8367
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
8368
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8369
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8370
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8371
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
8372
|
+
}
|
|
8373
|
+
/*!
|
|
8374
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8375
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8376
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
8377
|
+
*/ /**
|
|
8378
|
+
* @module helpers/html
|
|
8379
|
+
*/ // Single passes over HTML that comes from the clipboard or the editor value.
|
|
8380
|
+
// A regex with `[^>]*` or `.*?` before a required literal backtracks
|
|
8381
|
+
// quadratically on a long run of tag openers, so these walk with `indexOf`.
|
|
8382
|
+
var TAG_NAME = /[a-z0-9:-]/i;
|
|
8383
|
+
// The tags the Word clean-up strips: `<html>`, `<colgroup>`, `<col>`, `<o:p>` and their closers
|
|
8384
|
+
var WORD_WRAPPER_TAGS = [
|
|
8385
|
+
'<html',
|
|
8386
|
+
'</html',
|
|
8387
|
+
'<col',
|
|
8388
|
+
'</col',
|
|
8389
|
+
'<o:p',
|
|
8390
|
+
'</o:p'
|
|
8391
|
+
];
|
|
8392
|
+
function startsWithIgnoreCase(html, index, prefix) {
|
|
8393
|
+
return html.substr(index, prefix.length).toLowerCase() === prefix;
|
|
8394
|
+
}
|
|
8395
|
+
// The first `<` at or after `from` that opens one of the prefixes (`<meta`, `</html`, `<!--`)
|
|
8396
|
+
function indexOfPrefix(html, prefixes, from) {
|
|
8397
|
+
var index = html.indexOf('<', from);
|
|
8398
|
+
while(index !== -1){
|
|
8399
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
8400
|
+
try {
|
|
8401
|
+
for(var _iterator = prefixes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
8402
|
+
var prefix = _step.value;
|
|
8403
|
+
if (startsWithIgnoreCase(html, index, prefix)) {
|
|
8404
|
+
return [
|
|
8405
|
+
index,
|
|
8406
|
+
prefix
|
|
8407
|
+
];
|
|
8408
|
+
}
|
|
8409
|
+
}
|
|
8410
|
+
} catch (err) {
|
|
8411
|
+
_didIteratorError = true;
|
|
8412
|
+
_iteratorError = err;
|
|
8413
|
+
} finally{
|
|
8414
|
+
try {
|
|
8415
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
8416
|
+
_iterator.return();
|
|
8417
|
+
}
|
|
8418
|
+
} finally{
|
|
8419
|
+
if (_didIteratorError) {
|
|
8420
|
+
throw _iteratorError;
|
|
8421
|
+
}
|
|
8422
|
+
}
|
|
8423
|
+
}
|
|
8424
|
+
index = html.indexOf('<', index + 1);
|
|
8425
|
+
}
|
|
8426
|
+
return [
|
|
8427
|
+
-1,
|
|
8428
|
+
''
|
|
8429
|
+
];
|
|
8430
|
+
}
|
|
8431
|
+
/**
|
|
8432
|
+
* The first `</name>` at or after `from`, case-insensitive, or -1
|
|
8433
|
+
*/ function indexOfClosingTag(html, name, from) {
|
|
8434
|
+
var closing = '</' + name + '>';
|
|
8435
|
+
var index = html.indexOf('</', from);
|
|
8436
|
+
while(index !== -1){
|
|
8437
|
+
if (startsWithIgnoreCase(html, index, closing)) {
|
|
8438
|
+
return index;
|
|
8439
|
+
}
|
|
8440
|
+
index = html.indexOf('</', index + 2);
|
|
8441
|
+
}
|
|
8442
|
+
return -1;
|
|
8443
|
+
}
|
|
8444
|
+
/**
|
|
8445
|
+
* Remove every tag that starts with one of the prefixes, up to its `>`:
|
|
8446
|
+
* `removeTagsByPrefix(html, ['<meta', '<!--'])`
|
|
8447
|
+
*/ function removeTagsByPrefix(html, prefixes) {
|
|
8448
|
+
var lower = prefixes.map(function(prefix) {
|
|
8449
|
+
return prefix.toLowerCase();
|
|
8450
|
+
});
|
|
8451
|
+
var result = '';
|
|
8452
|
+
var cursor = 0;
|
|
8453
|
+
for(;;){
|
|
8454
|
+
var _indexOfPrefix = _sliced_to_array(indexOfPrefix(html, lower, cursor), 1), start = _indexOfPrefix[0];
|
|
8455
|
+
if (start === -1) {
|
|
8456
|
+
break;
|
|
8457
|
+
}
|
|
8458
|
+
var end = html.indexOf('>', start);
|
|
8459
|
+
if (end === -1) {
|
|
8460
|
+
break;
|
|
8461
|
+
}
|
|
8462
|
+
result += html.slice(cursor, start);
|
|
8463
|
+
cursor = end + 1;
|
|
8464
|
+
}
|
|
8465
|
+
return cursor === 0 ? html : result + html.slice(cursor);
|
|
8466
|
+
}
|
|
8467
|
+
/**
|
|
8468
|
+
* Strip the Word wrapper tags and then the comments, as the clean-up always did
|
|
8469
|
+
*/ function removeWordWrappers(html) {
|
|
8470
|
+
return removeTagsByPrefix(removeTagsByPrefix(html, WORD_WRAPPER_TAGS), [
|
|
8471
|
+
'<!--'
|
|
8472
|
+
]);
|
|
8473
|
+
}
|
|
8474
|
+
// Every `</name>` position by name, so the closer of an element is found by a binary search
|
|
8475
|
+
function closingTagPositions(html) {
|
|
8476
|
+
var positions = new Map();
|
|
8477
|
+
var index = html.indexOf('</');
|
|
8478
|
+
while(index !== -1){
|
|
8479
|
+
var name = readTagName(html, index + 2).toLowerCase();
|
|
8480
|
+
if (name !== '' && html.charAt(index + 2 + name.length) === '>') {
|
|
8481
|
+
var list = positions.get(name);
|
|
8482
|
+
if (list) {
|
|
8483
|
+
list.push(index);
|
|
8484
|
+
} else {
|
|
8485
|
+
positions.set(name, [
|
|
8486
|
+
index
|
|
8487
|
+
]);
|
|
8488
|
+
}
|
|
8489
|
+
}
|
|
8490
|
+
index = html.indexOf('</', index + 2);
|
|
8491
|
+
}
|
|
8492
|
+
return positions;
|
|
8493
|
+
}
|
|
8494
|
+
// The first position in the sorted list that is >= from, or -1
|
|
8495
|
+
function firstAfter(list, from) {
|
|
8496
|
+
if (!list) {
|
|
8497
|
+
return -1;
|
|
8498
|
+
}
|
|
8499
|
+
var low = 0;
|
|
8500
|
+
var high = list.length;
|
|
8501
|
+
while(low < high){
|
|
8502
|
+
var middle = low + high >> 1;
|
|
8503
|
+
if (list[middle] < from) {
|
|
8504
|
+
low = middle + 1;
|
|
8505
|
+
} else {
|
|
8506
|
+
high = middle;
|
|
8507
|
+
}
|
|
8508
|
+
}
|
|
8509
|
+
return low < list.length ? list[low] : -1;
|
|
8510
|
+
}
|
|
8511
|
+
/**
|
|
8512
|
+
* The index of the first `<name>` or `<name …>` tag, or -1
|
|
8513
|
+
*/ function indexOfOpenTag(html, name) {
|
|
8514
|
+
var prefix = '<' + name.toLowerCase();
|
|
8515
|
+
var cursor = 0;
|
|
8516
|
+
for(;;){
|
|
8517
|
+
var _indexOfPrefix = _sliced_to_array(indexOfPrefix(html, [
|
|
8518
|
+
prefix
|
|
8519
|
+
], cursor), 1), start = _indexOfPrefix[0];
|
|
8520
|
+
if (start === -1) {
|
|
8521
|
+
return -1;
|
|
8522
|
+
}
|
|
8523
|
+
var next = html.charAt(start + prefix.length);
|
|
8524
|
+
if (next === '>') {
|
|
8525
|
+
return start;
|
|
8526
|
+
}
|
|
8527
|
+
if (/\s/.test(next)) {
|
|
8528
|
+
if (html.indexOf('>', start) === -1) {
|
|
8529
|
+
return -1;
|
|
8530
|
+
}
|
|
8531
|
+
return start;
|
|
8532
|
+
}
|
|
8533
|
+
cursor = start + 1;
|
|
8534
|
+
}
|
|
8535
|
+
}
|
|
8536
|
+
function readTagName(html, from) {
|
|
8537
|
+
var end = from;
|
|
8538
|
+
while(TAG_NAME.test(html.charAt(end))){
|
|
8539
|
+
end += 1;
|
|
8540
|
+
}
|
|
8541
|
+
return html.slice(from, end);
|
|
8542
|
+
}
|
|
8543
|
+
/**
|
|
8544
|
+
* Replace every `<name … marker …>inner</name>` with `inner`.
|
|
8545
|
+
* `name` null takes any tag; `keep` can refuse an element by its inner HTML.
|
|
8546
|
+
*/ function unwrapMarkedTags(html, name, marker, keep) {
|
|
8547
|
+
var lowerMarker = marker.toLowerCase();
|
|
8548
|
+
var prefixes = [
|
|
8549
|
+
name == null ? '<' : '<' + name.toLowerCase()
|
|
8550
|
+
];
|
|
8551
|
+
var closings = closingTagPositions(html);
|
|
8552
|
+
var result = '';
|
|
8553
|
+
var cursor = 0;
|
|
8554
|
+
for(;;){
|
|
8555
|
+
var _indexOfPrefix = _sliced_to_array(indexOfPrefix(html, prefixes, cursor), 1), start = _indexOfPrefix[0];
|
|
8556
|
+
if (start === -1) {
|
|
8557
|
+
break;
|
|
8558
|
+
}
|
|
8559
|
+
var tagName = (name !== null && name !== void 0 ? name : readTagName(html, start + 1)).toLowerCase();
|
|
8560
|
+
var gt = html.indexOf('>', start);
|
|
8561
|
+
if (gt === -1) {
|
|
8562
|
+
break;
|
|
8563
|
+
}
|
|
8564
|
+
var close = tagName !== '' && html.slice(start, gt).toLowerCase().includes(lowerMarker) ? firstAfter(closings.get(tagName), gt + 1) : -1;
|
|
8565
|
+
// Not a marked element: the `<` is text, the next one may still open an element
|
|
8566
|
+
if (close === -1) {
|
|
8567
|
+
result += html.slice(cursor, start + 1);
|
|
8568
|
+
cursor = start + 1;
|
|
8569
|
+
continue;
|
|
8570
|
+
}
|
|
8571
|
+
var inner = html.slice(gt + 1, close);
|
|
8572
|
+
var after = close + tagName.length + 3;
|
|
8573
|
+
result += html.slice(cursor, start);
|
|
8574
|
+
result += inner !== '' && (!keep || keep(inner)) ? inner : html.slice(start, after);
|
|
8575
|
+
cursor = after;
|
|
8576
|
+
}
|
|
8577
|
+
return cursor === 0 ? html : result + html.slice(cursor);
|
|
8578
|
+
}
|
|
8579
|
+
// The first `literal` at or after `from`, case-insensitive, or -1
|
|
8580
|
+
function indexOfLiteral(html, literal, from) {
|
|
8581
|
+
var head = literal.charAt(0);
|
|
8582
|
+
var index = html.indexOf(head, from);
|
|
8583
|
+
while(index !== -1){
|
|
8584
|
+
if (startsWithIgnoreCase(html, index, literal)) {
|
|
8585
|
+
return index;
|
|
8586
|
+
}
|
|
8587
|
+
index = html.indexOf(head, index + 1);
|
|
8588
|
+
}
|
|
8589
|
+
return -1;
|
|
8590
|
+
}
|
|
8591
|
+
/**
|
|
8592
|
+
* Remove every `open … openEnd … close` block whose opener holds `marker` (any opener when it is ''):
|
|
8593
|
+
* `removeBetween(html, '<style', '>', '</style>', 'jodit-box')`
|
|
8594
|
+
*/ function removeBetween(html, open, openEnd, close) {
|
|
8595
|
+
var marker = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : '';
|
|
8596
|
+
var lowerOpen = open.toLowerCase();
|
|
8597
|
+
var lowerMarker = marker.toLowerCase();
|
|
8598
|
+
var result = '';
|
|
8599
|
+
var cursor = 0;
|
|
8600
|
+
for(;;){
|
|
8601
|
+
var start = indexOfLiteral(html, lowerOpen, cursor);
|
|
8602
|
+
if (start === -1) {
|
|
8603
|
+
break;
|
|
8604
|
+
}
|
|
8605
|
+
var end = indexOfLiteral(html, openEnd, start + open.length);
|
|
8606
|
+
if (end === -1) {
|
|
8607
|
+
break;
|
|
8608
|
+
}
|
|
8609
|
+
if (lowerMarker !== '' && !html.slice(start, end).toLowerCase().includes(lowerMarker)) {
|
|
8610
|
+
result += html.slice(cursor, end + openEnd.length);
|
|
8611
|
+
cursor = end + openEnd.length;
|
|
8612
|
+
continue;
|
|
8613
|
+
}
|
|
8614
|
+
var closeIndex = indexOfLiteral(html, close, end + openEnd.length);
|
|
8615
|
+
if (closeIndex === -1) {
|
|
8616
|
+
break;
|
|
8617
|
+
}
|
|
8618
|
+
result += html.slice(cursor, start);
|
|
8619
|
+
cursor = closeIndex + close.length;
|
|
8620
|
+
}
|
|
8621
|
+
return cursor === 0 ? html : result + html.slice(cursor);
|
|
8622
|
+
}
|
|
8623
|
+
/**
|
|
8624
|
+
* Remove every empty `<name … marker …></name>` element
|
|
8625
|
+
*/ function removeEmptyMarkedTags(html, name, marker) {
|
|
8626
|
+
var lowerName = name.toLowerCase();
|
|
8627
|
+
var lowerMarker = marker.toLowerCase();
|
|
8628
|
+
var closing = '</' + lowerName + '>';
|
|
8629
|
+
var result = '';
|
|
8630
|
+
var cursor = 0;
|
|
8631
|
+
for(;;){
|
|
8632
|
+
var _indexOfPrefix = _sliced_to_array(indexOfPrefix(html, [
|
|
8633
|
+
'<' + lowerName
|
|
8634
|
+
], cursor), 1), start = _indexOfPrefix[0];
|
|
8635
|
+
if (start === -1) {
|
|
8636
|
+
break;
|
|
8637
|
+
}
|
|
8638
|
+
var gt = html.indexOf('>', start);
|
|
8639
|
+
if (gt === -1) {
|
|
8640
|
+
break;
|
|
8641
|
+
}
|
|
8642
|
+
if (html.slice(start, gt).toLowerCase().includes(lowerMarker) && startsWithIgnoreCase(html, gt + 1, closing)) {
|
|
8643
|
+
result += html.slice(cursor, start);
|
|
8644
|
+
cursor = gt + 1 + closing.length;
|
|
8645
|
+
continue;
|
|
8646
|
+
}
|
|
8647
|
+
result += html.slice(cursor, gt + 1);
|
|
8648
|
+
cursor = gt + 1;
|
|
8649
|
+
}
|
|
8650
|
+
return cursor === 0 ? html : result + html.slice(cursor);
|
|
8651
|
+
}
|
|
8652
|
+
|
|
8653
|
+
|
|
8156
8654
|
/***/ }),
|
|
8157
8655
|
|
|
8158
8656
|
/***/ 90723:
|
|
@@ -8436,6 +8934,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8436
8934
|
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.humanSizeToBytes; },
|
|
8437
8935
|
/* harmony export */ i18n: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.i18n; },
|
|
8438
8936
|
/* harmony export */ inView: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.inView; },
|
|
8937
|
+
/* harmony export */ indexOfClosingTag: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.indexOfClosingTag; },
|
|
8938
|
+
/* harmony export */ indexOfOpenTag: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.indexOfOpenTag; },
|
|
8439
8939
|
/* harmony export */ innerWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.innerWidth; },
|
|
8440
8940
|
/* harmony export */ isAbortError: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isAbortError; },
|
|
8441
8941
|
/* harmony export */ isArray: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray; },
|
|
@@ -8494,6 +8994,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8494
8994
|
/* harmony export */ prepareMedia: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.prepareMedia; },
|
|
8495
8995
|
/* harmony export */ previewBox: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.previewBox; },
|
|
8496
8996
|
/* harmony export */ refs: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.refs; },
|
|
8997
|
+
/* harmony export */ removeBetween: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween; },
|
|
8998
|
+
/* harmony export */ removeEmptyMarkedTags: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.removeEmptyMarkedTags; },
|
|
8999
|
+
/* harmony export */ removeTagsByPrefix: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.removeTagsByPrefix; },
|
|
9000
|
+
/* harmony export */ removeWordWrappers: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.removeWordWrappers; },
|
|
8497
9001
|
/* harmony export */ reset: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.reset; },
|
|
8498
9002
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.resolveElement; },
|
|
8499
9003
|
/* harmony export */ safeHTML: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.safeHTML; },
|
|
@@ -8510,7 +9014,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8510
9014
|
/* harmony export */ trim: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.trim; },
|
|
8511
9015
|
/* harmony export */ trimChars: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.trimChars; },
|
|
8512
9016
|
/* harmony export */ trimInv: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.trimInv; },
|
|
9017
|
+
/* harmony export */ trimInvEnd: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.trimInvEnd; },
|
|
8513
9018
|
/* harmony export */ ucfirst: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.ucfirst; },
|
|
9019
|
+
/* harmony export */ unwrapMarkedTags: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.unwrapMarkedTags; },
|
|
8514
9020
|
/* harmony export */ wrapMedia: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.wrapMedia; }
|
|
8515
9021
|
/* harmony export */ });
|
|
8516
9022
|
/* harmony import */ var _array_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76855);
|
|
@@ -9390,6 +9896,7 @@ function size(subject) {
|
|
|
9390
9896
|
/* harmony export */ trim: function() { return /* reexport safe */ _trim_js__WEBPACK_IMPORTED_MODULE_5__.trim; },
|
|
9391
9897
|
/* harmony export */ trimChars: function() { return /* reexport safe */ _trim_js__WEBPACK_IMPORTED_MODULE_5__.trimChars; },
|
|
9392
9898
|
/* harmony export */ trimInv: function() { return /* reexport safe */ _trim_js__WEBPACK_IMPORTED_MODULE_5__.trimInv; },
|
|
9899
|
+
/* harmony export */ trimInvEnd: function() { return /* reexport safe */ _trim_js__WEBPACK_IMPORTED_MODULE_5__.trimInvEnd; },
|
|
9393
9900
|
/* harmony export */ ucfirst: function() { return /* reexport safe */ _ucfirst_js__WEBPACK_IMPORTED_MODULE_6__.ucfirst; }
|
|
9394
9901
|
/* harmony export */ });
|
|
9395
9902
|
/* harmony import */ var _camel_case_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87058);
|
|
@@ -9486,29 +9993,51 @@ function _type_of(obj) {
|
|
|
9486
9993
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9487
9994
|
/* harmony export */ trim: function() { return /* binding */ trim; },
|
|
9488
9995
|
/* harmony export */ trimChars: function() { return /* binding */ trimChars; },
|
|
9489
|
-
/* harmony export */ trimInv: function() { return /* binding */ trimInv; }
|
|
9996
|
+
/* harmony export */ trimInv: function() { return /* binding */ trimInv; },
|
|
9997
|
+
/* harmony export */ trimInvEnd: function() { return /* binding */ trimInvEnd; }
|
|
9490
9998
|
/* harmony export */ });
|
|
9491
|
-
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
9492
9999
|
/*!
|
|
9493
10000
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9494
10001
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
9495
10002
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
9496
10003
|
*/ /**
|
|
9497
10004
|
* @module helpers/string
|
|
9498
|
-
*/
|
|
10005
|
+
*/ var SPACE = /[\s\u200b]/;
|
|
10006
|
+
var INVISIBLE = /\uFEFF/;
|
|
10007
|
+
// Cut the chars matching `char` from both ends; `[…]+$` backtracks on a long run that is not at the end
|
|
10008
|
+
function trimBy(value, char) {
|
|
10009
|
+
var start = 0;
|
|
10010
|
+
var end = value.length;
|
|
10011
|
+
while(start < end && char.test(value.charAt(start))){
|
|
10012
|
+
start += 1;
|
|
10013
|
+
}
|
|
10014
|
+
while(end > start && char.test(value.charAt(end - 1))){
|
|
10015
|
+
end -= 1;
|
|
10016
|
+
}
|
|
10017
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
10018
|
+
}
|
|
9499
10019
|
/**
|
|
9500
10020
|
* It clears the line of all auxiliary invisible characters , from the spaces and line breaks , tabs
|
|
9501
10021
|
* from the beginning and end of the line
|
|
9502
10022
|
*/ function trim(value) {
|
|
9503
|
-
return value
|
|
10023
|
+
return trimBy(value, SPACE);
|
|
9504
10024
|
}
|
|
9505
10025
|
function trimChars(value, chars) {
|
|
9506
|
-
return value
|
|
10026
|
+
return trimBy(value, RegExp("[".concat(chars, "]")));
|
|
9507
10027
|
}
|
|
9508
10028
|
/**
|
|
9509
10029
|
* Trim only invisible chars
|
|
9510
10030
|
*/ function trimInv(value) {
|
|
9511
|
-
return value
|
|
10031
|
+
return trimBy(value, INVISIBLE);
|
|
10032
|
+
}
|
|
10033
|
+
/**
|
|
10034
|
+
* Without the invisible chars at the end
|
|
10035
|
+
*/ function trimInvEnd(value) {
|
|
10036
|
+
var end = value.length;
|
|
10037
|
+
while(end > 0 && INVISIBLE.test(value.charAt(end - 1))){
|
|
10038
|
+
end -= 1;
|
|
10039
|
+
}
|
|
10040
|
+
return end === value.length ? value : value.slice(0, end);
|
|
9512
10041
|
}
|
|
9513
10042
|
|
|
9514
10043
|
|
|
@@ -14402,18 +14931,19 @@ function usable(ranges, shadowRoot) {
|
|
|
14402
14931
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14403
14932
|
|
|
14404
14933
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14405
|
-
/* harmony export */ composedRanges: function() { return /* reexport safe */
|
|
14934
|
+
/* harmony export */ composedRanges: function() { return /* reexport safe */ _composed_ranges_js__WEBPACK_IMPORTED_MODULE_3__.composedRanges; },
|
|
14406
14935
|
/* harmony export */ cursorInTheEdgeOfString: function() { return /* binding */ cursorInTheEdgeOfString; },
|
|
14407
14936
|
/* harmony export */ findCorrectCurrentNode: function() { return /* binding */ findCorrectCurrentNode; },
|
|
14408
|
-
/* harmony export */ isMoved: function() { return /* reexport safe */
|
|
14409
|
-
/* harmony export */ moveNodeInsideStart: function() { return /* reexport safe */
|
|
14937
|
+
/* harmony export */ isMoved: function() { return /* reexport safe */ _is_moved_js__WEBPACK_IMPORTED_MODULE_4__.isMoved; },
|
|
14938
|
+
/* harmony export */ moveNodeInsideStart: function() { return /* reexport safe */ _move_node_inside_start_js__WEBPACK_IMPORTED_MODULE_5__.moveNodeInsideStart; }
|
|
14410
14939
|
/* harmony export */ });
|
|
14411
14940
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
14412
14941
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
14413
|
-
/* harmony import */ var
|
|
14414
|
-
/* harmony import */ var
|
|
14415
|
-
/* harmony import */ var
|
|
14416
|
-
/* harmony import */ var
|
|
14942
|
+
/* harmony import */ var _helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49055);
|
|
14943
|
+
/* harmony import */ var _composed_ranges_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79505);
|
|
14944
|
+
/* harmony import */ var _is_moved_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12604);
|
|
14945
|
+
/* harmony import */ var _move_node_inside_start_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26716);
|
|
14946
|
+
/* harmony import */ var _move_the_node_along_the_edge_outward_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(43463);
|
|
14417
14947
|
/*!
|
|
14418
14948
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
14419
14949
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -14426,6 +14956,7 @@ function usable(ranges, shadowRoot) {
|
|
|
14426
14956
|
|
|
14427
14957
|
|
|
14428
14958
|
|
|
14959
|
+
|
|
14429
14960
|
/**
|
|
14430
14961
|
* Despite the name, returns `true` when the cursor is NOT at the checked edge
|
|
14431
14962
|
* of the text node: there is significant (non invisible-space) text between
|
|
@@ -14434,7 +14965,7 @@ function usable(ranges, shadowRoot) {
|
|
|
14434
14965
|
*/ function cursorInTheEdgeOfString(container, offset, start, end) {
|
|
14435
14966
|
var _a;
|
|
14436
14967
|
var text = ((_a = container.nodeValue) === null || _a === void 0 ? void 0 : _a.length) ? container.nodeValue : '';
|
|
14437
|
-
if (end &&
|
|
14968
|
+
if (end && (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_2__.trimInvEnd)(text).length > offset) {
|
|
14438
14969
|
return true;
|
|
14439
14970
|
}
|
|
14440
14971
|
var inv = (0,_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
|
|
@@ -26531,11 +27062,12 @@ var CommitMode = function CommitMode() {
|
|
|
26531
27062
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
26532
27063
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
|
|
26533
27064
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
26534
|
-
/* harmony import */ var
|
|
26535
|
-
/* harmony import */ var
|
|
26536
|
-
/* harmony import */ var
|
|
26537
|
-
/* harmony import */ var
|
|
26538
|
-
/* harmony import */ var
|
|
27065
|
+
/* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76241);
|
|
27066
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41180);
|
|
27067
|
+
/* harmony import */ var _core_request_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41601);
|
|
27068
|
+
/* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(70231);
|
|
27069
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6441);
|
|
27070
|
+
/* harmony import */ var _modules_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41409);
|
|
26539
27071
|
function _array_like_to_array(arr, len) {
|
|
26540
27072
|
if (len == null || len > arr.length) len = arr.length;
|
|
26541
27073
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -26703,6 +27235,7 @@ var Jodit_1;
|
|
|
26703
27235
|
|
|
26704
27236
|
|
|
26705
27237
|
|
|
27238
|
+
|
|
26706
27239
|
var FOCUS_EVENTS = new Set([
|
|
26707
27240
|
'focus',
|
|
26708
27241
|
'blur',
|
|
@@ -26733,7 +27266,7 @@ var NOEDIT = {
|
|
|
26733
27266
|
* `alignClasses.img` when that isn't set
|
|
26734
27267
|
*/ function makeOptions(options) {
|
|
26735
27268
|
var _a;
|
|
26736
|
-
var opt = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {},
|
|
27269
|
+
var opt = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, _config_js__WEBPACK_IMPORTED_MODULE_8__.Config.defaultOptions);
|
|
26737
27270
|
if (opt.imageAlignClasses && !((_a = opt.alignClasses) === null || _a === void 0 ? void 0 : _a.img)) {
|
|
26738
27271
|
opt.alignClasses = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)({
|
|
26739
27272
|
img: opt.imageAlignClasses
|
|
@@ -26784,7 +27317,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
26784
27317
|
_this.destruct();
|
|
26785
27318
|
throw e;
|
|
26786
27319
|
}
|
|
26787
|
-
_this.setStatus(
|
|
27320
|
+
_this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.STATUSES.beforeInit);
|
|
26788
27321
|
_this.id = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.resolveElement)(element, _this.o.shadowRoot || _this.od), 'id') || new Date().getTime().toString();
|
|
26789
27322
|
_core_global_js__WEBPACK_IMPORTED_MODULE_2__.instances[_this.id] = _this;
|
|
26790
27323
|
_this.attachEvents(options);
|
|
@@ -26794,7 +27327,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
26794
27327
|
}
|
|
26795
27328
|
});
|
|
26796
27329
|
_this.e.on('prepareWYSIWYGEditor', _this.__prepareWYSIWYGEditor);
|
|
26797
|
-
_this.selection = new
|
|
27330
|
+
_this.selection = new _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Selection(_this);
|
|
26798
27331
|
var beforeInitHookResult = _this.beforeInitHook();
|
|
26799
27332
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, function() {
|
|
26800
27333
|
if (_this.isInDestruct) {
|
|
@@ -26818,7 +27351,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
26818
27351
|
_this.e.fire('afterInit', _this);
|
|
26819
27352
|
}
|
|
26820
27353
|
;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.callPromise)(_this.afterInitHook());
|
|
26821
|
-
_this.setStatus(
|
|
27354
|
+
_this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.STATUSES.ready);
|
|
26822
27355
|
_this.e.fire('afterConstructor', _this);
|
|
26823
27356
|
};
|
|
26824
27357
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
|
|
@@ -26875,14 +27408,14 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
26875
27408
|
* Return a default timeout period in milliseconds for some debounce or throttle functions.
|
|
26876
27409
|
* By default, `{history.timeout}` options
|
|
26877
27410
|
*/ function get() {
|
|
26878
|
-
return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout) ? this.o.defaultTimeout :
|
|
27411
|
+
return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout) ? this.o.defaultTimeout : _config_js__WEBPACK_IMPORTED_MODULE_8__.Config.defaultOptions.defaultTimeout;
|
|
26879
27412
|
}
|
|
26880
27413
|
},
|
|
26881
27414
|
{
|
|
26882
27415
|
key: "createInside",
|
|
26883
27416
|
get: function get() {
|
|
26884
27417
|
var _this = this;
|
|
26885
|
-
return new
|
|
27418
|
+
return new _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Create(function() {
|
|
26886
27419
|
return _this.ed;
|
|
26887
27420
|
}, this.o.createAttributes);
|
|
26888
27421
|
}
|
|
@@ -27157,7 +27690,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27157
27690
|
}
|
|
27158
27691
|
value = this.getNativeEditorValue().replace(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP(), '');
|
|
27159
27692
|
if (removeSelectionMarkers) {
|
|
27160
|
-
value =
|
|
27693
|
+
value = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeEmptyMarkedTags)(value, 'span', 'id="jodit-selection_marker_');
|
|
27161
27694
|
}
|
|
27162
27695
|
if (value === '<br>') {
|
|
27163
27696
|
value = '';
|
|
@@ -27547,7 +28080,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27547
28080
|
return this.getMode();
|
|
27548
28081
|
}
|
|
27549
28082
|
var active = this.od.activeElement;
|
|
27550
|
-
if (active && (active === this.iframe ||
|
|
28083
|
+
if (active && (active === this.iframe || _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(this.editor, active) || _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(this.toolbar.container, active))) {
|
|
27551
28084
|
return _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
|
|
27552
28085
|
}
|
|
27553
28086
|
return _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
|
|
@@ -27741,7 +28274,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27741
28274
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach(function(attr) {
|
|
27742
28275
|
var name = attr.name;
|
|
27743
28276
|
var value = attr.value;
|
|
27744
|
-
if (
|
|
28277
|
+
if (_config_js__WEBPACK_IMPORTED_MODULE_8__.Config.defaultOptions[name] !== undefined && (!options || options[name] === undefined)) {
|
|
27745
28278
|
if ([
|
|
27746
28279
|
'readonly',
|
|
27747
28280
|
'disabled'
|
|
@@ -27778,7 +28311,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27778
28311
|
container = element;
|
|
27779
28312
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(element, __defaultClassesKey, element.className.toString());
|
|
27780
28313
|
buffer = container.innerHTML;
|
|
27781
|
-
|
|
28314
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.detach(container);
|
|
27782
28315
|
}
|
|
27783
28316
|
container.classList.add('jodit_inline');
|
|
27784
28317
|
container.classList.add('jodit-container');
|
|
@@ -27786,7 +28319,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27786
28319
|
// actual for inline mode
|
|
27787
28320
|
if (element !== container) {
|
|
27788
28321
|
// hide source element
|
|
27789
|
-
var display = (0,
|
|
28322
|
+
var display = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(element, 'display');
|
|
27790
28323
|
if (display) {
|
|
27791
28324
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(element, __defaultStyleDisplayKey, display);
|
|
27792
28325
|
}
|
|
@@ -27798,21 +28331,21 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27798
28331
|
// the toolbar box below it when (re)attaching the toolbar container.
|
|
27799
28332
|
var aboveSlot = this.c.div(this.getFullElName(SLOT, 'above'), NOEDIT);
|
|
27800
28333
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(aboveSlot, 'data-jodit-above-toolbar', '');
|
|
27801
|
-
|
|
28334
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.appendChildFirst(container, aboveSlot);
|
|
27802
28335
|
var topSlot = this.c.div(this.getFullElName(SLOT, 'top'), NOEDIT);
|
|
27803
|
-
|
|
28336
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(container, topSlot);
|
|
27804
28337
|
var centerSlot = this.c.div(this.getFullElName(SLOT, 'center'), NOEDIT);
|
|
27805
28338
|
var workplace = this.c.div('jodit-workplace', NOEDIT);
|
|
27806
28339
|
var leftSlot = this.c.div(this.getFullElName(SLOT, 'left'), NOEDIT);
|
|
27807
28340
|
var rightSlot = this.c.div(this.getFullElName(SLOT, 'right'), NOEDIT);
|
|
27808
|
-
|
|
27809
|
-
|
|
27810
|
-
|
|
27811
|
-
|
|
28341
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(centerSlot, leftSlot);
|
|
28342
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(centerSlot, workplace);
|
|
28343
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(centerSlot, rightSlot);
|
|
28344
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(container, centerSlot);
|
|
27812
28345
|
var bottomPanel = this.c.div(this.getFullElName(SLOT, 'bottom'), NOEDIT);
|
|
27813
|
-
|
|
28346
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(container, bottomPanel);
|
|
27814
28347
|
if (element.parentNode && element !== container) {
|
|
27815
|
-
|
|
28348
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.before(element, container);
|
|
27816
28349
|
}
|
|
27817
28350
|
Object.defineProperty(element, 'component', {
|
|
27818
28351
|
enumerable: false,
|
|
@@ -27824,7 +28357,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27824
28357
|
'aria-disabled': false,
|
|
27825
28358
|
tabindex: this.o.tabIndex
|
|
27826
28359
|
});
|
|
27827
|
-
|
|
28360
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(workplace, editor);
|
|
27828
28361
|
var currentPlace = {
|
|
27829
28362
|
editor: editor,
|
|
27830
28363
|
element: element,
|
|
@@ -27838,9 +28371,9 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27838
28371
|
left: leftSlot,
|
|
27839
28372
|
right: rightSlot
|
|
27840
28373
|
},
|
|
27841
|
-
statusbar: new
|
|
28374
|
+
statusbar: new _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.StatusBar(this, container),
|
|
27842
28375
|
options: this.isReady ? makeOptions(options) : this.options,
|
|
27843
|
-
history: new
|
|
28376
|
+
history: new _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.History(this),
|
|
27844
28377
|
editorWindow: this.ow
|
|
27845
28378
|
};
|
|
27846
28379
|
this.__elementToPlace.set(editor, currentPlace);
|
|
@@ -27876,7 +28409,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27876
28409
|
{
|
|
27877
28410
|
key: "addDisclaimer",
|
|
27878
28411
|
value: function addDisclaimer(elm) {
|
|
27879
|
-
|
|
28412
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.append(this.workplace, elm);
|
|
27880
28413
|
}
|
|
27881
28414
|
},
|
|
27882
28415
|
{
|
|
@@ -27950,7 +28483,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
27950
28483
|
return;
|
|
27951
28484
|
}
|
|
27952
28485
|
if (stayDefault === false || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
|
|
27953
|
-
|
|
28486
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(defaultEditorArea);
|
|
27954
28487
|
}
|
|
27955
28488
|
addClassNames(_this.o.editorClassName, _this.editor);
|
|
27956
28489
|
if (_this.o.style) {
|
|
@@ -28005,7 +28538,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
28005
28538
|
// and such an element stays in the editor
|
|
28006
28539
|
if (FOCUS_EVENTS.has(type)) {
|
|
28007
28540
|
var inner = type === 'focusin' || type === 'focusout';
|
|
28008
|
-
if (inner === (event.target === editor) ||
|
|
28541
|
+
if (inner === (event.target === editor) || _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(editor, event.relatedTarget)) {
|
|
28009
28542
|
return;
|
|
28010
28543
|
}
|
|
28011
28544
|
if (inner) {
|
|
@@ -28046,7 +28579,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
28046
28579
|
key: "fetch",
|
|
28047
28580
|
value: function fetch(url, options) {
|
|
28048
28581
|
var _this = this;
|
|
28049
|
-
var ajax = new
|
|
28582
|
+
var ajax = new _core_request_index_js__WEBPACK_IMPORTED_MODULE_6__.Ajax(_object_spread({
|
|
28050
28583
|
url: url
|
|
28051
28584
|
}, options), this.o.defaultAjaxOptions);
|
|
28052
28585
|
var destroy = function destroy1() {
|
|
@@ -28073,7 +28606,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
28073
28606
|
if (this.isInDestruct) {
|
|
28074
28607
|
return;
|
|
28075
28608
|
}
|
|
28076
|
-
this.setStatus(
|
|
28609
|
+
this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.STATUSES.beforeDestruct);
|
|
28077
28610
|
this.__elementToPlace.clear();
|
|
28078
28611
|
(_a = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'storage')) === null || _a === void 0 ? void 0 : _a.clear();
|
|
28079
28612
|
(_b = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'buffer')) === null || _b === void 0 ? void 0 : _b.clear();
|
|
@@ -28112,17 +28645,17 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
28112
28645
|
_this.e.off(container);
|
|
28113
28646
|
_this.e.off(element);
|
|
28114
28647
|
_this.e.off(editor);
|
|
28115
|
-
|
|
28116
|
-
|
|
28648
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(workplace);
|
|
28649
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(editor);
|
|
28117
28650
|
if (container !== element) {
|
|
28118
|
-
|
|
28651
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(container);
|
|
28119
28652
|
}
|
|
28120
28653
|
Object.defineProperty(element, 'component', {
|
|
28121
28654
|
enumerable: false,
|
|
28122
28655
|
configurable: true,
|
|
28123
28656
|
value: null
|
|
28124
28657
|
});
|
|
28125
|
-
|
|
28658
|
+
_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(iframe);
|
|
28126
28659
|
// inline mode
|
|
28127
28660
|
if (container === element) {
|
|
28128
28661
|
element.innerHTML = tmpValue;
|
|
@@ -28185,7 +28718,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
28185
28718
|
get: /**
|
|
28186
28719
|
* Default settings
|
|
28187
28720
|
*/ function get() {
|
|
28188
|
-
return
|
|
28721
|
+
return _config_js__WEBPACK_IMPORTED_MODULE_8__.Config.defaultOptions;
|
|
28189
28722
|
}
|
|
28190
28723
|
},
|
|
28191
28724
|
{
|
|
@@ -28238,7 +28771,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
|
|
|
28238
28771
|
}
|
|
28239
28772
|
]);
|
|
28240
28773
|
return Jodit;
|
|
28241
|
-
}(
|
|
28774
|
+
}(_modules_index_js__WEBPACK_IMPORTED_MODULE_9__.ViewWithToolbar);
|
|
28242
28775
|
Jodit.fatMode = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.FAT_MODE;
|
|
28243
28776
|
Jodit.plugins = _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem;
|
|
28244
28777
|
Jodit.modules = _core_global_js__WEBPACK_IMPORTED_MODULE_2__.modules;
|
|
@@ -28248,7 +28781,7 @@ Jodit.constants = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
28248
28781
|
Jodit.instances = _core_global_js__WEBPACK_IMPORTED_MODULE_2__.instances;
|
|
28249
28782
|
Jodit.lang = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.lang;
|
|
28250
28783
|
Jodit.core = {
|
|
28251
|
-
Plugin:
|
|
28784
|
+
Plugin: _modules_index_js__WEBPACK_IMPORTED_MODULE_9__.Plugin
|
|
28252
28785
|
};
|
|
28253
28786
|
__decorate([
|
|
28254
28787
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
@@ -28275,7 +28808,7 @@ __decorate([
|
|
|
28275
28808
|
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
28276
28809
|
], Jodit.prototype, "__prepareWYSIWYGEditor", null);
|
|
28277
28810
|
Jodit = Jodit_1 = __decorate([
|
|
28278
|
-
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.derive)(
|
|
28811
|
+
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.derive)(_core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_7__.Dlgs)
|
|
28279
28812
|
], Jodit);
|
|
28280
28813
|
|
|
28281
28814
|
function addClassNames(className, elm) {
|
|
@@ -53148,7 +53681,18 @@ var KEEPS_SPACES = new Set([
|
|
|
53148
53681
|
/**
|
|
53149
53682
|
* A plain space beside this neighbor isn't shown: there is none, or it's a
|
|
53150
53683
|
* line break, a block or text starting (or ending) with a plain space
|
|
53151
|
-
*/
|
|
53684
|
+
*/ // The run of spaces at the end (or the start) of the text becomes nbsp; counted, as `/ +$/` backtracks on a long run
|
|
53685
|
+
function replaceEdgeSpaces(text, atEnd) {
|
|
53686
|
+
var count = 0;
|
|
53687
|
+
while(count < text.length && text.charAt(atEnd ? text.length - 1 - count : count) === ' '){
|
|
53688
|
+
count += 1;
|
|
53689
|
+
}
|
|
53690
|
+
if (count === 0) {
|
|
53691
|
+
return text;
|
|
53692
|
+
}
|
|
53693
|
+
return atEnd ? text.slice(0, text.length - count) + _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(count) : _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(count) + text.slice(count);
|
|
53694
|
+
}
|
|
53695
|
+
function hidesSpace(neighbor, edge) {
|
|
53152
53696
|
var _a;
|
|
53153
53697
|
return !neighbor || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(neighbor, 'br') || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(neighbor) || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(neighbor) && edge.test((_a = neighbor.nodeValue) !== null && _a !== void 0 ? _a : '');
|
|
53154
53698
|
}
|
|
@@ -53222,6 +53766,7 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
53222
53766
|
var rightSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(fake, false);
|
|
53223
53767
|
this.__moveContentInLeftSibling(fake, leftSibling, rightSibling);
|
|
53224
53768
|
this.__keepSpacesVisible(fake);
|
|
53769
|
+
this.__keepSpacesVisibleBesideTable(fake);
|
|
53225
53770
|
range.setStartBefore(fake);
|
|
53226
53771
|
range.collapse(true);
|
|
53227
53772
|
this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
|
|
@@ -53242,6 +53787,7 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
53242
53787
|
* Returns where the caret goes, or null when no table is involved
|
|
53243
53788
|
*/ key: "__clearSelectedCells",
|
|
53244
53789
|
value: function __clearSelectedCells(range) {
|
|
53790
|
+
var _this = this;
|
|
53245
53791
|
var _this_j = this.j, editor = _this_j.editor, createInside = _this_j.createInside;
|
|
53246
53792
|
var startCell = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(range.startContainer, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell, editor);
|
|
53247
53793
|
var endCell = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(range.endContainer, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell, editor);
|
|
@@ -53252,6 +53798,9 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
53252
53798
|
var endTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(endCell, 'table', editor);
|
|
53253
53799
|
var caret = range.cloneRange();
|
|
53254
53800
|
caret.collapse(true);
|
|
53801
|
+
// Where the selection ends, which follows the deletion in its cell
|
|
53802
|
+
var end = range.cloneRange();
|
|
53803
|
+
end.collapse(false);
|
|
53255
53804
|
var parts = [];
|
|
53256
53805
|
var addParts = function addParts(table) {
|
|
53257
53806
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(table.rows).flatMap(function(row) {
|
|
@@ -53290,7 +53839,25 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
53290
53839
|
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(cell)) {
|
|
53291
53840
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(cell);
|
|
53292
53841
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(cell, createInside.element('br'));
|
|
53842
|
+
return;
|
|
53293
53843
|
}
|
|
53844
|
+
// A space left at the cell's edge, where the selection started or
|
|
53845
|
+
// ended in it, would be hidden, as at a block's (#1783). Each edge
|
|
53846
|
+
// moves beside its fake, as making the space non-breaking would
|
|
53847
|
+
// move it to the start of its text
|
|
53848
|
+
[
|
|
53849
|
+
caret,
|
|
53850
|
+
end
|
|
53851
|
+
].filter(function(edge) {
|
|
53852
|
+
return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(cell, edge.startContainer);
|
|
53853
|
+
}).forEach(function(edge) {
|
|
53854
|
+
var fake = createInside.fake();
|
|
53855
|
+
edge.insertNode(fake);
|
|
53856
|
+
_this.__keepSpacesVisible(fake);
|
|
53857
|
+
edge.setStartBefore(fake);
|
|
53858
|
+
edge.collapse(true);
|
|
53859
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
|
|
53860
|
+
});
|
|
53294
53861
|
});
|
|
53295
53862
|
return startTable ? caret : null;
|
|
53296
53863
|
}
|
|
@@ -53348,15 +53915,34 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
|
|
|
53348
53915
|
var before = this.__findNeighbor(fake, true, block);
|
|
53349
53916
|
var after = this.__findNeighbor(fake, false, block);
|
|
53350
53917
|
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(before) && hidesSpace(after, /^ /)) {
|
|
53351
|
-
before.nodeValue = before.nodeValue
|
|
53352
|
-
return _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length);
|
|
53353
|
-
});
|
|
53918
|
+
before.nodeValue = replaceEdgeSpaces(before.nodeValue, true);
|
|
53354
53919
|
}
|
|
53355
53920
|
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(after) && hidesSpace(before, / $/)) {
|
|
53356
|
-
after.nodeValue = after.nodeValue
|
|
53357
|
-
|
|
53358
|
-
|
|
53921
|
+
after.nodeValue = replaceEdgeSpaces(after.nodeValue, false);
|
|
53922
|
+
}
|
|
53923
|
+
}
|
|
53924
|
+
},
|
|
53925
|
+
{
|
|
53926
|
+
/**
|
|
53927
|
+
* A deletion that starts or ends in a table leaves the fake between the
|
|
53928
|
+
* table and the block it reached into, and a space at that block's edge
|
|
53929
|
+
* would be hidden as well (#1783)
|
|
53930
|
+
*/ key: "__keepSpacesVisibleBesideTable",
|
|
53931
|
+
value: function __keepSpacesVisibleBesideTable(fake) {
|
|
53932
|
+
var before = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(fake, true);
|
|
53933
|
+
var after = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(fake, false);
|
|
53934
|
+
var block = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(after, 'table') ? before : _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(before, 'table') ? after : null;
|
|
53935
|
+
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(block) || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(block, 'table')) {
|
|
53936
|
+
return;
|
|
53359
53937
|
}
|
|
53938
|
+
var edge = this.jodit.createInside.fake();
|
|
53939
|
+
if (block === before) {
|
|
53940
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(block, edge);
|
|
53941
|
+
} else {
|
|
53942
|
+
block.insertBefore(edge, block.firstChild);
|
|
53943
|
+
}
|
|
53944
|
+
this.__keepSpacesVisible(edge);
|
|
53945
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(edge);
|
|
53360
53946
|
}
|
|
53361
53947
|
},
|
|
53362
53948
|
{
|
|
@@ -57640,7 +58226,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
|
|
|
57640
58226
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
57641
58227
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
|
|
57642
58228
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
57643
|
-
/* harmony import */ var
|
|
58229
|
+
/* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76241);
|
|
58230
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50963);
|
|
57644
58231
|
/*!
|
|
57645
58232
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
57646
58233
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -57651,6 +58238,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
|
|
|
57651
58238
|
|
|
57652
58239
|
|
|
57653
58240
|
|
|
58241
|
+
|
|
57654
58242
|
/**
|
|
57655
58243
|
* Iframe plugin - use `iframe` instead of DIV in editor. It can be need when you want to attach custom styles in editor
|
|
57656
58244
|
* in backend of you system
|
|
@@ -57711,13 +58299,69 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
|
|
|
57711
58299
|
var toggleEditable = function toggleEditable() {
|
|
57712
58300
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(doc.body, 'contenteditable', editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE && !editor.getReadOnly() || null);
|
|
57713
58301
|
};
|
|
58302
|
+
// The start of the whitespace run that ends at `to`
|
|
58303
|
+
var skipBack = function skipBack(text, to) {
|
|
58304
|
+
while(to > 0 && /\s/.test(text.charAt(to - 1))){
|
|
58305
|
+
to -= 1;
|
|
58306
|
+
}
|
|
58307
|
+
return to;
|
|
58308
|
+
};
|
|
58309
|
+
// The editor's own attributes on `<body>`: `min-height` and `contenteditable=true`
|
|
58310
|
+
var cleanBodyTag = function cleanBodyTag(tag) {
|
|
58311
|
+
tag = tag.replace(/min-height["'\s]*:[\s"']*[0-9]+(px|%)/i, '');
|
|
58312
|
+
var skip = function skip(from, chars) {
|
|
58313
|
+
while(chars.test(tag.charAt(from))){
|
|
58314
|
+
from += 1;
|
|
58315
|
+
}
|
|
58316
|
+
return from;
|
|
58317
|
+
};
|
|
58318
|
+
var index = tag.indexOf('contenteditable');
|
|
58319
|
+
while(index !== -1){
|
|
58320
|
+
var to = skip(index + 'contenteditable'.length, /["'\s]/);
|
|
58321
|
+
if (tag.charAt(to) === '=') {
|
|
58322
|
+
to = skip(to + 1, /[\s"']/);
|
|
58323
|
+
if (tag.startsWith('true', to)) {
|
|
58324
|
+
to = skip(to + 4, /["']/);
|
|
58325
|
+
var from = index;
|
|
58326
|
+
if (/["']/.test(tag.charAt(from - 1))) {
|
|
58327
|
+
from -= 1;
|
|
58328
|
+
}
|
|
58329
|
+
from = skipBack(tag, from);
|
|
58330
|
+
return tag.slice(0, from) + tag.slice(to);
|
|
58331
|
+
}
|
|
58332
|
+
}
|
|
58333
|
+
index = tag.indexOf('contenteditable', index + 1);
|
|
58334
|
+
}
|
|
58335
|
+
return tag;
|
|
58336
|
+
};
|
|
57714
58337
|
var clearMarkers = function clearMarkers(html) {
|
|
57715
58338
|
// The plugins' own styles, from `getContainer`, aren't part of the value
|
|
57716
|
-
html =
|
|
57717
|
-
var
|
|
57718
|
-
|
|
57719
|
-
|
|
57720
|
-
|
|
58339
|
+
html = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween)(html, '<style', '>', '</style>', 'jodit-box');
|
|
58340
|
+
var bodyStart = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.indexOfOpenTag)(html, 'body');
|
|
58341
|
+
var bodyEnd = -1;
|
|
58342
|
+
for(var index = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.indexOfClosingTag)(html, 'body', bodyStart + 1); index !== -1; index = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.indexOfClosingTag)(html, 'body', index + 1)){
|
|
58343
|
+
bodyEnd = index;
|
|
58344
|
+
}
|
|
58345
|
+
if (bodyStart !== -1 && bodyEnd !== -1) {
|
|
58346
|
+
var afterBody = bodyEnd + '</body>'.length;
|
|
58347
|
+
var gt = html.indexOf('>', bodyStart);
|
|
58348
|
+
var body = html.slice(bodyStart, afterBody);
|
|
58349
|
+
if (gt !== -1 && gt < bodyEnd) {
|
|
58350
|
+
body = cleanBodyTag(html.slice(bodyStart, gt)) + html.slice(gt, afterBody);
|
|
58351
|
+
}
|
|
58352
|
+
for(var _i = 0, _iter = [
|
|
58353
|
+
'style',
|
|
58354
|
+
'script',
|
|
58355
|
+
'span'
|
|
58356
|
+
]; _i < _iter.length; _i++){
|
|
58357
|
+
var tag = _iter[_i];
|
|
58358
|
+
body = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween)(body, '<' + tag, '>', '</' + tag + '>', 'jodit');
|
|
58359
|
+
}
|
|
58360
|
+
// remove markers: the spans outside the body are the editor's own
|
|
58361
|
+
var stripSpans = function stripSpans(part) {
|
|
58362
|
+
return (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween)((0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeBetween)(part, '<span', '>', '</span>'), '<span', '>', '</span>');
|
|
58363
|
+
};
|
|
58364
|
+
html = (stripSpans(html.slice(0, bodyStart)) + body + stripSpans(html.slice(afterBody))).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g, '$1$2$3$5').replace(/(<[^<]+?)\sclass="[\s]*"/gim, '$1').replace(/(<[^<]+?)\sstyle="[\s;]*"/gim, '$1').replace(/(<[^<]+?)\sdir="[\s]*"/gim, '$1');
|
|
57721
58365
|
}
|
|
57722
58366
|
return html;
|
|
57723
58367
|
};
|
|
@@ -66790,9 +67434,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.mediaWrappers = {};
|
|
|
66790
67434
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
66791
67435
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
66792
67436
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
|
|
66793
|
-
/* harmony import */ var
|
|
66794
|
-
/* harmony import */ var
|
|
66795
|
-
/* harmony import */ var
|
|
67437
|
+
/* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76241);
|
|
67438
|
+
/* harmony import */ var _core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43555);
|
|
67439
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41180);
|
|
67440
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(757);
|
|
66796
67441
|
function _array_like_to_array(arr, len) {
|
|
66797
67442
|
if (len == null || len > arr.length) len = arr.length;
|
|
66798
67443
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -66841,6 +67486,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
66841
67486
|
|
|
66842
67487
|
|
|
66843
67488
|
|
|
67489
|
+
|
|
66844
67490
|
/**
|
|
66845
67491
|
* Process `video` and `audio`
|
|
66846
67492
|
*/ function media(editor) {
|
|
@@ -66848,10 +67494,10 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
66848
67494
|
var _editor_options = editor.options, mediaFakeTag = _editor_options.mediaFakeTag, mediaBlocks = _editor_options.mediaBlocks, mediaInFakeBlock = _editor_options.mediaInFakeBlock, mediaWrappers = _editor_options.mediaWrappers;
|
|
66849
67495
|
var wrap = function wrap(element) {
|
|
66850
67496
|
var _a;
|
|
66851
|
-
if (element.parentNode && (0,
|
|
67497
|
+
if (element.parentNode && (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element.parentNode, 'data-jodit_iframe_wrapper')) {
|
|
66852
67498
|
element = element.parentNode;
|
|
66853
67499
|
} else if (mediaWrappers[element.nodeName.toLowerCase()]) {
|
|
66854
|
-
element = (_a = (0,
|
|
67500
|
+
element = (_a = (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.getMediaWrapper)(editor, element)) !== null && _a !== void 0 ? _a : (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.wrapMedia)(editor, element);
|
|
66855
67501
|
} else if (mediaInFakeBlock) {
|
|
66856
67502
|
var _$media = element;
|
|
66857
67503
|
var wrapper = editor.createInside.element(mediaFakeTag, _define_property({
|
|
@@ -66859,13 +67505,13 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
66859
67505
|
contenteditable: false,
|
|
66860
67506
|
draggable: true
|
|
66861
67507
|
}, "data-".concat(keyFake), 1));
|
|
66862
|
-
(0,
|
|
67508
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(wrapper, 'style', (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, 'style'));
|
|
66863
67509
|
// The wrapper fits the media, whose size changes as its metadata loads
|
|
66864
67510
|
// and as it's resized. A percentage width is of the line, so it takes that
|
|
66865
67511
|
var fit = function fit() {
|
|
66866
|
-
(0,
|
|
66867
|
-
display: (0,
|
|
66868
|
-
width: (0,
|
|
67512
|
+
(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(wrapper, {
|
|
67513
|
+
display: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(_$media, 'display') === 'inline-block' ? 'inline-block' : 'block',
|
|
67514
|
+
width: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.cssInline)(_$media, 'width').endsWith('%') ? '' : 'fit-content',
|
|
66869
67515
|
height: ''
|
|
66870
67516
|
});
|
|
66871
67517
|
};
|
|
@@ -66912,15 +67558,12 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
66912
67558
|
}
|
|
66913
67559
|
if (mediaInFakeBlock || Object.keys(mediaWrappers).length) {
|
|
66914
67560
|
editor.e.on('afterGetValueFromEditor', function(data) {
|
|
66915
|
-
|
|
66916
|
-
if (rxp.test(data.value)) {
|
|
66917
|
-
data.value = data.value.replace(rxp, '$1');
|
|
66918
|
-
}
|
|
67561
|
+
data.value = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_3__.unwrapMarkedTags)(data.value, mediaFakeTag, "data-".concat(keyFake));
|
|
66919
67562
|
}).on('change afterInit afterSetMode changePlace', editor.async.debounce(function() {
|
|
66920
67563
|
if (!editor.isDestructed && editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE) {
|
|
66921
|
-
(0,
|
|
66922
|
-
if (!(0,
|
|
66923
|
-
(0,
|
|
67564
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)(mediaBlocks.join(','), editor.editor).forEach(function(elm) {
|
|
67565
|
+
if (!(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.dataBind)(elm, keyFake)) {
|
|
67566
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_4__.dataBind)(elm, keyFake, true);
|
|
66924
67567
|
wrap(elm);
|
|
66925
67568
|
}
|
|
66926
67569
|
});
|
|
@@ -68584,7 +69227,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paste = {
|
|
|
68584
69227
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
68585
69228
|
/* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
68586
69229
|
/* harmony import */ var _core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27613);
|
|
68587
|
-
/* harmony import */ var
|
|
69230
|
+
/* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76241);
|
|
69231
|
+
/* harmony import */ var _core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10830);
|
|
68588
69232
|
function _array_like_to_array(arr, len) {
|
|
68589
69233
|
if (len == null || len > arr.length) len = arr.length;
|
|
68590
69234
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -68621,11 +69265,14 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
68621
69265
|
|
|
68622
69266
|
|
|
68623
69267
|
|
|
69268
|
+
|
|
68624
69269
|
/**
|
|
68625
69270
|
* Remove special HTML comments
|
|
68626
69271
|
* @private
|
|
68627
69272
|
*/ function removeExtraFragments(html) {
|
|
68628
|
-
html =
|
|
69273
|
+
html = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_4__.removeTagsByPrefix)(html, [
|
|
69274
|
+
'<meta'
|
|
69275
|
+
]);
|
|
68629
69276
|
var start = html.search(/<!--StartFragment-->/i);
|
|
68630
69277
|
if (start !== -1) {
|
|
68631
69278
|
html = html.substring(start + 20);
|
|
@@ -68643,7 +69290,8 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
68643
69290
|
* paste bold
|
|
68644
69291
|
* @private
|
|
68645
69292
|
*/ function removeGoogleDocsWrapper(html) {
|
|
68646
|
-
|
|
69293
|
+
// A plain search: the wrapper check is left to the parsed document below
|
|
69294
|
+
if (!/docs-internal-guid-/i.test(html)) {
|
|
68647
69295
|
return html;
|
|
68648
69296
|
}
|
|
68649
69297
|
// An inert document: images don't load and handlers don't run
|
|
@@ -68700,7 +69348,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
68700
69348
|
var dialog = jodit.confirm('<div style="word-break: normal; white-space: normal">'.concat(jodit.i18n(msg), "</div>"), jodit.i18n(title));
|
|
68701
69349
|
var buttons = buttonList.map(function(param) {
|
|
68702
69350
|
var text = param.text, value = param.value;
|
|
68703
|
-
return (0,
|
|
69351
|
+
return (0,_core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.Button)(jodit, {
|
|
68704
69352
|
text: text,
|
|
68705
69353
|
name: text.toLowerCase(),
|
|
68706
69354
|
tabIndex: 0
|
|
@@ -68717,7 +69365,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
68717
69365
|
}
|
|
68718
69366
|
jodit.e.fire('afterClosePasteDialog', dialog);
|
|
68719
69367
|
});
|
|
68720
|
-
var cancel = (0,
|
|
69368
|
+
var cancel = (0,_core_ui_button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.Button)(jodit, {
|
|
68721
69369
|
text: 'Cancel',
|
|
68722
69370
|
tabIndex: 0
|
|
68723
69371
|
}).onAction(function() {
|
|
@@ -71195,12 +71843,13 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.resizer = {
|
|
|
71195
71843
|
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
71196
71844
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
71197
71845
|
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
71198
|
-
/* harmony import */ var
|
|
71199
|
-
/* harmony import */ var
|
|
71200
|
-
/* harmony import */ var
|
|
71201
|
-
/* harmony import */ var
|
|
71202
|
-
/* harmony import */ var
|
|
71203
|
-
/* harmony import */ var
|
|
71846
|
+
/* harmony import */ var _core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76241);
|
|
71847
|
+
/* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
|
|
71848
|
+
/* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(20356);
|
|
71849
|
+
/* harmony import */ var _core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45124);
|
|
71850
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(67510);
|
|
71851
|
+
/* harmony import */ var _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(61259);
|
|
71852
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(71675);
|
|
71204
71853
|
function _assert_this_initialized(self) {
|
|
71205
71854
|
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
71206
71855
|
return self;
|
|
@@ -71333,6 +71982,7 @@ function _wrap_native_super(Class) {
|
|
|
71333
71982
|
|
|
71334
71983
|
|
|
71335
71984
|
|
|
71985
|
+
|
|
71336
71986
|
var keyBInd = '__jodit-resizer_binded';
|
|
71337
71987
|
/**
|
|
71338
71988
|
* Reads a plain pixel value out of a `width`/`height` attribute.
|
|
@@ -71350,7 +72000,7 @@ var keyBInd = '__jodit-resizer_binded';
|
|
|
71350
72000
|
* A video with no height of its own takes it from its width and its ratio,
|
|
71351
72001
|
* so resizing it keeps the ratio without setting a height.
|
|
71352
72002
|
*/ function heightFollowsWidth(element) {
|
|
71353
|
-
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(element, 'video') && !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, 'height') && !(0,
|
|
72003
|
+
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(element, 'video') && !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, 'height') && !(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(element, 'height');
|
|
71354
72004
|
}
|
|
71355
72005
|
var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
71356
72006
|
/**
|
|
@@ -71406,7 +72056,7 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
71406
72056
|
}
|
|
71407
72057
|
if (_this.element && _this.rect) {
|
|
71408
72058
|
var workplacePosition = _this.getWorkplacePosition();
|
|
71409
|
-
var pos = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.offset)(_this.element, _this.j, _this.j.ed), left = parseInt((0,
|
|
72059
|
+
var pos = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.offset)(_this.element, _this.j, _this.j.ed), left = parseInt((0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(_this.rect, 'left') || '0', 10), top = parseInt((0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(_this.rect, 'top') || '0', 10), w = _this.rect.offsetWidth, h = _this.rect.offsetHeight;
|
|
71410
72060
|
var newTop = pos.top - workplacePosition.top, newLeft = pos.left - workplacePosition.left;
|
|
71411
72061
|
if (top !== newTop || left !== newLeft || w !== _this.element.offsetWidth || h !== _this.element.offsetHeight) {
|
|
71412
72062
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(_this.rect, {
|
|
@@ -71450,10 +72100,9 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
71450
72100
|
.on('keydown', this.onEditorKeyDown, {
|
|
71451
72101
|
top: true
|
|
71452
72102
|
}).on('afterGetValueFromEditor.resizer', function(data) {
|
|
71453
|
-
|
|
71454
|
-
|
|
71455
|
-
|
|
71456
|
-
}
|
|
72103
|
+
data.value = (0,_core_helpers_html_tag_scan_js__WEBPACK_IMPORTED_MODULE_5__.unwrapMarkedTags)(data.value, 'jodit', 'data-jodit_iframe_wrapper', function(inner) {
|
|
72104
|
+
return /<iframe/i.test(inner);
|
|
72105
|
+
});
|
|
71457
72106
|
});
|
|
71458
72107
|
this.addEventListeners();
|
|
71459
72108
|
this.__onChangeEditor();
|
|
@@ -71499,7 +72148,7 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
71499
72148
|
return;
|
|
71500
72149
|
}
|
|
71501
72150
|
var width = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width');
|
|
71502
|
-
if (width && !(0,
|
|
72151
|
+
if (width && !(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(image, 'width')) {
|
|
71503
72152
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', width);
|
|
71504
72153
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(image, 'width', null);
|
|
71505
72154
|
}
|
|
@@ -71648,7 +72297,7 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
71648
72297
|
value: function __followCaret() {
|
|
71649
72298
|
var before = this.__keyDownRange;
|
|
71650
72299
|
this.__keyDownRange = null;
|
|
71651
|
-
if (!(0,
|
|
72300
|
+
if (!(0,_core_selection_helpers_index_js__WEBPACK_IMPORTED_MODULE_8__.isMoved)(this.j, before)) {
|
|
71652
72301
|
return;
|
|
71653
72302
|
}
|
|
71654
72303
|
if (this.isShown && this.element && !this.j.s.range.intersectsNode(this.element)) {
|
|
@@ -71692,7 +72341,7 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
71692
72341
|
if (!this.isResizeMode) {
|
|
71693
72342
|
// A click in the element's popup, or in a list it opens, works on
|
|
71694
72343
|
// the element, so it keeps its frame
|
|
71695
|
-
if ((e === null || e === void 0 ? void 0 : e.target) &&
|
|
72344
|
+
if ((e === null || e === void 0 ? void 0 : e.target) && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(e.target, _core_ui_popup_index_js__WEBPACK_IMPORTED_MODULE_10__.Popup)) {
|
|
71696
72345
|
return;
|
|
71697
72346
|
}
|
|
71698
72347
|
return this.hide();
|
|
@@ -71722,7 +72371,7 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
71722
72371
|
if (changeAttrs) {
|
|
71723
72372
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(element, key, value);
|
|
71724
72373
|
}
|
|
71725
|
-
if (!changeAttrs || (0,
|
|
72374
|
+
if (!changeAttrs || (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(element, key)) {
|
|
71726
72375
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(element, key, value);
|
|
71727
72376
|
}
|
|
71728
72377
|
}
|
|
@@ -71801,7 +72450,7 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
71801
72450
|
var width = element.offsetWidth || attrPixelSize(element, 'width');
|
|
71802
72451
|
var height = element.offsetHeight || attrPixelSize(element, 'height');
|
|
71803
72452
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, {
|
|
71804
|
-
display: (0,
|
|
72453
|
+
display: (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.cssInline)(element, 'display') === 'inline-block' ? 'inline-block' : 'block'
|
|
71805
72454
|
});
|
|
71806
72455
|
if (width) {
|
|
71807
72456
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.css)(wrapper, 'width', width);
|
|
@@ -71908,7 +72557,7 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
71908
72557
|
}
|
|
71909
72558
|
]);
|
|
71910
72559
|
return resizer;
|
|
71911
|
-
}(_wrap_native_super(
|
|
72560
|
+
}(_wrap_native_super(_core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_7__.Plugin));
|
|
71912
72561
|
__decorate([
|
|
71913
72562
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
|
|
71914
72563
|
], resizer.prototype, "onEditorClick", null);
|