jodit-pro 4.15.21 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +10 -9
- package/es2015/jodit.js +93 -47
- package/es2015/jodit.min.js +9 -8
- 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 +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +10 -9
- package/es2018/jodit.min.js +9 -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 +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 +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +11 -10
- package/es2021/jodit.js +93 -47
- package/es2021/jodit.min.js +10 -9
- 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 +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +11 -10
- package/es2021.en/jodit.js +93 -47
- package/es2021.en/jodit.min.js +10 -9
- 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 +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +105 -53
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +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 +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/esm/plugins/finder/browser.js +1 -1
- package/package.json +1 -1
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.16.0
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2308,7 +2308,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2308
2308
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2309
2309
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
2310
2310
|
}
|
|
2311
|
-
var APP_VERSION = "4.
|
|
2311
|
+
var APP_VERSION = "4.16.0";
|
|
2312
2312
|
// prettier-ignore
|
|
2313
2313
|
var ES = "es5";
|
|
2314
2314
|
var IS_ES_MODERN = false;
|
|
@@ -19344,6 +19344,7 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
19344
19344
|
this.name = this.state.name;
|
|
19345
19345
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'data-ref', this.state.name);
|
|
19346
19346
|
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'ref', this.state.name);
|
|
19347
|
+
this.updateAriaLabel();
|
|
19347
19348
|
}
|
|
19348
19349
|
},
|
|
19349
19350
|
{
|
|
@@ -19361,9 +19362,12 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
19361
19362
|
key: "updateAriaLabel",
|
|
19362
19363
|
value: function updateAriaLabel() {
|
|
19363
19364
|
var hasText = this.state.text.trim().length > 0;
|
|
19364
|
-
|
|
19365
|
-
(
|
|
19366
|
-
|
|
19365
|
+
// An icon-only button without a tooltip would have no accessible
|
|
19366
|
+
// name at all — fall back to its raw name (not translated: control
|
|
19367
|
+
// names are identifiers, not i18n keys).
|
|
19368
|
+
var label = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : !hasText && this.state.name ? this.state.name : null;
|
|
19369
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', label);
|
|
19370
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.button, 'aria-label', !hasText ? label : null);
|
|
19367
19371
|
}
|
|
19368
19372
|
},
|
|
19369
19373
|
{
|
|
@@ -21436,7 +21440,7 @@ var UIFileInput = /*#__PURE__*/ function(UIInput1) {
|
|
|
21436
21440
|
{
|
|
21437
21441
|
key: "createNativeInput",
|
|
21438
21442
|
value: function createNativeInput(options) {
|
|
21439
|
-
return this.j.create.fromHTML('<input\n type="file"\n accept="'.concat(options.onlyImages ? 'image/*' : '*', '"\n tabindex="-1"\n dir="auto"\n multiple=""\n />'));
|
|
21443
|
+
return this.j.create.fromHTML('<input\n type="file"\n accept="'.concat(options.onlyImages ? 'image/*' : '*', '"\n aria-label="').concat(this.j.i18n(options.tooltip || 'Upload'), '"\n tabindex="-1"\n dir="auto"\n multiple=""\n />'));
|
|
21440
21444
|
}
|
|
21441
21445
|
}
|
|
21442
21446
|
]);
|
|
@@ -22399,10 +22403,13 @@ var UIGroup = UIGroup_1 = /*#__PURE__*/ function(UIElement) {
|
|
|
22399
22403
|
}
|
|
22400
22404
|
},
|
|
22401
22405
|
{
|
|
22402
|
-
|
|
22406
|
+
/**
|
|
22407
|
+
* A generic container: `group` allows any children. Toolbar button groups
|
|
22408
|
+
* are lists of `listitem`s and get `role="list"` explicitly from `UIList`.
|
|
22409
|
+
*/ key: "getRole",
|
|
22403
22410
|
value: function getRole() {
|
|
22404
22411
|
var _a;
|
|
22405
|
-
return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.role) || '
|
|
22412
|
+
return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.role) || 'group';
|
|
22406
22413
|
}
|
|
22407
22414
|
},
|
|
22408
22415
|
{
|
|
@@ -22729,10 +22736,11 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
22729
22736
|
/**
|
|
22730
22737
|
* Make new group and append it in list of elements
|
|
22731
22738
|
*/ key: "makeGroup",
|
|
22732
|
-
value: function makeGroup(
|
|
22733
|
-
|
|
22739
|
+
value: function makeGroup() {
|
|
22740
|
+
var role = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'list';
|
|
22741
|
+
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit, [], {
|
|
22734
22742
|
role: role
|
|
22735
|
-
}
|
|
22743
|
+
});
|
|
22736
22744
|
}
|
|
22737
22745
|
},
|
|
22738
22746
|
{
|
|
@@ -33406,12 +33414,13 @@ function _instanceof(left, right) {
|
|
|
33406
33414
|
/* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(580);
|
|
33407
33415
|
/* harmony import */ var _core_helpers_array_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76855);
|
|
33408
33416
|
/* harmony import */ var _core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(27613);
|
|
33409
|
-
/* harmony import */ var
|
|
33410
|
-
/* harmony import */ var
|
|
33411
|
-
/* harmony import */ var
|
|
33412
|
-
/* harmony import */ var
|
|
33413
|
-
/* harmony import */ var
|
|
33414
|
-
/* harmony import */ var
|
|
33417
|
+
/* harmony import */ var _core_helpers_html_strip_tags_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91003);
|
|
33418
|
+
/* harmony import */ var _core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43555);
|
|
33419
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38837);
|
|
33420
|
+
/* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67510);
|
|
33421
|
+
/* harmony import */ var _core_view_view_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(35608);
|
|
33422
|
+
/* harmony import */ var _core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(84075);
|
|
33423
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(6441);
|
|
33415
33424
|
function _assert_this_initialized(self1) {
|
|
33416
33425
|
if (self1 === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
33417
33426
|
return self1;
|
|
@@ -33572,7 +33581,8 @@ var Dialog_1;
|
|
|
33572
33581
|
|
|
33573
33582
|
|
|
33574
33583
|
|
|
33575
|
-
|
|
33584
|
+
|
|
33585
|
+
_config_js__WEBPACK_IMPORTED_MODULE_13__.Config.prototype.dialog = {
|
|
33576
33586
|
namespace: '',
|
|
33577
33587
|
extraButtons: [],
|
|
33578
33588
|
/**
|
|
@@ -33588,7 +33598,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.dialog = {
|
|
|
33588
33598
|
toolbarButtonSize: 'middle',
|
|
33589
33599
|
zIndex: 'inherit'
|
|
33590
33600
|
};
|
|
33591
|
-
|
|
33601
|
+
_config_js__WEBPACK_IMPORTED_MODULE_13__.Config.prototype.controls.dialog = {
|
|
33592
33602
|
close: {
|
|
33593
33603
|
icon: 'cancel',
|
|
33594
33604
|
exec: function exec(dialog) {
|
|
@@ -33643,7 +33653,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
33643
33653
|
* True, if dialog was opened
|
|
33644
33654
|
*/ _this.isOpened = false;
|
|
33645
33655
|
var self1 = _this;
|
|
33646
|
-
self1.options = (0,
|
|
33656
|
+
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));
|
|
33647
33657
|
// Attach event handlers passed via `options.events` to the dialog's own
|
|
33648
33658
|
// emitter (as FileBrowser already does), so a consumer — e.g. a plugin
|
|
33649
33659
|
// forwarding the editor's `events` config — can observe `afterOpen` /
|
|
@@ -33652,38 +33662,38 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
33652
33662
|
self1.attachEvents(self1.options);
|
|
33653
33663
|
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(self1.container);
|
|
33654
33664
|
var n = _this.getFullElName.bind(_this);
|
|
33655
|
-
self1.container = _this.c.fromHTML('<div class="jodit jodit-dialog '.concat(_this.componentName, '">\n <div class="').concat(n('overlay'), '"></div>\n <div class="').concat(_this.getFullElName('panel'), '">\n <div class="').concat(n('header'), '">\n <div class="').concat(n('header-title'), '"></div>\n <div class="').concat(n('header-toolbar'), '"></div>\n </div>\n <div class="').concat(n('content'), '"></div>\n <div class="').concat(n('footer'), '"></div>\n <div class="').concat(n('resizer'), '">').concat(
|
|
33665
|
+
self1.container = _this.c.fromHTML('<div class="jodit jodit-dialog '.concat(_this.componentName, '">\n <div class="').concat(n('overlay'), '"></div>\n <div class="').concat(_this.getFullElName('panel'), '">\n <div class="').concat(n('header'), '">\n <div class="').concat(n('header-title'), '"></div>\n <div class="').concat(n('header-toolbar'), '"></div>\n </div>\n <div class="').concat(n('content'), '"></div>\n <div class="').concat(n('footer'), '"></div>\n <div class="').concat(n('resizer'), '">').concat(_core_ui_index_js__WEBPACK_IMPORTED_MODULE_10__.Icon.get('resize_handler'), "</div>\n </div>\n </div>"));
|
|
33656
33666
|
if (self1.options.direction === 'rtl') {
|
|
33657
|
-
(0,
|
|
33658
|
-
(0,
|
|
33667
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(self1.container, 'direction', 'rtl');
|
|
33668
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.attr)(self1.container, 'dir', 'rtl');
|
|
33659
33669
|
}
|
|
33660
33670
|
if (_this.o.zIndex) {
|
|
33661
|
-
(0,
|
|
33671
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(_this.container, 'zIndex', _this.o.zIndex.toString());
|
|
33662
33672
|
}
|
|
33663
|
-
;(0,
|
|
33673
|
+
;(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.attr)(self1.container, 'role', 'dialog');
|
|
33664
33674
|
Object.defineProperty(self1.container, 'component', {
|
|
33665
33675
|
value: _this
|
|
33666
33676
|
});
|
|
33667
33677
|
self1.setMod('theme', self1.o.theme || 'default').setMod('resizable', Boolean(self1.o.resizable));
|
|
33668
33678
|
var dialog = self1.getElm('panel');
|
|
33669
|
-
(0,
|
|
33679
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialog != null, 'Panel element does not exist');
|
|
33670
33680
|
var resizer = self1.getElm('resizer');
|
|
33671
|
-
(0,
|
|
33681
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(resizer != null, 'Resizer element does not exist');
|
|
33672
33682
|
var dialogbox_header = self1.getElm('header-title');
|
|
33673
|
-
(0,
|
|
33683
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialogbox_header != null, 'header-title element does not exist');
|
|
33674
33684
|
var dialogbox_content = self1.getElm('content');
|
|
33675
|
-
(0,
|
|
33685
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialogbox_content != null, 'Content element does not exist');
|
|
33676
33686
|
var dialogbox_footer = self1.getElm('footer');
|
|
33677
|
-
(0,
|
|
33687
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialogbox_footer != null, 'Footer element does not exist');
|
|
33678
33688
|
var dialogbox_toolbar = self1.getElm('header-toolbar');
|
|
33679
|
-
(0,
|
|
33689
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(dialogbox_toolbar != null, 'header-toolbar element does not exist');
|
|
33680
33690
|
_this.dialog = dialog;
|
|
33681
33691
|
_this.resizer = resizer;
|
|
33682
33692
|
_this.dialogbox_header = dialogbox_header;
|
|
33683
33693
|
_this.dialogbox_content = dialogbox_content;
|
|
33684
33694
|
_this.dialogbox_footer = dialogbox_footer;
|
|
33685
33695
|
_this.dialogbox_toolbar = dialogbox_toolbar;
|
|
33686
|
-
(0,
|
|
33696
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(self1.dialog, {
|
|
33687
33697
|
maxWidth: self1.options.maxWidth,
|
|
33688
33698
|
minHeight: self1.options.minHeight,
|
|
33689
33699
|
minWidth: self1.options.minWidth
|
|
@@ -33696,7 +33706,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
33696
33706
|
_this.e.on(self1.container, 'close_dialog', self1.close).on(_this.ow, 'keydown', _this.__onEsc).on(_this.ow, 'resize', _this.__onResize);
|
|
33697
33707
|
if (_this.o.closeOnClickOverlay) {
|
|
33698
33708
|
var overlay = self1.getElm('overlay');
|
|
33699
|
-
(0,
|
|
33709
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(overlay != null, 'Overlay element does not exist');
|
|
33700
33710
|
_this.e.on(overlay, 'click', self1.close);
|
|
33701
33711
|
}
|
|
33702
33712
|
return _this;
|
|
@@ -33780,8 +33790,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
33780
33790
|
this.draggable = true;
|
|
33781
33791
|
this.startX = e.clientX;
|
|
33782
33792
|
this.startY = e.clientY;
|
|
33783
|
-
this.startPoint.x = (0,
|
|
33784
|
-
this.startPoint.y = (0,
|
|
33793
|
+
this.startPoint.x = (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.dialog, 'left');
|
|
33794
|
+
this.startPoint.y = (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.dialog, 'top');
|
|
33785
33795
|
this.setMaxZIndex();
|
|
33786
33796
|
if (e.cancelable) {
|
|
33787
33797
|
e.preventDefault();
|
|
@@ -33889,7 +33899,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
33889
33899
|
if (h == null) {
|
|
33890
33900
|
h = this.dialog.offsetHeight;
|
|
33891
33901
|
}
|
|
33892
|
-
;(0,
|
|
33902
|
+
;(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.dialog, {
|
|
33893
33903
|
width: w,
|
|
33894
33904
|
height: h
|
|
33895
33905
|
});
|
|
@@ -33929,7 +33939,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
33929
33939
|
this.moved = Math.abs(x - left) > 100 || Math.abs(y - top) > 100;
|
|
33930
33940
|
}
|
|
33931
33941
|
// strings on purpose: `css()` would truncate fractional pixels
|
|
33932
|
-
;(0,
|
|
33942
|
+
;(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.dialog, {
|
|
33933
33943
|
left: (x || left) + 'px',
|
|
33934
33944
|
top: (y || top) + 'px'
|
|
33935
33945
|
});
|
|
@@ -33952,6 +33962,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
33952
33962
|
*/ key: "setHeader",
|
|
33953
33963
|
value: function setHeader(content) {
|
|
33954
33964
|
this.setElements(this.dialogbox_header, content);
|
|
33965
|
+
// `role="dialog"` needs an accessible name; a text title is the
|
|
33966
|
+
// natural one (element titles are left to the caller).
|
|
33967
|
+
if ((0,_core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_6__.isString)(content)) {
|
|
33968
|
+
var name = (0,_core_helpers_html_strip_tags_js__WEBPACK_IMPORTED_MODULE_7__.stripTags)(content, this.od).trim();
|
|
33969
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', name || null);
|
|
33970
|
+
}
|
|
33955
33971
|
return this;
|
|
33956
33972
|
}
|
|
33957
33973
|
},
|
|
@@ -34018,7 +34034,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
34018
34034
|
* Get zIndex from dialog
|
|
34019
34035
|
*/ key: "getZIndex",
|
|
34020
34036
|
value: function getZIndex() {
|
|
34021
|
-
return parseInt((0,
|
|
34037
|
+
return parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.container, 'zIndex'), 10) || 0;
|
|
34022
34038
|
}
|
|
34023
34039
|
},
|
|
34024
34040
|
{
|
|
@@ -34047,7 +34063,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
34047
34063
|
this.__openedSiblings().forEach(function(dialog) {
|
|
34048
34064
|
maxZIndex = Math.max(dialog.getZIndex(), maxZIndex);
|
|
34049
34065
|
});
|
|
34050
|
-
(0,
|
|
34066
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.container, 'zIndex', (maxZIndex + 1).toString());
|
|
34051
34067
|
}
|
|
34052
34068
|
},
|
|
34053
34069
|
{
|
|
@@ -34103,7 +34119,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
34103
34119
|
this.setPosition(this.offsetX, this.offsetY);
|
|
34104
34120
|
this.setMaxZIndex();
|
|
34105
34121
|
} else {
|
|
34106
|
-
(0,
|
|
34122
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_8__.css)(this.container, 'zIndex', null);
|
|
34107
34123
|
}
|
|
34108
34124
|
if (this.o.fullsize) {
|
|
34109
34125
|
this.toggleFullSize(true);
|
|
@@ -34208,12 +34224,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_12__.Config.prototype.controls.dialog = {
|
|
|
34208
34224
|
}
|
|
34209
34225
|
]);
|
|
34210
34226
|
return Dialog;
|
|
34211
|
-
}(
|
|
34227
|
+
}(_core_view_view_with_toolbar_js__WEBPACK_IMPORTED_MODULE_12__.ViewWithToolbar);
|
|
34212
34228
|
/**
|
|
34213
34229
|
* Registry of the currently opened dialogs. Replaces a DOM scan of the
|
|
34214
34230
|
* whole `destination` (usually `document.body`) for every z-index update.
|
|
34215
34231
|
*/ Dialog.__opened = new Set();
|
|
34216
|
-
Dialog.defaultOptions = _object_spread_props(_object_spread({},
|
|
34232
|
+
Dialog.defaultOptions = _object_spread_props(_object_spread({}, _core_view_view_js__WEBPACK_IMPORTED_MODULE_11__.View.defaultOptions), {
|
|
34217
34233
|
closeOnClickOverlay: false,
|
|
34218
34234
|
closeOnEsc: true
|
|
34219
34235
|
});
|
|
@@ -41919,7 +41935,6 @@ var ToolbarContent = /*#__PURE__*/ function(UIButton) {
|
|
|
41919
41935
|
_this.control = control;
|
|
41920
41936
|
_this.target = target;
|
|
41921
41937
|
_this.container.classList.add("".concat(_this.componentName, "_").concat(_this.clearName(control.name)));
|
|
41922
|
-
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(_this.container, 'role', 'content');
|
|
41923
41938
|
return _this;
|
|
41924
41939
|
}
|
|
41925
41940
|
_create_class(ToolbarContent, [
|
|
@@ -41929,6 +41944,19 @@ var ToolbarContent = /*#__PURE__*/ function(UIButton) {
|
|
|
41929
41944
|
return 'ToolbarContent';
|
|
41930
41945
|
}
|
|
41931
41946
|
},
|
|
41947
|
+
{
|
|
41948
|
+
/** A toolbar item like `ToolbarButton`: the parent group is a `list`. */ key: "getRole",
|
|
41949
|
+
value: function getRole() {
|
|
41950
|
+
return 'listitem';
|
|
41951
|
+
}
|
|
41952
|
+
},
|
|
41953
|
+
{
|
|
41954
|
+
/**
|
|
41955
|
+
* Arbitrary content is not a toggle button — `aria-pressed` is not
|
|
41956
|
+
* allowed on a `listitem`.
|
|
41957
|
+
*/ key: "onChangeActivated",
|
|
41958
|
+
value: function onChangeActivated() {}
|
|
41959
|
+
},
|
|
41932
41960
|
{
|
|
41933
41961
|
/** @override */ key: "update",
|
|
41934
41962
|
value: function update() {
|
|
@@ -68043,21 +68071,28 @@ var AceEditor = /*#__PURE__*/ function(SourceEditor) {
|
|
|
68043
68071
|
onResize();
|
|
68044
68072
|
_this.onReady();
|
|
68045
68073
|
};
|
|
68046
|
-
var
|
|
68074
|
+
var loading = false;
|
|
68075
|
+
var initAceEditor = function initAceEditor1() {
|
|
68047
68076
|
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) {
|
|
68048
68077
|
return;
|
|
68049
68078
|
}
|
|
68079
|
+
// ACE (~400 KiB from the CDN) is only needed once the source view
|
|
68080
|
+
// is actually shown — a page that stays in WYSIWYG must not
|
|
68081
|
+
// download it.
|
|
68082
|
+
if (!_this.aceExists()) {
|
|
68083
|
+
if (!loading) {
|
|
68084
|
+
loading = true;
|
|
68085
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(initAceEditor).catch(function() {
|
|
68086
|
+
return null;
|
|
68087
|
+
});
|
|
68088
|
+
}
|
|
68089
|
+
return;
|
|
68090
|
+
}
|
|
68050
68091
|
_this.fromWYSIWYG();
|
|
68051
68092
|
tryInitAceEditor();
|
|
68052
68093
|
};
|
|
68053
68094
|
editor.e.on('afterSetMode', initAceEditor);
|
|
68054
68095
|
initAceEditor();
|
|
68055
|
-
// global add ace editor in browser
|
|
68056
|
-
if (!this.aceExists()) {
|
|
68057
|
-
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(initAceEditor).catch(function() {
|
|
68058
|
-
return null;
|
|
68059
|
-
});
|
|
68060
|
-
}
|
|
68061
68096
|
}
|
|
68062
68097
|
},
|
|
68063
68098
|
{
|
|
@@ -68958,9 +68993,26 @@ function _wrap_native_super(Class) {
|
|
|
68958
68993
|
return false;
|
|
68959
68994
|
};
|
|
68960
68995
|
if (!addEventListener()) {
|
|
68961
|
-
|
|
68962
|
-
|
|
68963
|
-
|
|
68996
|
+
// js-beautify is only needed once the source view is shown —
|
|
68997
|
+
// do not download it for a page that stays in WYSIWYG.
|
|
68998
|
+
var loading = false;
|
|
68999
|
+
var loadBeautify = function loadBeautify() {
|
|
69000
|
+
if (loading || editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE && editor.getMode() !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT) {
|
|
69001
|
+
return;
|
|
69002
|
+
}
|
|
69003
|
+
loading = true;
|
|
69004
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.loadNext)(editor, editor.o.beautifyHTMLCDNUrlsJS).then(function() {
|
|
69005
|
+
// The source view was filled before the
|
|
69006
|
+
// beautifier arrived — format it now.
|
|
69007
|
+
if (addEventListener()) {
|
|
69008
|
+
_this.syncValueFromWYSIWYG(true);
|
|
69009
|
+
}
|
|
69010
|
+
}, function() {
|
|
69011
|
+
return null;
|
|
69012
|
+
});
|
|
69013
|
+
};
|
|
69014
|
+
editor.e.on('afterSetMode.source', loadBeautify);
|
|
69015
|
+
loadBeautify();
|
|
68964
69016
|
}
|
|
68965
69017
|
}
|
|
68966
69018
|
this.syncValueFromWYSIWYG(true);
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.16.0
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit-pro - PRO Version of Jodit Editor
|
|
10
10
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
11
|
-
* Version: v4.
|
|
11
|
+
* Version: v4.16.0
|
|
12
12
|
* Url: https://xdsoft.net/jodit/pro/
|
|
13
13
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
14
14
|
*/
|