jodit-pro 4.9.22 → 4.9.25
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/CHANGELOG.md +63 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +43 -43
- package/es2015/jodit.js +55 -27
- 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 +193 -161
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +30 -30
- 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/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/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 +28 -28
- package/es2018/jodit.min.js +6 -6
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- 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/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/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 +29 -29
- package/es2021/jodit.js +55 -27
- 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 +194 -162
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- 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/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/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 +83 -83
- package/es2021.en/jodit.js +55 -27
- package/es2021.en/jodit.min.js +8 -8
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +194 -162
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- 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/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/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 +64 -27
- 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 +221 -174
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +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/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/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/esm/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -1
- package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +1 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +7 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +3 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +7 -1
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -1
- package/types/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +1 -1
- package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +7 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +3 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +7 -1
package/es2021/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.9.
|
|
4
|
+
* Version: v4.9.25
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -3395,7 +3395,7 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3395
3395
|
}
|
|
3396
3396
|
/**
|
|
3397
3397
|
* Get temporary list
|
|
3398
|
-
* @deprecated
|
|
3398
|
+
* @deprecated Just do not use it, it is not needed anymore
|
|
3399
3399
|
*/ static temporaryList(root) {
|
|
3400
3400
|
return (0,_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll(`[${_constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR}]`));
|
|
3401
3401
|
}
|
|
@@ -6922,7 +6922,7 @@ let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_9__.U
|
|
|
6922
6922
|
}
|
|
6923
6923
|
onChangeText() {
|
|
6924
6924
|
this.text.textContent = this.jodit.i18n(this.state.text);
|
|
6925
|
-
this.
|
|
6925
|
+
this.updateAriaLabel();
|
|
6926
6926
|
}
|
|
6927
6927
|
onChangeTextSetMode() {
|
|
6928
6928
|
this.setMod('text-icons', Boolean(this.state.text.trim().length));
|
|
@@ -6945,9 +6945,9 @@ let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_9__.U
|
|
|
6945
6945
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'title', i8nTooltip);
|
|
6946
6946
|
}
|
|
6947
6947
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', i8nTooltip);
|
|
6948
|
-
this.
|
|
6948
|
+
this.updateAriaLabel();
|
|
6949
6949
|
}
|
|
6950
|
-
|
|
6950
|
+
updateAriaLabel() {
|
|
6951
6951
|
const hasText = this.state.text.trim().length > 0;
|
|
6952
6952
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
6953
6953
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', i8nTooltip);
|
|
@@ -7430,6 +7430,9 @@ let ToolbarCollection = class ToolbarCollection extends _core_ui_group_list_js__
|
|
|
7430
7430
|
className() {
|
|
7431
7431
|
return 'ToolbarCollection';
|
|
7432
7432
|
}
|
|
7433
|
+
getRole() {
|
|
7434
|
+
return 'toolbar';
|
|
7435
|
+
}
|
|
7433
7436
|
/**
|
|
7434
7437
|
* First button in a list
|
|
7435
7438
|
*/ get firstButton() {
|
|
@@ -13370,16 +13373,21 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.popup = {
|
|
|
13370
13373
|
|
|
13371
13374
|
|
|
13372
13375
|
let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup {
|
|
13373
|
-
|
|
13376
|
+
className() {
|
|
13374
13377
|
return 'UIList';
|
|
13375
13378
|
}
|
|
13379
|
+
getRole() {
|
|
13380
|
+
return 'list';
|
|
13381
|
+
}
|
|
13376
13382
|
__onChangeMode() {
|
|
13377
13383
|
this.setMod('mode', this.mode);
|
|
13378
13384
|
}
|
|
13379
13385
|
/**
|
|
13380
13386
|
* Make new group and append it in list of elements
|
|
13381
|
-
*/ makeGroup() {
|
|
13382
|
-
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit
|
|
13387
|
+
*/ makeGroup(role) {
|
|
13388
|
+
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit, [], role ? {
|
|
13389
|
+
role
|
|
13390
|
+
} : undefined);
|
|
13383
13391
|
}
|
|
13384
13392
|
/**
|
|
13385
13393
|
* All buttons from list
|
|
@@ -13399,7 +13407,7 @@ let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup
|
|
|
13399
13407
|
items = (0,_helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_4__.splitArray)(items);
|
|
13400
13408
|
this.clear();
|
|
13401
13409
|
let lastBtnSeparator = false;
|
|
13402
|
-
let line = this.makeGroup();
|
|
13410
|
+
let line = this.makeGroup('group');
|
|
13403
13411
|
this.append(line);
|
|
13404
13412
|
line.setMod('line', true);
|
|
13405
13413
|
let group;
|
|
@@ -13407,7 +13415,7 @@ let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup
|
|
|
13407
13415
|
let elm = null;
|
|
13408
13416
|
switch(control.name){
|
|
13409
13417
|
case '\n':
|
|
13410
|
-
line = this.makeGroup();
|
|
13418
|
+
line = this.makeGroup('group');
|
|
13411
13419
|
line.setMod('line', true);
|
|
13412
13420
|
group = this.makeGroup();
|
|
13413
13421
|
line.append(group);
|
|
@@ -20455,6 +20463,7 @@ let ToolbarEditorCollection = class ToolbarEditorCollection extends _collection_
|
|
|
20455
20463
|
* @see https://github.com/jodit/jodit-react/issues/138
|
|
20456
20464
|
*/ prependInvisibleInput(container) {
|
|
20457
20465
|
const input = this.j.create.element('input', {
|
|
20466
|
+
name: 'jodit-toolbar-focus-helper_' + this.j.id,
|
|
20458
20467
|
tabIndex: -1,
|
|
20459
20468
|
disabled: true,
|
|
20460
20469
|
style: 'width: 0; height:0; position: absolute; visibility: hidden;'
|
|
@@ -25242,7 +25251,8 @@ var UIElement_1;
|
|
|
25242
25251
|
|
|
25243
25252
|
let UIElement = UIElement_1 = class UIElement extends _component_index_js__WEBPACK_IMPORTED_MODULE_0__.ViewComponent {
|
|
25244
25253
|
getRole() {
|
|
25245
|
-
|
|
25254
|
+
var _a;
|
|
25255
|
+
return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.role) || '';
|
|
25246
25256
|
}
|
|
25247
25257
|
get parentElement() {
|
|
25248
25258
|
return this.__parentElement;
|
|
@@ -25339,11 +25349,12 @@ let UIElement = UIElement_1 = class UIElement extends _component_index_js__WEBPA
|
|
|
25339
25349
|
this.parentElement = null;
|
|
25340
25350
|
return super.destruct();
|
|
25341
25351
|
}
|
|
25342
|
-
|
|
25352
|
+
constructor(jodit, options){
|
|
25343
25353
|
super(jodit);
|
|
25344
25354
|
this.name = '';
|
|
25345
25355
|
this.__parentElement = null;
|
|
25346
25356
|
this.mods = {};
|
|
25357
|
+
this.options = options;
|
|
25347
25358
|
this.container = this.createContainer(options);
|
|
25348
25359
|
const role = this.getRole();
|
|
25349
25360
|
role && (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(this.container, 'role', role);
|
|
@@ -32646,7 +32657,8 @@ let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
32646
32657
|
return 'UIGroup';
|
|
32647
32658
|
}
|
|
32648
32659
|
getRole() {
|
|
32649
|
-
|
|
32660
|
+
var _a;
|
|
32661
|
+
return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.role) || 'list';
|
|
32650
32662
|
}
|
|
32651
32663
|
/**
|
|
32652
32664
|
* All group children
|
|
@@ -40393,6 +40405,13 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
40393
40405
|
getRole() {
|
|
40394
40406
|
return 'listitem';
|
|
40395
40407
|
}
|
|
40408
|
+
updateAriaLabel() {
|
|
40409
|
+
super.updateAriaLabel();
|
|
40410
|
+
if (this.trigger) {
|
|
40411
|
+
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
40412
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
40413
|
+
}
|
|
40414
|
+
}
|
|
40396
40415
|
/**
|
|
40397
40416
|
* Get parent toolbar
|
|
40398
40417
|
*/ get toolbar() {
|
|
@@ -40466,7 +40485,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
40466
40485
|
value: this
|
|
40467
40486
|
});
|
|
40468
40487
|
container.appendChild(button);
|
|
40469
|
-
const trigger = this.j.c.fromHTML(`<span role="
|
|
40488
|
+
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_18__.Icon.get('chevron')}</span>`);
|
|
40470
40489
|
// For caching
|
|
40471
40490
|
button.appendChild(trigger);
|
|
40472
40491
|
return container;
|
|
@@ -40525,6 +40544,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
40525
40544
|
return;
|
|
40526
40545
|
}
|
|
40527
40546
|
const { control: ctr } = this;
|
|
40547
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.trigger, 'aria-expanded', true);
|
|
40528
40548
|
e.buffer = {
|
|
40529
40549
|
actionTrigger: this
|
|
40530
40550
|
};
|
|
@@ -40638,6 +40658,9 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
40638
40658
|
this.openedPopup.close();
|
|
40639
40659
|
this.openedPopup.destruct();
|
|
40640
40660
|
this.openedPopup = null;
|
|
40661
|
+
if (this.trigger) {
|
|
40662
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.trigger, 'aria-expanded', false);
|
|
40663
|
+
}
|
|
40641
40664
|
}
|
|
40642
40665
|
}
|
|
40643
40666
|
/**
|
|
@@ -44455,7 +44478,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44455
44478
|
* ```
|
|
44456
44479
|
* @packageDocumentation
|
|
44457
44480
|
* @module constants
|
|
44458
|
-
*/ const APP_VERSION = "4.9.
|
|
44481
|
+
*/ const APP_VERSION = "4.9.25";
|
|
44459
44482
|
// prettier-ignore
|
|
44460
44483
|
const ES = "es2021";
|
|
44461
44484
|
const IS_ES_MODERN = true;
|
|
@@ -45106,11 +45129,13 @@ ToolbarSelect = __decorate([
|
|
|
45106
45129
|
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
45107
45130
|
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
45108
45131
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
|
|
45109
|
-
/* harmony import */ var
|
|
45110
|
-
/* harmony import */ var
|
|
45111
|
-
/* harmony import */ var
|
|
45112
|
-
/* harmony import */ var
|
|
45113
|
-
/* harmony import */ var
|
|
45132
|
+
/* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49055);
|
|
45133
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29960);
|
|
45134
|
+
/* harmony import */ var _core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76078);
|
|
45135
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50911);
|
|
45136
|
+
/* harmony import */ var _modules_context_menu_context_menu_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80870);
|
|
45137
|
+
/* harmony import */ var _modules_toolbar_factory_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(21491);
|
|
45138
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(86012);
|
|
45114
45139
|
/*!
|
|
45115
45140
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
45116
45141
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -45123,12 +45148,15 @@ ToolbarSelect = __decorate([
|
|
|
45123
45148
|
|
|
45124
45149
|
|
|
45125
45150
|
|
|
45151
|
+
|
|
45152
|
+
|
|
45126
45153
|
/**
|
|
45127
45154
|
* Show a path to a current element in status bar
|
|
45128
|
-
*/ class xpath extends
|
|
45155
|
+
*/ class xpath extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
45129
45156
|
afterInit() {
|
|
45130
45157
|
if (this.j.o.showXPathInStatusbar) {
|
|
45131
45158
|
this.container = this.j.c.div('jodit-xpath');
|
|
45159
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(this.container, 'role', 'list');
|
|
45132
45160
|
const init = ()=>{
|
|
45133
45161
|
if (!this.j.o.showXPathInStatusbar || !this.container) {
|
|
45134
45162
|
return;
|
|
@@ -45143,7 +45171,7 @@ ToolbarSelect = __decorate([
|
|
|
45143
45171
|
this.appendSelectAll();
|
|
45144
45172
|
}
|
|
45145
45173
|
};
|
|
45146
|
-
this.j.e.off('.xpath').on('
|
|
45174
|
+
this.j.e.off('.xpath').on('pointerup.xpath change.xpath keydown.xpath changeSelection.xpath', this.calcPath).on('afterSetMode.xpath afterInit.xpath changePlace.xpath', init);
|
|
45147
45175
|
init();
|
|
45148
45176
|
this.calcPath();
|
|
45149
45177
|
}
|
|
@@ -45162,7 +45190,7 @@ ToolbarSelect = __decorate([
|
|
|
45162
45190
|
super(...arguments);
|
|
45163
45191
|
this.onContext = (bindElement, event)=>{
|
|
45164
45192
|
if (!this.menu) {
|
|
45165
|
-
this.menu = new
|
|
45193
|
+
this.menu = new _modules_context_menu_context_menu_js__WEBPACK_IMPORTED_MODULE_7__.ContextMenu(this.j);
|
|
45166
45194
|
}
|
|
45167
45195
|
this.menu.show(event.clientX, event.clientY, [
|
|
45168
45196
|
{
|
|
@@ -45189,7 +45217,7 @@ ToolbarSelect = __decorate([
|
|
|
45189
45217
|
};
|
|
45190
45218
|
this.onSelectPath = (bindElement, event)=>{
|
|
45191
45219
|
this.j.s.focus();
|
|
45192
|
-
const path = (0,
|
|
45220
|
+
const path = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_4__.attr)(event.target, '-path') || '/';
|
|
45193
45221
|
if (path === '/') {
|
|
45194
45222
|
this.j.execCommand('selectall');
|
|
45195
45223
|
return false;
|
|
@@ -45205,7 +45233,7 @@ ToolbarSelect = __decorate([
|
|
|
45205
45233
|
return false;
|
|
45206
45234
|
};
|
|
45207
45235
|
this.tpl = (bindElement, path, name, title)=>{
|
|
45208
|
-
const item = this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${path}" title="${title}" tabindex="-1"'>${(0,
|
|
45236
|
+
const item = this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${path}" title="${title}" tabindex="-1"'>${(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__.trim)(name)}</a></span>`);
|
|
45209
45237
|
const a = item.firstChild;
|
|
45210
45238
|
this.j.e.on(a, 'click', this.onSelectPath.bind(this, bindElement)).on(a, 'contextmenu', this.onContext.bind(this, bindElement));
|
|
45211
45239
|
return item;
|
|
@@ -45218,7 +45246,7 @@ ToolbarSelect = __decorate([
|
|
|
45218
45246
|
};
|
|
45219
45247
|
this.appendSelectAll = ()=>{
|
|
45220
45248
|
this.removeSelectAll();
|
|
45221
|
-
this.selectAllButton = (0,
|
|
45249
|
+
this.selectAllButton = (0,_modules_toolbar_factory_js__WEBPACK_IMPORTED_MODULE_8__.makeButton)(this.j, {
|
|
45222
45250
|
name: 'selectall',
|
|
45223
45251
|
...this.j.o.controls.selectall
|
|
45224
45252
|
});
|
|
@@ -45238,7 +45266,7 @@ ToolbarSelect = __decorate([
|
|
|
45238
45266
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.up(current, (elm)=>{
|
|
45239
45267
|
if (elm && this.j.editor !== elm && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(elm) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isComment(elm)) {
|
|
45240
45268
|
name = elm.nodeName.toLowerCase();
|
|
45241
|
-
xpth = (0,
|
|
45269
|
+
xpth = (0,_core_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_5__.getXPathByElement)(elm, this.j.editor).replace(/^\//, '');
|
|
45242
45270
|
li = this.tpl(elm, xpth, name, this.j.i18n('Select %s', name));
|
|
45243
45271
|
this.container && this.container.insertBefore(li, this.container.firstChild);
|
|
45244
45272
|
}
|