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/es2021.en/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
|
*/
|
|
@@ -1723,7 +1723,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1723
1723
|
* ```
|
|
1724
1724
|
* @packageDocumentation
|
|
1725
1725
|
* @module constants
|
|
1726
|
-
*/ const APP_VERSION = "4.15.
|
|
1726
|
+
*/ const APP_VERSION = "4.15.13";
|
|
1727
1727
|
// prettier-ignore
|
|
1728
1728
|
const ES = "es2021";
|
|
1729
1729
|
const IS_ES_MODERN = true;
|
|
@@ -1774,6 +1774,8 @@ const KEY_TAB = 'Tab';
|
|
|
1774
1774
|
const KEY_ENTER = 'Enter';
|
|
1775
1775
|
const KEY_ESC = 'Escape';
|
|
1776
1776
|
const KEY_ALT = 'Alt';
|
|
1777
|
+
const KEY_HOME = 'Home';
|
|
1778
|
+
const KEY_END = 'End';
|
|
1777
1779
|
const KEY_LEFT = 'ArrowLeft';
|
|
1778
1780
|
const KEY_UP = 'ArrowUp';
|
|
1779
1781
|
const KEY_RIGHT = 'ArrowRight';
|
|
@@ -1967,9 +1969,11 @@ const PASSIVE_EVENTS = new Set([
|
|
|
1967
1969
|
/* harmony export */ "KEY_BACKSPACE", 0, /* binding */ KEY_BACKSPACE,
|
|
1968
1970
|
/* harmony export */ "KEY_DELETE", 0, /* binding */ KEY_DELETE,
|
|
1969
1971
|
/* harmony export */ "KEY_DOWN", 0, /* binding */ KEY_DOWN,
|
|
1972
|
+
/* harmony export */ "KEY_END", 0, /* binding */ KEY_END,
|
|
1970
1973
|
/* harmony export */ "KEY_ENTER", 0, /* binding */ KEY_ENTER,
|
|
1971
1974
|
/* harmony export */ "KEY_ESC", 0, /* binding */ KEY_ESC,
|
|
1972
1975
|
/* harmony export */ "KEY_F3", 0, /* binding */ KEY_F3,
|
|
1976
|
+
/* harmony export */ "KEY_HOME", 0, /* binding */ KEY_HOME,
|
|
1973
1977
|
/* harmony export */ "KEY_LEFT", 0, /* binding */ KEY_LEFT,
|
|
1974
1978
|
/* harmony export */ "KEY_META", 0, /* binding */ KEY_META,
|
|
1975
1979
|
/* harmony export */ "KEY_RIGHT", 0, /* binding */ KEY_RIGHT,
|
|
@@ -11289,10 +11293,31 @@ class Selection {
|
|
|
11289
11293
|
if (!_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.up(node, (elm)=>elm === this.area || elm && elm.parentNode === this.area, this.area)) {
|
|
11290
11294
|
throw (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.error)('Node element must be in editor');
|
|
11291
11295
|
}
|
|
11296
|
+
const target = !inward && this.__closestNotEditable(node) || node;
|
|
11292
11297
|
const range = this.createRange();
|
|
11293
|
-
range[inward ||
|
|
11298
|
+
range[inward || target === this.area ? 'selectNodeContents' : 'selectNode'](target);
|
|
11294
11299
|
return this.selectRange(range);
|
|
11295
11300
|
}
|
|
11301
|
+
/**
|
|
11302
|
+
* The outermost `contenteditable="false"` ancestor of the node inside the
|
|
11303
|
+
* editable area, if there is one.
|
|
11304
|
+
*
|
|
11305
|
+
* A range can be put inside such an island (e.g. on an `<img>` wrapped in a
|
|
11306
|
+
* `<picture contenteditable="false">`), but the browser cannot place a caret
|
|
11307
|
+
* there: the arrow keys then have nothing to move from and the selection
|
|
11308
|
+
* cannot be escaped. Selecting the island itself keeps the range in editable
|
|
11309
|
+
* content, so the caret can step over it. See #1184
|
|
11310
|
+
*/ __closestNotEditable(node) {
|
|
11311
|
+
const { area } = this;
|
|
11312
|
+
let result = null, elm = node.parentNode;
|
|
11313
|
+
while(elm && elm !== area && area.contains(elm)){
|
|
11314
|
+
if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(elm) && elm.getAttribute('contenteditable') === 'false') {
|
|
11315
|
+
result = elm;
|
|
11316
|
+
}
|
|
11317
|
+
elm = elm.parentNode;
|
|
11318
|
+
}
|
|
11319
|
+
return result;
|
|
11320
|
+
}
|
|
11296
11321
|
/**
|
|
11297
11322
|
* Return current selected HTML
|
|
11298
11323
|
* @example
|
|
@@ -17625,13 +17650,20 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
|
|
|
17625
17650
|
/**
|
|
17626
17651
|
* Return source element value
|
|
17627
17652
|
*/ getElementValue() {
|
|
17653
|
+
if (this.element === this.container && this.__inlineElementValue !== undefined) {
|
|
17654
|
+
return this.__inlineElementValue;
|
|
17655
|
+
}
|
|
17628
17656
|
return this.element.value !== undefined ? this.element.value : this.element.innerHTML;
|
|
17629
17657
|
}
|
|
17630
17658
|
__setElementValue(value) {
|
|
17631
17659
|
if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(value)) {
|
|
17632
17660
|
throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.error)('value must be string');
|
|
17633
17661
|
}
|
|
17634
|
-
if (this.element
|
|
17662
|
+
if (this.element === this.container) {
|
|
17663
|
+
this.__inlineElementValue = value;
|
|
17664
|
+
return;
|
|
17665
|
+
}
|
|
17666
|
+
if (value !== this.getElementValue()) {
|
|
17635
17667
|
const data = {
|
|
17636
17668
|
value
|
|
17637
17669
|
};
|
|
@@ -29933,6 +29965,19 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
29933
29965
|
|
|
29934
29966
|
|
|
29935
29967
|
|
|
29968
|
+
const INPUT_TAGS = new Set([
|
|
29969
|
+
'input',
|
|
29970
|
+
'textarea',
|
|
29971
|
+
'select'
|
|
29972
|
+
]);
|
|
29973
|
+
const FOCUSABLE_SELECTOR = [
|
|
29974
|
+
'button:not([disabled])',
|
|
29975
|
+
'a[href]',
|
|
29976
|
+
'input:not([disabled]):not([type="hidden"])',
|
|
29977
|
+
'select:not([disabled])',
|
|
29978
|
+
'textarea:not([disabled])',
|
|
29979
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
29980
|
+
].join(',');
|
|
29936
29981
|
let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__.UIButton {
|
|
29937
29982
|
className() {
|
|
29938
29983
|
return 'ToolbarButton';
|
|
@@ -30126,7 +30171,14 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
30126
30171
|
}
|
|
30127
30172
|
}
|
|
30128
30173
|
onTriggerKeyDown(e) {
|
|
30129
|
-
if (this.state.disabled
|
|
30174
|
+
if (this.state.disabled) {
|
|
30175
|
+
return;
|
|
30176
|
+
}
|
|
30177
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN) {
|
|
30178
|
+
this.onButtonKeyDown(e);
|
|
30179
|
+
return;
|
|
30180
|
+
}
|
|
30181
|
+
if (![
|
|
30130
30182
|
_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_ENTER,
|
|
30131
30183
|
_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_SPACE,
|
|
30132
30184
|
' '
|
|
@@ -30136,6 +30188,66 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
30136
30188
|
e.preventDefault();
|
|
30137
30189
|
this.trigger.click();
|
|
30138
30190
|
}
|
|
30191
|
+
/**
|
|
30192
|
+
* `ArrowDown` on a button with a trigger opens its dropdown and moves the
|
|
30193
|
+
* focus into it, like the WAI-ARIA menu button pattern
|
|
30194
|
+
*/ onButtonKeyDown(e) {
|
|
30195
|
+
var _a;
|
|
30196
|
+
if (e.key !== _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN || this.state.disabled || !this.state.hasTrigger || e.altKey || e.ctrlKey || e.metaKey) {
|
|
30197
|
+
return;
|
|
30198
|
+
}
|
|
30199
|
+
e.preventDefault();
|
|
30200
|
+
e.stopPropagation();
|
|
30201
|
+
if (!this.openedPopup) {
|
|
30202
|
+
this.trigger.click();
|
|
30203
|
+
}
|
|
30204
|
+
(_a = this.__popupFocusables()[0]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
30205
|
+
}
|
|
30206
|
+
/**
|
|
30207
|
+
* Inside the dropdown: `ArrowDown`/`ArrowUp` walk the items, `Escape` and
|
|
30208
|
+
* `ArrowUp` on the first item close it and give the focus back to the button
|
|
30209
|
+
*/ __onPopupKeyDown(e) {
|
|
30210
|
+
if (!this.openedPopup || e.altKey || e.ctrlKey || e.metaKey) {
|
|
30211
|
+
return;
|
|
30212
|
+
}
|
|
30213
|
+
const target = e.target;
|
|
30214
|
+
// A text field keeps the arrow keys for itself
|
|
30215
|
+
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) {
|
|
30216
|
+
return;
|
|
30217
|
+
}
|
|
30218
|
+
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
30219
|
+
switch(e.key){
|
|
30220
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_ESC:
|
|
30221
|
+
this.__closePopup();
|
|
30222
|
+
break;
|
|
30223
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_UP:
|
|
30224
|
+
if (index <= 0) {
|
|
30225
|
+
this.__closePopup();
|
|
30226
|
+
} else {
|
|
30227
|
+
items[index - 1].focus();
|
|
30228
|
+
}
|
|
30229
|
+
break;
|
|
30230
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN:
|
|
30231
|
+
if (!items.length) {
|
|
30232
|
+
return;
|
|
30233
|
+
}
|
|
30234
|
+
items[(index + 1) % items.length].focus();
|
|
30235
|
+
break;
|
|
30236
|
+
default:
|
|
30237
|
+
return;
|
|
30238
|
+
}
|
|
30239
|
+
e.preventDefault();
|
|
30240
|
+
e.stopPropagation();
|
|
30241
|
+
}
|
|
30242
|
+
/**
|
|
30243
|
+
* Visible controls of the opened dropdown that can take the focus
|
|
30244
|
+
*/ __popupFocusables() {
|
|
30245
|
+
const popup = this.openedPopup;
|
|
30246
|
+
if (!popup) {
|
|
30247
|
+
return [];
|
|
30248
|
+
}
|
|
30249
|
+
return Array.from(popup.container.querySelectorAll(FOCUSABLE_SELECTOR)).filter((elm)=>Boolean(elm.offsetParent));
|
|
30250
|
+
}
|
|
30139
30251
|
/**
|
|
30140
30252
|
* Create an open popup list
|
|
30141
30253
|
*/ __openControlList(control) {
|
|
@@ -30209,7 +30321,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
30209
30321
|
openPopup() {
|
|
30210
30322
|
this.__closePopup();
|
|
30211
30323
|
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_20__.Popup(this.j, false);
|
|
30212
|
-
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
|
|
30324
|
+
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick).on(this.openedPopup.container, 'keydown', this.__onPopupKeyDown);
|
|
30213
30325
|
return this.openedPopup;
|
|
30214
30326
|
}
|
|
30215
30327
|
__closePopup() {
|
|
@@ -30225,12 +30337,18 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
30225
30337
|
// throws NotFoundError. See #1458
|
|
30226
30338
|
this.openedPopup = null;
|
|
30227
30339
|
this.j.e.off(this.ow, 'mousedown touchstart', this.onOutsideClick).off('escape closeAllPopups', this.onOutsideClick);
|
|
30340
|
+
// The keyboard brought the focus into the dropdown: give it back to
|
|
30341
|
+
// the button, otherwise it would fall out to the document
|
|
30342
|
+
const { activeElement } = this.od, hadFocus = activeElement && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(popup.container, activeElement);
|
|
30228
30343
|
this.state.activated = false;
|
|
30229
30344
|
popup.close();
|
|
30230
30345
|
popup.destruct();
|
|
30231
30346
|
if (this.trigger) {
|
|
30232
30347
|
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'aria-expanded', false);
|
|
30233
30348
|
}
|
|
30349
|
+
if (hadFocus) {
|
|
30350
|
+
this.focus();
|
|
30351
|
+
}
|
|
30234
30352
|
}
|
|
30235
30353
|
/**
|
|
30236
30354
|
* Click handler
|
|
@@ -30326,6 +30444,12 @@ __decorate([
|
|
|
30326
30444
|
__decorate([
|
|
30327
30445
|
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('trigger:keydown')
|
|
30328
30446
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
30447
|
+
__decorate([
|
|
30448
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('button:keydown')
|
|
30449
|
+
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
30450
|
+
__decorate([
|
|
30451
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
30452
|
+
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
30329
30453
|
__decorate([
|
|
30330
30454
|
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
30331
30455
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
@@ -32779,11 +32903,12 @@ UiAiAssistant = __decorate([
|
|
|
32779
32903
|
/* harmony import */ var _tab_tab_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(767);
|
|
32780
32904
|
/* harmony import */ var _table_table_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(43003);
|
|
32781
32905
|
/* harmony import */ var _table_keyboard_navigation_table_keyboard_navigation_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(72439);
|
|
32782
|
-
/* harmony import */ var
|
|
32783
|
-
/* harmony import */ var
|
|
32784
|
-
/* harmony import */ var
|
|
32785
|
-
/* harmony import */ var
|
|
32786
|
-
/* harmony import */ var
|
|
32906
|
+
/* harmony import */ var _toolbar_navigation_toolbar_navigation_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(94529);
|
|
32907
|
+
/* harmony import */ var _video_video_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(26551);
|
|
32908
|
+
/* harmony import */ var _wrap_nodes_wrap_nodes_js__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(72253);
|
|
32909
|
+
/* harmony import */ var _dtd_dtd_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(65735);
|
|
32910
|
+
/* harmony import */ var _xpath_xpath_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(83671);
|
|
32911
|
+
/* harmony import */ var _speech_recognize_speech_recognize_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(3115);
|
|
32787
32912
|
/*!
|
|
32788
32913
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
32789
32914
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -32853,6 +32978,7 @@ UiAiAssistant = __decorate([
|
|
|
32853
32978
|
|
|
32854
32979
|
|
|
32855
32980
|
|
|
32981
|
+
|
|
32856
32982
|
|
|
32857
32983
|
|
|
32858
32984
|
// JODIT-START:FAT
|
|
@@ -40241,8 +40367,9 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
40241
40367
|
/* harmony import */ var _size_size_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(45927);
|
|
40242
40368
|
/* harmony import */ var _stat_stat_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(7309);
|
|
40243
40369
|
/* harmony import */ var _table_table_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(43003);
|
|
40244
|
-
/* harmony import */ var
|
|
40245
|
-
/* harmony import */ var
|
|
40370
|
+
/* harmony import */ var _toolbar_navigation_toolbar_navigation_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(94529);
|
|
40371
|
+
/* harmony import */ var _wrap_nodes_wrap_nodes_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(72253);
|
|
40372
|
+
/* harmony import */ var _dtd_dtd_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(65735);
|
|
40246
40373
|
/*!
|
|
40247
40374
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40248
40375
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40274,6 +40401,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
40274
40401
|
|
|
40275
40402
|
|
|
40276
40403
|
|
|
40404
|
+
|
|
40277
40405
|
|
|
40278
40406
|
|
|
40279
40407
|
/***/ }),
|
|
@@ -49463,6 +49591,127 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('table', table);
|
|
|
49463
49591
|
/* 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> ");
|
|
49464
49592
|
|
|
49465
49593
|
|
|
49594
|
+
/***/ }),
|
|
49595
|
+
|
|
49596
|
+
/***/ 94529:
|
|
49597
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
49598
|
+
|
|
49599
|
+
/* unused harmony export toolbarNavigation */
|
|
49600
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
49601
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
49602
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37133);
|
|
49603
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2748);
|
|
49604
|
+
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(580);
|
|
49605
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
49606
|
+
/* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50911);
|
|
49607
|
+
/*!
|
|
49608
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
49609
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
49610
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
49611
|
+
*/ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
|
|
49612
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
49613
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
49614
|
+
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;
|
|
49615
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
49616
|
+
};
|
|
49617
|
+
|
|
49618
|
+
|
|
49619
|
+
|
|
49620
|
+
|
|
49621
|
+
|
|
49622
|
+
|
|
49623
|
+
|
|
49624
|
+
const INPUT_TAGS = new Set([
|
|
49625
|
+
'input',
|
|
49626
|
+
'textarea',
|
|
49627
|
+
'select'
|
|
49628
|
+
]);
|
|
49629
|
+
/**
|
|
49630
|
+
* Makes the toolbar reachable from the keyboard, as described by the WAI-ARIA
|
|
49631
|
+
* authoring practices for a `role="toolbar"` widget.
|
|
49632
|
+
*
|
|
49633
|
+
* The focus is moved programmatically, so this works whatever
|
|
49634
|
+
* {@link Config.allowTabNavigation} does with the tab order — including the
|
|
49635
|
+
* default, where the buttons take no part in the page tab order.
|
|
49636
|
+
*/ class toolbarNavigation extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
49637
|
+
/** @override */ afterInit(jodit) {
|
|
49638
|
+
jodit.registerCommand('focusToolbar', {
|
|
49639
|
+
hotkeys: 'alt+f10',
|
|
49640
|
+
exec: this.focusToolbar
|
|
49641
|
+
});
|
|
49642
|
+
}
|
|
49643
|
+
/** @override */ beforeDestruct() {}
|
|
49644
|
+
/**
|
|
49645
|
+
* Moves the focus to the first button of the toolbar.
|
|
49646
|
+
*
|
|
49647
|
+
* Bound to `Alt+F10` by default; remap it like any other command:
|
|
49648
|
+
* `commandToHotkeys: { focusToolbar: 'alt+0' }`
|
|
49649
|
+
*/ focusToolbar() {
|
|
49650
|
+
const [first] = this.__buttons();
|
|
49651
|
+
first === null || first === void 0 ? void 0 : first.focus();
|
|
49652
|
+
return false;
|
|
49653
|
+
}
|
|
49654
|
+
/**
|
|
49655
|
+
* Arrow keys / `Home` / `End` walk the buttons, `Escape` leaves the toolbar
|
|
49656
|
+
*/ onKeyDown(e) {
|
|
49657
|
+
if (e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey) {
|
|
49658
|
+
return;
|
|
49659
|
+
}
|
|
49660
|
+
const target = e.target;
|
|
49661
|
+
// A control that needs the arrow keys for itself
|
|
49662
|
+
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) {
|
|
49663
|
+
return;
|
|
49664
|
+
}
|
|
49665
|
+
const buttons = this.__buttons();
|
|
49666
|
+
if (!buttons.length) {
|
|
49667
|
+
return;
|
|
49668
|
+
}
|
|
49669
|
+
switch(e.key){
|
|
49670
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC:
|
|
49671
|
+
this.j.s.focus();
|
|
49672
|
+
break;
|
|
49673
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_HOME:
|
|
49674
|
+
buttons[0].focus();
|
|
49675
|
+
break;
|
|
49676
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_END:
|
|
49677
|
+
buttons[buttons.length - 1].focus();
|
|
49678
|
+
break;
|
|
49679
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT:
|
|
49680
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT:
|
|
49681
|
+
{
|
|
49682
|
+
const index = buttons.findIndex((button)=>button.container.contains(target));
|
|
49683
|
+
if (index === -1) {
|
|
49684
|
+
return;
|
|
49685
|
+
}
|
|
49686
|
+
const forward = e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT !== this.__isRtl(), next = index + (forward ? 1 : -1);
|
|
49687
|
+
buttons[(next + buttons.length) % buttons.length].focus();
|
|
49688
|
+
break;
|
|
49689
|
+
}
|
|
49690
|
+
default:
|
|
49691
|
+
return;
|
|
49692
|
+
}
|
|
49693
|
+
e.preventDefault();
|
|
49694
|
+
e.stopPropagation();
|
|
49695
|
+
return false;
|
|
49696
|
+
}
|
|
49697
|
+
/**
|
|
49698
|
+
* Toolbar buttons that can take the focus right now
|
|
49699
|
+
*/ __buttons() {
|
|
49700
|
+
return this.j.toolbar.buttons.filter((button)=>!button.state.disabled && button.container.isConnected);
|
|
49701
|
+
}
|
|
49702
|
+
__isRtl() {
|
|
49703
|
+
return (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(this.j.toolbar.container, 'dir') === 'rtl';
|
|
49704
|
+
}
|
|
49705
|
+
}
|
|
49706
|
+
__decorate([
|
|
49707
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
49708
|
+
], toolbarNavigation.prototype, "focusToolbar", null);
|
|
49709
|
+
__decorate([
|
|
49710
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_2__.watch)('j.toolbar.container:keydown.toolbar-navigation')
|
|
49711
|
+
], toolbarNavigation.prototype, "onKeyDown", null);
|
|
49712
|
+
_core_global_js__WEBPACK_IMPORTED_MODULE_4__.pluginSystem.add('toolbarNavigation', toolbarNavigation);
|
|
49713
|
+
|
|
49714
|
+
|
|
49466
49715
|
/***/ }),
|
|
49467
49716
|
|
|
49468
49717
|
/***/ 14984:
|