jodit-pro 4.15.21 → 4.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +12 -11
- package/es2015/jodit.js +114 -49
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +10 -9
- 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 +4 -1
- package/es2015/plugins/finder/finder.min.js +2 -2
- 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 +7 -6
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- 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 +12 -11
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +10 -9
- 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 +13 -13
- 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 +2 -2
- 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 +13 -12
- package/es2021/jodit.js +114 -49
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +11 -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 +4 -1
- package/es2021/plugins/finder/finder.min.js +2 -2
- 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 +7 -6
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- 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 +13 -12
- package/es2021.en/jodit.js +114 -49
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +11 -10
- 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 +4 -1
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- 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 +7 -6
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- 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 +129 -55
- 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 +4 -1
- package/es5/plugins/finder/finder.min.js +2 -2
- 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 +7 -6
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- 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/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/image-editor-pro/adapter.js +1 -1
- package/package.json +1 -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.
|
|
4
|
+
* Version: v4.16.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1743,7 +1743,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1743
1743
|
* ```
|
|
1744
1744
|
* @packageDocumentation
|
|
1745
1745
|
* @module constants
|
|
1746
|
-
*/ const APP_VERSION = "4.
|
|
1746
|
+
*/ const APP_VERSION = "4.16.2";
|
|
1747
1747
|
// prettier-ignore
|
|
1748
1748
|
const ES = "es2021";
|
|
1749
1749
|
const IS_ES_MODERN = true;
|
|
@@ -14011,6 +14011,7 @@ let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_9__.U
|
|
|
14011
14011
|
this.name = this.state.name;
|
|
14012
14012
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'data-ref', this.state.name);
|
|
14013
14013
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'ref', this.state.name);
|
|
14014
|
+
this.updateAriaLabel();
|
|
14014
14015
|
}
|
|
14015
14016
|
onChangeTooltip() {
|
|
14016
14017
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
@@ -14022,9 +14023,12 @@ let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_9__.U
|
|
|
14022
14023
|
}
|
|
14023
14024
|
updateAriaLabel() {
|
|
14024
14025
|
const hasText = this.state.text.trim().length > 0;
|
|
14025
|
-
|
|
14026
|
-
(
|
|
14027
|
-
|
|
14026
|
+
// An icon-only button without a tooltip would have no accessible
|
|
14027
|
+
// name at all — fall back to its raw name (not translated: control
|
|
14028
|
+
// names are identifiers, not i18n keys).
|
|
14029
|
+
const label = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : !hasText && this.state.name ? this.state.name : null;
|
|
14030
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', label);
|
|
14031
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.button, 'aria-label', !hasText ? label : null);
|
|
14028
14032
|
}
|
|
14029
14033
|
onChangeTabIndex() {
|
|
14030
14034
|
;(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'tabindex', this.state.tabIndex);
|
|
@@ -15052,6 +15056,7 @@ let UIFileInput = class UIFileInput extends _input_input_js__WEBPACK_IMPORTED_MO
|
|
|
15052
15056
|
return this.j.create.fromHTML(`<input
|
|
15053
15057
|
type="file"
|
|
15054
15058
|
accept="${options.onlyImages ? 'image/*' : '*'}"
|
|
15059
|
+
aria-label="${this.j.i18n(options.tooltip || 'Upload')}"
|
|
15055
15060
|
tabindex="-1"
|
|
15056
15061
|
dir="auto"
|
|
15057
15062
|
multiple=""
|
|
@@ -15552,9 +15557,12 @@ let UIGroup = UIGroup_1 = class UIGroup extends _element_js__WEBPACK_IMPORTED_MO
|
|
|
15552
15557
|
className() {
|
|
15553
15558
|
return 'UIGroup';
|
|
15554
15559
|
}
|
|
15555
|
-
|
|
15560
|
+
/**
|
|
15561
|
+
* A generic container: `group` allows any children. Toolbar button groups
|
|
15562
|
+
* are lists of `listitem`s and get `role="list"` explicitly from `UIList`.
|
|
15563
|
+
*/ getRole() {
|
|
15556
15564
|
var _a;
|
|
15557
|
-
return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.role) || '
|
|
15565
|
+
return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.role) || 'group';
|
|
15558
15566
|
}
|
|
15559
15567
|
/**
|
|
15560
15568
|
* All group children
|
|
@@ -15760,10 +15768,10 @@ let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup
|
|
|
15760
15768
|
}
|
|
15761
15769
|
/**
|
|
15762
15770
|
* Make new group and append it in list of elements
|
|
15763
|
-
*/ makeGroup(role) {
|
|
15764
|
-
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit, [],
|
|
15771
|
+
*/ makeGroup(role = 'list') {
|
|
15772
|
+
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit, [], {
|
|
15765
15773
|
role
|
|
15766
|
-
}
|
|
15774
|
+
});
|
|
15767
15775
|
}
|
|
15768
15776
|
/**
|
|
15769
15777
|
* All buttons from list
|
|
@@ -24862,12 +24870,13 @@ ContextMenu = __decorate([
|
|
|
24862
24870
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(580);
|
|
24863
24871
|
/* harmony import */ var _core_helpers_array_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76855);
|
|
24864
24872
|
/* harmony import */ var _core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(27613);
|
|
24865
|
-
/* harmony import */ var
|
|
24866
|
-
/* harmony import */ var
|
|
24867
|
-
/* harmony import */ var
|
|
24868
|
-
/* harmony import */ var
|
|
24869
|
-
/* harmony import */ var
|
|
24870
|
-
/* harmony import */ var
|
|
24873
|
+
/* harmony import */ var _core_helpers_html_strip_tags_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91003);
|
|
24874
|
+
/* harmony import */ var _core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43555);
|
|
24875
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38837);
|
|
24876
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67510);
|
|
24877
|
+
/* harmony import */ var _core_view_view_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(35608);
|
|
24878
|
+
/* harmony import */ var _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(84075);
|
|
24879
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(6441);
|
|
24871
24880
|
/*!
|
|
24872
24881
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24873
24882
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24892,7 +24901,8 @@ var Dialog_1;
|
|
|
24892
24901
|
|
|
24893
24902
|
|
|
24894
24903
|
|
|
24895
|
-
|
|
24904
|
+
|
|
24905
|
+
_config_js__WEBPACK_IMPORTED_MODULE_13__.Config.prototype.dialog = {
|
|
24896
24906
|
namespace: '',
|
|
24897
24907
|
extraButtons: [],
|
|
24898
24908
|
/**
|
|
@@ -24908,7 +24918,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.dialog = {
|
|
|
24908
24918
|
toolbarButtonSize: 'middle',
|
|
24909
24919
|
zIndex: 'inherit'
|
|
24910
24920
|
};
|
|
24911
|
-
|
|
24921
|
+
_config_js__WEBPACK_IMPORTED_MODULE_13__.Config.prototype.controls.dialog = {
|
|
24912
24922
|
close: {
|
|
24913
24923
|
icon: 'cancel',
|
|
24914
24924
|
exec: (dialog)=>{
|
|
@@ -24918,7 +24928,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
24918
24928
|
};
|
|
24919
24929
|
/**
|
|
24920
24930
|
* Module to generate dialog windows
|
|
24921
|
-
*/ let Dialog = Dialog_1 = class Dialog extends
|
|
24931
|
+
*/ let Dialog = Dialog_1 = class Dialog extends _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_12__.ViewWithToolbar {
|
|
24922
24932
|
/** @override */ className() {
|
|
24923
24933
|
return 'Dialog';
|
|
24924
24934
|
}
|
|
@@ -24982,8 +24992,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
24982
24992
|
this.draggable = true;
|
|
24983
24993
|
this.startX = e.clientX;
|
|
24984
24994
|
this.startY = e.clientY;
|
|
24985
|
-
this.startPoint.x = (0,
|
|
24986
|
-
this.startPoint.y = (0,
|
|
24995
|
+
this.startPoint.x = (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.dialog, 'left');
|
|
24996
|
+
this.startPoint.y = (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.dialog, 'top');
|
|
24987
24997
|
this.setMaxZIndex();
|
|
24988
24998
|
if (e.cancelable) {
|
|
24989
24999
|
e.preventDefault();
|
|
@@ -25073,7 +25083,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25073
25083
|
if (h == null) {
|
|
25074
25084
|
h = this.dialog.offsetHeight;
|
|
25075
25085
|
}
|
|
25076
|
-
;(0,
|
|
25086
|
+
;(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.dialog, {
|
|
25077
25087
|
width: w,
|
|
25078
25088
|
height: h
|
|
25079
25089
|
});
|
|
@@ -25107,7 +25117,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25107
25117
|
this.moved = Math.abs(x - left) > 100 || Math.abs(y - top) > 100;
|
|
25108
25118
|
}
|
|
25109
25119
|
// strings on purpose: `css()` would truncate fractional pixels
|
|
25110
|
-
;(0,
|
|
25120
|
+
;(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.dialog, {
|
|
25111
25121
|
left: (x || left) + 'px',
|
|
25112
25122
|
top: (y || top) + 'px'
|
|
25113
25123
|
});
|
|
@@ -25127,6 +25137,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25127
25137
|
* ```
|
|
25128
25138
|
*/ setHeader(content) {
|
|
25129
25139
|
this.setElements(this.dialogbox_header, content);
|
|
25140
|
+
// `role="dialog"` needs an accessible name; a text title is the
|
|
25141
|
+
// natural one (element titles are left to the caller).
|
|
25142
|
+
if ((0,_core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_6__.isString)(content)) {
|
|
25143
|
+
const name = (0,_core_helpers_html_strip_tags_js__WEBPACK_IMPORTED_MODULE_7__.stripTags)(content, this.od).trim();
|
|
25144
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', name || null);
|
|
25145
|
+
}
|
|
25130
25146
|
return this;
|
|
25131
25147
|
}
|
|
25132
25148
|
/**
|
|
@@ -25180,7 +25196,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25180
25196
|
/**
|
|
25181
25197
|
* Get zIndex from dialog
|
|
25182
25198
|
*/ getZIndex() {
|
|
25183
|
-
return parseInt((0,
|
|
25199
|
+
return parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.container, 'zIndex'), 10) || 0;
|
|
25184
25200
|
}
|
|
25185
25201
|
/**
|
|
25186
25202
|
* Get dialog instance with maximum z-index displaying it on top of all the dialog boxes
|
|
@@ -25203,7 +25219,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25203
25219
|
this.__openedSiblings().forEach((dialog)=>{
|
|
25204
25220
|
maxZIndex = Math.max(dialog.getZIndex(), maxZIndex);
|
|
25205
25221
|
});
|
|
25206
|
-
(0,
|
|
25222
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.container, 'zIndex', (maxZIndex + 1).toString());
|
|
25207
25223
|
}
|
|
25208
25224
|
/**
|
|
25209
25225
|
* Expands the dialog on full browser window
|
|
@@ -25253,7 +25269,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25253
25269
|
this.setPosition(this.offsetX, this.offsetY);
|
|
25254
25270
|
this.setMaxZIndex();
|
|
25255
25271
|
} else {
|
|
25256
|
-
(0,
|
|
25272
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.container, 'zIndex', null);
|
|
25257
25273
|
}
|
|
25258
25274
|
if (this.o.fullsize) {
|
|
25259
25275
|
this.toggleFullSize(true);
|
|
@@ -25380,7 +25396,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25380
25396
|
* True, if dialog was opened
|
|
25381
25397
|
*/ this.isOpened = false;
|
|
25382
25398
|
const self1 = this;
|
|
25383
|
-
self1.options = (0,
|
|
25399
|
+
self1.options = (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.ConfigProto)(options, (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.ConfigProto)(_config_js__WEBPACK_IMPORTED_MODULE_13__.Config.prototype.dialog, Dialog_1.defaultOptions));
|
|
25384
25400
|
// Attach event handlers passed via `options.events` to the dialog's own
|
|
25385
25401
|
// emitter (as FileBrowser already does), so a consumer — e.g. a plugin
|
|
25386
25402
|
// forwarding the editor's `events` config — can observe `afterOpen` /
|
|
@@ -25398,40 +25414,40 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25398
25414
|
</div>
|
|
25399
25415
|
<div class="${n('content')}"></div>
|
|
25400
25416
|
<div class="${n('footer')}"></div>
|
|
25401
|
-
<div class="${n('resizer')}">${
|
|
25417
|
+
<div class="${n('resizer')}">${_core_ui_index_js__WEBPACK_IMPORTED_MODULE_10__.Icon.get('resize_handler')}</div>
|
|
25402
25418
|
</div>
|
|
25403
25419
|
</div>`);
|
|
25404
25420
|
if (self1.options.direction === 'rtl') {
|
|
25405
|
-
(0,
|
|
25406
|
-
(0,
|
|
25421
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(self1.container, 'direction', 'rtl');
|
|
25422
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.attr)(self1.container, 'dir', 'rtl');
|
|
25407
25423
|
}
|
|
25408
25424
|
if (this.o.zIndex) {
|
|
25409
|
-
(0,
|
|
25425
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.container, 'zIndex', this.o.zIndex.toString());
|
|
25410
25426
|
}
|
|
25411
|
-
;(0,
|
|
25427
|
+
;(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.attr)(self1.container, 'role', 'dialog');
|
|
25412
25428
|
Object.defineProperty(self1.container, 'component', {
|
|
25413
25429
|
value: this
|
|
25414
25430
|
});
|
|
25415
25431
|
self1.setMod('theme', self1.o.theme || 'default').setMod('resizable', Boolean(self1.o.resizable));
|
|
25416
25432
|
const dialog = self1.getElm('panel');
|
|
25417
|
-
(0,
|
|
25433
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialog != null, 'Panel element does not exist');
|
|
25418
25434
|
const resizer = self1.getElm('resizer');
|
|
25419
|
-
(0,
|
|
25435
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(resizer != null, 'Resizer element does not exist');
|
|
25420
25436
|
const dialogbox_header = self1.getElm('header-title');
|
|
25421
|
-
(0,
|
|
25437
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialogbox_header != null, 'header-title element does not exist');
|
|
25422
25438
|
const dialogbox_content = self1.getElm('content');
|
|
25423
|
-
(0,
|
|
25439
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialogbox_content != null, 'Content element does not exist');
|
|
25424
25440
|
const dialogbox_footer = self1.getElm('footer');
|
|
25425
|
-
(0,
|
|
25441
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialogbox_footer != null, 'Footer element does not exist');
|
|
25426
25442
|
const dialogbox_toolbar = self1.getElm('header-toolbar');
|
|
25427
|
-
(0,
|
|
25443
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialogbox_toolbar != null, 'header-toolbar element does not exist');
|
|
25428
25444
|
this.dialog = dialog;
|
|
25429
25445
|
this.resizer = resizer;
|
|
25430
25446
|
this.dialogbox_header = dialogbox_header;
|
|
25431
25447
|
this.dialogbox_content = dialogbox_content;
|
|
25432
25448
|
this.dialogbox_footer = dialogbox_footer;
|
|
25433
25449
|
this.dialogbox_toolbar = dialogbox_toolbar;
|
|
25434
|
-
(0,
|
|
25450
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(self1.dialog, {
|
|
25435
25451
|
maxWidth: self1.options.maxWidth,
|
|
25436
25452
|
minHeight: self1.options.minHeight,
|
|
25437
25453
|
minWidth: self1.options.minWidth
|
|
@@ -25444,7 +25460,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25444
25460
|
this.e.on(self1.container, 'close_dialog', self1.close).on(this.ow, 'keydown', this.__onEsc).on(this.ow, 'resize', this.__onResize);
|
|
25445
25461
|
if (this.o.closeOnClickOverlay) {
|
|
25446
25462
|
const overlay = self1.getElm('overlay');
|
|
25447
|
-
(0,
|
|
25463
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(overlay != null, 'Overlay element does not exist');
|
|
25448
25464
|
this.e.on(overlay, 'click', self1.close);
|
|
25449
25465
|
}
|
|
25450
25466
|
}
|
|
@@ -25454,7 +25470,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
25454
25470
|
* whole `destination` (usually `document.body`) for every z-index update.
|
|
25455
25471
|
*/ Dialog.__opened = new Set();
|
|
25456
25472
|
Dialog.defaultOptions = {
|
|
25457
|
-
...
|
|
25473
|
+
..._core_view_view_js__WEBPACK_IMPORTED_MODULE_11__.View.defaultOptions,
|
|
25458
25474
|
closeOnClickOverlay: false,
|
|
25459
25475
|
closeOnEsc: true
|
|
25460
25476
|
};
|
|
@@ -30569,6 +30585,13 @@ let ToolbarContent = class ToolbarContent extends _core_ui_button_index_js__WEBP
|
|
|
30569
30585
|
/** @override */ className() {
|
|
30570
30586
|
return 'ToolbarContent';
|
|
30571
30587
|
}
|
|
30588
|
+
/** A toolbar item like `ToolbarButton`: the parent group is a `list`. */ getRole() {
|
|
30589
|
+
return 'listitem';
|
|
30590
|
+
}
|
|
30591
|
+
/**
|
|
30592
|
+
* Arbitrary content is not a toggle button — `aria-pressed` is not
|
|
30593
|
+
* allowed on a `listitem`.
|
|
30594
|
+
*/ onChangeActivated() {}
|
|
30572
30595
|
/** @override */ update() {
|
|
30573
30596
|
var _a, _b, _c;
|
|
30574
30597
|
const { control } = this;
|
|
@@ -30611,7 +30634,6 @@ let ToolbarContent = class ToolbarContent extends _core_ui_button_index_js__WEBP
|
|
|
30611
30634
|
this.control = control;
|
|
30612
30635
|
this.target = target;
|
|
30613
30636
|
this.container.classList.add(`${this.componentName}_${this.clearName(control.name)}`);
|
|
30614
|
-
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(this.container, 'role', 'content');
|
|
30615
30637
|
}
|
|
30616
30638
|
};
|
|
30617
30639
|
ToolbarContent = __decorate([
|
|
@@ -38691,7 +38713,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeBaseUrl = '';
|
|
|
38691
38713
|
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeTitle = 'Jodit Editor';
|
|
38692
38714
|
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeDoctype = '<!DOCTYPE html>';
|
|
38693
38715
|
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeDefaultSrc = 'about:blank';
|
|
38694
|
-
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeStyle = 'html{' + 'margin:0;' + 'padding:0;' + 'min-height: 100%;' + '}' + 'body{' + 'box-sizing:border-box;' + 'font-size:13px;' + 'line-height:1.6;' + 'padding:10px;' + 'margin:0;' + 'background:transparent;' + 'color:#000;' + 'position:' + 'relative;' + 'z-index:2;' + 'user-select:auto;' + 'margin:0px;' + 'overflow:auto;' + 'outline:none;' + '}' + 'table{' + 'width:100%;' + 'border:none;' + 'border-collapse:collapse;' + 'empty-cells: show;' + 'max-width: 100%;' + '}' + 'th,td{' + 'padding: 2px 5px;' + 'border:1px solid #ccc;' + '-webkit-user-select:text;' + '-moz-user-select:text;' + '-ms-user-select:text;' + 'user-select:text' + '}' + 'p{' + 'margin-top:0;' + '}' + '.jodit_editor .jodit_iframe_wrapper{' + 'display: block;' + 'clear: both;' + 'user-select: none;' + 'position: relative;' + '}' + '.jodit_editor .jodit_iframe_wrapper:after {' + 'position:absolute;' + 'content:"";' + 'z-index:1;' + 'top:0;' + 'left:0;' + 'right: 0;' + 'bottom: 0;' + 'cursor: pointer;' + 'display: block;' + 'background: rgba(0, 0, 0, 0);' + '} ' + '.jodit_disabled{' + 'user-select: none;' + '-o-user-select: none;' + '-moz-user-select: none;' + '-khtml-user-select: none;' + '-webkit-user-select: none;' + '-ms-user-select: none' + '}';
|
|
38716
|
+
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeStyle = 'html{' + 'margin:0;' + 'padding:0;' + 'min-height: 100%;' + '}' + 'body{' + 'box-sizing:border-box;' + 'font-size:13px;' + 'line-height:1.6;' + 'padding:10px;' + 'margin:0;' + 'background:transparent;' + 'color:#000;' + 'position:' + 'relative;' + 'z-index:2;' + 'user-select:auto;' + 'margin:0px;' + 'overflow:auto;' + 'outline:none;' + '}' + 'table{' + 'width:100%;' + 'border:none;' + 'border-collapse:collapse;' + 'empty-cells: show;' + 'max-width: 100%;' + '}' + 'th,td{' + 'padding: 2px 5px;' + 'border:1px solid #ccc;' + '-webkit-user-select:text;' + '-moz-user-select:text;' + '-ms-user-select:text;' + 'user-select:text' + '}' + 'p{' + 'margin-top:0;' + '}' + '.jodit_editor .jodit_iframe_wrapper{' + 'display: block;' + 'clear: both;' + 'user-select: none;' + 'position: relative;' + '}' + '.jodit_editor .jodit_iframe_wrapper:after {' + 'position:absolute;' + 'content:"";' + 'z-index:1;' + 'top:0;' + 'left:0;' + 'right: 0;' + 'bottom: 0;' + 'cursor: pointer;' + 'display: block;' + 'background: rgba(0, 0, 0, 0);' + '} ' + '.jodit-wysiwyg_image-selected::selection,' + '.jodit-wysiwyg_image-selected *:not(img)::selection{' + 'background:transparent' + '}' + '.jodit_disabled{' + 'user-select: none;' + '-o-user-select: none;' + '-moz-user-select: none;' + '-khtml-user-select: none;' + '-webkit-user-select: none;' + '-ms-user-select: none' + '}';
|
|
38695
38717
|
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeCSSLinks = [];
|
|
38696
38718
|
_config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
|
|
38697
38719
|
|
|
@@ -38929,11 +38951,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.imageProcessor = {
|
|
|
38929
38951
|
|
|
38930
38952
|
const JODIT_IMAGE_PROCESSOR_BINDED = '__jodit_imageprocessor_binded';
|
|
38931
38953
|
const JODIT_IMAGE_BLOB_ID = JODIT_IMAGE_PROCESSOR_BINDED + 'blob-id';
|
|
38954
|
+
const IMAGE_SELECTED = 'jodit-wysiwyg_image-selected';
|
|
38932
38955
|
/**
|
|
38933
38956
|
* Change editor's size after load all images
|
|
38934
38957
|
*/ class imageProcessor extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
|
|
38935
|
-
afterInit(jodit) {
|
|
38958
|
+
afterInit(jodit) {
|
|
38959
|
+
jodit.e.on(jodit.ed, 'selectionchange', this.onSelectionChange);
|
|
38960
|
+
}
|
|
38936
38961
|
beforeDestruct(jodit) {
|
|
38962
|
+
jodit.e.off(jodit.ed, 'selectionchange', this.onSelectionChange);
|
|
38963
|
+
jodit.editor.classList.remove(IMAGE_SELECTED);
|
|
38937
38964
|
const buffer = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(jodit, 'buffer');
|
|
38938
38965
|
const list = buffer === null || buffer === void 0 ? void 0 : buffer.get(JODIT_IMAGE_BLOB_ID);
|
|
38939
38966
|
if (buffer && list) {
|
|
@@ -38964,6 +38991,13 @@ const JODIT_IMAGE_BLOB_ID = JODIT_IMAGE_PROCESSOR_BINDED + 'blob-id';
|
|
|
38964
38991
|
}
|
|
38965
38992
|
}
|
|
38966
38993
|
}
|
|
38994
|
+
/**
|
|
38995
|
+
* While the selection is an image, only the image is highlighted: Safari
|
|
38996
|
+
* paints the rest of a block image's line with its parent's highlight. See #1528
|
|
38997
|
+
*/ onSelectionChange() {
|
|
38998
|
+
const { jodit } = this;
|
|
38999
|
+
jodit.editor.classList.toggle(IMAGE_SELECTED, isImageSelected(jodit));
|
|
39000
|
+
}
|
|
38967
39001
|
async afterChange(data) {
|
|
38968
39002
|
const { jodit: editor } = this;
|
|
38969
39003
|
if (!editor.editor) {
|
|
@@ -38996,6 +39030,9 @@ __decorate([
|
|
|
38996
39030
|
__decorate([
|
|
38997
39031
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforeSetElementValue')
|
|
38998
39032
|
], imageProcessor.prototype, "onBeforeSetElementValue", null);
|
|
39033
|
+
__decorate([
|
|
39034
|
+
_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
39035
|
+
], imageProcessor.prototype, "onSelectionChange", null);
|
|
38999
39036
|
__decorate([
|
|
39000
39037
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
|
|
39001
39038
|
':change',
|
|
@@ -39004,6 +39041,14 @@ __decorate([
|
|
|
39004
39041
|
]),
|
|
39005
39042
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
39006
39043
|
], imageProcessor.prototype, "afterChange", null);
|
|
39044
|
+
function isImageSelected(jodit) {
|
|
39045
|
+
const { sel } = jodit.s;
|
|
39046
|
+
if (!sel || !sel.rangeCount) {
|
|
39047
|
+
return false;
|
|
39048
|
+
}
|
|
39049
|
+
const { startContainer, startOffset, endContainer, endOffset } = sel.getRangeAt(0);
|
|
39050
|
+
return startContainer === endContainer && endOffset === startOffset + 1 && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(startContainer.childNodes[startOffset], 'img') && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(jodit.editor, startContainer);
|
|
39051
|
+
}
|
|
39007
39052
|
/**
|
|
39008
39053
|
* Remove the invisible-space text beside an image, which only held a caret.
|
|
39009
39054
|
* Selecting the image replaces the caret, and with the text still after a
|
|
@@ -47809,19 +47854,26 @@ class AceEditor extends _sourceEditor_js__WEBPACK_IMPORTED_MODULE_3__.SourceEdit
|
|
|
47809
47854
|
onResize();
|
|
47810
47855
|
this.onReady();
|
|
47811
47856
|
};
|
|
47857
|
+
let loading = false;
|
|
47812
47858
|
const initAceEditor = ()=>{
|
|
47813
47859
|
if (editor.isInDestruct || editor.getRealMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE && editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT) {
|
|
47814
47860
|
return;
|
|
47815
47861
|
}
|
|
47862
|
+
// ACE (~400 KiB from the CDN) is only needed once the source view
|
|
47863
|
+
// is actually shown — a page that stays in WYSIWYG must not
|
|
47864
|
+
// download it.
|
|
47865
|
+
if (!this.aceExists()) {
|
|
47866
|
+
if (!loading) {
|
|
47867
|
+
loading = true;
|
|
47868
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(initAceEditor).catch(()=>null);
|
|
47869
|
+
}
|
|
47870
|
+
return;
|
|
47871
|
+
}
|
|
47816
47872
|
this.fromWYSIWYG();
|
|
47817
47873
|
tryInitAceEditor();
|
|
47818
47874
|
};
|
|
47819
47875
|
editor.e.on('afterSetMode', initAceEditor);
|
|
47820
47876
|
initAceEditor();
|
|
47821
|
-
// global add ace editor in browser
|
|
47822
|
-
if (!this.aceExists()) {
|
|
47823
|
-
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(initAceEditor).catch(()=>null);
|
|
47824
|
-
}
|
|
47825
47877
|
}
|
|
47826
47878
|
destruct() {
|
|
47827
47879
|
var _a, _b;
|
|
@@ -48351,7 +48403,20 @@ function createSourceEditor(type, editor, container, toWYSIWYG, fromWYSIWYG) {
|
|
|
48351
48403
|
return false;
|
|
48352
48404
|
};
|
|
48353
48405
|
if (!addEventListener()) {
|
|
48354
|
-
|
|
48406
|
+
// js-beautify is only needed once the source view is shown —
|
|
48407
|
+
// do not download it for a page that stays in WYSIWYG.
|
|
48408
|
+
let loading = false;
|
|
48409
|
+
const loadBeautify = ()=>{
|
|
48410
|
+
if (loading || editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE && editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT) {
|
|
48411
|
+
return;
|
|
48412
|
+
}
|
|
48413
|
+
loading = true;
|
|
48414
|
+
// It formats the source view from the next time it opens:
|
|
48415
|
+
// filling it again now would replace what was typed there
|
|
48416
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.loadNext)(editor, editor.o.beautifyHTMLCDNUrlsJS).then(addEventListener, ()=>null);
|
|
48417
|
+
};
|
|
48418
|
+
editor.e.on('afterSetMode.source', loadBeautify);
|
|
48419
|
+
loadBeautify();
|
|
48355
48420
|
}
|
|
48356
48421
|
}
|
|
48357
48422
|
this.syncValueFromWYSIWYG(true);
|