jodit-pro 4.15.11 → 4.15.13
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 +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +13 -13
- package/es2015/jodit.js +262 -13
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +10 -10
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +10 -10
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +8 -8
- 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 +2 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +12 -12
- package/es2021/jodit.js +262 -13
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +10 -10
- 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 +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +10 -10
- package/es2021.en/jodit.js +262 -13
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +11 -11
- 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 +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +463 -13
- package/es5/jodit.min.css +3 -3
- 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/es2015/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.15.
|
|
4
|
+
* Version: v4.15.13
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1771,7 +1771,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1771
1771
|
* ```
|
|
1772
1772
|
* @packageDocumentation
|
|
1773
1773
|
* @module constants
|
|
1774
|
-
*/ const APP_VERSION = "4.15.
|
|
1774
|
+
*/ const APP_VERSION = "4.15.13";
|
|
1775
1775
|
// prettier-ignore
|
|
1776
1776
|
const ES = "es2015";
|
|
1777
1777
|
const IS_ES_MODERN = true;
|
|
@@ -1822,6 +1822,8 @@ const KEY_TAB = 'Tab';
|
|
|
1822
1822
|
const KEY_ENTER = 'Enter';
|
|
1823
1823
|
const KEY_ESC = 'Escape';
|
|
1824
1824
|
const KEY_ALT = 'Alt';
|
|
1825
|
+
const KEY_HOME = 'Home';
|
|
1826
|
+
const KEY_END = 'End';
|
|
1825
1827
|
const KEY_LEFT = 'ArrowLeft';
|
|
1826
1828
|
const KEY_UP = 'ArrowUp';
|
|
1827
1829
|
const KEY_RIGHT = 'ArrowRight';
|
|
@@ -2015,9 +2017,11 @@ const PASSIVE_EVENTS = new Set([
|
|
|
2015
2017
|
/* harmony export */ "KEY_BACKSPACE", 0, /* binding */ KEY_BACKSPACE,
|
|
2016
2018
|
/* harmony export */ "KEY_DELETE", 0, /* binding */ KEY_DELETE,
|
|
2017
2019
|
/* harmony export */ "KEY_DOWN", 0, /* binding */ KEY_DOWN,
|
|
2020
|
+
/* harmony export */ "KEY_END", 0, /* binding */ KEY_END,
|
|
2018
2021
|
/* harmony export */ "KEY_ENTER", 0, /* binding */ KEY_ENTER,
|
|
2019
2022
|
/* harmony export */ "KEY_ESC", 0, /* binding */ KEY_ESC,
|
|
2020
2023
|
/* harmony export */ "KEY_F3", 0, /* binding */ KEY_F3,
|
|
2024
|
+
/* harmony export */ "KEY_HOME", 0, /* binding */ KEY_HOME,
|
|
2021
2025
|
/* harmony export */ "KEY_LEFT", 0, /* binding */ KEY_LEFT,
|
|
2022
2026
|
/* harmony export */ "KEY_META", 0, /* binding */ KEY_META,
|
|
2023
2027
|
/* harmony export */ "KEY_RIGHT", 0, /* binding */ KEY_RIGHT,
|
|
@@ -11532,10 +11536,31 @@ class Selection {
|
|
|
11532
11536
|
if (!_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.up(node, (elm)=>elm === this.area || elm && elm.parentNode === this.area, this.area)) {
|
|
11533
11537
|
throw (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.error)('Node element must be in editor');
|
|
11534
11538
|
}
|
|
11539
|
+
const target = !inward && this.__closestNotEditable(node) || node;
|
|
11535
11540
|
const range = this.createRange();
|
|
11536
|
-
range[inward ||
|
|
11541
|
+
range[inward || target === this.area ? 'selectNodeContents' : 'selectNode'](target);
|
|
11537
11542
|
return this.selectRange(range);
|
|
11538
11543
|
}
|
|
11544
|
+
/**
|
|
11545
|
+
* The outermost `contenteditable="false"` ancestor of the node inside the
|
|
11546
|
+
* editable area, if there is one.
|
|
11547
|
+
*
|
|
11548
|
+
* A range can be put inside such an island (e.g. on an `<img>` wrapped in a
|
|
11549
|
+
* `<picture contenteditable="false">`), but the browser cannot place a caret
|
|
11550
|
+
* there: the arrow keys then have nothing to move from and the selection
|
|
11551
|
+
* cannot be escaped. Selecting the island itself keeps the range in editable
|
|
11552
|
+
* content, so the caret can step over it. See #1184
|
|
11553
|
+
*/ __closestNotEditable(node) {
|
|
11554
|
+
const { area } = this;
|
|
11555
|
+
let result = null, elm = node.parentNode;
|
|
11556
|
+
while(elm && elm !== area && area.contains(elm)){
|
|
11557
|
+
if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(elm) && elm.getAttribute('contenteditable') === 'false') {
|
|
11558
|
+
result = elm;
|
|
11559
|
+
}
|
|
11560
|
+
elm = elm.parentNode;
|
|
11561
|
+
}
|
|
11562
|
+
return result;
|
|
11563
|
+
}
|
|
11539
11564
|
/**
|
|
11540
11565
|
* Return current selected HTML
|
|
11541
11566
|
* @example
|
|
@@ -18309,13 +18334,20 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
|
|
|
18309
18334
|
/**
|
|
18310
18335
|
* Return source element value
|
|
18311
18336
|
*/ getElementValue() {
|
|
18337
|
+
if (this.element === this.container && this.__inlineElementValue !== undefined) {
|
|
18338
|
+
return this.__inlineElementValue;
|
|
18339
|
+
}
|
|
18312
18340
|
return this.element.value !== undefined ? this.element.value : this.element.innerHTML;
|
|
18313
18341
|
}
|
|
18314
18342
|
__setElementValue(value) {
|
|
18315
18343
|
if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(value)) {
|
|
18316
18344
|
throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.error)('value must be string');
|
|
18317
18345
|
}
|
|
18318
|
-
if (this.element
|
|
18346
|
+
if (this.element === this.container) {
|
|
18347
|
+
this.__inlineElementValue = value;
|
|
18348
|
+
return;
|
|
18349
|
+
}
|
|
18350
|
+
if (value !== this.getElementValue()) {
|
|
18319
18351
|
const data = {
|
|
18320
18352
|
value
|
|
18321
18353
|
};
|
|
@@ -30893,6 +30925,19 @@ function _object_spread_props(target, source) {
|
|
|
30893
30925
|
|
|
30894
30926
|
|
|
30895
30927
|
|
|
30928
|
+
const INPUT_TAGS = new Set([
|
|
30929
|
+
'input',
|
|
30930
|
+
'textarea',
|
|
30931
|
+
'select'
|
|
30932
|
+
]);
|
|
30933
|
+
const FOCUSABLE_SELECTOR = [
|
|
30934
|
+
'button:not([disabled])',
|
|
30935
|
+
'a[href]',
|
|
30936
|
+
'input:not([disabled]):not([type="hidden"])',
|
|
30937
|
+
'select:not([disabled])',
|
|
30938
|
+
'textarea:not([disabled])',
|
|
30939
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
30940
|
+
].join(',');
|
|
30896
30941
|
let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__.UIButton {
|
|
30897
30942
|
className() {
|
|
30898
30943
|
return 'ToolbarButton';
|
|
@@ -31086,7 +31131,14 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
31086
31131
|
}
|
|
31087
31132
|
}
|
|
31088
31133
|
onTriggerKeyDown(e) {
|
|
31089
|
-
if (this.state.disabled
|
|
31134
|
+
if (this.state.disabled) {
|
|
31135
|
+
return;
|
|
31136
|
+
}
|
|
31137
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN) {
|
|
31138
|
+
this.onButtonKeyDown(e);
|
|
31139
|
+
return;
|
|
31140
|
+
}
|
|
31141
|
+
if (![
|
|
31090
31142
|
_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_ENTER,
|
|
31091
31143
|
_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_SPACE,
|
|
31092
31144
|
' '
|
|
@@ -31096,6 +31148,66 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
31096
31148
|
e.preventDefault();
|
|
31097
31149
|
this.trigger.click();
|
|
31098
31150
|
}
|
|
31151
|
+
/**
|
|
31152
|
+
* `ArrowDown` on a button with a trigger opens its dropdown and moves the
|
|
31153
|
+
* focus into it, like the WAI-ARIA menu button pattern
|
|
31154
|
+
*/ onButtonKeyDown(e) {
|
|
31155
|
+
var _a;
|
|
31156
|
+
if (e.key !== _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN || this.state.disabled || !this.state.hasTrigger || e.altKey || e.ctrlKey || e.metaKey) {
|
|
31157
|
+
return;
|
|
31158
|
+
}
|
|
31159
|
+
e.preventDefault();
|
|
31160
|
+
e.stopPropagation();
|
|
31161
|
+
if (!this.openedPopup) {
|
|
31162
|
+
this.trigger.click();
|
|
31163
|
+
}
|
|
31164
|
+
(_a = this.__popupFocusables()[0]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
31165
|
+
}
|
|
31166
|
+
/**
|
|
31167
|
+
* Inside the dropdown: `ArrowDown`/`ArrowUp` walk the items, `Escape` and
|
|
31168
|
+
* `ArrowUp` on the first item close it and give the focus back to the button
|
|
31169
|
+
*/ __onPopupKeyDown(e) {
|
|
31170
|
+
if (!this.openedPopup || e.altKey || e.ctrlKey || e.metaKey) {
|
|
31171
|
+
return;
|
|
31172
|
+
}
|
|
31173
|
+
const target = e.target;
|
|
31174
|
+
// A text field keeps the arrow keys for itself
|
|
31175
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.isTag(target, INPUT_TAGS) && e.key !== _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_ESC) {
|
|
31176
|
+
return;
|
|
31177
|
+
}
|
|
31178
|
+
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
31179
|
+
switch(e.key){
|
|
31180
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_ESC:
|
|
31181
|
+
this.__closePopup();
|
|
31182
|
+
break;
|
|
31183
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_UP:
|
|
31184
|
+
if (index <= 0) {
|
|
31185
|
+
this.__closePopup();
|
|
31186
|
+
} else {
|
|
31187
|
+
items[index - 1].focus();
|
|
31188
|
+
}
|
|
31189
|
+
break;
|
|
31190
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN:
|
|
31191
|
+
if (!items.length) {
|
|
31192
|
+
return;
|
|
31193
|
+
}
|
|
31194
|
+
items[(index + 1) % items.length].focus();
|
|
31195
|
+
break;
|
|
31196
|
+
default:
|
|
31197
|
+
return;
|
|
31198
|
+
}
|
|
31199
|
+
e.preventDefault();
|
|
31200
|
+
e.stopPropagation();
|
|
31201
|
+
}
|
|
31202
|
+
/**
|
|
31203
|
+
* Visible controls of the opened dropdown that can take the focus
|
|
31204
|
+
*/ __popupFocusables() {
|
|
31205
|
+
const popup = this.openedPopup;
|
|
31206
|
+
if (!popup) {
|
|
31207
|
+
return [];
|
|
31208
|
+
}
|
|
31209
|
+
return Array.from(popup.container.querySelectorAll(FOCUSABLE_SELECTOR)).filter((elm)=>Boolean(elm.offsetParent));
|
|
31210
|
+
}
|
|
31099
31211
|
/**
|
|
31100
31212
|
* Create an open popup list
|
|
31101
31213
|
*/ __openControlList(control) {
|
|
@@ -31165,7 +31277,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
31165
31277
|
openPopup() {
|
|
31166
31278
|
this.__closePopup();
|
|
31167
31279
|
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_20__.Popup(this.j, false);
|
|
31168
|
-
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
|
|
31280
|
+
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick).on(this.openedPopup.container, 'keydown', this.__onPopupKeyDown);
|
|
31169
31281
|
return this.openedPopup;
|
|
31170
31282
|
}
|
|
31171
31283
|
__closePopup() {
|
|
@@ -31181,12 +31293,18 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
31181
31293
|
// throws NotFoundError. See #1458
|
|
31182
31294
|
this.openedPopup = null;
|
|
31183
31295
|
this.j.e.off(this.ow, 'mousedown touchstart', this.onOutsideClick).off('escape closeAllPopups', this.onOutsideClick);
|
|
31296
|
+
// The keyboard brought the focus into the dropdown: give it back to
|
|
31297
|
+
// the button, otherwise it would fall out to the document
|
|
31298
|
+
const { activeElement } = this.od, hadFocus = activeElement && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(popup.container, activeElement);
|
|
31184
31299
|
this.state.activated = false;
|
|
31185
31300
|
popup.close();
|
|
31186
31301
|
popup.destruct();
|
|
31187
31302
|
if (this.trigger) {
|
|
31188
31303
|
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'aria-expanded', false);
|
|
31189
31304
|
}
|
|
31305
|
+
if (hadFocus) {
|
|
31306
|
+
this.focus();
|
|
31307
|
+
}
|
|
31190
31308
|
}
|
|
31191
31309
|
/**
|
|
31192
31310
|
* Click handler
|
|
@@ -31281,6 +31399,12 @@ __decorate([
|
|
|
31281
31399
|
__decorate([
|
|
31282
31400
|
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('trigger:keydown')
|
|
31283
31401
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
31402
|
+
__decorate([
|
|
31403
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('button:keydown')
|
|
31404
|
+
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
31405
|
+
__decorate([
|
|
31406
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
31407
|
+
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
31284
31408
|
__decorate([
|
|
31285
31409
|
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
31286
31410
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
@@ -33811,11 +33935,12 @@ UiAiAssistant = __decorate([
|
|
|
33811
33935
|
/* harmony import */ var _tab_tab_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(767);
|
|
33812
33936
|
/* harmony import */ var _table_table_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(43003);
|
|
33813
33937
|
/* harmony import */ var _table_keyboard_navigation_table_keyboard_navigation_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(72439);
|
|
33814
|
-
/* harmony import */ var
|
|
33815
|
-
/* harmony import */ var
|
|
33816
|
-
/* harmony import */ var
|
|
33817
|
-
/* harmony import */ var
|
|
33818
|
-
/* harmony import */ var
|
|
33938
|
+
/* harmony import */ var _toolbar_navigation_toolbar_navigation_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(94529);
|
|
33939
|
+
/* harmony import */ var _video_video_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(26551);
|
|
33940
|
+
/* harmony import */ var _wrap_nodes_wrap_nodes_js__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(72253);
|
|
33941
|
+
/* harmony import */ var _dtd_dtd_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(65735);
|
|
33942
|
+
/* harmony import */ var _xpath_xpath_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(83671);
|
|
33943
|
+
/* harmony import */ var _speech_recognize_speech_recognize_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(3115);
|
|
33819
33944
|
/*!
|
|
33820
33945
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33821
33946
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33885,6 +34010,7 @@ UiAiAssistant = __decorate([
|
|
|
33885
34010
|
|
|
33886
34011
|
|
|
33887
34012
|
|
|
34013
|
+
|
|
33888
34014
|
|
|
33889
34015
|
|
|
33890
34016
|
// JODIT-START:FAT
|
|
@@ -41871,8 +41997,9 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
41871
41997
|
/* harmony import */ var _size_size_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(45927);
|
|
41872
41998
|
/* harmony import */ var _stat_stat_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(7309);
|
|
41873
41999
|
/* harmony import */ var _table_table_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(43003);
|
|
41874
|
-
/* harmony import */ var
|
|
41875
|
-
/* harmony import */ var
|
|
42000
|
+
/* harmony import */ var _toolbar_navigation_toolbar_navigation_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(94529);
|
|
42001
|
+
/* harmony import */ var _wrap_nodes_wrap_nodes_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(72253);
|
|
42002
|
+
/* harmony import */ var _dtd_dtd_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(65735);
|
|
41876
42003
|
/*!
|
|
41877
42004
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41878
42005
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41904,6 +42031,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
41904
42031
|
|
|
41905
42032
|
|
|
41906
42033
|
|
|
42034
|
+
|
|
41907
42035
|
|
|
41908
42036
|
|
|
41909
42037
|
/***/ }),
|
|
@@ -52881,6 +53009,127 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('table', table);
|
|
|
52881
53009
|
/* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <g fill=\"none\"> <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2.5\"/><path d=\"M3 9h18M3 15h18M9 3v18M15 3v18\"/> </g> </svg> ");
|
|
52882
53010
|
|
|
52883
53011
|
|
|
53012
|
+
/***/ }),
|
|
53013
|
+
|
|
53014
|
+
/***/ 94529:
|
|
53015
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
53016
|
+
|
|
53017
|
+
/* unused harmony export toolbarNavigation */
|
|
53018
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
53019
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
53020
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37133);
|
|
53021
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2748);
|
|
53022
|
+
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(580);
|
|
53023
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
53024
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50911);
|
|
53025
|
+
/*!
|
|
53026
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
53027
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
53028
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
53029
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
53030
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
53031
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
53032
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
53033
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
53034
|
+
};
|
|
53035
|
+
|
|
53036
|
+
|
|
53037
|
+
|
|
53038
|
+
|
|
53039
|
+
|
|
53040
|
+
|
|
53041
|
+
|
|
53042
|
+
const INPUT_TAGS = new Set([
|
|
53043
|
+
'input',
|
|
53044
|
+
'textarea',
|
|
53045
|
+
'select'
|
|
53046
|
+
]);
|
|
53047
|
+
/**
|
|
53048
|
+
* Makes the toolbar reachable from the keyboard, as described by the WAI-ARIA
|
|
53049
|
+
* authoring practices for a `role="toolbar"` widget.
|
|
53050
|
+
*
|
|
53051
|
+
* The focus is moved programmatically, so this works whatever
|
|
53052
|
+
* {@link Config.allowTabNavigation} does with the tab order — including the
|
|
53053
|
+
* default, where the buttons take no part in the page tab order.
|
|
53054
|
+
*/ class toolbarNavigation extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
53055
|
+
/** @override */ afterInit(jodit) {
|
|
53056
|
+
jodit.registerCommand('focusToolbar', {
|
|
53057
|
+
hotkeys: 'alt+f10',
|
|
53058
|
+
exec: this.focusToolbar
|
|
53059
|
+
});
|
|
53060
|
+
}
|
|
53061
|
+
/** @override */ beforeDestruct() {}
|
|
53062
|
+
/**
|
|
53063
|
+
* Moves the focus to the first button of the toolbar.
|
|
53064
|
+
*
|
|
53065
|
+
* Bound to `Alt+F10` by default; remap it like any other command:
|
|
53066
|
+
* `commandToHotkeys: { focusToolbar: 'alt+0' }`
|
|
53067
|
+
*/ focusToolbar() {
|
|
53068
|
+
const [first] = this.__buttons();
|
|
53069
|
+
first === null || first === void 0 ? void 0 : first.focus();
|
|
53070
|
+
return false;
|
|
53071
|
+
}
|
|
53072
|
+
/**
|
|
53073
|
+
* Arrow keys / `Home` / `End` walk the buttons, `Escape` leaves the toolbar
|
|
53074
|
+
*/ onKeyDown(e) {
|
|
53075
|
+
if (e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey) {
|
|
53076
|
+
return;
|
|
53077
|
+
}
|
|
53078
|
+
const target = e.target;
|
|
53079
|
+
// A control that needs the arrow keys for itself
|
|
53080
|
+
if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_3__.Dom.isTag(target, INPUT_TAGS) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_3__.Dom.isHTMLElement(target) && target.isContentEditable) {
|
|
53081
|
+
return;
|
|
53082
|
+
}
|
|
53083
|
+
const buttons = this.__buttons();
|
|
53084
|
+
if (!buttons.length) {
|
|
53085
|
+
return;
|
|
53086
|
+
}
|
|
53087
|
+
switch(e.key){
|
|
53088
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC:
|
|
53089
|
+
this.j.s.focus();
|
|
53090
|
+
break;
|
|
53091
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_HOME:
|
|
53092
|
+
buttons[0].focus();
|
|
53093
|
+
break;
|
|
53094
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_END:
|
|
53095
|
+
buttons[buttons.length - 1].focus();
|
|
53096
|
+
break;
|
|
53097
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT:
|
|
53098
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT:
|
|
53099
|
+
{
|
|
53100
|
+
const index = buttons.findIndex((button)=>button.container.contains(target));
|
|
53101
|
+
if (index === -1) {
|
|
53102
|
+
return;
|
|
53103
|
+
}
|
|
53104
|
+
const forward = e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT !== this.__isRtl(), next = index + (forward ? 1 : -1);
|
|
53105
|
+
buttons[(next + buttons.length) % buttons.length].focus();
|
|
53106
|
+
break;
|
|
53107
|
+
}
|
|
53108
|
+
default:
|
|
53109
|
+
return;
|
|
53110
|
+
}
|
|
53111
|
+
e.preventDefault();
|
|
53112
|
+
e.stopPropagation();
|
|
53113
|
+
return false;
|
|
53114
|
+
}
|
|
53115
|
+
/**
|
|
53116
|
+
* Toolbar buttons that can take the focus right now
|
|
53117
|
+
*/ __buttons() {
|
|
53118
|
+
return this.j.toolbar.buttons.filter((button)=>!button.state.disabled && button.container.isConnected);
|
|
53119
|
+
}
|
|
53120
|
+
__isRtl() {
|
|
53121
|
+
return (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(this.j.toolbar.container, 'dir') === 'rtl';
|
|
53122
|
+
}
|
|
53123
|
+
}
|
|
53124
|
+
__decorate([
|
|
53125
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
53126
|
+
], toolbarNavigation.prototype, "focusToolbar", null);
|
|
53127
|
+
__decorate([
|
|
53128
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_2__.watch)('j.toolbar.container:keydown.toolbar-navigation')
|
|
53129
|
+
], toolbarNavigation.prototype, "onKeyDown", null);
|
|
53130
|
+
_core_global_js__WEBPACK_IMPORTED_MODULE_4__.pluginSystem.add('toolbarNavigation', toolbarNavigation);
|
|
53131
|
+
|
|
53132
|
+
|
|
52884
53133
|
/***/ }),
|
|
52885
53134
|
|
|
52886
53135
|
/***/ 14984:
|