jodit-pro 4.5.17 → 4.5.21
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 +2 -2
- package/es2015/jodit.js +2 -2
- package/es2015/jodit.min.js +2 -2
- 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 +30 -8
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- 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 +6 -3
- package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2 -2
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +30 -8
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +6 -3
- package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.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 +2 -2
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.js +2 -2
- 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 +30 -8
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- 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 +6 -3
- package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.js +2 -2
- 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 +30 -8
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- 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 +6 -3
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
- 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 +2 -2
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.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 +36 -11
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- 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 +6 -3
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- 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/esm/config.d.ts +3 -0
- package/esm/plugins/paste-code/config.d.ts +3 -1
- package/esm/plugins/paste-code/config.js +1 -1
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/show-blocks/show-blocks.js +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +3 -0
- package/types/plugins/paste-code/config.d.ts +3 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.5.
|
|
4
|
+
* Version: v4.5.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -53,6 +53,12 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteCod
|
|
|
53
53
|
return lang;
|
|
54
54
|
},
|
|
55
55
|
highlightLib: {
|
|
56
|
+
beforeLibLoad: function () {
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
window.Prism = window.Prism || {};
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
window.Prism.manual = true;
|
|
61
|
+
},
|
|
56
62
|
highlight: function (code, language) {
|
|
57
63
|
return typeof Prism !== 'undefined'
|
|
58
64
|
? Prism.highlight(code, Prism.languages[language] || Prism.languages.plain, language)
|
|
@@ -67,7 +73,8 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteCod
|
|
|
67
73
|
: false;
|
|
68
74
|
},
|
|
69
75
|
js: [
|
|
70
|
-
'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js'
|
|
76
|
+
'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js',
|
|
77
|
+
'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js'
|
|
71
78
|
],
|
|
72
79
|
langUrl: function (lang) {
|
|
73
80
|
return "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(lang, ".min.js");
|
|
@@ -81,10 +88,14 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteCod
|
|
|
81
88
|
return "<pre class=\"language-".concat(language, "\">").concat((0,jodit_esm_core_helpers_html_htmlspecialchars__WEBPACK_IMPORTED_MODULE_2__/* .htmlspecialchars */ .G)(value), "</pre>");
|
|
82
89
|
},
|
|
83
90
|
languages: [
|
|
84
|
-
{ value: 'html', text: 'HTML/XML' },
|
|
85
91
|
{ value: 'plaintext', text: 'Plain' },
|
|
92
|
+
{ value: 'html', text: 'HTML/XML' },
|
|
86
93
|
{ value: 'bash', text: 'Bash' },
|
|
94
|
+
{ value: 'php', text: 'PHP' },
|
|
87
95
|
{ value: 'javascript', text: 'JavaScript' },
|
|
96
|
+
{ value: 'typescript', text: 'TypeScript' },
|
|
97
|
+
{ value: 'jsx', text: 'JSX' },
|
|
98
|
+
{ value: 'java', text: 'Java' },
|
|
88
99
|
{ value: 'css', text: 'CSS' },
|
|
89
100
|
{ value: 'php', text: 'PHP' },
|
|
90
101
|
{ value: 'ruby', text: 'Ruby' },
|
|
@@ -92,7 +103,16 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteCod
|
|
|
92
103
|
{ value: 'java', text: 'Java' },
|
|
93
104
|
{ value: 'c', text: 'C' },
|
|
94
105
|
{ value: 'csharp', text: 'C#' },
|
|
95
|
-
{ value: 'cpp', text: 'C++' }
|
|
106
|
+
{ value: 'cpp', text: 'C++' },
|
|
107
|
+
{ value: 'sql', text: 'SQL' },
|
|
108
|
+
{ value: 'docker', text: 'Docker' },
|
|
109
|
+
{ value: 'http', text: 'HTTP' },
|
|
110
|
+
{ value: 'ini', text: 'INI' },
|
|
111
|
+
{ value: 'yaml', text: 'YAML' },
|
|
112
|
+
{ value: 'json', text: 'JSON' },
|
|
113
|
+
{ value: 'json5', text: 'JSON5' },
|
|
114
|
+
{ value: 'makefile', text: 'Makefile' },
|
|
115
|
+
{ value: 'swift', text: 'Swift' }
|
|
96
116
|
],
|
|
97
117
|
dialog: {
|
|
98
118
|
width: 700,
|
|
@@ -153,16 +173,21 @@ var pasteCode = /** @class */ (function (_super) {
|
|
|
153
173
|
_this.__highlightLibJSIsLoaded = false;
|
|
154
174
|
_this.__loadLanguage = new Map();
|
|
155
175
|
_this.__initHighlightLibLoading = function (language) { return (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__awaiter */ .sH)(_this, void 0, Promise, function () {
|
|
156
|
-
var _a, globalHighlightLib, _b, css, js, langUrl, highlight, isLangLoaded;
|
|
176
|
+
var _a, globalHighlightLib, _b, css, js, langUrl, highlight, isLangLoaded, beforeLibLoad, afterLibLoad;
|
|
177
|
+
var _this = this;
|
|
157
178
|
return (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__generator */ .YH)(this, function (_c) {
|
|
158
179
|
switch (_c.label) {
|
|
159
180
|
case 0:
|
|
160
|
-
_a = this.j.o.pasteCode, globalHighlightLib = _a.globalHighlightLib, _b = _a.highlightLib, css = _b.css, js = _b.js, langUrl = _b.langUrl, highlight = _b.highlight, isLangLoaded = _b.isLangLoaded;
|
|
181
|
+
_a = this.j.o.pasteCode, globalHighlightLib = _a.globalHighlightLib, _b = _a.highlightLib, css = _b.css, js = _b.js, langUrl = _b.langUrl, highlight = _b.highlight, isLangLoaded = _b.isLangLoaded, beforeLibLoad = _b.beforeLibLoad, afterLibLoad = _b.afterLibLoad;
|
|
161
182
|
if (!this.__highlightLibJSIsLoaded && !globalHighlightLib) {
|
|
162
|
-
this.__highlightLibJSIsLoaded =
|
|
163
|
-
|
|
164
|
-
(
|
|
165
|
-
|
|
183
|
+
this.__highlightLibJSIsLoaded = Promise.resolve(beforeLibLoad === null || beforeLibLoad === void 0 ? void 0 : beforeLibLoad())
|
|
184
|
+
.then(function () {
|
|
185
|
+
return waitingPromise(_this.async, Promise.allSettled([
|
|
186
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNextStyle)(_this.jodit, css).catch(function () { return null; }),
|
|
187
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNext)(_this.jodit, js).catch(function () { return null; })
|
|
188
|
+
]));
|
|
189
|
+
})
|
|
190
|
+
.then(function () { return afterLibLoad === null || afterLibLoad === void 0 ? void 0 : afterLibLoad(); });
|
|
166
191
|
}
|
|
167
192
|
if (!!(0,jodit_esm_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_10__/* .isBoolean */ .L)(this.__highlightLibJSIsLoaded)) return [3 /*break*/, 2];
|
|
168
193
|
return [4 /*yield*/, this.__highlightLibJSIsLoaded];
|
|
@@ -282,7 +307,7 @@ var pasteCode = /** @class */ (function (_super) {
|
|
|
282
307
|
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.$$)('pre', this.j.editor).forEach(function (pre) {
|
|
283
308
|
if (!(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(pre, 'contenteditable')) {
|
|
284
309
|
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(pre, 'contenteditable', false);
|
|
285
|
-
_this.__highlightCode(pre);
|
|
310
|
+
_this.__highlightCode(pre).catch(function () { return null; });
|
|
286
311
|
}
|
|
287
312
|
});
|
|
288
313
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.5.
|
|
4
|
+
* Version: v4.5.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{54402:function(e,t,n){"use strict";var i=n(75689),a=n.n(i),o=n(6441),r=n(53326);o.T.prototype.controls.pasteCode={icon:a(),tooltip:"Paste code",command:"pasteCode"},o.T.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{highlight:function(e,t){return"undefined"!=typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,r.G)(e)},isLangLoaded:function(e){return"html"===e||"undefined"!=typeof Prism&&Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,n){return'<pre class="language-'.concat(t,'">').concat((0,r.G)(n),"</pre>")},languages:[{value:"html",text:"HTML/XML"},{value:"
|
|
10
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{54402:function(e,t,n){"use strict";var i=n(75689),a=n.n(i),o=n(6441),r=n(53326);o.T.prototype.controls.pasteCode={icon:a(),tooltip:"Paste code",command:"pasteCode"},o.T.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad:function(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:function(e,t){return"undefined"!=typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,r.G)(e)},isLangLoaded:function(e){return"html"===e||"undefined"!=typeof Prism&&Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,n){return'<pre class="language-'.concat(t,'">').concat((0,r.G)(n),"</pre>")},languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}},66603:function(e,t,n){"use strict";n.r(t),n.d(t,{pasteCode:function(){return d}});var i=n(31635),a=(n(54402),n(82758),n(65478)),o=n(21537),r=n(87612),s=n(53326),l=n(50911),c=n(67510),u=n(41409),h=n(34013),d=function(e){function t(){var t=e.apply(this,(0,i.fX)([],(0,i.zs)(arguments),!1))||this;return t.buttons=[{name:"pasteCode",group:"clipboard"}],t.__highlightLibJSIsLoaded=!1,t.__loadLanguage=new Map,t.__initHighlightLibLoading=function(e){return(0,i.sH)(t,void 0,Promise,(function(){var t,n,a,s,l,c,u,h,d,g,f=this;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return n=(t=this.j.o.pasteCode).globalHighlightLib,s=(a=t.highlightLib).css,l=a.js,c=a.langUrl,u=a.highlight,h=a.isLangLoaded,d=a.beforeLibLoad,g=a.afterLibLoad,this.__highlightLibJSIsLoaded||n||(this.__highlightLibJSIsLoaded=Promise.resolve(null==d?void 0:d()).then((function(){return p(f.async,Promise.allSettled([(0,o.loadNextStyle)(f.jodit,s).catch((function(){return null})),(0,o.loadNext)(f.jodit,l).catch((function(){return null}))]))})).then((function(){return null==g?void 0:g()}))),(0,r.L)(this.__highlightLibJSIsLoaded)?[3,2]:[4,this.__highlightLibJSIsLoaded];case 1:i.sent(),i.label=2;case 2:return!e||h(e)||n?[3,4]:(this.__loadLanguage.has(e)||this.__loadLanguage.set(e,p(this.async,(0,o.appendScriptAsync)(this.jodit,c(e)).catch((function(){return null})))),[4,this.__loadLanguage.get(e)]);case 3:i.sent(),i.label=4;case 4:return[2,{highlight:u}]}}))}))},t}return(0,i.C6)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("pasteCode",(function(){return t.__openCodeEditDialog()})),e.async.requestIdleCallback((function(){return t.__initHighlightLibLoading()}))},t.prototype.__openCodeEditDialog=function(e,t,n){var i=this,a=this.j,r=this.__createForm(),s=(0,o.refs)(r.container),l=s.code,c=s.language;e&&(c.value=e),t&&(l.value=t),a.async.requestIdleCallback((function(){l.focus()})),a.s.save(),this.__createDialog((function(){if(!r.validate())return!1;a.s.restore();var e=a.createInside.fromHTML(a.o.pasteCode.insertTemplate(a,c.value,l.value));if(n)u.Dom.replace(n,e,a.createInside,!1,!0);else{var t=a.s.current(),o=u.Dom.up(t,u.Dom.isBlock,a.editor);o&&!u.Dom.isCell(o)?u.Dom.after(o,e):a.s.insertNode(e)}i.__imdOnChange()}),(function(){a.s.restore()})).setContent(r.container).open(!0)},t.prototype.beforeDestruct=function(e){},t.prototype.__createForm=function(){var e=this.jodit;return new c.XV(e,[new c.$6(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new c.F0(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})},t.prototype.__createDialog=function(e,t){var n=new u.Dialog({language:this.j.o.language});return n.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,c.$n)(n,"","Cancel","default").onAction((function(){n.close(),t()})),(0,c.$n)(n,"save","Save","primary").onAction((function(){n.close(),e()}))]),n},t.prototype.__onChange=function(){this.__imdOnChange()},t.prototype.__imdOnChange=function(){var e=this;(0,o.$$)("pre",this.j.editor).forEach((function(t){(0,o.attr)(t,"contenteditable")||((0,o.attr)(t,"contenteditable",!1),e.__highlightCode(t).catch((function(){return null})))}))},t.prototype.__highlightCode=function(e){return(0,i.sH)(this,void 0,Promise,(function(){var t,n,a;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return t=this.__parseLanguage(e),[4,this.__initHighlightLibLoading(t)];case 1:return n=i.sent().highlight,a=e,e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&(a=e.firstElementChild),a.innerHTML=n(a.innerText,t),[2]}}))}))},t.prototype.onPreEdit=function(e){var t=u.Dom.isNode(e)&&u.Dom.isTag(e,"pre")?e:u.Dom.closest(e.target,"pre",this.j.editor);if(t){var n=this.__parseLanguage(t);this.__openCodeEditDialog(n,t.innerText,t)}},t.prototype.__parseLanguage=function(e){var t=null,n=function(e){return e.classList.forEach((function(e){if(/language-/.test(e)){var n=/language-(.*)/.exec(e);n&&n[1]&&(t=n[1])}}))};return n(e),null==t&&e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&n(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")},t.prototype.onAfterGetValueFromEditor=function(e){var t=this,n=function(e,n,i,a,r,l){return"".concat(n.trim()).concat(a).concat((0,s.G)((0,o.stripTags)(r,t.j.ed,new Set(["br"])))).concat(l)};e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,n).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,n)},t.requires=["license"],(0,i.Cg)([a.autobind],t.prototype,"__openCodeEditDialog",null),(0,i.Cg)([(0,a.watch)(["?:change","?:afterInit"]),(0,a.debounce)()],t.prototype,"__onChange",null),(0,i.Cg)([(0,a.watch)(["?:dblclick","?:editPreInPasteCode"])],t.prototype,"onPreEdit",null),(0,i.Cg)([(0,a.watch)("?:afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),(0,i.Cg)([a.component],t)}(l.k);function p(e,t){return e.promise((function(e,n){t.then(e).catch(n)})).catch((function(){return null}))}h.A.plugins.add("paste-code",d)},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'}},function(e){return e(e.s=66603)}])}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.5.
|
|
4
|
+
* Version: v4.5.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -542,7 +542,10 @@ var showBlocks = /** @class */ (function (_super) {
|
|
|
542
542
|
*/
|
|
543
543
|
showBlocks.prototype.disable = function () {
|
|
544
544
|
this.isEnabled = false;
|
|
545
|
-
|
|
545
|
+
var style = (0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cached)(this, 'style');
|
|
546
|
+
if (style) {
|
|
547
|
+
style.innerHTML = '';
|
|
548
|
+
}
|
|
546
549
|
};
|
|
547
550
|
/**
|
|
548
551
|
* Toggle showing block
|
|
@@ -566,7 +569,7 @@ var showBlocks = /** @class */ (function (_super) {
|
|
|
566
569
|
/** @override */
|
|
567
570
|
showBlocks.prototype.beforeDestruct = function (jodit) {
|
|
568
571
|
this.disable();
|
|
569
|
-
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .J.safeRemove(this
|
|
572
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .J.safeRemove((0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cached)(this, 'style'));
|
|
570
573
|
};
|
|
571
574
|
/** @override */
|
|
572
575
|
showBlocks.requires = ['license'];
|