jodit-pro 4.17.0 → 4.17.2
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 +3 -3
- package/es2015/jodit.js +168 -12
- package/es2015/jodit.min.js +6 -6
- 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/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/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 +3 -3
- package/es2018/jodit.min.js +6 -6
- 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/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/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 +5 -5
- package/es2021/jodit.js +168 -12
- package/es2021/jodit.min.js +8 -8
- 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/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/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 +5 -5
- package/es2021.en/jodit.js +168 -12
- package/es2021.en/jodit.min.js +5 -5
- 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/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/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 +183 -12
- 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/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/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.17.
|
|
4
|
+
* Version: v4.17.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2308,7 +2308,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2308
2308
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2309
2309
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
2310
2310
|
}
|
|
2311
|
-
var APP_VERSION = "4.17.
|
|
2311
|
+
var APP_VERSION = "4.17.2";
|
|
2312
2312
|
// prettier-ignore
|
|
2313
2313
|
var ES = "es5";
|
|
2314
2314
|
var IS_ES_MODERN = false;
|
|
@@ -7891,11 +7891,18 @@ function sanitizeHTMLElement(elm) {
|
|
|
7891
7891
|
var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7892
7892
|
safeJavaScriptLink: true,
|
|
7893
7893
|
removeOnError: true
|
|
7894
|
-
}, safeJavaScriptLink = _ref.safeJavaScriptLink, removeOnError = _ref.removeOnError;
|
|
7894
|
+
}, safeJavaScriptLink = _ref.safeJavaScriptLink, removeOnError = _ref.removeOnError, removeEventAttributes = _ref.removeEventAttributes;
|
|
7895
7895
|
if (!_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isElement(elm)) {
|
|
7896
7896
|
return false;
|
|
7897
7897
|
}
|
|
7898
7898
|
var effected = false;
|
|
7899
|
+
// Every `on*` handler, not only `onerror`: the clean-html background
|
|
7900
|
+
// pass calls this directly, and markup that reached the editable area
|
|
7901
|
+
// without `safeHTML` (a drop, a script) kept its handlers otherwise.
|
|
7902
|
+
// See GHSA-jhhp-r3r7-v2cg
|
|
7903
|
+
if (removeEventAttributes && removeAllEventAttributes(elm)) {
|
|
7904
|
+
effected = true;
|
|
7905
|
+
}
|
|
7899
7906
|
if (removeOnError && elm.hasAttribute('onerror')) {
|
|
7900
7907
|
(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_1__.attr)(elm, 'onerror', null);
|
|
7901
7908
|
effected = true;
|
|
@@ -13538,20 +13545,86 @@ function _ts_generator(thisArg, body) {
|
|
|
13538
13545
|
}();
|
|
13539
13546
|
|
|
13540
13547
|
|
|
13548
|
+
/***/ }),
|
|
13549
|
+
|
|
13550
|
+
/***/ 79505:
|
|
13551
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13552
|
+
|
|
13553
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13554
|
+
/* harmony export */ composedRanges: function() { return /* binding */ composedRanges; }
|
|
13555
|
+
/* harmony export */ });
|
|
13556
|
+
/* harmony import */ var _helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27613);
|
|
13557
|
+
/*!
|
|
13558
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
13559
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
13560
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
13561
|
+
*/
|
|
13562
|
+
function isInside(node, shadowRoot) {
|
|
13563
|
+
return node === shadowRoot || shadowRoot.contains(node);
|
|
13564
|
+
}
|
|
13565
|
+
function usable(ranges, shadowRoot) {
|
|
13566
|
+
return Array.isArray(ranges) && ranges.length > 0 && ranges.every(function(range) {
|
|
13567
|
+
return isInside(range.startContainer, shadowRoot);
|
|
13568
|
+
});
|
|
13569
|
+
}
|
|
13570
|
+
/**
|
|
13571
|
+
* Ranges of a selection that lies inside the given shadow tree.
|
|
13572
|
+
*
|
|
13573
|
+
* `window.getSelection()` stops at the shadow boundary and reports the host
|
|
13574
|
+
* instead of the node the caret is really in. `getComposedRanges` is the
|
|
13575
|
+
* standard way to ask past that boundary.
|
|
13576
|
+
*
|
|
13577
|
+
* @returns `null` when the browser has no `getComposedRanges`, or when neither
|
|
13578
|
+
* call shape returned ranges that point inside the shadow tree — in which case
|
|
13579
|
+
* there is nothing better to offer than the plain window selection.
|
|
13580
|
+
*/ function composedRanges(selection, shadowRoot) {
|
|
13581
|
+
var getComposedRanges = selection.getComposedRanges;
|
|
13582
|
+
if (!(0,_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(getComposedRanges)) {
|
|
13583
|
+
return null;
|
|
13584
|
+
}
|
|
13585
|
+
for(var _i = 0, _iter = [
|
|
13586
|
+
[
|
|
13587
|
+
{
|
|
13588
|
+
shadowRoots: [
|
|
13589
|
+
shadowRoot
|
|
13590
|
+
]
|
|
13591
|
+
}
|
|
13592
|
+
],
|
|
13593
|
+
[
|
|
13594
|
+
shadowRoot
|
|
13595
|
+
]
|
|
13596
|
+
]; _i < _iter.length; _i++){
|
|
13597
|
+
var args = _iter[_i];
|
|
13598
|
+
var ranges = void 0;
|
|
13599
|
+
try {
|
|
13600
|
+
ranges = getComposedRanges.apply(selection, args);
|
|
13601
|
+
} catch (_a) {
|
|
13602
|
+
continue;
|
|
13603
|
+
}
|
|
13604
|
+
if (usable(ranges, shadowRoot)) {
|
|
13605
|
+
return ranges;
|
|
13606
|
+
}
|
|
13607
|
+
}
|
|
13608
|
+
return null;
|
|
13609
|
+
}
|
|
13610
|
+
|
|
13611
|
+
|
|
13541
13612
|
/***/ }),
|
|
13542
13613
|
|
|
13543
13614
|
/***/ 45124:
|
|
13544
13615
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13545
13616
|
|
|
13546
13617
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13618
|
+
/* harmony export */ composedRanges: function() { return /* reexport safe */ _composed_ranges_js__WEBPACK_IMPORTED_MODULE_2__.composedRanges; },
|
|
13547
13619
|
/* harmony export */ cursorInTheEdgeOfString: function() { return /* binding */ cursorInTheEdgeOfString; },
|
|
13548
13620
|
/* harmony export */ findCorrectCurrentNode: function() { return /* binding */ findCorrectCurrentNode; },
|
|
13549
|
-
/* harmony export */ moveNodeInsideStart: function() { return /* reexport safe */
|
|
13621
|
+
/* harmony export */ moveNodeInsideStart: function() { return /* reexport safe */ _move_node_inside_start_js__WEBPACK_IMPORTED_MODULE_3__.moveNodeInsideStart; }
|
|
13550
13622
|
/* harmony export */ });
|
|
13551
13623
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
13552
13624
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
13553
|
-
/* harmony import */ var
|
|
13554
|
-
/* harmony import */ var
|
|
13625
|
+
/* harmony import */ var _composed_ranges_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79505);
|
|
13626
|
+
/* harmony import */ var _move_node_inside_start_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26716);
|
|
13627
|
+
/* harmony import */ var _move_the_node_along_the_edge_outward_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43463);
|
|
13555
13628
|
/*!
|
|
13556
13629
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
13557
13630
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -13562,6 +13635,7 @@ function _ts_generator(thisArg, body) {
|
|
|
13562
13635
|
|
|
13563
13636
|
|
|
13564
13637
|
|
|
13638
|
+
|
|
13565
13639
|
/**
|
|
13566
13640
|
* Despite the name, returns `true` when the cursor is NOT at the checked edge
|
|
13567
13641
|
* of the text node: there is significant (non invisible-space) text between
|
|
@@ -13995,12 +14069,100 @@ var Selection = /*#__PURE__*/ function() {
|
|
|
13995
14069
|
get: /**
|
|
13996
14070
|
* Return current selection object
|
|
13997
14071
|
*/ function get() {
|
|
13998
|
-
|
|
13999
|
-
|
|
14072
|
+
var shadowRoot = this.j.o.shadowRoot;
|
|
14073
|
+
if (shadowRoot) {
|
|
14074
|
+
if ((0,_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_4__.isFunction)(shadowRoot.getSelection)) {
|
|
14075
|
+
return shadowRoot.getSelection();
|
|
14076
|
+
}
|
|
14077
|
+
var composed = this.__composedSelection(shadowRoot);
|
|
14078
|
+
if (composed) {
|
|
14079
|
+
return composed;
|
|
14080
|
+
}
|
|
14000
14081
|
}
|
|
14001
14082
|
return this.win.getSelection();
|
|
14002
14083
|
}
|
|
14003
14084
|
},
|
|
14085
|
+
{
|
|
14086
|
+
/**
|
|
14087
|
+
* Selection of a shadow tree in a browser without `ShadowRoot.getSelection`.
|
|
14088
|
+
*
|
|
14089
|
+
* `ShadowRoot.getSelection()` is a non-standard method that WebKit never
|
|
14090
|
+
* implemented, and `window.getSelection()` stops at the shadow boundary: for
|
|
14091
|
+
* a caret inside the shadow tree it reports the host, or the document
|
|
14092
|
+
* itself. Everything downstream then works on the wrong tree, which is why
|
|
14093
|
+
* Backspace used to throw `HierarchyRequestError` and Enter did nothing when
|
|
14094
|
+
* the editor lived in a shadow root in Safari.
|
|
14095
|
+
*
|
|
14096
|
+
* The standard replacement is `Selection.getComposedRanges()`, which does
|
|
14097
|
+
* reach into a shadow tree it is given. It hands back `StaticRange`s, and
|
|
14098
|
+
* the editor mutates ranges constantly, so they are turned into live ones.
|
|
14099
|
+
*
|
|
14100
|
+
* Reads are answered from those ranges; everything else, including the
|
|
14101
|
+
* writes (`addRange`, `removeAllRanges`, `setBaseAndExtent`), goes to the
|
|
14102
|
+
* real selection, which does accept nodes inside a shadow tree. Reading is
|
|
14103
|
+
* the only side the browser blocks.
|
|
14104
|
+
*
|
|
14105
|
+
* @returns `null` when the browser offers neither API, so the caller falls
|
|
14106
|
+
* back to the plain window selection.
|
|
14107
|
+
*/ key: "__composedSelection",
|
|
14108
|
+
value: function __composedSelection(shadowRoot) {
|
|
14109
|
+
var _this = this;
|
|
14110
|
+
var selection = this.win.getSelection();
|
|
14111
|
+
if (!selection) {
|
|
14112
|
+
return null;
|
|
14113
|
+
}
|
|
14114
|
+
// Firefox has no `ShadowRoot.getSelection` either, but its window
|
|
14115
|
+
// selection does see into a shadow tree. Where the plain selection
|
|
14116
|
+
// already points at the right node there is nothing to work around, and
|
|
14117
|
+
// taking it over would change behaviour that works today.
|
|
14118
|
+
var anchorNode = selection.anchorNode;
|
|
14119
|
+
if (anchorNode && _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(shadowRoot, anchorNode)) {
|
|
14120
|
+
return null;
|
|
14121
|
+
}
|
|
14122
|
+
var ranges = (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_9__.composedRanges)(selection, shadowRoot);
|
|
14123
|
+
if (!ranges) {
|
|
14124
|
+
return null;
|
|
14125
|
+
}
|
|
14126
|
+
var live = ranges.map(function(staticRange) {
|
|
14127
|
+
var range = _this.createRange();
|
|
14128
|
+
range.setStart(staticRange.startContainer, staticRange.startOffset);
|
|
14129
|
+
range.setEnd(staticRange.endContainer, staticRange.endOffset);
|
|
14130
|
+
return range;
|
|
14131
|
+
});
|
|
14132
|
+
var first = live[0];
|
|
14133
|
+
var overrides = {
|
|
14134
|
+
rangeCount: live.length,
|
|
14135
|
+
getRangeAt: function getRangeAt(index) {
|
|
14136
|
+
return live[index];
|
|
14137
|
+
},
|
|
14138
|
+
isCollapsed: live.every(function(range) {
|
|
14139
|
+
return range.collapsed;
|
|
14140
|
+
}),
|
|
14141
|
+
// Without these the editor asks the window selection where the
|
|
14142
|
+
// caret is, is told "outside the editable area", and resets the
|
|
14143
|
+
// caret to the start of it — which is the focus loss that shows up
|
|
14144
|
+
// right after a successful Backspace.
|
|
14145
|
+
anchorNode: first ? first.startContainer : null,
|
|
14146
|
+
anchorOffset: first ? first.startOffset : 0,
|
|
14147
|
+
focusNode: first ? first.endContainer : null,
|
|
14148
|
+
focusOffset: first ? first.endOffset : 0,
|
|
14149
|
+
toString: function toString() {
|
|
14150
|
+
return live.map(function(range) {
|
|
14151
|
+
return range.toString();
|
|
14152
|
+
}).join('');
|
|
14153
|
+
}
|
|
14154
|
+
};
|
|
14155
|
+
return new Proxy(selection, {
|
|
14156
|
+
get: function get(target, property) {
|
|
14157
|
+
if ((0,_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(property) && property in overrides) {
|
|
14158
|
+
return overrides[property];
|
|
14159
|
+
}
|
|
14160
|
+
var value = Reflect.get(target, property, target);
|
|
14161
|
+
return (0,_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_4__.isFunction)(value) ? value.bind(target) : value;
|
|
14162
|
+
}
|
|
14163
|
+
});
|
|
14164
|
+
}
|
|
14165
|
+
},
|
|
14004
14166
|
{
|
|
14005
14167
|
key: "range",
|
|
14006
14168
|
get: /**
|
|
@@ -50693,7 +50855,11 @@ function _wrap_native_super(Class) {
|
|
|
50693
50855
|
window,
|
|
50694
50856
|
this.j.ed,
|
|
50695
50857
|
this.j.editor
|
|
50696
|
-
], 'dragstart.DragAndDrop', this.onDragStart)
|
|
50858
|
+
], 'dragstart.DragAndDrop', this.onDragStart)// Always, not only after a `dragstart` seen in this window: a drop
|
|
50859
|
+
// from another window or application never produces one here, and
|
|
50860
|
+
// the browser then inserted its HTML natively, unsanitized. Routed
|
|
50861
|
+
// through the paste plugin instead. See GHSA-jhhp-r3r7-v2cg
|
|
50862
|
+
.on('drop.DragAndDrop', this.onDrop);
|
|
50697
50863
|
}
|
|
50698
50864
|
},
|
|
50699
50865
|
{
|
|
@@ -50729,13 +50895,13 @@ function _wrap_native_super(Class) {
|
|
|
50729
50895
|
{
|
|
50730
50896
|
key: "addDragListeners",
|
|
50731
50897
|
value: function addDragListeners() {
|
|
50732
|
-
this.j.e.on('dragover', this.onDrag).on(
|
|
50898
|
+
this.j.e.on('dragover', this.onDrag).on(window, 'dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop', this.onDragEnd);
|
|
50733
50899
|
}
|
|
50734
50900
|
},
|
|
50735
50901
|
{
|
|
50736
50902
|
key: "removeDragListeners",
|
|
50737
50903
|
value: function removeDragListeners() {
|
|
50738
|
-
this.j.e.off('dragover', this.onDrag).off(
|
|
50904
|
+
this.j.e.off('dragover', this.onDrag).off(window, 'dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop', this.onDragEnd);
|
|
50739
50905
|
}
|
|
50740
50906
|
},
|
|
50741
50907
|
{
|
|
@@ -50809,7 +50975,12 @@ function _wrap_native_super(Class) {
|
|
|
50809
50975
|
fragment = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
|
|
50810
50976
|
}
|
|
50811
50977
|
} else if (this.getText(event)) {
|
|
50812
|
-
|
|
50978
|
+
// Dropped markup takes the same sanitizing pass as pasted and
|
|
50979
|
+
// assigned content. See GHSA-jhhp-r3r7-v2cg
|
|
50980
|
+
var box = this.j.createInside.div();
|
|
50981
|
+
box.innerHTML = this.getText(event);
|
|
50982
|
+
this.j.e.fire('safeHTML', box);
|
|
50983
|
+
fragment = box.firstChild !== box.lastChild || !box.firstChild ? box : box.firstChild;
|
|
50813
50984
|
}
|
|
50814
50985
|
return fragment;
|
|
50815
50986
|
}
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.17.
|
|
4
|
+
* Version: v4.17.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit-pro - PRO Version of Jodit Editor
|
|
10
10
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
11
|
-
* Version: v4.17.
|
|
11
|
+
* Version: v4.17.2
|
|
12
12
|
* Url: https://xdsoft.net/jodit/pro/
|
|
13
13
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
14
14
|
*/
|