jodit-pro 4.13.35 → 4.13.36
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 +4 -4
- package/es2015/jodit.js +175 -101
- 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.js +4 -4
- package/es2018/jodit.min.js +4 -4
- 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 +1 -1
- package/es2021/jodit.fat.min.js +7 -7
- package/es2021/jodit.js +175 -101
- package/es2021/jodit.min.js +7 -7
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +7 -7
- package/es2021.en/jodit.js +175 -101
- package/es2021.en/jodit.min.js +7 -7
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +182 -105
- 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 +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.13.
|
|
4
|
+
* Version: v4.13.36
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1787,7 +1787,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1787
1787
|
* ```
|
|
1788
1788
|
* @packageDocumentation
|
|
1789
1789
|
* @module constants
|
|
1790
|
-
*/ const APP_VERSION = "4.13.
|
|
1790
|
+
*/ const APP_VERSION = "4.13.36";
|
|
1791
1791
|
// prettier-ignore
|
|
1792
1792
|
const ES = "es2021";
|
|
1793
1793
|
const IS_ES_MODERN = true;
|
|
@@ -29204,26 +29204,27 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
29204
29204
|
/* harmony export */ ToolbarButton: function() { return /* binding */ ToolbarButton; }
|
|
29205
29205
|
/* harmony export */ });
|
|
29206
29206
|
/* harmony import */ var _core_component_statuses_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78213);
|
|
29207
|
-
/* harmony import */ var
|
|
29208
|
-
/* harmony import */ var
|
|
29209
|
-
/* harmony import */ var
|
|
29210
|
-
/* harmony import */ var
|
|
29211
|
-
/* harmony import */ var
|
|
29212
|
-
/* harmony import */ var
|
|
29213
|
-
/* harmony import */ var
|
|
29214
|
-
/* harmony import */ var
|
|
29215
|
-
/* harmony import */ var
|
|
29216
|
-
/* harmony import */ var
|
|
29217
|
-
/* harmony import */ var
|
|
29218
|
-
/* harmony import */ var
|
|
29219
|
-
/* harmony import */ var
|
|
29220
|
-
/* harmony import */ var
|
|
29221
|
-
/* harmony import */ var
|
|
29222
|
-
/* harmony import */ var
|
|
29223
|
-
/* harmony import */ var
|
|
29224
|
-
/* harmony import */ var
|
|
29225
|
-
/* harmony import */ var
|
|
29226
|
-
/* harmony import */ var
|
|
29207
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
|
|
29208
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(45219);
|
|
29209
|
+
/* harmony import */ var _core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33433);
|
|
29210
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87325);
|
|
29211
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37133);
|
|
29212
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2748);
|
|
29213
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(68345);
|
|
29214
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23282);
|
|
29215
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(19306);
|
|
29216
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(72430);
|
|
29217
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(70799);
|
|
29218
|
+
/* harmony import */ var _core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(56175);
|
|
29219
|
+
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(87058);
|
|
29220
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(38837);
|
|
29221
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(29960);
|
|
29222
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(37790);
|
|
29223
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(62843);
|
|
29224
|
+
/* harmony import */ var _core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(72157);
|
|
29225
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(12153);
|
|
29226
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(56917);
|
|
29227
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(21491);
|
|
29227
29228
|
/*!
|
|
29228
29229
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29229
29230
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29255,7 +29256,8 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
29255
29256
|
|
|
29256
29257
|
|
|
29257
29258
|
|
|
29258
|
-
|
|
29259
|
+
|
|
29260
|
+
let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__.UIButton {
|
|
29259
29261
|
className() {
|
|
29260
29262
|
return 'ToolbarButton';
|
|
29261
29263
|
}
|
|
@@ -29266,13 +29268,13 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29266
29268
|
super.updateAriaLabel();
|
|
29267
29269
|
if (this.trigger) {
|
|
29268
29270
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
29269
|
-
(0,
|
|
29271
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'aria-label', i8nTooltip);
|
|
29270
29272
|
}
|
|
29271
29273
|
}
|
|
29272
29274
|
/**
|
|
29273
29275
|
* Get parent toolbar
|
|
29274
29276
|
*/ get toolbar() {
|
|
29275
|
-
const ToolbarCollection = (0,
|
|
29277
|
+
const ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_4__.getComponentClass)('ToolbarCollection');
|
|
29276
29278
|
return this.closest(ToolbarCollection);
|
|
29277
29279
|
}
|
|
29278
29280
|
update() {
|
|
@@ -29294,7 +29296,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29294
29296
|
* Calculates whether the button is active
|
|
29295
29297
|
*/ __calculateActivatedStatus(tc) {
|
|
29296
29298
|
var _a, _b;
|
|
29297
|
-
if ((0,
|
|
29299
|
+
if ((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_9__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
29298
29300
|
return false;
|
|
29299
29301
|
}
|
|
29300
29302
|
if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
@@ -29318,11 +29320,11 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29318
29320
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
29319
29321
|
}
|
|
29320
29322
|
onChangeActivated() {
|
|
29321
|
-
(0,
|
|
29323
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
29322
29324
|
super.onChangeActivated();
|
|
29323
29325
|
}
|
|
29324
29326
|
onChangeText() {
|
|
29325
|
-
if ((0,
|
|
29327
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(this.control.template)) {
|
|
29326
29328
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
29327
29329
|
} else {
|
|
29328
29330
|
super.onChangeText();
|
|
@@ -29330,7 +29332,8 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29330
29332
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
29331
29333
|
}
|
|
29332
29334
|
onChangeTabIndex() {
|
|
29333
|
-
(0,
|
|
29335
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
29336
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'tabindex', this.state.tabIndex);
|
|
29334
29337
|
}
|
|
29335
29338
|
createContainer() {
|
|
29336
29339
|
const cn = this.componentName;
|
|
@@ -29343,7 +29346,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29343
29346
|
configurable: true
|
|
29344
29347
|
});
|
|
29345
29348
|
container.appendChild(button);
|
|
29346
|
-
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${
|
|
29349
|
+
const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_19__.Icon.get('chevron')}</span>`);
|
|
29347
29350
|
// For caching
|
|
29348
29351
|
button.appendChild(trigger);
|
|
29349
29352
|
return container;
|
|
@@ -29356,15 +29359,15 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29356
29359
|
if (this.state.hasTrigger) {
|
|
29357
29360
|
this.container.appendChild(this.trigger);
|
|
29358
29361
|
} else {
|
|
29359
|
-
|
|
29362
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(this.trigger);
|
|
29360
29363
|
}
|
|
29361
29364
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
29362
29365
|
}
|
|
29363
29366
|
/** @override */ onChangeDisabled() {
|
|
29364
29367
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
29365
|
-
(0,
|
|
29366
|
-
(0,
|
|
29367
|
-
(0,
|
|
29368
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'disabled', disabled);
|
|
29369
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.button, 'disabled', disabled);
|
|
29370
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.container, 'disabled', disabled);
|
|
29368
29371
|
}
|
|
29369
29372
|
/**
|
|
29370
29373
|
* Init constant data from control
|
|
@@ -29374,7 +29377,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29374
29377
|
state.name = ctr.name;
|
|
29375
29378
|
this.__initIconFromControl();
|
|
29376
29379
|
if (ctr.tooltip) {
|
|
29377
|
-
state.tooltip = (0,
|
|
29380
|
+
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
29378
29381
|
}
|
|
29379
29382
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
29380
29383
|
}
|
|
@@ -29382,12 +29385,12 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29382
29385
|
var _a;
|
|
29383
29386
|
const { control: ctr, state } = this;
|
|
29384
29387
|
const { textIcons } = this.j.o;
|
|
29385
|
-
if (textIcons === true || (0,
|
|
29386
|
-
state.icon = (0,
|
|
29388
|
+
if (textIcons === true || (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
29389
|
+
state.icon = (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__.UIButtonState)().icon;
|
|
29387
29390
|
state.text = ctr.text || ctr.name;
|
|
29388
29391
|
return;
|
|
29389
29392
|
}
|
|
29390
|
-
if (!(0,
|
|
29393
|
+
if (!(0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(ctr.icon) && ctr.icon != null) {
|
|
29391
29394
|
state.icon = {
|
|
29392
29395
|
name: ctr.icon.name || ctr.name,
|
|
29393
29396
|
iconURL: ctr.icon.iconURL || '',
|
|
@@ -29400,7 +29403,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29400
29403
|
state.icon.iconURL = ctr.iconURL;
|
|
29401
29404
|
} else {
|
|
29402
29405
|
const name = ctr.icon || ctr.name;
|
|
29403
|
-
state.icon.name =
|
|
29406
|
+
state.icon.name = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_19__.Icon.exists(name) || ((_a = this.j.o.extraIcons) === null || _a === void 0 ? void 0 : _a[name]) ? name : '';
|
|
29404
29407
|
}
|
|
29405
29408
|
if (!ctr.iconURL && !state.icon.name) {
|
|
29406
29409
|
state.text = ctr.text || ctr.name;
|
|
@@ -29415,22 +29418,22 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29415
29418
|
return;
|
|
29416
29419
|
}
|
|
29417
29420
|
const { control: ctr } = this;
|
|
29418
|
-
(0,
|
|
29421
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'aria-expanded', true);
|
|
29419
29422
|
e.buffer = {
|
|
29420
29423
|
actionTrigger: this
|
|
29421
29424
|
};
|
|
29422
29425
|
if (ctr.list) {
|
|
29423
29426
|
return this.__openControlList(ctr);
|
|
29424
29427
|
}
|
|
29425
|
-
if ((0,
|
|
29428
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(ctr.popup)) {
|
|
29426
29429
|
const popup = this.openPopup();
|
|
29427
29430
|
popup.parentElement = this;
|
|
29428
29431
|
try {
|
|
29429
|
-
if (this.j.e.fire((0,
|
|
29432
|
+
if (this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_13__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
|
|
29430
29433
|
const target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
29431
29434
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
29432
29435
|
if (elm) {
|
|
29433
|
-
popup.setContent((0,
|
|
29436
|
+
popup.setContent((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(()=>(0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_12__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
29434
29437
|
} else {
|
|
29435
29438
|
this.__closePopup();
|
|
29436
29439
|
}
|
|
@@ -29443,29 +29446,40 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29443
29446
|
* Fired after the popup was opened for some control button
|
|
29444
29447
|
*/ /**
|
|
29445
29448
|
* Close all opened popups
|
|
29446
|
-
*/ this.j.e.fire((0,
|
|
29449
|
+
*/ this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_13__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
|
|
29447
29450
|
}
|
|
29448
29451
|
}
|
|
29452
|
+
onTriggerKeyDown(e) {
|
|
29453
|
+
if (this.state.disabled || ![
|
|
29454
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_ENTER,
|
|
29455
|
+
_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.KEY_SPACE,
|
|
29456
|
+
' '
|
|
29457
|
+
].includes(e.key)) {
|
|
29458
|
+
return;
|
|
29459
|
+
}
|
|
29460
|
+
e.preventDefault();
|
|
29461
|
+
this.trigger.click();
|
|
29462
|
+
}
|
|
29449
29463
|
/**
|
|
29450
29464
|
* Create an open popup list
|
|
29451
29465
|
*/ __openControlList(control) {
|
|
29452
29466
|
var _a;
|
|
29453
|
-
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key)=>(0,
|
|
29467
|
+
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key)=>(0,_core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_18__.findControlType)(key, controls);
|
|
29454
29468
|
const list = control.list;
|
|
29455
29469
|
const menu = this.openPopup();
|
|
29456
|
-
const toolbar = (0,
|
|
29470
|
+
const toolbar = (0,_factory_js__WEBPACK_IMPORTED_MODULE_21__.makeCollection)(this.j);
|
|
29457
29471
|
menu.parentElement = this;
|
|
29458
29472
|
toolbar.parentElement = menu;
|
|
29459
29473
|
toolbar.mode = 'vertical';
|
|
29460
|
-
const isListItem = (key)=>(0,
|
|
29474
|
+
const isListItem = (key)=>(0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_10__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
29461
29475
|
const getButton = (key, value)=>{
|
|
29462
|
-
if ((0,
|
|
29476
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(value) && getControl(value)) {
|
|
29463
29477
|
return {
|
|
29464
29478
|
name: value.toString(),
|
|
29465
29479
|
...getControl(value)
|
|
29466
29480
|
};
|
|
29467
29481
|
}
|
|
29468
|
-
if ((0,
|
|
29482
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(key) && getControl(key)) {
|
|
29469
29483
|
return {
|
|
29470
29484
|
name: key.toString(),
|
|
29471
29485
|
...getControl(key),
|
|
@@ -29499,26 +29513,26 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29499
29513
|
value
|
|
29500
29514
|
]
|
|
29501
29515
|
};
|
|
29502
|
-
if ((0,
|
|
29516
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_11__.isString)(value)) {
|
|
29503
29517
|
childControl.text = value;
|
|
29504
29518
|
}
|
|
29505
29519
|
return childControl;
|
|
29506
29520
|
};
|
|
29507
|
-
toolbar.build((0,
|
|
29508
|
-
menu.setContent(toolbar).open(()=>(0,
|
|
29521
|
+
toolbar.build((0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_7__.isArray)(list) ? list.map(getButton) : (0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_16__.keys)(list, false).map((key)=>getButton(key, list[key])), this.target);
|
|
29522
|
+
menu.setContent(toolbar).open(()=>(0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_12__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
29509
29523
|
this.state.activated = true;
|
|
29510
29524
|
}
|
|
29511
29525
|
onOutsideClick(e) {
|
|
29512
29526
|
if (!this.openedPopup) {
|
|
29513
29527
|
return;
|
|
29514
29528
|
}
|
|
29515
|
-
if (!e || !
|
|
29529
|
+
if (!e || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.isNode(e.target) || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
|
|
29516
29530
|
this.__closePopup();
|
|
29517
29531
|
}
|
|
29518
29532
|
}
|
|
29519
29533
|
openPopup() {
|
|
29520
29534
|
this.__closePopup();
|
|
29521
|
-
this.openedPopup = new
|
|
29535
|
+
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_20__.Popup(this.j, false);
|
|
29522
29536
|
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
|
|
29523
29537
|
return this.openedPopup;
|
|
29524
29538
|
}
|
|
@@ -29530,7 +29544,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29530
29544
|
this.openedPopup.destruct();
|
|
29531
29545
|
this.openedPopup = null;
|
|
29532
29546
|
if (this.trigger) {
|
|
29533
|
-
(0,
|
|
29547
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_15__.attr)(this.trigger, 'aria-expanded', false);
|
|
29534
29548
|
}
|
|
29535
29549
|
}
|
|
29536
29550
|
}
|
|
@@ -29539,7 +29553,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29539
29553
|
*/ onClick(originalEvent) {
|
|
29540
29554
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
29541
29555
|
const { control: ctr } = this;
|
|
29542
|
-
if ((0,
|
|
29556
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(ctr.exec)) {
|
|
29543
29557
|
const target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
29544
29558
|
const result = ctr.exec(this.j, target, {
|
|
29545
29559
|
control: ctr,
|
|
@@ -29563,11 +29577,11 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29563
29577
|
if (ctr.list) {
|
|
29564
29578
|
return this.__openControlList(ctr);
|
|
29565
29579
|
}
|
|
29566
|
-
if ((0,
|
|
29580
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_8__.isFunction)(ctr.popup)) {
|
|
29567
29581
|
return this.onTriggerClick(originalEvent);
|
|
29568
29582
|
}
|
|
29569
29583
|
if (ctr.command || ctr.name) {
|
|
29570
|
-
(0,
|
|
29584
|
+
(0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_16__.call)((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_9__.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
|
|
29571
29585
|
this.j.e.fire('closeAllPopups');
|
|
29572
29586
|
}
|
|
29573
29587
|
}
|
|
@@ -29580,21 +29594,21 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29580
29594
|
this.control = control;
|
|
29581
29595
|
this.target = target;
|
|
29582
29596
|
this.state = {
|
|
29583
|
-
...(0,
|
|
29597
|
+
...(0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_17__.UIButtonState)(),
|
|
29584
29598
|
theme: 'toolbar',
|
|
29585
29599
|
currentValue: '',
|
|
29586
29600
|
hasTrigger: false
|
|
29587
29601
|
};
|
|
29588
29602
|
this.openedPopup = null;
|
|
29589
29603
|
const button = this.getElm('button');
|
|
29590
|
-
(0,
|
|
29604
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_14__.assert)(button, 'Element button should exists');
|
|
29591
29605
|
this.button = button;
|
|
29592
29606
|
Object.defineProperty(button, 'component', {
|
|
29593
29607
|
value: this,
|
|
29594
29608
|
configurable: true
|
|
29595
29609
|
});
|
|
29596
29610
|
const trigger = this.getElm('trigger');
|
|
29597
|
-
(0,
|
|
29611
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_14__.assert)(trigger, 'Element trigger should exists');
|
|
29598
29612
|
this.trigger = trigger;
|
|
29599
29613
|
trigger.remove();
|
|
29600
29614
|
// Prevent lost focus
|
|
@@ -29615,24 +29629,27 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
29615
29629
|
}
|
|
29616
29630
|
};
|
|
29617
29631
|
__decorate([
|
|
29618
|
-
|
|
29632
|
+
_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
|
|
29619
29633
|
], ToolbarButton.prototype, "createContainer", null);
|
|
29620
29634
|
__decorate([
|
|
29621
|
-
(0,
|
|
29635
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('state.hasTrigger', {
|
|
29622
29636
|
immediately: false
|
|
29623
29637
|
})
|
|
29624
29638
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
29625
29639
|
__decorate([
|
|
29626
|
-
(0,
|
|
29640
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('trigger:click')
|
|
29627
29641
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
29628
29642
|
__decorate([
|
|
29629
|
-
|
|
29643
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_5__.watch)('trigger:keydown')
|
|
29644
|
+
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
29645
|
+
__decorate([
|
|
29646
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
29630
29647
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
29631
29648
|
__decorate([
|
|
29632
|
-
|
|
29649
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
29633
29650
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
29634
29651
|
ToolbarButton = __decorate([
|
|
29635
|
-
|
|
29652
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_4__.component
|
|
29636
29653
|
], ToolbarButton);
|
|
29637
29654
|
|
|
29638
29655
|
|
|
@@ -48256,12 +48273,13 @@ function findCell(editor, key) {
|
|
|
48256
48273
|
/***/ 40329:
|
|
48257
48274
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
48258
48275
|
|
|
48259
|
-
/* harmony import */ var
|
|
48260
|
-
/* harmony import */ var
|
|
48261
|
-
/* harmony import */ var
|
|
48262
|
-
/* harmony import */ var
|
|
48263
|
-
/* harmony import */ var
|
|
48264
|
-
/* harmony import */ var
|
|
48276
|
+
/* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
48277
|
+
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
48278
|
+
/* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
48279
|
+
/* harmony import */ var _core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43555);
|
|
48280
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
|
|
48281
|
+
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
48282
|
+
/* harmony import */ var _table_svg_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6091);
|
|
48265
48283
|
/*!
|
|
48266
48284
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
48267
48285
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -48272,13 +48290,14 @@ function findCell(editor, key) {
|
|
|
48272
48290
|
|
|
48273
48291
|
|
|
48274
48292
|
|
|
48275
|
-
|
|
48293
|
+
|
|
48294
|
+
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.table = {
|
|
48276
48295
|
splitBlockOnInsertTable: true,
|
|
48277
48296
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
48278
48297
|
useExtraClassesOptions: false
|
|
48279
48298
|
};
|
|
48280
|
-
|
|
48281
|
-
|
|
48299
|
+
_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_4__.Icon.set('table', _table_svg_js__WEBPACK_IMPORTED_MODULE_6__["default"]);
|
|
48300
|
+
_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.table = {
|
|
48282
48301
|
data: {
|
|
48283
48302
|
cols: 10,
|
|
48284
48303
|
rows: 10,
|
|
@@ -48308,19 +48327,25 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
48308
48327
|
};
|
|
48309
48328
|
const form = editor.c.fromHTML('<form class="jodit-form jodit-form__inserter">' + '<div class="jodit-form__table-creator-box">' + '<div class="jodit-form__container"></div>' + '<div class="jodit-form__options">' + generateExtraClasses() + '</div>' + '</div>' + '<label class="jodit-form__center">' + '<span>1</span> × <span>1</span>' + '</label>' + '</form>'), rows = form.querySelectorAll('span')[0], cols = form.querySelectorAll('span')[1], blocksContainer = form.querySelector('.jodit-form__container'), options = form.querySelector('.jodit-form__options'), cells = [];
|
|
48310
48329
|
const cnt = default_rows_count * default_cols_count;
|
|
48330
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(blocksContainer, {
|
|
48331
|
+
role: 'grid',
|
|
48332
|
+
ariaLabel: 'Table size',
|
|
48333
|
+
ariaRowcount: default_rows_count,
|
|
48334
|
+
ariaColcount: default_cols_count
|
|
48335
|
+
});
|
|
48311
48336
|
for(let i = 0; i < cnt; i += 1){
|
|
48312
48337
|
if (!cells[i]) {
|
|
48338
|
+
const row = Math.floor(i / default_cols_count) + 1, col = i % default_cols_count + 1;
|
|
48313
48339
|
cells.push(editor.c.element('span', {
|
|
48314
|
-
dataIndex: i
|
|
48340
|
+
dataIndex: i,
|
|
48341
|
+
role: 'gridcell',
|
|
48342
|
+
tabindex: i === 0 ? 0 : -1,
|
|
48343
|
+
ariaLabel: `${row} by ${col}`
|
|
48315
48344
|
}));
|
|
48316
48345
|
}
|
|
48317
48346
|
}
|
|
48318
|
-
const
|
|
48319
|
-
const
|
|
48320
|
-
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(dv, 'span')) {
|
|
48321
|
-
return;
|
|
48322
|
-
}
|
|
48323
|
-
const k = index === undefined || isNaN(index) ? parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(dv, '-index') || '0', 10) : index || 0;
|
|
48347
|
+
const highlightCell = (cell)=>{
|
|
48348
|
+
const k = parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(cell, '-index') || '0', 10);
|
|
48324
48349
|
const rows_count = Math.ceil((k + 1) / default_cols_count), cols_count = k % default_cols_count + 1;
|
|
48325
48350
|
for(let i = 0; i < cells.length; i += 1){
|
|
48326
48351
|
if (cols_count >= i % default_cols_count + 1 && rows_count >= Math.ceil((i + 1) / default_cols_count)) {
|
|
@@ -48332,14 +48357,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
48332
48357
|
cols.textContent = cols_count.toString();
|
|
48333
48358
|
rows.textContent = rows_count.toString();
|
|
48334
48359
|
};
|
|
48335
|
-
|
|
48336
|
-
const
|
|
48337
|
-
e.preventDefault();
|
|
48338
|
-
e.stopImmediatePropagation();
|
|
48339
|
-
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(dv, 'span')) {
|
|
48340
|
-
return;
|
|
48341
|
-
}
|
|
48342
|
-
const k = parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(dv, '-index') || '0', 10);
|
|
48360
|
+
const insertTable = (cell)=>{
|
|
48361
|
+
const k = parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(cell, '-index') || '0', 10);
|
|
48343
48362
|
const rows_count = Math.ceil((k + 1) / default_cols_count), cols_count = k % default_cols_count + 1;
|
|
48344
48363
|
const crt = editor.createInside, tbody = crt.element('tbody'), table = crt.element('table');
|
|
48345
48364
|
table.appendChild(tbody);
|
|
@@ -48351,7 +48370,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
48351
48370
|
if (!first_td) {
|
|
48352
48371
|
first_td = td;
|
|
48353
48372
|
}
|
|
48354
|
-
(0,
|
|
48373
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(td, 'width', (100 / cols_count).toFixed(4) + '%');
|
|
48355
48374
|
td.appendChild(crt.element('br'));
|
|
48356
48375
|
tr.appendChild(crt.text('\n'));
|
|
48357
48376
|
tr.appendChild(crt.text('\t'));
|
|
@@ -48360,7 +48379,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
48360
48379
|
tbody.appendChild(crt.text('\n'));
|
|
48361
48380
|
tbody.appendChild(tr);
|
|
48362
48381
|
}
|
|
48363
|
-
(0,
|
|
48382
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.$$)('input[type=checkbox]:checked', options).forEach((input)=>{
|
|
48364
48383
|
input.value.split(/[\s]+/).forEach((className)=>{
|
|
48365
48384
|
table.classList.add(className);
|
|
48366
48385
|
});
|
|
@@ -48369,15 +48388,15 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
48369
48388
|
editor.s.removeMarkers();
|
|
48370
48389
|
editor.editor.normalize();
|
|
48371
48390
|
editor.history.snapshot.restore(snapshot);
|
|
48372
|
-
const block =
|
|
48373
|
-
if (block &&
|
|
48374
|
-
|
|
48391
|
+
const block = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.furthest(editor.s.current(), _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
|
|
48392
|
+
if (block && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(block)) {
|
|
48393
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.replace(block, table, undefined, false, true);
|
|
48375
48394
|
} else {
|
|
48376
48395
|
if (block) {
|
|
48377
48396
|
const fake = crt.text('\n');
|
|
48378
48397
|
if (!editor.o.table.splitBlockOnInsertTable) {
|
|
48379
|
-
|
|
48380
|
-
|
|
48398
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(block, fake);
|
|
48399
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(fake, table);
|
|
48381
48400
|
} else {
|
|
48382
48401
|
const range = editor.s.range;
|
|
48383
48402
|
range.collapse(false);
|
|
@@ -48386,9 +48405,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
48386
48405
|
editor.s.selectRange(range);
|
|
48387
48406
|
const firstPart = editor.s.splitSelection(block, fake);
|
|
48388
48407
|
if (firstPart) {
|
|
48389
|
-
|
|
48408
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(firstPart, table);
|
|
48390
48409
|
} else {
|
|
48391
|
-
|
|
48410
|
+
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(block, table);
|
|
48392
48411
|
}
|
|
48393
48412
|
}
|
|
48394
48413
|
} else {
|
|
@@ -48397,13 +48416,68 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.table = {
|
|
|
48397
48416
|
}
|
|
48398
48417
|
if (first_td) {
|
|
48399
48418
|
editor.s.setCursorIn(first_td);
|
|
48400
|
-
(0,
|
|
48419
|
+
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.scrollIntoViewIfNeeded)(first_td, editor.editor, editor.ed);
|
|
48401
48420
|
}
|
|
48402
48421
|
close();
|
|
48422
|
+
};
|
|
48423
|
+
editor.e.on(blocksContainer, 'mousemove', (e)=>{
|
|
48424
|
+
if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'span')) {
|
|
48425
|
+
highlightCell(e.target);
|
|
48426
|
+
}
|
|
48427
|
+
}).on(blocksContainer, 'touchstart mousedown', (e)=>{
|
|
48428
|
+
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'span')) {
|
|
48429
|
+
return;
|
|
48430
|
+
}
|
|
48431
|
+
e.preventDefault();
|
|
48432
|
+
e.stopImmediatePropagation();
|
|
48433
|
+
insertTable(e.target);
|
|
48434
|
+
}).on(blocksContainer, 'keydown', (e)=>{
|
|
48435
|
+
if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'span')) {
|
|
48436
|
+
return;
|
|
48437
|
+
}
|
|
48438
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER) {
|
|
48439
|
+
e.preventDefault();
|
|
48440
|
+
e.stopImmediatePropagation();
|
|
48441
|
+
insertTable(e.target);
|
|
48442
|
+
return;
|
|
48443
|
+
}
|
|
48444
|
+
if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC) {
|
|
48445
|
+
e.preventDefault();
|
|
48446
|
+
e.stopImmediatePropagation();
|
|
48447
|
+
close();
|
|
48448
|
+
return;
|
|
48449
|
+
}
|
|
48450
|
+
const index = parseInt((0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(e.target, '-index') || '0', 10), row = Math.floor(index / default_cols_count), col = index % default_cols_count;
|
|
48451
|
+
let nextIndex = index;
|
|
48452
|
+
switch(e.key){
|
|
48453
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT:
|
|
48454
|
+
nextIndex = col > 0 ? index - 1 : index;
|
|
48455
|
+
break;
|
|
48456
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT:
|
|
48457
|
+
nextIndex = col < default_cols_count - 1 ? index + 1 : index;
|
|
48458
|
+
break;
|
|
48459
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP:
|
|
48460
|
+
nextIndex = row > 0 ? index - default_cols_count : index;
|
|
48461
|
+
break;
|
|
48462
|
+
case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN:
|
|
48463
|
+
nextIndex = row < default_rows_count - 1 ? index + default_cols_count : index;
|
|
48464
|
+
break;
|
|
48465
|
+
default:
|
|
48466
|
+
return;
|
|
48467
|
+
}
|
|
48468
|
+
e.preventDefault();
|
|
48469
|
+
e.stopImmediatePropagation();
|
|
48470
|
+
if (nextIndex !== index) {
|
|
48471
|
+
cells[index].tabIndex = -1;
|
|
48472
|
+
cells[nextIndex].tabIndex = 0;
|
|
48473
|
+
cells[nextIndex].focus();
|
|
48474
|
+
highlightCell(cells[nextIndex]);
|
|
48475
|
+
}
|
|
48403
48476
|
});
|
|
48404
48477
|
if (button && button.parentElement) {
|
|
48405
48478
|
for(let i = 0; i < default_rows_count; i += 1){
|
|
48406
48479
|
const row = editor.c.div();
|
|
48480
|
+
(0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(row, 'role', 'row');
|
|
48407
48481
|
for(let j = 0; j < default_cols_count; j += 1){
|
|
48408
48482
|
row.appendChild(cells[i * default_cols_count + j]);
|
|
48409
48483
|
}
|