jodit-pro 4.9.4 → 4.9.15
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/CHANGELOG.md +44 -2
- package/config.js +1 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +26 -26
- package/es2015/jodit.js +5 -3
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +10 -4
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
- 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/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 +79 -0
- package/es2015/plugins/style/style.js +395 -0
- package/es2015/plugins/style/style.min.css +1 -0
- package/es2015/plugins/style/style.min.js +8 -0
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +15 -15
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +7 -7
- 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/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.css +1 -0
- package/es2018/plugins/style/style.min.js +8 -0
- 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.css +1 -1
- package/es2021/jodit.fat.min.js +16 -16
- package/es2021/jodit.js +5 -3
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +9 -4
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +28 -28
- 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/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 +79 -0
- package/es2021/plugins/style/style.js +395 -0
- package/es2021/plugins/style/style.min.css +1 -0
- package/es2021/plugins/style/style.min.js +8 -0
- 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.css +1 -1
- package/es2021.en/jodit.fat.min.js +14 -14
- package/es2021.en/jodit.js +5 -3
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +9 -4
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +7 -7
- 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/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 +79 -0
- package/es2021.en/plugins/style/style.js +395 -0
- package/es2021.en/plugins/style/style.min.css +1 -0
- package/es2021.en/plugins/style/style.min.js +8 -0
- 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.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +5 -3
- 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 +11 -5
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- 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/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 +79 -0
- package/es5/plugins/style/style.js +524 -0
- package/es5/plugins/style/style.min.css +1 -0
- package/es5/plugins/style/style.min.js +8 -0
- 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/config.d.ts +6 -0
- package/esm/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
- package/esm/plugins/ai-assistant-pro/core/ai-response-handler.js +1 -1
- package/esm/plugins/ai-assistant-pro/core/panel-resize.js +1 -1
- package/esm/plugins/ai-assistant-pro/helpers/api-client.js +1 -1
- package/esm/plugins/all.js +1 -1
- package/esm/plugins/style/config.d.ts +13 -0
- package/esm/plugins/style/config.js +1 -0
- package/esm/plugins/style/helpers/apply-style.d.ts +8 -0
- package/esm/plugins/style/helpers/apply-style.js +1 -0
- package/esm/plugins/style/helpers/classify-definitions.d.ts +7 -0
- package/esm/plugins/style/helpers/classify-definitions.js +1 -0
- package/esm/plugins/style/helpers/detect-active-style.d.ts +8 -0
- package/esm/plugins/style/helpers/detect-active-style.js +1 -0
- package/esm/plugins/style/icon.svg.js +1 -0
- package/esm/plugins/style/interface.d.ts +15 -0
- package/esm/plugins/style/interface.js +0 -0
- package/esm/plugins/style/style.d.ts +18 -0
- package/esm/plugins/style/style.js +1 -0
- package/esm/plugins/style/ui/style-popup.d.ts +8 -0
- package/esm/plugins/style/ui/style-popup.js +1 -0
- package/examples/assets/app.js +2 -1
- package/examples/style-plugin.html +508 -0
- package/package.json +1 -1
- package/types/config.d.ts +6 -0
- package/types/plugins/style/config.d.ts +13 -0
- package/types/plugins/style/helpers/apply-style.d.ts +8 -0
- package/types/plugins/style/helpers/classify-definitions.d.ts +7 -0
- package/types/plugins/style/helpers/detect-active-style.d.ts +8 -0
- package/types/plugins/style/interface.d.ts +15 -0
- package/types/plugins/style/style.d.ts +18 -0
- package/types/plugins/style/ui/style-popup.d.ts +8 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit-pro - PRO Version of Jodit Editor
|
|
3
|
+
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
+
* Version: v4.9.15
|
|
5
|
+
* Url: https://xdsoft.net/jodit/pro/
|
|
6
|
+
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
+
module.exports = factory();
|
|
12
|
+
else if(typeof define === 'function' && define.amd)
|
|
13
|
+
define([], factory);
|
|
14
|
+
else {
|
|
15
|
+
var a = factory();
|
|
16
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
|
+
}
|
|
18
|
+
})(self, function() {
|
|
19
|
+
return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[850],{
|
|
20
|
+
|
|
21
|
+
/***/ 5440:
|
|
22
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
23
|
+
|
|
24
|
+
"use strict";
|
|
25
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26
|
+
/* harmony export */ buildStylePopup: function() { return /* binding */ buildStylePopup; }
|
|
27
|
+
/* harmony export */ });
|
|
28
|
+
/* harmony import */ var _helpers_apply_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31105);
|
|
29
|
+
/* harmony import */ var _helpers_classify_definitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8060);
|
|
30
|
+
/* harmony import */ var _helpers_detect_active_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69341);
|
|
31
|
+
/*!
|
|
32
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
33
|
+
* See LICENSE.md in the project root for license information.
|
|
34
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
var CLASS_NAME = 'jodit-style-popup';
|
|
39
|
+
function buildStylePopup(editor, definitions, close) {
|
|
40
|
+
var groups = (0,_helpers_classify_definitions__WEBPACK_IMPORTED_MODULE_1__.classifyDefinitions)(definitions);
|
|
41
|
+
var active = (0,_helpers_detect_active_style__WEBPACK_IMPORTED_MODULE_2__.detectActiveStyle)(editor, definitions);
|
|
42
|
+
var container = editor.c.div(CLASS_NAME);
|
|
43
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
44
|
+
try {
|
|
45
|
+
for(var _iterator = groups[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
46
|
+
var group = _step.value;
|
|
47
|
+
var title = editor.c.div("".concat(CLASS_NAME, "__group-title"));
|
|
48
|
+
title.textContent = editor.i18n(group.title);
|
|
49
|
+
container.appendChild(title);
|
|
50
|
+
var grid = editor.c.div("".concat(CLASS_NAME, "__grid"));
|
|
51
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
52
|
+
try {
|
|
53
|
+
var _loop = function() {
|
|
54
|
+
var def = _step1.value;
|
|
55
|
+
var card = editor.c.element('button');
|
|
56
|
+
card.type = 'button';
|
|
57
|
+
var isActive = active === def;
|
|
58
|
+
card.className = "".concat(CLASS_NAME, "__card") + (isActive ? " ".concat(CLASS_NAME, "__card_active_true") : '');
|
|
59
|
+
var preview = editor.c.div("".concat(CLASS_NAME, "__card-preview"));
|
|
60
|
+
var previewEl = editor.c.element(def.element);
|
|
61
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
62
|
+
try {
|
|
63
|
+
for(var _iterator = def.classes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
64
|
+
var cls = _step.value;
|
|
65
|
+
previewEl.classList.add(cls);
|
|
66
|
+
}
|
|
67
|
+
} catch (err) {
|
|
68
|
+
_didIteratorError = true;
|
|
69
|
+
_iteratorError = err;
|
|
70
|
+
} finally{
|
|
71
|
+
try {
|
|
72
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
73
|
+
_iterator.return();
|
|
74
|
+
}
|
|
75
|
+
} finally{
|
|
76
|
+
if (_didIteratorError) {
|
|
77
|
+
throw _iteratorError;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
previewEl.textContent = def.name;
|
|
82
|
+
preview.appendChild(previewEl);
|
|
83
|
+
card.appendChild(preview);
|
|
84
|
+
var label = editor.c.div("".concat(CLASS_NAME, "__card-label"));
|
|
85
|
+
label.textContent = def.name;
|
|
86
|
+
card.appendChild(label);
|
|
87
|
+
editor.e.on(card, 'click', function() {
|
|
88
|
+
editor.s.focus();
|
|
89
|
+
(0,_helpers_apply_style__WEBPACK_IMPORTED_MODULE_0__.applyStyle)(editor, def, definitions);
|
|
90
|
+
editor.synchronizeValues();
|
|
91
|
+
close();
|
|
92
|
+
});
|
|
93
|
+
grid.appendChild(card);
|
|
94
|
+
};
|
|
95
|
+
for(var _iterator1 = group.definitions[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true)_loop();
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_didIteratorError1 = true;
|
|
98
|
+
_iteratorError1 = err;
|
|
99
|
+
} finally{
|
|
100
|
+
try {
|
|
101
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
102
|
+
_iterator1.return();
|
|
103
|
+
}
|
|
104
|
+
} finally{
|
|
105
|
+
if (_didIteratorError1) {
|
|
106
|
+
throw _iteratorError1;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
container.appendChild(grid);
|
|
111
|
+
}
|
|
112
|
+
} catch (err) {
|
|
113
|
+
_didIteratorError = true;
|
|
114
|
+
_iteratorError = err;
|
|
115
|
+
} finally{
|
|
116
|
+
try {
|
|
117
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
118
|
+
_iterator.return();
|
|
119
|
+
}
|
|
120
|
+
} finally{
|
|
121
|
+
if (_didIteratorError) {
|
|
122
|
+
throw _iteratorError;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return container;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/***/ }),
|
|
131
|
+
|
|
132
|
+
/***/ 8060:
|
|
133
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
134
|
+
|
|
135
|
+
"use strict";
|
|
136
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
137
|
+
/* harmony export */ classifyDefinitions: function() { return /* binding */ classifyDefinitions; }
|
|
138
|
+
/* harmony export */ });
|
|
139
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
140
|
+
/*!
|
|
141
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
142
|
+
* See LICENSE.md in the project root for license information.
|
|
143
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
144
|
+
*/
|
|
145
|
+
function classifyDefinitions(definitions) {
|
|
146
|
+
var block = [];
|
|
147
|
+
var inline = [];
|
|
148
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
149
|
+
try {
|
|
150
|
+
for(var _iterator = definitions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
151
|
+
var def = _step.value;
|
|
152
|
+
if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_BLOCK.test(def.element)) {
|
|
153
|
+
block.push(def);
|
|
154
|
+
} else {
|
|
155
|
+
inline.push(def);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
} catch (err) {
|
|
159
|
+
_didIteratorError = true;
|
|
160
|
+
_iteratorError = err;
|
|
161
|
+
} finally{
|
|
162
|
+
try {
|
|
163
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
164
|
+
_iterator.return();
|
|
165
|
+
}
|
|
166
|
+
} finally{
|
|
167
|
+
if (_didIteratorError) {
|
|
168
|
+
throw _iteratorError;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
var groups = [];
|
|
173
|
+
if (block.length) {
|
|
174
|
+
groups.push({
|
|
175
|
+
title: 'Block styles',
|
|
176
|
+
definitions: block
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
if (inline.length) {
|
|
180
|
+
groups.push({
|
|
181
|
+
title: 'Text styles',
|
|
182
|
+
definitions: inline
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
return groups;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
/***/ }),
|
|
190
|
+
|
|
191
|
+
/***/ 28609:
|
|
192
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
193
|
+
|
|
194
|
+
"use strict";
|
|
195
|
+
/* harmony import */ var _helpers_detect_active_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69341);
|
|
196
|
+
/* harmony import */ var _ui_style_popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5440);
|
|
197
|
+
/* harmony import */ var _icon_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78955);
|
|
198
|
+
/* harmony import */ var _icon_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icon_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
199
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6441);
|
|
200
|
+
/*!
|
|
201
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
202
|
+
* See LICENSE.md in the project root for license information.
|
|
203
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.customStyles = {
|
|
209
|
+
definitions: []
|
|
210
|
+
};
|
|
211
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.style = {
|
|
212
|
+
tooltip: 'Styles',
|
|
213
|
+
icon: (_icon_svg__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
214
|
+
isDisabled: function isDisabled(editor) {
|
|
215
|
+
return !editor.o.customStyles.definitions.length || !editor.s.current();
|
|
216
|
+
},
|
|
217
|
+
isActive: function isActive(editor) {
|
|
218
|
+
var definitions = editor.o.customStyles.definitions;
|
|
219
|
+
if (!definitions.length) {
|
|
220
|
+
return false;
|
|
221
|
+
}
|
|
222
|
+
return (0,_helpers_detect_active_style__WEBPACK_IMPORTED_MODULE_0__.detectActiveStyle)(editor, definitions) != null;
|
|
223
|
+
},
|
|
224
|
+
update: function update(editor, button) {
|
|
225
|
+
var definitions = editor.o.customStyles.definitions;
|
|
226
|
+
if (!definitions.length) {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
var active = (0,_helpers_detect_active_style__WEBPACK_IMPORTED_MODULE_0__.detectActiveStyle)(editor, definitions);
|
|
230
|
+
if (editor.o.textIcons) {
|
|
231
|
+
if (active) {
|
|
232
|
+
button.state.text = active.name;
|
|
233
|
+
} else {
|
|
234
|
+
button.state.text = '';
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
popup: function popup(editor, _current, close) {
|
|
239
|
+
var definitions = editor.o.customStyles.definitions;
|
|
240
|
+
if (!definitions.length) {
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
editor.s.save();
|
|
244
|
+
var popup = (0,_ui_style_popup__WEBPACK_IMPORTED_MODULE_1__.buildStylePopup)(editor, definitions, function() {
|
|
245
|
+
editor.s.restore();
|
|
246
|
+
close();
|
|
247
|
+
});
|
|
248
|
+
editor.e.one('beforePopupClose', function() {
|
|
249
|
+
editor.s.restore();
|
|
250
|
+
});
|
|
251
|
+
return popup;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
/***/ }),
|
|
257
|
+
|
|
258
|
+
/***/ 31105:
|
|
259
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
260
|
+
|
|
261
|
+
"use strict";
|
|
262
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
263
|
+
/* harmony export */ applyStyle: function() { return /* binding */ applyStyle; }
|
|
264
|
+
/* harmony export */ });
|
|
265
|
+
/* harmony import */ var _detect_active_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69341);
|
|
266
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
|
|
267
|
+
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
|
|
268
|
+
/*!
|
|
269
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
270
|
+
* See LICENSE.md in the project root for license information.
|
|
271
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
272
|
+
*/
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
function findTarget(editor, def) {
|
|
276
|
+
var current = editor.s.current();
|
|
277
|
+
if (!current) {
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_BLOCK.test(def.element)) {
|
|
281
|
+
return jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, editor.editor);
|
|
282
|
+
}
|
|
283
|
+
var node = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(current) ? current : current.parentNode;
|
|
284
|
+
while(node && node !== editor.editor){
|
|
285
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(node) && node.nodeName.toLowerCase() === def.element) {
|
|
286
|
+
return node;
|
|
287
|
+
}
|
|
288
|
+
node = node.parentNode;
|
|
289
|
+
}
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
function removeClassesFromElement(el, classes) {
|
|
293
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
294
|
+
try {
|
|
295
|
+
for(var _iterator = classes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
296
|
+
var cls = _step.value;
|
|
297
|
+
el.classList.remove(cls);
|
|
298
|
+
}
|
|
299
|
+
} catch (err) {
|
|
300
|
+
_didIteratorError = true;
|
|
301
|
+
_iteratorError = err;
|
|
302
|
+
} finally{
|
|
303
|
+
try {
|
|
304
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
305
|
+
_iterator.return();
|
|
306
|
+
}
|
|
307
|
+
} finally{
|
|
308
|
+
if (_didIteratorError) {
|
|
309
|
+
throw _iteratorError;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
if (el.className === '') {
|
|
314
|
+
el.removeAttribute('class');
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
function cleanupExtraClasses(editor, def) {
|
|
318
|
+
if (def.classes.length <= 1) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
var current = editor.s.current();
|
|
322
|
+
if (!current) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_BLOCK.test(def.element)) {
|
|
326
|
+
var block = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, editor.editor);
|
|
327
|
+
if (block) {
|
|
328
|
+
removeClassesFromElement(block, def.classes.slice(1));
|
|
329
|
+
}
|
|
330
|
+
} else {
|
|
331
|
+
var target = findTarget(editor, def);
|
|
332
|
+
if (target) {
|
|
333
|
+
removeClassesFromElement(target, def.classes.slice(1));
|
|
334
|
+
if (target.nodeName.toLowerCase() === 'span' && !target.attributes.length) {
|
|
335
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(target);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
function addExtraClasses(editor, def) {
|
|
341
|
+
if (def.classes.length <= 1) {
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
var target = findTarget(editor, def);
|
|
345
|
+
if (!target) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
for(var i = 1; i < def.classes.length; i++){
|
|
349
|
+
target.classList.add(def.classes[i]);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
function applyStyle(editor, def, definitions) {
|
|
353
|
+
var active = (0,_detect_active_style__WEBPACK_IMPORTED_MODULE_0__.detectActiveStyle)(editor, definitions);
|
|
354
|
+
if (active) {
|
|
355
|
+
editor.s.commitStyle({
|
|
356
|
+
element: active.element,
|
|
357
|
+
attributes: {
|
|
358
|
+
class: active.classes[0]
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
cleanupExtraClasses(editor, active);
|
|
362
|
+
if (active === def) {
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
editor.s.commitStyle({
|
|
367
|
+
element: def.element,
|
|
368
|
+
attributes: {
|
|
369
|
+
class: def.classes[0]
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
addExtraClasses(editor, def);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
/***/ }),
|
|
377
|
+
|
|
378
|
+
/***/ 69341:
|
|
379
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
380
|
+
|
|
381
|
+
"use strict";
|
|
382
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
383
|
+
/* harmony export */ detectActiveStyle: function() { return /* binding */ detectActiveStyle; }
|
|
384
|
+
/* harmony export */ });
|
|
385
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
386
|
+
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
387
|
+
/*!
|
|
388
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
389
|
+
* See LICENSE.md in the project root for license information.
|
|
390
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
391
|
+
*/
|
|
392
|
+
|
|
393
|
+
function elementMatchesDefinition(el, def) {
|
|
394
|
+
if (el.nodeName.toLowerCase() !== def.element) {
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
return def.classes.every(function(cls) {
|
|
398
|
+
return el.classList.contains(cls);
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
function detectActiveStyle(editor, definitions) {
|
|
402
|
+
var current = editor.s.current();
|
|
403
|
+
if (!current) {
|
|
404
|
+
return null;
|
|
405
|
+
}
|
|
406
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
407
|
+
try {
|
|
408
|
+
for(var _iterator = definitions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
409
|
+
var def = _step.value;
|
|
410
|
+
if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_BLOCK.test(def.element)) {
|
|
411
|
+
var block = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
|
|
412
|
+
if (block && elementMatchesDefinition(block, def)) {
|
|
413
|
+
return def;
|
|
414
|
+
}
|
|
415
|
+
} else {
|
|
416
|
+
var node = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(current) ? current : current.parentNode;
|
|
417
|
+
while(node && node !== editor.editor){
|
|
418
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(node) && elementMatchesDefinition(node, def)) {
|
|
419
|
+
return def;
|
|
420
|
+
}
|
|
421
|
+
node = node.parentNode;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
} catch (err) {
|
|
426
|
+
_didIteratorError = true;
|
|
427
|
+
_iteratorError = err;
|
|
428
|
+
} finally{
|
|
429
|
+
try {
|
|
430
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
431
|
+
_iterator.return();
|
|
432
|
+
}
|
|
433
|
+
} finally{
|
|
434
|
+
if (_didIteratorError) {
|
|
435
|
+
throw _iteratorError;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return null;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
/***/ }),
|
|
444
|
+
|
|
445
|
+
/***/ 75554:
|
|
446
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
447
|
+
|
|
448
|
+
"use strict";
|
|
449
|
+
__webpack_require__.r(__webpack_exports__);
|
|
450
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
451
|
+
/* harmony export */ style: function() { return /* binding */ style; }
|
|
452
|
+
/* harmony export */ });
|
|
453
|
+
/* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80294);
|
|
454
|
+
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20616);
|
|
455
|
+
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
|
|
456
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
|
|
457
|
+
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
|
|
458
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23078);
|
|
459
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28609);
|
|
460
|
+
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50911);
|
|
461
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2692);
|
|
462
|
+
/*!
|
|
463
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
464
|
+
* See LICENSE.md in the project root for license information.
|
|
465
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
466
|
+
*/
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
var style = /*#__PURE__*/ function(Plugin) {
|
|
477
|
+
"use strict";
|
|
478
|
+
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(style, Plugin);
|
|
479
|
+
function style() {
|
|
480
|
+
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, style);
|
|
481
|
+
var _this;
|
|
482
|
+
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, style, arguments), /** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "buttons", [
|
|
483
|
+
{
|
|
484
|
+
name: 'style',
|
|
485
|
+
group: 'font'
|
|
486
|
+
}
|
|
487
|
+
]);
|
|
488
|
+
return _this;
|
|
489
|
+
}
|
|
490
|
+
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(style, [
|
|
491
|
+
{
|
|
492
|
+
key: "afterInit",
|
|
493
|
+
value: /** @override */ function afterInit(_jodit) {}
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
key: "beforeDestruct",
|
|
497
|
+
value: /** @override */ function beforeDestruct(_jodit) {}
|
|
498
|
+
}
|
|
499
|
+
]);
|
|
500
|
+
return style;
|
|
501
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin));
|
|
502
|
+
/** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(style, "requires", [
|
|
503
|
+
'license'
|
|
504
|
+
]);
|
|
505
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_8__.JoditPro.plugins.add('style', style);
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
/***/ }),
|
|
509
|
+
|
|
510
|
+
/***/ 78955:
|
|
511
|
+
/***/ (function(module) {
|
|
512
|
+
|
|
513
|
+
module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" stroke=\"currentColor\" stroke-width=\"1.5\"> <rect x=\"2\" y=\"3.5\" width=\"9\" height=\"9\" rx=\"1.5\" fill=\"none\"/> <rect x=\"2\" y=\"14.5\" width=\"9\" height=\"9\" rx=\"1.5\" fill=\"none\"/> <rect x=\"13\" y=\"14.5\" width=\"9\" height=\"9\" rx=\"1.5\" fill=\"none\"/> <rect x=\"13\" y=\"3.5\" width=\"9\" height=\"9\" rx=\"1.5\" fill=\"currentColor\" transform=\"rotate(45 17.5 8)\"/> </svg>"
|
|
514
|
+
|
|
515
|
+
/***/ })
|
|
516
|
+
|
|
517
|
+
},
|
|
518
|
+
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
519
|
+
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
520
|
+
/******/ var __webpack_exports__ = (__webpack_exec__(75554));
|
|
521
|
+
/******/ return __webpack_exports__;
|
|
522
|
+
/******/ }
|
|
523
|
+
]);
|
|
524
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-style-popup{max-height:470px;min-width:210px;overflow-y:auto;padding:8px}.jodit-style-popup__group-title{color:#888;font-size:11px;font-weight:600;margin-top:8px;padding:4px 8px;text-transform:uppercase}.jodit-style-popup__group-title:first-child{margin-top:0}.jodit-style-popup__grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:4px 0}.jodit-style-popup__card{background:none;border:1px solid #ddd;border-radius:4px;color:inherit;cursor:pointer;display:flex;flex-direction:column;height:80px;justify-content:space-between;overflow:hidden;padding:0;text-align:left}.jodit-style-popup__card:hover{border-color:#b3b3b3}.jodit-style-popup__card_active_true{border-color:var(--jd-color-border-active,#4a6cf6)}.jodit-style-popup__card_active_true .jodit-style-popup__card-label{box-shadow:0 -1px 0 var(--jd-color-border-active,#4a6cf6)}.jodit-style-popup__card-preview{align-items:center;background:#fff;display:flex;flex-grow:1;overflow:hidden;padding:6px 8px;pointer-events:none}.jodit-style-popup__card-preview>*{margin:0;overflow:hidden;padding:0;white-space:nowrap}.jodit-style-popup__card-label{background:#f0f0f0;font-size:11px;line-height:20px;overflow:hidden;padding:2px 8px;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit-pro - PRO Version of Jodit Editor
|
|
3
|
+
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
+
* Version: v4.9.15
|
|
5
|
+
* Url: https://xdsoft.net/jodit/pro/
|
|
6
|
+
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
|
+
*/
|
|
8
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{5440:function(t,e,n){"use strict";n.d(e,{buildStylePopup:function(){return s}});var r=n(31105),i=n(8060),o=n(69341),l="jodit-style-popup";function s(t,e,n){var s=(0,i.classifyDefinitions)(e),a=(0,o.detectActiveStyle)(t,e),c=t.c.div(l),u=!0,f=!1,d=void 0;try{for(var v,y=s[Symbol.iterator]();!(u=(v=y.next()).done);u=!0){var p=v.value,m=t.c.div("".concat(l,"__group-title"));m.textContent=t.i18n(p.title),c.appendChild(m);var h=t.c.div("".concat(l,"__grid")),x=!0,S=!1,_=void 0;try{for(var g,b=p.definitions[Symbol.iterator]();!(x=(g=b.next()).done);x=!0)!function(){var i=g.value,o=t.c.element("button");o.type="button";var s=a===i;o.className="".concat(l,"__card")+(s?" ".concat(l,"__card_active_true"):"");var c=t.c.div("".concat(l,"__card-preview")),u=t.c.element(i.element),f=!0,d=!1,v=void 0;try{for(var y,p=i.classes[Symbol.iterator]();!(f=(y=p.next()).done);f=!0){var m=y.value;u.classList.add(m)}}catch(t){d=!0,v=t}finally{try{f||null==p.return||p.return()}finally{if(d)throw v}}u.textContent=i.name,c.appendChild(u),o.appendChild(c);var x=t.c.div("".concat(l,"__card-label"));x.textContent=i.name,o.appendChild(x),t.e.on(o,"click",function(){t.s.focus(),(0,r.applyStyle)(t,i,e),t.synchronizeValues(),n()}),h.appendChild(o)}()}catch(t){S=!0,_=t}finally{try{x||null==b.return||b.return()}finally{if(S)throw _}}c.appendChild(h)}}catch(t){f=!0,d=t}finally{try{u||null==y.return||y.return()}finally{if(f)throw d}}return c}},8060:function(t,e,n){"use strict";n.d(e,{classifyDefinitions:function(){return i}});var r=n(82758);function i(t){var e=[],n=[],i=!0,o=!1,l=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var c=s.value;r.IS_BLOCK.test(c.element)?e.push(c):n.push(c)}}catch(t){o=!0,l=t}finally{try{i||null==a.return||a.return()}finally{if(o)throw l}}var u=[];return e.length&&u.push({title:"Block styles",definitions:e}),n.length&&u.push({title:"Text styles",definitions:n}),u}},28609:function(t,e,n){"use strict";var r=n(69341),i=n(5440),o=n(78955),l=n.n(o),s=n(6441);s.Config.prototype.customStyles={definitions:[]},s.Config.prototype.controls.style={tooltip:"Styles",icon:l(),isDisabled:function(t){return!t.o.customStyles.definitions.length||!t.s.current()},isActive:function(t){var e=t.o.customStyles.definitions;return!!e.length&&null!=(0,r.detectActiveStyle)(t,e)},update:function(t,e){var n=t.o.customStyles.definitions;if(n.length){var i=(0,r.detectActiveStyle)(t,n);t.o.textIcons&&(i?e.state.text=i.name:e.state.text="")}},popup:function(t,e,n){var r=t.o.customStyles.definitions;if(!r.length)return!1;t.s.save();var o=(0,i.buildStylePopup)(t,r,function(){t.s.restore(),n()});return t.e.one("beforePopupClose",function(){t.s.restore()}),o}}},31105:function(t,e,n){"use strict";n.d(e,{applyStyle:function(){return a}});var r=n(69341),i=n(82758),o=n(2748);function l(t,e){var n=t.s.current();if(!n)return null;if(i.IS_BLOCK.test(e.element))return o.Dom.closest(n,o.Dom.isBlock,t.editor);for(var r=o.Dom.isElement(n)?n:n.parentNode;r&&r!==t.editor;){if(o.Dom.isElement(r)&&r.nodeName.toLowerCase()===e.element)return r;r=r.parentNode}return null}function s(t,e){var n=!0,r=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;t.classList.remove(s)}}catch(t){r=!0,i=t}finally{try{n||null==l.return||l.return()}finally{if(r)throw i}}""===t.className&&t.removeAttribute("class")}function a(t,e,n){var a=(0,r.detectActiveStyle)(t,n);a&&(t.s.commitStyle({element:a.element,attributes:{class:a.classes[0]}}),!function(t,e){if(!(e.classes.length<=1)){var n=t.s.current();if(n)if(i.IS_BLOCK.test(e.element)){var r=o.Dom.closest(n,o.Dom.isBlock,t.editor);r&&s(r,e.classes.slice(1))}else{var a=l(t,e);a&&(s(a,e.classes.slice(1)),"span"!==a.nodeName.toLowerCase()||a.attributes.length||o.Dom.unwrap(a))}}}(t,a),a===e)||(t.s.commitStyle({element:e.element,attributes:{class:e.classes[0]}}),function(t,e){if(!(e.classes.length<=1)){var n=l(t,e);if(n)for(var r=1;r<e.classes.length;r++)n.classList.add(e.classes[r])}}(t,e))}},69341:function(t,e,n){"use strict";n.d(e,{detectActiveStyle:function(){return l}});var r=n(82758),i=n(2748);function o(t,e){return t.nodeName.toLowerCase()===e.element&&e.classes.every(function(e){return t.classList.contains(e)})}function l(t,e){var n=t.s.current();if(!n)return null;var l=!0,s=!1,a=void 0;try{for(var c,u=e[Symbol.iterator]();!(l=(c=u.next()).done);l=!0){var f=c.value;if(r.IS_BLOCK.test(f.element)){var d=i.Dom.closest(n,i.Dom.isBlock,t.editor);if(d&&o(d,f))return f}else for(var v=i.Dom.isElement(n)?n:n.parentNode;v&&v!==t.editor;){if(i.Dom.isElement(v)&&o(v,f))return f;v=v.parentNode}}}catch(t){s=!0,a=t}finally{try{l||null==u.return||u.return()}finally{if(s)throw a}}return null}},75554:function(t,e,n){"use strict";n.r(e),n.d(e,{style:function(){return f}});var r=n(80294),i=n(20616),o=n(67709),l=n(82749),s=n(18766),a=n(23078);n(28609);var c=n(50911),u=n(2692),f=function(t){function e(){var t;return(0,i._)(this,e),t=(0,r._)(this,e,arguments),(0,l._)(t,"buttons",[{name:"style",group:"font"}]),t}return(0,s._)(e,t),(0,o._)(e,[{key:"afterInit",value:function(t){}},{key:"beforeDestruct",value:function(t){}}]),e}((0,a._)(c.Plugin));(0,l._)(f,"requires",["license"]),u.JoditPro.plugins.add("style",f)},78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'}},function(t){return t(t.s=75554)}])});
|
package/es5/polyfills.fat.min.js
CHANGED
package/es5/polyfills.js
CHANGED