jodit 4.8.9 → 4.9.4
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 -0
- package/es2015/jodit.css +1663 -1663
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +14 -14
- package/es2015/jodit.js +496 -381
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +14 -14
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +25 -25
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +14 -14
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1663 -1663
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +19 -19
- package/es2021/jodit.js +496 -381
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +19 -19
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1663 -1663
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -19
- package/es2021.en/jodit.js +496 -381
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +29 -29
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2009 -2009
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +506 -390
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.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/core/constants.js +1 -1
- package/esm/core/decorators/component/component.d.ts +4 -3
- package/esm/core/decorators/component/component.js +11 -0
- package/esm/core/decorators/watch/watch.d.ts +1 -2
- package/esm/core/decorators/watch/watch.js +1 -8
- package/esm/core/dom/dom.d.ts +5 -0
- package/esm/core/dom/dom.js +24 -5
- package/esm/core/dom/lazy-walker.js +1 -1
- package/esm/core/event-emitter/global.d.ts +2 -0
- package/esm/core/event-emitter/global.js +2 -0
- package/esm/core/event-emitter/observable.js +1 -1
- package/esm/core/global.d.ts +2 -2
- package/esm/core/global.js +7 -4
- package/esm/core/helpers/checker/is-marker.d.ts +1 -0
- package/esm/core/helpers/checker/is-marker.js +2 -4
- package/esm/core/helpers/utils/attr.js +3 -1
- package/esm/core/helpers/utils/error/errors/abort-error.d.ts +0 -5
- package/esm/core/helpers/utils/error/errors/abort-error.js +0 -8
- package/esm/core/helpers/utils/selector.js +2 -1
- package/esm/core/helpers/utils/utils.d.ts +2 -1
- package/esm/core/helpers/utils/utils.js +8 -0
- package/esm/core/plugin/helpers/init-instance.d.ts +2 -2
- package/esm/core/plugin/helpers/init-instance.js +2 -3
- package/esm/core/plugin/plugin-system.d.ts +5 -1
- package/esm/core/plugin/plugin-system.js +8 -5
- package/esm/core/selection/style/api/list/wrap-list.js +3 -2
- package/esm/core/selection/style/transactions.js +1 -1
- package/esm/core/ui/button/button/button.js +6 -3
- package/esm/core/ui/element.d.ts +2 -3
- package/esm/core/ui/group/list.d.ts +0 -1
- package/esm/core/ui/group/list.js +8 -6
- package/esm/modules/file-browser/builders/context-menu.js +3 -2
- package/esm/modules/file-browser/builders/utils.d.ts +12 -0
- package/esm/modules/file-browser/builders/utils.js +12 -0
- package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -12
- package/esm/modules/file-browser/listeners/native-listeners.js +3 -13
- package/esm/modules/history/command.d.ts +2 -3
- package/esm/modules/history/history.d.ts +1 -1
- package/esm/modules/history/history.js +2 -2
- package/esm/modules/toolbar/button/button.d.ts +0 -5
- package/esm/modules/toolbar/button/button.js +21 -11
- package/esm/modules/toolbar/collection/collection.d.ts +1 -2
- package/esm/modules/toolbar/collection/collection.js +6 -3
- package/esm/modules/toolbar/factory.js +8 -6
- package/esm/plugins/about/about.js +2 -2
- package/package.json +1 -1
- package/types/core/decorators/component/component.d.ts +4 -3
- package/types/core/decorators/watch/watch.d.ts +1 -2
- package/types/core/dom/dom.d.ts +5 -0
- package/types/core/event-emitter/global.d.ts +2 -0
- package/types/core/global.d.ts +2 -2
- package/types/core/helpers/checker/is-marker.d.ts +1 -0
- package/types/core/helpers/utils/error/errors/abort-error.d.ts +0 -5
- package/types/core/helpers/utils/utils.d.ts +2 -1
- package/types/core/plugin/helpers/init-instance.d.ts +2 -2
- package/types/core/plugin/plugin-system.d.ts +5 -1
- package/types/core/ui/element.d.ts +2 -3
- package/types/core/ui/group/list.d.ts +0 -1
- package/types/modules/file-browser/builders/utils.d.ts +12 -0
- package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -12
- package/types/modules/history/command.d.ts +2 -3
- package/types/modules/history/history.d.ts +1 -1
- package/types/modules/toolbar/button/button.d.ts +0 -5
- package/types/modules/toolbar/collection/collection.d.ts +1 -2
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.9.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -226,7 +226,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
226
226
|
/* harmony import */ var _swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66773);
|
|
227
227
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34918);
|
|
228
228
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
229
|
-
/* harmony import */ var
|
|
229
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49574);
|
|
230
230
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23211);
|
|
231
231
|
/* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(60216);
|
|
232
232
|
/*!
|
|
@@ -357,7 +357,7 @@ var LazyWalker = /*#__PURE__*/ function(Eventify) {
|
|
|
357
357
|
return LazyWalker;
|
|
358
358
|
}(jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_10__.Eventify);
|
|
359
359
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
360
|
-
|
|
360
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__.autobind
|
|
361
361
|
], LazyWalker.prototype, "__workPerform", null);
|
|
362
362
|
|
|
363
363
|
|
|
@@ -2173,12 +2173,9 @@ function trimChars(value, chars) {
|
|
|
2173
2173
|
/* harmony export */ makeCollection: function() { return /* binding */ makeCollection; },
|
|
2174
2174
|
/* harmony export */ makeSelect: function() { return /* binding */ makeSelect; }
|
|
2175
2175
|
/* harmony export */ });
|
|
2176
|
-
/* harmony import */ var
|
|
2177
|
-
/* harmony import */ var
|
|
2178
|
-
/* harmony import */ var
|
|
2179
|
-
/* harmony import */ var _button_select_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61764);
|
|
2180
|
-
/* harmony import */ var _collection_collection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42573);
|
|
2181
|
-
/* harmony import */ var _collection_editor_collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6209);
|
|
2176
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91672);
|
|
2177
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91565);
|
|
2178
|
+
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24497);
|
|
2182
2179
|
/*!
|
|
2183
2180
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
2184
2181
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -2190,13 +2187,12 @@ function trimChars(value, chars) {
|
|
|
2190
2187
|
*/
|
|
2191
2188
|
|
|
2192
2189
|
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
2190
|
/**
|
|
2197
2191
|
* Collection factory
|
|
2198
2192
|
*/ function makeCollection(jodit, parentElement) {
|
|
2199
|
-
var
|
|
2193
|
+
var ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarCollection');
|
|
2194
|
+
var ToolbarEditorCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarEditorCollection');
|
|
2195
|
+
var collection = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(jodit) ? new ToolbarEditorCollection(jodit) : new ToolbarCollection(jodit);
|
|
2200
2196
|
if (jodit.o.textIcons) {
|
|
2201
2197
|
collection.container.classList.add('jodit_text_icons');
|
|
2202
2198
|
}
|
|
@@ -2212,16 +2208,19 @@ function trimChars(value, chars) {
|
|
|
2212
2208
|
* Button factory
|
|
2213
2209
|
*/ function makeButton(jodit, control) {
|
|
2214
2210
|
var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
|
|
2215
|
-
if ((0,
|
|
2216
|
-
|
|
2211
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_1__.isFunction)(control.getContent)) {
|
|
2212
|
+
var ToolbarContent = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarContent');
|
|
2213
|
+
return new ToolbarContent(jodit, control, target);
|
|
2217
2214
|
}
|
|
2218
|
-
var
|
|
2215
|
+
var ToolbarButton = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarButton');
|
|
2216
|
+
var button = new ToolbarButton(jodit, control, target);
|
|
2219
2217
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
2220
2218
|
return button;
|
|
2221
2219
|
}
|
|
2222
2220
|
function makeSelect(view, control) {
|
|
2223
2221
|
var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
|
|
2224
|
-
|
|
2222
|
+
var ToolbarSelect = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
|
|
2223
|
+
return new ToolbarSelect(view, control, target);
|
|
2225
2224
|
}
|
|
2226
2225
|
|
|
2227
2226
|
|
|
@@ -4167,9 +4166,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.pluginSystem.add('pasteStorage',
|
|
|
4167
4166
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4168
4167
|
/* harmony export */ attr: function() { return /* binding */ attr; }
|
|
4169
4168
|
/* harmony export */ });
|
|
4170
|
-
/* harmony import */ var
|
|
4171
|
-
/* harmony import */ var
|
|
4172
|
-
/* harmony import */ var
|
|
4169
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91565);
|
|
4170
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62101);
|
|
4171
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
|
|
4172
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74264);
|
|
4173
|
+
/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
|
|
4173
4174
|
/*!
|
|
4174
4175
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4175
4176
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4179,19 +4180,21 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.pluginSystem.add('pasteStorage',
|
|
|
4179
4180
|
*/
|
|
4180
4181
|
|
|
4181
4182
|
|
|
4183
|
+
|
|
4184
|
+
|
|
4182
4185
|
/**
|
|
4183
4186
|
* Alias for `elm.getAttribute` but if set second argument `-{key}`
|
|
4184
4187
|
* it will also check `data-{key}` attribute
|
|
4185
4188
|
* if set `value` it is alias for setAttribute with the same logic
|
|
4186
4189
|
*/ function attr(elm, keyOrAttributes, value) {
|
|
4187
|
-
if (!elm || !(0,
|
|
4190
|
+
if (!elm || !(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__.isFunction)(elm.getAttribute)) {
|
|
4188
4191
|
return null;
|
|
4189
4192
|
}
|
|
4190
|
-
if (!(0,
|
|
4193
|
+
if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__.isString)(keyOrAttributes)) {
|
|
4191
4194
|
Object.keys(keyOrAttributes).forEach(function(key) {
|
|
4192
4195
|
var _$value = keyOrAttributes[key];
|
|
4193
|
-
if ((0,
|
|
4194
|
-
(0,
|
|
4196
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(_$value) && key === 'style') {
|
|
4197
|
+
(0,_css__WEBPACK_IMPORTED_MODULE_4__.css)(elm, _$value);
|
|
4195
4198
|
} else {
|
|
4196
4199
|
if (key === 'className') {
|
|
4197
4200
|
key = 'class';
|
|
@@ -4201,7 +4204,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.pluginSystem.add('pasteStorage',
|
|
|
4201
4204
|
});
|
|
4202
4205
|
return null;
|
|
4203
4206
|
}
|
|
4204
|
-
var key = (0,
|
|
4207
|
+
var key = (0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__.CamelCaseToKebabCase)(keyOrAttributes);
|
|
4205
4208
|
if (/^-/.test(key)) {
|
|
4206
4209
|
var res = attr(elm, "data".concat(key));
|
|
4207
4210
|
if (res) {
|
|
@@ -6941,24 +6944,21 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
6941
6944
|
|
|
6942
6945
|
"use strict";
|
|
6943
6946
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6944
|
-
/* harmony export */ abort: function() { return /* binding */ abort; }
|
|
6945
|
-
/* harmony export */ isAbort: function() { return /* binding */ isAbort; }
|
|
6947
|
+
/* harmony export */ abort: function() { return /* binding */ abort; }
|
|
6946
6948
|
/* harmony export */ });
|
|
6947
|
-
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72068);
|
|
6948
6949
|
/*!
|
|
6949
6950
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6950
6951
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
6951
6952
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
6952
6953
|
*/ /**
|
|
6953
6954
|
* @module helpers/utils
|
|
6954
|
-
*/
|
|
6955
|
-
|
|
6955
|
+
*/ /**
|
|
6956
|
+
* `AbortError` is not a separate exception, but rather a {@link DOMException} with a special `name`.
|
|
6957
|
+
* https://webidl.spec.whatwg.org/#aborterror
|
|
6958
|
+
*/ function abort() {
|
|
6956
6959
|
var message = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'Aborted';
|
|
6957
6960
|
return new DOMException(message, 'AbortError');
|
|
6958
6961
|
}
|
|
6959
|
-
/**
|
|
6960
|
-
* @deprecated use `isAbortError` instead
|
|
6961
|
-
*/ var isAbort = jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__.isAbortError;
|
|
6962
6962
|
|
|
6963
6963
|
|
|
6964
6964
|
/***/ }),
|
|
@@ -11100,15 +11100,27 @@ function _get(target, property, receiver) {
|
|
|
11100
11100
|
/* harmony import */ var _swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(77384);
|
|
11101
11101
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(31635);
|
|
11102
11102
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(69364);
|
|
11103
|
-
/* harmony import */ var
|
|
11104
|
-
/* harmony import */ var
|
|
11105
|
-
/* harmony import */ var
|
|
11106
|
-
/* harmony import */ var
|
|
11107
|
-
/* harmony import */ var
|
|
11108
|
-
/* harmony import */ var
|
|
11109
|
-
/* harmony import */ var
|
|
11110
|
-
/* harmony import */ var
|
|
11111
|
-
/* harmony import */ var
|
|
11103
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(49574);
|
|
11104
|
+
/* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51676);
|
|
11105
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(91672);
|
|
11106
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(68616);
|
|
11107
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(23211);
|
|
11108
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(17312);
|
|
11109
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(91565);
|
|
11110
|
+
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(24497);
|
|
11111
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(62101);
|
|
11112
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(85932);
|
|
11113
|
+
/* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(86878);
|
|
11114
|
+
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(57821);
|
|
11115
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(28712);
|
|
11116
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_25__);
|
|
11117
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(7909);
|
|
11118
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(71125);
|
|
11119
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(59400);
|
|
11120
|
+
/* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(15982);
|
|
11121
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(29434);
|
|
11122
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(51116);
|
|
11123
|
+
/* harmony import */ var _factory__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(4274);
|
|
11112
11124
|
/*!
|
|
11113
11125
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
11114
11126
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -11130,6 +11142,17 @@ function _get(target, property, receiver) {
|
|
|
11130
11142
|
|
|
11131
11143
|
|
|
11132
11144
|
|
|
11145
|
+
|
|
11146
|
+
|
|
11147
|
+
|
|
11148
|
+
|
|
11149
|
+
|
|
11150
|
+
|
|
11151
|
+
|
|
11152
|
+
|
|
11153
|
+
|
|
11154
|
+
|
|
11155
|
+
|
|
11133
11156
|
|
|
11134
11157
|
|
|
11135
11158
|
|
|
@@ -11149,20 +11172,20 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11149
11172
|
var _this;
|
|
11150
11173
|
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, ToolbarButton, [
|
|
11151
11174
|
jodit
|
|
11152
|
-
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "control", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "target", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "trigger", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "openedPopup", void 0), _this.control = control, _this.target = target, _this.state = (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_8__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_7__._)({}, (0,
|
|
11175
|
+
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "control", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "target", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "trigger", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "openedPopup", void 0), _this.control = control, _this.target = target, _this.state = (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_8__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_7__._)({}, (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_28__.UIButtonState)()), {
|
|
11153
11176
|
theme: 'toolbar',
|
|
11154
11177
|
currentValue: '',
|
|
11155
11178
|
hasTrigger: false
|
|
11156
11179
|
}), _this.openedPopup = null;
|
|
11157
11180
|
var button = _this.getElm('button');
|
|
11158
|
-
(0,
|
|
11181
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_25__.assert)(button, 'Element button should exists');
|
|
11159
11182
|
_this.button = button;
|
|
11160
11183
|
Object.defineProperty(button, 'component', {
|
|
11161
11184
|
value: _this,
|
|
11162
11185
|
configurable: true
|
|
11163
11186
|
});
|
|
11164
11187
|
var trigger = _this.getElm('trigger');
|
|
11165
|
-
(0,
|
|
11188
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_25__.assert)(trigger, 'Element trigger should exists');
|
|
11166
11189
|
_this.trigger = trigger;
|
|
11167
11190
|
trigger.remove();
|
|
11168
11191
|
// Prevent lost focus
|
|
@@ -11187,7 +11210,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11187
11210
|
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(ToolbarButton, [
|
|
11188
11211
|
{
|
|
11189
11212
|
key: "className",
|
|
11190
|
-
value:
|
|
11213
|
+
value: function className() {
|
|
11191
11214
|
return 'ToolbarButton';
|
|
11192
11215
|
}
|
|
11193
11216
|
},
|
|
@@ -11196,14 +11219,16 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11196
11219
|
get: /**
|
|
11197
11220
|
* Get parent toolbar
|
|
11198
11221
|
*/ function get() {
|
|
11199
|
-
|
|
11222
|
+
var ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_15__.getComponentClass)('ToolbarCollection');
|
|
11223
|
+
return this.closest(ToolbarCollection);
|
|
11200
11224
|
}
|
|
11201
11225
|
},
|
|
11202
11226
|
{
|
|
11203
11227
|
key: "update",
|
|
11204
|
-
value:
|
|
11228
|
+
value: function update() {
|
|
11205
11229
|
var _control_value, _control_update;
|
|
11206
|
-
var _this = this, control = _this.control, state = _this.state
|
|
11230
|
+
var _this = this, control = _this.control, state = _this.state;
|
|
11231
|
+
var tc = this.toolbar;
|
|
11207
11232
|
if (!tc) {
|
|
11208
11233
|
return;
|
|
11209
11234
|
}
|
|
@@ -11222,7 +11247,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11222
11247
|
* Calculates whether the button is active
|
|
11223
11248
|
*/ function __calculateActivatedStatus(tc) {
|
|
11224
11249
|
var _this_control_isActive, _this_control;
|
|
11225
|
-
if ((0,
|
|
11250
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_20__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
11226
11251
|
return false;
|
|
11227
11252
|
}
|
|
11228
11253
|
if ((_this_control_isActive = (_this_control = this.control).isActive) === null || _this_control_isActive === void 0 ? void 0 : _this_control_isActive.call(_this_control, this.j, this)) {
|
|
@@ -11251,15 +11276,15 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11251
11276
|
},
|
|
11252
11277
|
{
|
|
11253
11278
|
key: "onChangeActivated",
|
|
11254
|
-
value:
|
|
11255
|
-
(0,
|
|
11279
|
+
value: function onChangeActivated() {
|
|
11280
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_26__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
11256
11281
|
(0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__._)(ToolbarButton.prototype), "onChangeActivated", this).call(this);
|
|
11257
11282
|
}
|
|
11258
11283
|
},
|
|
11259
11284
|
{
|
|
11260
11285
|
key: "onChangeText",
|
|
11261
|
-
value:
|
|
11262
|
-
if ((0,
|
|
11286
|
+
value: function onChangeText() {
|
|
11287
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_19__.isFunction)(this.control.template)) {
|
|
11263
11288
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
11264
11289
|
} else {
|
|
11265
11290
|
(0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__._)(ToolbarButton.prototype), "onChangeText", this).call(this);
|
|
@@ -11269,8 +11294,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11269
11294
|
},
|
|
11270
11295
|
{
|
|
11271
11296
|
key: "onChangeTabIndex",
|
|
11272
|
-
value:
|
|
11273
|
-
(0,
|
|
11297
|
+
value: function onChangeTabIndex() {
|
|
11298
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_26__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
11274
11299
|
}
|
|
11275
11300
|
},
|
|
11276
11301
|
{
|
|
@@ -11279,14 +11304,14 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11279
11304
|
var cn = this.componentName;
|
|
11280
11305
|
var container = this.j.c.span(cn);
|
|
11281
11306
|
var button = (0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__._)(ToolbarButton.prototype), "createContainer", this).call(this);
|
|
11282
|
-
(0,
|
|
11307
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_26__.attr)(container, 'role', 'listitem');
|
|
11283
11308
|
button.classList.remove(cn);
|
|
11284
11309
|
button.classList.add(cn + '__button');
|
|
11285
11310
|
Object.defineProperty(button, 'component', {
|
|
11286
11311
|
value: this
|
|
11287
11312
|
});
|
|
11288
11313
|
container.appendChild(button);
|
|
11289
|
-
var trigger = this.j.c.fromHTML('<span role="trigger" class="'.concat(cn, '__trigger">').concat(
|
|
11314
|
+
var trigger = this.j.c.fromHTML('<span role="trigger" class="'.concat(cn, '__trigger">').concat(jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_30__.Icon.get('chevron'), "</span>"));
|
|
11290
11315
|
// For caching
|
|
11291
11316
|
button.appendChild(trigger);
|
|
11292
11317
|
return container;
|
|
@@ -11305,7 +11330,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11305
11330
|
if (this.state.hasTrigger) {
|
|
11306
11331
|
this.container.appendChild(this.trigger);
|
|
11307
11332
|
} else {
|
|
11308
|
-
|
|
11333
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_17__.Dom.safeRemove(this.trigger);
|
|
11309
11334
|
}
|
|
11310
11335
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
11311
11336
|
}
|
|
@@ -11314,9 +11339,9 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11314
11339
|
key: "onChangeDisabled",
|
|
11315
11340
|
value: /** @override */ function onChangeDisabled() {
|
|
11316
11341
|
var disabled = this.state.disabled ? 'disabled' : null;
|
|
11317
|
-
(0,
|
|
11318
|
-
(0,
|
|
11319
|
-
(0,
|
|
11342
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_26__.attr)(this.trigger, 'disabled', disabled);
|
|
11343
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_26__.attr)(this.button, 'disabled', disabled);
|
|
11344
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_26__.attr)(this.container, 'disabled', disabled);
|
|
11320
11345
|
}
|
|
11321
11346
|
},
|
|
11322
11347
|
{
|
|
@@ -11328,8 +11353,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11328
11353
|
this.updateSize();
|
|
11329
11354
|
state.name = ctr.name;
|
|
11330
11355
|
var textIcons = this.j.o.textIcons;
|
|
11331
|
-
if (textIcons === true || (0,
|
|
11332
|
-
state.icon = (0,
|
|
11356
|
+
if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_19__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
11357
|
+
state.icon = (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_28__.UIButtonState)().icon;
|
|
11333
11358
|
state.text = ctr.text || ctr.name;
|
|
11334
11359
|
} else {
|
|
11335
11360
|
if (ctr.iconURL) {
|
|
@@ -11337,14 +11362,14 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11337
11362
|
} else {
|
|
11338
11363
|
var _this_j_o_extraIcons;
|
|
11339
11364
|
var name = ctr.icon || ctr.name;
|
|
11340
|
-
state.icon.name =
|
|
11365
|
+
state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_30__.Icon.exists(name) || ((_this_j_o_extraIcons = this.j.o.extraIcons) === null || _this_j_o_extraIcons === void 0 ? void 0 : _this_j_o_extraIcons[name]) ? name : '';
|
|
11341
11366
|
}
|
|
11342
11367
|
if (!ctr.iconURL && !state.icon.name) {
|
|
11343
11368
|
state.text = ctr.text || ctr.name;
|
|
11344
11369
|
}
|
|
11345
11370
|
}
|
|
11346
11371
|
if (ctr.tooltip) {
|
|
11347
|
-
state.tooltip = (0,
|
|
11372
|
+
state.tooltip = (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_19__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
11348
11373
|
}
|
|
11349
11374
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
11350
11375
|
}
|
|
@@ -11366,18 +11391,18 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11366
11391
|
if (ctr.list) {
|
|
11367
11392
|
return this.__openControlList(ctr);
|
|
11368
11393
|
}
|
|
11369
|
-
if ((0,
|
|
11394
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_19__.isFunction)(ctr.popup)) {
|
|
11370
11395
|
var popup = this.openPopup();
|
|
11371
11396
|
popup.parentElement = this;
|
|
11372
11397
|
try {
|
|
11373
|
-
if (this.j.e.fire((0,
|
|
11398
|
+
if (this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_24__.camelCase)("before-".concat(ctr.name, "-open-popup")), this.target, ctr, popup) !== false) {
|
|
11374
11399
|
var _ref, _ref1;
|
|
11375
11400
|
var _this_toolbar;
|
|
11376
11401
|
var target = (_ref = (_ref1 = (_this_toolbar = this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.getTarget(this)) !== null && _ref1 !== void 0 ? _ref1 : this.target) !== null && _ref !== void 0 ? _ref : null;
|
|
11377
11402
|
var elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
11378
11403
|
if (elm) {
|
|
11379
|
-
popup.setContent((0,
|
|
11380
|
-
return (0,
|
|
11404
|
+
popup.setContent((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_22__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(function() {
|
|
11405
|
+
return (0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_23__.position)(_this.container);
|
|
11381
11406
|
}, false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
11382
11407
|
} else {
|
|
11383
11408
|
this.__closePopup();
|
|
@@ -11391,7 +11416,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11391
11416
|
* Fired after the popup was opened for some control button
|
|
11392
11417
|
*/ /**
|
|
11393
11418
|
* Close all opened popups
|
|
11394
|
-
*/ this.j.e.fire((0,
|
|
11419
|
+
*/ this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_24__.camelCase)("after-".concat(ctr.name, "-open-popup")), popup.container);
|
|
11395
11420
|
}
|
|
11396
11421
|
}
|
|
11397
11422
|
},
|
|
@@ -11403,22 +11428,24 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11403
11428
|
var _this = this;
|
|
11404
11429
|
var _this_jodit_options_controls;
|
|
11405
11430
|
var controls = (_this_jodit_options_controls = this.jodit.options.controls) !== null && _this_jodit_options_controls !== void 0 ? _this_jodit_options_controls : {}, getControl = function getControl(key) {
|
|
11406
|
-
return (0,
|
|
11431
|
+
return (0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_29__.findControlType)(key, controls);
|
|
11407
11432
|
};
|
|
11408
|
-
var list = control.list
|
|
11433
|
+
var list = control.list;
|
|
11434
|
+
var menu = this.openPopup();
|
|
11435
|
+
var toolbar = (0,_factory__WEBPACK_IMPORTED_MODULE_32__.makeCollection)(this.j);
|
|
11409
11436
|
menu.parentElement = this;
|
|
11410
11437
|
toolbar.parentElement = menu;
|
|
11411
11438
|
toolbar.mode = 'vertical';
|
|
11412
11439
|
var isListItem = function isListItem(key) {
|
|
11413
|
-
return (0,
|
|
11440
|
+
return (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_21__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
11414
11441
|
};
|
|
11415
11442
|
var getButton = function getButton(key, value) {
|
|
11416
|
-
if ((0,
|
|
11443
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_22__.isString)(value) && getControl(value)) {
|
|
11417
11444
|
return (0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_7__._)({
|
|
11418
11445
|
name: value.toString()
|
|
11419
11446
|
}, getControl(value));
|
|
11420
11447
|
}
|
|
11421
|
-
if ((0,
|
|
11448
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_22__.isString)(key) && getControl(key)) {
|
|
11422
11449
|
return (0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_7__._)({
|
|
11423
11450
|
name: key.toString()
|
|
11424
11451
|
}, getControl(key), (typeof value === "undefined" ? "undefined" : (0,_swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_10__._)(value)) === 'object' ? value : {});
|
|
@@ -11450,16 +11477,16 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11450
11477
|
value
|
|
11451
11478
|
])
|
|
11452
11479
|
};
|
|
11453
|
-
if ((0,
|
|
11480
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_22__.isString)(value)) {
|
|
11454
11481
|
childControl.text = value;
|
|
11455
11482
|
}
|
|
11456
11483
|
return childControl;
|
|
11457
11484
|
};
|
|
11458
|
-
toolbar.build((0,
|
|
11485
|
+
toolbar.build((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_18__.isArray)(list) ? list.map(getButton) : (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_27__.keys)(list, false).map(function(key) {
|
|
11459
11486
|
return getButton(key, list[key]);
|
|
11460
11487
|
}), this.target);
|
|
11461
11488
|
menu.setContent(toolbar).open(function() {
|
|
11462
|
-
return (0,
|
|
11489
|
+
return (0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_23__.position)(_this.container);
|
|
11463
11490
|
}, false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
11464
11491
|
this.state.activated = true;
|
|
11465
11492
|
}
|
|
@@ -11470,7 +11497,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11470
11497
|
if (!this.openedPopup) {
|
|
11471
11498
|
return;
|
|
11472
11499
|
}
|
|
11473
|
-
if (!e || !
|
|
11500
|
+
if (!e || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_17__.Dom.isNode(e.target) || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_17__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
|
|
11474
11501
|
this.__closePopup();
|
|
11475
11502
|
}
|
|
11476
11503
|
}
|
|
@@ -11479,7 +11506,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11479
11506
|
key: "openPopup",
|
|
11480
11507
|
value: function openPopup() {
|
|
11481
11508
|
this.__closePopup();
|
|
11482
|
-
this.openedPopup = new
|
|
11509
|
+
this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_31__.Popup(this.j, false);
|
|
11483
11510
|
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
|
|
11484
11511
|
return this.openedPopup;
|
|
11485
11512
|
}
|
|
@@ -11502,7 +11529,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11502
11529
|
* Click handler
|
|
11503
11530
|
*/ function onClick(originalEvent) {
|
|
11504
11531
|
var _this = this, ctr = _this.control;
|
|
11505
|
-
if ((0,
|
|
11532
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_19__.isFunction)(ctr.exec)) {
|
|
11506
11533
|
var _ref, _ref1;
|
|
11507
11534
|
var _this_toolbar;
|
|
11508
11535
|
var target = (_ref = (_ref1 = (_this_toolbar = this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.getTarget(this)) !== null && _ref1 !== void 0 ? _ref1 : this.target) !== null && _ref !== void 0 ? _ref : null;
|
|
@@ -11529,11 +11556,11 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11529
11556
|
if (ctr.list) {
|
|
11530
11557
|
return this.__openControlList(ctr);
|
|
11531
11558
|
}
|
|
11532
|
-
if ((0,
|
|
11559
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_19__.isFunction)(ctr.popup)) {
|
|
11533
11560
|
return this.onTriggerClick(originalEvent);
|
|
11534
11561
|
}
|
|
11535
11562
|
if (ctr.command || ctr.name) {
|
|
11536
|
-
(0,
|
|
11563
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_27__.call)((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_20__.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]);
|
|
11537
11564
|
this.j.e.fire('closeAllPopups');
|
|
11538
11565
|
}
|
|
11539
11566
|
}
|
|
@@ -11547,26 +11574,26 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
11547
11574
|
}
|
|
11548
11575
|
]);
|
|
11549
11576
|
return ToolbarButton;
|
|
11550
|
-
}(
|
|
11577
|
+
}(jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_28__.UIButton);
|
|
11551
11578
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_11__.__decorate)([
|
|
11552
|
-
|
|
11579
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_14__.cacheHTML
|
|
11553
11580
|
], ToolbarButton.prototype, "createContainer", null);
|
|
11554
11581
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_11__.__decorate)([
|
|
11555
|
-
(0,
|
|
11582
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_16__.watch)('state.hasTrigger', {
|
|
11556
11583
|
immediately: false
|
|
11557
11584
|
})
|
|
11558
11585
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
11559
11586
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_11__.__decorate)([
|
|
11560
|
-
(0,
|
|
11587
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_16__.watch)('trigger:click')
|
|
11561
11588
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
11562
11589
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_11__.__decorate)([
|
|
11563
|
-
|
|
11590
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_13__.autobind
|
|
11564
11591
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
11565
11592
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_11__.__decorate)([
|
|
11566
|
-
|
|
11593
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_13__.autobind
|
|
11567
11594
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
11568
11595
|
ToolbarButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_11__.__decorate)([
|
|
11569
|
-
|
|
11596
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_15__.component
|
|
11570
11597
|
], ToolbarButton);
|
|
11571
11598
|
|
|
11572
11599
|
|
|
@@ -11883,8 +11910,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_9__.pluginSystem.add('wrapNodes', wra
|
|
|
11883
11910
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11884
11911
|
/* harmony export */ isMarker: function() { return /* binding */ isMarker; }
|
|
11885
11912
|
/* harmony export */ });
|
|
11886
|
-
/* harmony import */ var
|
|
11887
|
-
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
|
|
11913
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
11888
11914
|
/*!
|
|
11889
11915
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
11890
11916
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -11892,11 +11918,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_9__.pluginSystem.add('wrapNodes', wra
|
|
|
11892
11918
|
*/ /**
|
|
11893
11919
|
* @module helpers/checker
|
|
11894
11920
|
*/
|
|
11895
|
-
|
|
11896
11921
|
/**
|
|
11897
11922
|
* Define element is selection helper
|
|
11923
|
+
* @deprecated use Dom.isMarker instead
|
|
11898
11924
|
*/ function isMarker(elm) {
|
|
11899
|
-
return
|
|
11925
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isMarker(elm);
|
|
11900
11926
|
}
|
|
11901
11927
|
|
|
11902
11928
|
|
|
@@ -11965,9 +11991,20 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
11965
11991
|
/* harmony import */ var _swc_helpers_ts_values__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
|
|
11966
11992
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(81937);
|
|
11967
11993
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88475);
|
|
11968
|
-
/* harmony import */ var
|
|
11969
|
-
/* harmony import */ var
|
|
11970
|
-
/* harmony import */ var
|
|
11994
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17312);
|
|
11995
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91565);
|
|
11996
|
+
/* harmony import */ var jodit_core_helpers_checker_is_html__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(46248);
|
|
11997
|
+
/* harmony import */ var jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3213);
|
|
11998
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(85932);
|
|
11999
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(18303);
|
|
12000
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(4040);
|
|
12001
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(28712);
|
|
12002
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__);
|
|
12003
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(7909);
|
|
12004
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(80991);
|
|
12005
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(36400);
|
|
12006
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(33201);
|
|
12007
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(71125);
|
|
11971
12008
|
/*!
|
|
11972
12009
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
11973
12010
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -11987,6 +12024,16 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
11987
12024
|
|
|
11988
12025
|
|
|
11989
12026
|
|
|
12027
|
+
|
|
12028
|
+
|
|
12029
|
+
|
|
12030
|
+
|
|
12031
|
+
|
|
12032
|
+
|
|
12033
|
+
|
|
12034
|
+
|
|
12035
|
+
|
|
12036
|
+
|
|
11990
12037
|
|
|
11991
12038
|
/**
|
|
11992
12039
|
* Module for working with DOM
|
|
@@ -12031,7 +12078,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12031
12078
|
{
|
|
12032
12079
|
key: "__wrapElements",
|
|
12033
12080
|
value: function __wrapElements(tag, editor, first, last) {
|
|
12034
|
-
var wrapper = (0,
|
|
12081
|
+
var wrapper = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(tag) ? editor.createInside.element(tag) : tag;
|
|
12035
12082
|
if (first.parentNode) {
|
|
12036
12083
|
first.parentNode.insertBefore(wrapper, first);
|
|
12037
12084
|
}
|
|
@@ -12082,10 +12129,10 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12082
12129
|
value: /**
|
|
12083
12130
|
* Wrap node inside another node
|
|
12084
12131
|
*/ function wrap(current, tag, create) {
|
|
12085
|
-
var wrapper = (0,
|
|
12132
|
+
var wrapper = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(tag) ? create.element(tag) : tag;
|
|
12086
12133
|
if (Dom.isNode(current)) {
|
|
12087
12134
|
if (!current.parentNode) {
|
|
12088
|
-
throw (0,
|
|
12135
|
+
throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_19__.error)('Element should be in DOM');
|
|
12089
12136
|
}
|
|
12090
12137
|
current.parentNode.insertBefore(wrapper, current);
|
|
12091
12138
|
wrapper.appendChild(current);
|
|
@@ -12136,13 +12183,13 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12136
12183
|
key: "replace",
|
|
12137
12184
|
value: function replace(elm, newTagName, create) {
|
|
12138
12185
|
var withAttributes = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, notMoveContent = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
12139
|
-
if ((0,
|
|
12140
|
-
(0,
|
|
12186
|
+
if ((0,jodit_core_helpers_checker_is_html__WEBPACK_IMPORTED_MODULE_10__.isHTML)(newTagName)) {
|
|
12187
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__.assert)(create, 'Need create instance for new tag');
|
|
12141
12188
|
newTagName = create.fromHTML(newTagName);
|
|
12142
12189
|
}
|
|
12143
12190
|
var tag;
|
|
12144
|
-
if ((0,
|
|
12145
|
-
(0,
|
|
12191
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(newTagName)) {
|
|
12192
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__.assert)(create, 'Need create instance for new tag');
|
|
12146
12193
|
tag = create.element(newTagName);
|
|
12147
12194
|
} else {
|
|
12148
12195
|
tag = newTagName;
|
|
@@ -12200,7 +12247,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12200
12247
|
return true;
|
|
12201
12248
|
}
|
|
12202
12249
|
var cond;
|
|
12203
|
-
if (!(0,
|
|
12250
|
+
if (!(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(condNoEmptyElement)) {
|
|
12204
12251
|
cond = function cond(elm) {
|
|
12205
12252
|
return condNoEmptyElement.has(elm.nodeName.toLowerCase());
|
|
12206
12253
|
};
|
|
@@ -12208,7 +12255,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12208
12255
|
cond = condNoEmptyElement;
|
|
12209
12256
|
}
|
|
12210
12257
|
var emptyText = function emptyText(node) {
|
|
12211
|
-
return node.nodeValue == null || (0,
|
|
12258
|
+
return node.nodeValue == null || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_14__.trim)(node.nodeValue).length === 0;
|
|
12212
12259
|
};
|
|
12213
12260
|
if (Dom.isText(node)) {
|
|
12214
12261
|
return emptyText(node);
|
|
@@ -12226,7 +12273,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12226
12273
|
* Returns true if it is a DOM node
|
|
12227
12274
|
*/ function isNode(object) {
|
|
12228
12275
|
// Duck-typing
|
|
12229
|
-
return Boolean(object && (0,
|
|
12276
|
+
return Boolean(object && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(object.nodeName) && typeof object.nodeType === 'number' && object.childNodes && (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(object.appendChild));
|
|
12230
12277
|
}
|
|
12231
12278
|
},
|
|
12232
12279
|
{
|
|
@@ -12267,7 +12314,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12267
12314
|
* Check the `node` is a block element
|
|
12268
12315
|
* @param node - Object to check
|
|
12269
12316
|
*/ function isBlock(node) {
|
|
12270
|
-
return !(0,
|
|
12317
|
+
return !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_13__.isVoid)(node) && (typeof node === "undefined" ? "undefined" : (0,_swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_3__._)(node)) === 'object' && Dom.isNode(node) && jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.IS_BLOCK.test(node.nodeName);
|
|
12271
12318
|
}
|
|
12272
12319
|
},
|
|
12273
12320
|
{
|
|
@@ -12333,7 +12380,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12333
12380
|
return Dom.isElement(node) && !/^(BR|HR)$/i.test(node.tagName) && [
|
|
12334
12381
|
'inline',
|
|
12335
12382
|
'inline-block'
|
|
12336
|
-
].indexOf((0,
|
|
12383
|
+
].indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_17__.css)(node, 'display').toString()) !== -1;
|
|
12337
12384
|
}
|
|
12338
12385
|
},
|
|
12339
12386
|
{
|
|
@@ -12341,7 +12388,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12341
12388
|
value: /**
|
|
12342
12389
|
* It's block and it can be split
|
|
12343
12390
|
*/ function canSplitBlock(node) {
|
|
12344
|
-
return !(0,
|
|
12391
|
+
return !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_13__.isVoid)(node) && Dom.isHTMLElement(node) && Dom.isBlock(node) && !/^(TD|TH|CAPTION|FORM)$/.test(node.nodeName) && node.style !== undefined && !/^(fixed|absolute)/i.test(node.style.position);
|
|
12345
12392
|
}
|
|
12346
12393
|
},
|
|
12347
12394
|
{
|
|
@@ -12599,7 +12646,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12599
12646
|
*/ function findNotEmptySibling(node, left) {
|
|
12600
12647
|
return Dom.findSibling(node, left, function(n) {
|
|
12601
12648
|
var _n_nodeValue;
|
|
12602
|
-
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_n_nodeValue = n.nodeValue) === null || _n_nodeValue === void 0 ? void 0 : _n_nodeValue.length) && (0,
|
|
12649
|
+
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_n_nodeValue = n.nodeValue) === null || _n_nodeValue === void 0 ? void 0 : _n_nodeValue.length) && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_14__.trim)(n.nodeValue));
|
|
12603
12650
|
});
|
|
12604
12651
|
}
|
|
12605
12652
|
},
|
|
@@ -12608,8 +12655,8 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12608
12655
|
value: /**
|
|
12609
12656
|
* Returns the nearest non-empty neighbor
|
|
12610
12657
|
*/ function findNotEmptyNeighbor(node, left, root) {
|
|
12611
|
-
return (0,
|
|
12612
|
-
return Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,
|
|
12658
|
+
return (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_20__.call)(left ? Dom.prev : Dom.next, node, function(n) {
|
|
12659
|
+
return Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_14__.trim)((n === null || n === void 0 ? void 0 : n.nodeValue) || '').length));
|
|
12613
12660
|
}, root);
|
|
12614
12661
|
}
|
|
12615
12662
|
},
|
|
@@ -12651,10 +12698,10 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12651
12698
|
var lc = function lc(s) {
|
|
12652
12699
|
return s.toLowerCase();
|
|
12653
12700
|
};
|
|
12654
|
-
if ((0,
|
|
12701
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(tagsOrCondition)) {
|
|
12655
12702
|
condition = tagsOrCondition;
|
|
12656
|
-
} else if ((0,
|
|
12657
|
-
var set = (0,
|
|
12703
|
+
} else if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_8__.isArray)(tagsOrCondition) || (0,jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_11__.isSet)(tagsOrCondition)) {
|
|
12704
|
+
var set = (0,jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_11__.isSet)(tagsOrCondition) ? tagsOrCondition : new Set(tagsOrCondition.map(lc));
|
|
12658
12705
|
condition = function condition(tag) {
|
|
12659
12706
|
return Boolean(tag && set.has(lc(tag.nodeName)));
|
|
12660
12707
|
};
|
|
@@ -12736,7 +12783,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12736
12783
|
key: "append",
|
|
12737
12784
|
value: function append(root, newElement) {
|
|
12738
12785
|
var _this = this;
|
|
12739
|
-
if ((0,
|
|
12786
|
+
if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_8__.isArray)(newElement)) {
|
|
12740
12787
|
newElement.forEach(function(node) {
|
|
12741
12788
|
_this.append(root, node);
|
|
12742
12789
|
});
|
|
@@ -12828,7 +12875,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12828
12875
|
if (!node) {
|
|
12829
12876
|
return;
|
|
12830
12877
|
}
|
|
12831
|
-
(0,
|
|
12878
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_18__.dataBind)(node, '__old_display', node.style.display);
|
|
12832
12879
|
node.style.display = 'none';
|
|
12833
12880
|
}
|
|
12834
12881
|
},
|
|
@@ -12840,7 +12887,7 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12840
12887
|
if (!node) {
|
|
12841
12888
|
return;
|
|
12842
12889
|
}
|
|
12843
|
-
var display = (0,
|
|
12890
|
+
var display = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_18__.dataBind)(node, '__old_display');
|
|
12844
12891
|
if (node.style.display === 'none') {
|
|
12845
12892
|
node.style.display = display || '';
|
|
12846
12893
|
}
|
|
@@ -12872,8 +12919,8 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12872
12919
|
value: /**
|
|
12873
12920
|
* Marks an item as temporary
|
|
12874
12921
|
*/ function markTemporary(element, attributes) {
|
|
12875
|
-
attributes && (0,
|
|
12876
|
-
(0,
|
|
12922
|
+
attributes && (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(element, attributes);
|
|
12923
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.TEMP_ATTR, true);
|
|
12877
12924
|
return element;
|
|
12878
12925
|
}
|
|
12879
12926
|
},
|
|
@@ -12885,7 +12932,15 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12885
12932
|
if (!Dom.isElement(element)) {
|
|
12886
12933
|
return false;
|
|
12887
12934
|
}
|
|
12888
|
-
return
|
|
12935
|
+
return Dom.isMarker(element) || (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.TEMP_ATTR) === 'true';
|
|
12936
|
+
}
|
|
12937
|
+
},
|
|
12938
|
+
{
|
|
12939
|
+
key: "isMarker",
|
|
12940
|
+
value: /**
|
|
12941
|
+
* Define element is selection helper
|
|
12942
|
+
*/ function isMarker(elm) {
|
|
12943
|
+
return Dom.isNode(elm) && Dom.isTag(elm, 'span') && elm.hasAttribute('data-' + jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.MARKER_CLASS);
|
|
12889
12944
|
}
|
|
12890
12945
|
},
|
|
12891
12946
|
{
|
|
@@ -12900,8 +12955,9 @@ var Elms = /*#__PURE__*/ function() {
|
|
|
12900
12955
|
key: "temporaryList",
|
|
12901
12956
|
value: /**
|
|
12902
12957
|
* Get temporary list
|
|
12958
|
+
* @deprecated
|
|
12903
12959
|
*/ function temporaryList(root) {
|
|
12904
|
-
return (0,
|
|
12960
|
+
return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_7__.toArray)(root.querySelectorAll("[".concat(jodit_core_constants__WEBPACK_IMPORTED_MODULE_6__.TEMP_ATTR, "]")));
|
|
12905
12961
|
}
|
|
12906
12962
|
}
|
|
12907
12963
|
]);
|
|
@@ -14795,16 +14851,16 @@ UISpacer = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)(
|
|
|
14795
14851
|
/* harmony export */ pluginSystem: function() { return /* binding */ pluginSystem; },
|
|
14796
14852
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
14797
14853
|
/* harmony export */ });
|
|
14798
|
-
/* harmony import */ var
|
|
14799
|
-
/* harmony import */ var
|
|
14800
|
-
/* harmony import */ var
|
|
14801
|
-
/* harmony import */ var
|
|
14802
|
-
/* harmony import */ var
|
|
14854
|
+
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24497);
|
|
14855
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85932);
|
|
14856
|
+
/* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31534);
|
|
14857
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74264);
|
|
14858
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
|
|
14803
14859
|
/* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(421);
|
|
14804
14860
|
/* harmony import */ var jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85305);
|
|
14805
|
-
/* harmony import */ var
|
|
14806
|
-
/* harmony import */ var
|
|
14807
|
-
/* harmony import */ var
|
|
14861
|
+
/* harmony import */ var _event_emitter_global__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42689);
|
|
14862
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81937);
|
|
14863
|
+
/* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27795);
|
|
14808
14864
|
/*!
|
|
14809
14865
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
14810
14866
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -14838,14 +14894,16 @@ var uuids = new Set();
|
|
|
14838
14894
|
uuids.add(uid);
|
|
14839
14895
|
return uid;
|
|
14840
14896
|
}
|
|
14841
|
-
var pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__.PluginSystem(
|
|
14897
|
+
var pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__.PluginSystem({
|
|
14898
|
+
getContainer: getContainer
|
|
14899
|
+
});
|
|
14842
14900
|
var modules = {};
|
|
14843
14901
|
var extendLang = function extendLang(langs) {
|
|
14844
14902
|
Object.keys(langs).forEach(function(key) {
|
|
14845
|
-
if (
|
|
14846
|
-
Object.assign(
|
|
14903
|
+
if (_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key]) {
|
|
14904
|
+
Object.assign(_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key], langs[key]);
|
|
14847
14905
|
} else {
|
|
14848
|
-
|
|
14906
|
+
_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key] = langs[key];
|
|
14849
14907
|
}
|
|
14850
14908
|
});
|
|
14851
14909
|
};
|
|
@@ -14854,27 +14912,27 @@ var boxes = new WeakMap();
|
|
|
14854
14912
|
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
14855
14913
|
*/ function getContainer(jodit, classFunc) {
|
|
14856
14914
|
var tag = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'div', createInsideEditor = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
14857
|
-
var name = (0,
|
|
14915
|
+
var name = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString)(classFunc) ? classFunc : classFunc ? (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_5__.getClassName)(classFunc.prototype) : 'jodit-utils';
|
|
14858
14916
|
var data = boxes.get(jodit) || {}, key = name + tag;
|
|
14859
|
-
var view = (0,
|
|
14917
|
+
var view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
14860
14918
|
var body = null;
|
|
14861
14919
|
if (!data[key]) {
|
|
14862
14920
|
var c = view.c;
|
|
14863
14921
|
body = getPopupViewRoot(view.o, view.container, jodit.od.body);
|
|
14864
|
-
if (createInsideEditor && (0,
|
|
14922
|
+
if (createInsideEditor && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.od !== jodit.ed) {
|
|
14865
14923
|
c = jodit.createInside;
|
|
14866
14924
|
var place = tag === 'style' ? jodit.ed.head : jodit.ed.body;
|
|
14867
|
-
body = (0,
|
|
14925
|
+
body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
|
|
14868
14926
|
}
|
|
14869
14927
|
var box = c.element(tag, {
|
|
14870
|
-
className: "jodit jodit-".concat((0,
|
|
14928
|
+
className: "jodit jodit-".concat((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__.kebabCase)(name), "-container jodit-box")
|
|
14871
14929
|
});
|
|
14872
14930
|
box.classList.add("jodit_theme_".concat(view.o.theme || 'default'));
|
|
14873
14931
|
body.appendChild(box);
|
|
14874
14932
|
data[key] = box;
|
|
14875
14933
|
jodit.hookStatus('beforeDestruct', function() {
|
|
14876
14934
|
view.events.off(box);
|
|
14877
|
-
|
|
14935
|
+
_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(box);
|
|
14878
14936
|
delete data[key];
|
|
14879
14937
|
if (Object.keys(data).length) {
|
|
14880
14938
|
boxes.delete(jodit);
|
|
@@ -14892,16 +14950,17 @@ var boxes = new WeakMap();
|
|
|
14892
14950
|
* @internal
|
|
14893
14951
|
*/ function getPopupViewRoot(o, container, defaultRoot) {
|
|
14894
14952
|
var _ref, _ref1, _o_popupRoot;
|
|
14895
|
-
return (_ref = (_ref1 = (_o_popupRoot = o.popupRoot) !== null && _o_popupRoot !== void 0 ? _o_popupRoot : o.shadowRoot) !== null && _ref1 !== void 0 ? _ref1 :
|
|
14896
|
-
return
|
|
14953
|
+
return (_ref = (_ref1 = (_o_popupRoot = o.popupRoot) !== null && _o_popupRoot !== void 0 ? _o_popupRoot : o.shadowRoot) !== null && _ref1 !== void 0 ? _ref1 : _dom__WEBPACK_IMPORTED_MODULE_9__.Dom.closest(container, function(parentElement) {
|
|
14954
|
+
return _dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isHTMLElement(parentElement) && (_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(parentElement, 'dialog') || [
|
|
14897
14955
|
'fixed',
|
|
14898
14956
|
'absolute'
|
|
14899
|
-
].includes((0,
|
|
14957
|
+
].includes((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(parentElement, 'position')));
|
|
14900
14958
|
}, defaultRoot)) !== null && _ref !== void 0 ? _ref : defaultRoot;
|
|
14901
14959
|
}
|
|
14902
14960
|
/**
|
|
14903
14961
|
* Global event emitter
|
|
14904
|
-
|
|
14962
|
+
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
14963
|
+
*/ var eventEmitter = _event_emitter_global__WEBPACK_IMPORTED_MODULE_7__.eventEmitter;
|
|
14905
14964
|
|
|
14906
14965
|
|
|
14907
14966
|
/***/ }),
|
|
@@ -15409,7 +15468,8 @@ module.exports = {assert(){}};;
|
|
|
15409
15468
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88475);
|
|
15410
15469
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85932);
|
|
15411
15470
|
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57821);
|
|
15412
|
-
/* harmony import */ var
|
|
15471
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7909);
|
|
15472
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33201);
|
|
15413
15473
|
/*!
|
|
15414
15474
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15415
15475
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15423,6 +15483,7 @@ module.exports = {assert(){}};;
|
|
|
15423
15483
|
|
|
15424
15484
|
|
|
15425
15485
|
|
|
15486
|
+
|
|
15426
15487
|
var temp = 1;
|
|
15427
15488
|
var $$temp = function $$temp() {
|
|
15428
15489
|
temp++;
|
|
@@ -15469,7 +15530,7 @@ var $$temp = function $$temp() {
|
|
|
15469
15530
|
root = root.container;
|
|
15470
15531
|
}
|
|
15471
15532
|
return $$('[ref],[data-ref]', root).reduce(function(def, child) {
|
|
15472
|
-
var key = (0,
|
|
15533
|
+
var key = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_6__.attr)(child, '-ref');
|
|
15473
15534
|
if (key && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_4__.isString)(key)) {
|
|
15474
15535
|
def[(0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_5__.camelCase)(key)] = child;
|
|
15475
15536
|
def[key] = child;
|
|
@@ -15514,12 +15575,12 @@ var $$temp = function $$temp() {
|
|
|
15514
15575
|
try {
|
|
15515
15576
|
resolved = od.querySelector(element);
|
|
15516
15577
|
} catch (unused) {
|
|
15517
|
-
throw (0,
|
|
15578
|
+
throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_7__.error)('String "' + element + '" should be valid HTML selector');
|
|
15518
15579
|
}
|
|
15519
15580
|
}
|
|
15520
15581
|
// Duck checking
|
|
15521
15582
|
if (!resolved || (typeof resolved === "undefined" ? "undefined" : (0,_swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_0__._)(resolved)) !== 'object' || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(resolved) || !resolved.cloneNode) {
|
|
15522
|
-
throw (0,
|
|
15583
|
+
throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_7__.error)('Element "' + element + '" should be string or HTMLElement instance');
|
|
15523
15584
|
}
|
|
15524
15585
|
return resolved;
|
|
15525
15586
|
}
|
|
@@ -16162,8 +16223,7 @@ UIImageMainTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__deco
|
|
|
16162
16223
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16163
16224
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
|
|
16164
16225
|
/* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error__WEBPACK_IMPORTED_MODULE_2__.OptionsError; },
|
|
16165
|
-
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
16166
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.isAbort; }
|
|
16226
|
+
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
16167
16227
|
/* harmony export */ });
|
|
16168
16228
|
/* harmony import */ var _abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14228);
|
|
16169
16229
|
/* harmony import */ var _connection_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58250);
|
|
@@ -17819,7 +17879,6 @@ var Response = /*#__PURE__*/ function() {
|
|
|
17819
17879
|
/* harmony export */ abort: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.abort; },
|
|
17820
17880
|
/* harmony export */ connection: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.connection; },
|
|
17821
17881
|
/* harmony export */ error: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.error; },
|
|
17822
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.isAbort; },
|
|
17823
17882
|
/* harmony export */ options: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.options; }
|
|
17824
17883
|
/* harmony export */ });
|
|
17825
17884
|
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38027);
|
|
@@ -18215,16 +18274,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
18215
18274
|
|
|
18216
18275
|
"use strict";
|
|
18217
18276
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18218
|
-
/* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
|
|
18219
|
-
/* harmony export */ getItem: function() { return /* binding */ getItem; },
|
|
18220
18277
|
/* harmony export */ nativeListeners: function() { return /* binding */ nativeListeners; }
|
|
18221
18278
|
/* harmony export */ });
|
|
18222
18279
|
/* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42395);
|
|
18223
|
-
/* harmony import */ var
|
|
18224
|
-
/* harmony import */ var
|
|
18280
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7909);
|
|
18281
|
+
/* harmony import */ var jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77213);
|
|
18225
18282
|
/* harmony import */ var jodit_modules_file_browser_builders_context_menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61334);
|
|
18226
18283
|
/* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31125);
|
|
18227
|
-
/* harmony import */ var
|
|
18284
|
+
/* harmony import */ var jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66206);
|
|
18285
|
+
/* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(53202);
|
|
18228
18286
|
/*!
|
|
18229
18287
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
18230
18288
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -18237,20 +18295,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
18237
18295
|
|
|
18238
18296
|
|
|
18239
18297
|
|
|
18240
|
-
|
|
18241
|
-
* @private
|
|
18242
|
-
*/ var getItem = function getItem(node, root) {
|
|
18243
|
-
var tag = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'a';
|
|
18244
|
-
return jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(node, function(elm) {
|
|
18245
|
-
return jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(elm, tag);
|
|
18246
|
-
}, root);
|
|
18247
|
-
};
|
|
18248
|
-
/**
|
|
18249
|
-
* @private
|
|
18250
|
-
*/ var elementToItem = function elementToItem(elm, elementsMap) {
|
|
18251
|
-
var key = elm.dataset.key, item = elementsMap[key || ''].item;
|
|
18252
|
-
return item;
|
|
18253
|
-
};
|
|
18298
|
+
|
|
18254
18299
|
/**
|
|
18255
18300
|
* @private
|
|
18256
18301
|
*/ function nativeListeners() {
|
|
@@ -18259,7 +18304,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
18259
18304
|
var elmMap = (0,jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_4__.elementsMap)(this);
|
|
18260
18305
|
var self = this;
|
|
18261
18306
|
self.e.on(self.tree.container, 'dragstart', function(e) {
|
|
18262
|
-
var a = getItem(e.target, self.container);
|
|
18307
|
+
var a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__.getItem)(e.target, self.container);
|
|
18263
18308
|
if (!a) {
|
|
18264
18309
|
return;
|
|
18265
18310
|
}
|
|
@@ -18268,41 +18313,41 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
18268
18313
|
}
|
|
18269
18314
|
}).on(self.tree.container, 'drop', function(e) {
|
|
18270
18315
|
if ((self.o.moveFile || self.o.moveFolder) && dragElement) {
|
|
18271
|
-
var path = (0,
|
|
18316
|
+
var path = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__.attr)(dragElement, '-path') || '';
|
|
18272
18317
|
// move folder
|
|
18273
18318
|
if (!self.o.moveFolder && dragElement.classList.contains(_this.tree.getFullElName('item'))) {
|
|
18274
18319
|
return false;
|
|
18275
18320
|
}
|
|
18276
18321
|
// move file
|
|
18277
18322
|
if (dragElement.classList.contains(_this.files.getFullElName('item'))) {
|
|
18278
|
-
path += (0,
|
|
18323
|
+
path += (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__.attr)(dragElement, '-name');
|
|
18279
18324
|
if (!self.o.moveFile) {
|
|
18280
18325
|
return false;
|
|
18281
18326
|
}
|
|
18282
18327
|
}
|
|
18283
|
-
var a = getItem(e.target, self.container);
|
|
18328
|
+
var a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__.getItem)(e.target, self.container);
|
|
18284
18329
|
if (!a) {
|
|
18285
18330
|
return;
|
|
18286
18331
|
}
|
|
18287
|
-
self.dataProvider.move(path, (0,
|
|
18288
|
-
return (0,
|
|
18332
|
+
self.dataProvider.move(path, (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__.attr)(a, '-path') || '', (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__.attr)(a, '-source') || '', dragElement.classList.contains(_this.files.getFullElName('item'))).then(function() {
|
|
18333
|
+
return (0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_6__.loadTree)(_this);
|
|
18289
18334
|
}).catch(self.status);
|
|
18290
18335
|
dragElement = false;
|
|
18291
18336
|
}
|
|
18292
18337
|
}).on(self.files.container, 'contextmenu', (0,jodit_modules_file_browser_builders_context_menu__WEBPACK_IMPORTED_MODULE_3__["default"])(self)).on(self.files.container, 'click', function(e) {
|
|
18293
|
-
if (!(0,
|
|
18338
|
+
if (!(0,jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_2__.ctrlKey)(e)) {
|
|
18294
18339
|
_this.state.activeElements = [];
|
|
18295
18340
|
}
|
|
18296
18341
|
}).on(self.files.container, 'click', function(e) {
|
|
18297
|
-
var a = getItem(e.target, self.container);
|
|
18342
|
+
var a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__.getItem)(e.target, self.container);
|
|
18298
18343
|
if (!a) {
|
|
18299
18344
|
return;
|
|
18300
18345
|
}
|
|
18301
|
-
var item = elementToItem(a, elmMap);
|
|
18346
|
+
var item = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__.elementToItem)(a, elmMap);
|
|
18302
18347
|
if (!item) {
|
|
18303
18348
|
return;
|
|
18304
18349
|
}
|
|
18305
|
-
if (!(0,
|
|
18350
|
+
if (!(0,jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_2__.ctrlKey)(e)) {
|
|
18306
18351
|
self.state.activeElements = [
|
|
18307
18352
|
item
|
|
18308
18353
|
];
|
|
@@ -18315,7 +18360,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
18315
18360
|
return false;
|
|
18316
18361
|
}).on(self.files.container, 'dragstart', function(e) {
|
|
18317
18362
|
if (self.o.moveFile) {
|
|
18318
|
-
var a = getItem(e.target, self.container);
|
|
18363
|
+
var a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__.getItem)(e.target, self.container);
|
|
18319
18364
|
if (!a) {
|
|
18320
18365
|
return;
|
|
18321
18366
|
}
|
|
@@ -21259,9 +21304,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('color', color);
|
|
|
21259
21304
|
/* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50684);
|
|
21260
21305
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
|
|
21261
21306
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(84839);
|
|
21262
|
-
/* harmony import */ var
|
|
21263
|
-
/* harmony import */ var
|
|
21264
|
-
/* harmony import */ var
|
|
21307
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(49574);
|
|
21308
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91672);
|
|
21309
|
+
/* harmony import */ var jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(29200);
|
|
21310
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(68616);
|
|
21311
|
+
/* harmony import */ var jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(38027);
|
|
21312
|
+
/* harmony import */ var jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(97959);
|
|
21313
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(4274);
|
|
21265
21314
|
/*!
|
|
21266
21315
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21267
21316
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21284,6 +21333,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('color', color);
|
|
|
21284
21333
|
|
|
21285
21334
|
|
|
21286
21335
|
|
|
21336
|
+
|
|
21337
|
+
|
|
21338
|
+
|
|
21339
|
+
|
|
21287
21340
|
var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
21288
21341
|
"use strict";
|
|
21289
21342
|
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__._)(ToolbarCollection, UIList);
|
|
@@ -21298,7 +21351,7 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
21298
21351
|
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(ToolbarCollection, [
|
|
21299
21352
|
{
|
|
21300
21353
|
key: "className",
|
|
21301
|
-
value:
|
|
21354
|
+
value: function className() {
|
|
21302
21355
|
return 'ToolbarCollection';
|
|
21303
21356
|
}
|
|
21304
21357
|
},
|
|
@@ -21315,14 +21368,14 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
21315
21368
|
key: "makeButton",
|
|
21316
21369
|
value: function makeButton1(control) {
|
|
21317
21370
|
var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
21318
|
-
return (0,
|
|
21371
|
+
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_16__.makeButton)(this.j, control, target);
|
|
21319
21372
|
}
|
|
21320
21373
|
},
|
|
21321
21374
|
{
|
|
21322
21375
|
key: "makeSelect",
|
|
21323
21376
|
value: function makeSelect1(control) {
|
|
21324
21377
|
var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
21325
|
-
return (0,
|
|
21378
|
+
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_16__.makeSelect)(this.j, control, target);
|
|
21326
21379
|
}
|
|
21327
21380
|
},
|
|
21328
21381
|
{
|
|
@@ -21395,7 +21448,7 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
21395
21448
|
{
|
|
21396
21449
|
key: "showInline",
|
|
21397
21450
|
value: function showInline(bound) {
|
|
21398
|
-
throw (0,
|
|
21451
|
+
throw (0,jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_14__.error)('The method is not implemented for this class.');
|
|
21399
21452
|
}
|
|
21400
21453
|
},
|
|
21401
21454
|
{
|
|
@@ -21422,10 +21475,10 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
21422
21475
|
}
|
|
21423
21476
|
]);
|
|
21424
21477
|
return ToolbarCollection;
|
|
21425
|
-
}(
|
|
21478
|
+
}(jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_15__.UIList);
|
|
21426
21479
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
|
|
21427
|
-
(0,
|
|
21428
|
-
|
|
21480
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_13__.watch)(':afterInit'),
|
|
21481
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__.autobind
|
|
21429
21482
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
21430
21483
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
|
|
21431
21484
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_9__.debounce)(function(ctx) {
|
|
@@ -21433,13 +21486,27 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
21433
21486
|
}, true)
|
|
21434
21487
|
], ToolbarCollection.prototype, "update", null);
|
|
21435
21488
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
|
|
21436
|
-
(0,
|
|
21489
|
+
(0,jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_12__.hook)('ready')
|
|
21437
21490
|
], ToolbarCollection.prototype, "__initEvents", null);
|
|
21438
21491
|
ToolbarCollection = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
|
|
21439
|
-
|
|
21492
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_11__.component
|
|
21440
21493
|
], ToolbarCollection);
|
|
21441
21494
|
|
|
21442
21495
|
|
|
21496
|
+
/***/ }),
|
|
21497
|
+
|
|
21498
|
+
/***/ 42689:
|
|
21499
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21500
|
+
|
|
21501
|
+
"use strict";
|
|
21502
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21503
|
+
/* harmony export */ eventEmitter: function() { return /* binding */ eventEmitter; }
|
|
21504
|
+
/* harmony export */ });
|
|
21505
|
+
/* harmony import */ var _event_emitter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93747);
|
|
21506
|
+
|
|
21507
|
+
var eventEmitter = new _event_emitter__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
|
|
21508
|
+
|
|
21509
|
+
|
|
21443
21510
|
/***/ }),
|
|
21444
21511
|
|
|
21445
21512
|
/***/ 42766:
|
|
@@ -26146,12 +26213,10 @@ module.exports = "<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
26146
26213
|
"use strict";
|
|
26147
26214
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26148
26215
|
/* harmony export */ FiniteStateMachine: function() { return /* reexport safe */ _finite_state_machine__WEBPACK_IMPORTED_MODULE_1__.FiniteStateMachine; },
|
|
26149
|
-
/* harmony export */ elementsEqualAttributes: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_7__.elementsEqualAttributes; },
|
|
26150
26216
|
/* harmony export */ extractSelectedPart: function() { return /* reexport safe */ _extract__WEBPACK_IMPORTED_MODULE_0__.extractSelectedPart; },
|
|
26151
26217
|
/* harmony export */ getSuitChild: function() { return /* reexport safe */ _get_suit_child__WEBPACK_IMPORTED_MODULE_2__.getSuitChild; },
|
|
26152
26218
|
/* harmony export */ getSuitParent: function() { return /* reexport safe */ _get_suit_parent__WEBPACK_IMPORTED_MODULE_3__.getSuitParent; },
|
|
26153
26219
|
/* harmony export */ isInsideInvisibleElement: function() { return /* reexport safe */ _is_inside_invisible_element__WEBPACK_IMPORTED_MODULE_5__.isInsideInvisibleElement; },
|
|
26154
|
-
/* harmony export */ isSameAttributes: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_7__.isSameAttributes; },
|
|
26155
26220
|
/* harmony export */ suitableClosest: function() { return /* reexport safe */ _is_suit_element__WEBPACK_IMPORTED_MODULE_8__.suitableClosest; },
|
|
26156
26221
|
/* harmony export */ toggleAttributes: function() { return /* reexport safe */ _toggle_attributes__WEBPACK_IMPORTED_MODULE_11__.toggleAttributes; },
|
|
26157
26222
|
/* harmony export */ toggleOrderedList: function() { return /* reexport safe */ _list_toggle_ordered_list__WEBPACK_IMPORTED_MODULE_9__.toggleOrderedList; },
|
|
@@ -27006,14 +27071,17 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
27006
27071
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34918);
|
|
27007
27072
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
27008
27073
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(69364);
|
|
27009
|
-
/* harmony import */ var
|
|
27010
|
-
/* harmony import */ var
|
|
27011
|
-
/* harmony import */ var
|
|
27012
|
-
/* harmony import */ var
|
|
27013
|
-
/* harmony import */ var
|
|
27014
|
-
/* harmony import */ var
|
|
27015
|
-
/* harmony import */ var
|
|
27016
|
-
/* harmony import */ var
|
|
27074
|
+
/* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51676);
|
|
27075
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(91672);
|
|
27076
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(68616);
|
|
27077
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(23211);
|
|
27078
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(91565);
|
|
27079
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(85932);
|
|
27080
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(28712);
|
|
27081
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__);
|
|
27082
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(7909);
|
|
27083
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(96007);
|
|
27084
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(29434);
|
|
27017
27085
|
/*!
|
|
27018
27086
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
27019
27087
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -27038,6 +27106,8 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
27038
27106
|
|
|
27039
27107
|
|
|
27040
27108
|
|
|
27109
|
+
|
|
27110
|
+
|
|
27041
27111
|
var UIButtonState = function UIButtonState() {
|
|
27042
27112
|
return {
|
|
27043
27113
|
size: 'middle',
|
|
@@ -27104,7 +27174,7 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27104
27174
|
* DOM container for text content
|
|
27105
27175
|
*/ function get() {
|
|
27106
27176
|
var text = this.getElm('text');
|
|
27107
|
-
(0,
|
|
27177
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__.assert)(text, 'Text element not found');
|
|
27108
27178
|
return text;
|
|
27109
27179
|
}
|
|
27110
27180
|
},
|
|
@@ -27114,7 +27184,7 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27114
27184
|
* DOM container for icon
|
|
27115
27185
|
*/ function get() {
|
|
27116
27186
|
var icon = this.getElm('icon');
|
|
27117
|
-
(0,
|
|
27187
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__.assert)(icon, 'Icon element not found');
|
|
27118
27188
|
return icon;
|
|
27119
27189
|
}
|
|
27120
27190
|
},
|
|
@@ -27127,13 +27197,13 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27127
27197
|
{
|
|
27128
27198
|
key: "onChangeType",
|
|
27129
27199
|
value: function onChangeType() {
|
|
27130
|
-
(0,
|
|
27200
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'type', this.state.type);
|
|
27131
27201
|
}
|
|
27132
27202
|
},
|
|
27133
27203
|
{
|
|
27134
27204
|
key: "onChangeRole",
|
|
27135
27205
|
value: function onChangeRole() {
|
|
27136
|
-
(0,
|
|
27206
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'role', this.state.role);
|
|
27137
27207
|
}
|
|
27138
27208
|
},
|
|
27139
27209
|
{
|
|
@@ -27141,7 +27211,8 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27141
27211
|
value: /**
|
|
27142
27212
|
* Set size from a parent list
|
|
27143
27213
|
*/ function updateSize() {
|
|
27144
|
-
var
|
|
27214
|
+
var UIList = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_10__.getComponentClass)('UIList');
|
|
27215
|
+
var pe = this.closest(UIList);
|
|
27145
27216
|
if (pe) {
|
|
27146
27217
|
this.state.size = pe.buttonSize;
|
|
27147
27218
|
return;
|
|
@@ -27169,13 +27240,13 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27169
27240
|
{
|
|
27170
27241
|
key: "onChangeDisabled",
|
|
27171
27242
|
value: function onChangeDisabled() {
|
|
27172
|
-
(0,
|
|
27243
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'disabled', this.state.disabled || null);
|
|
27173
27244
|
}
|
|
27174
27245
|
},
|
|
27175
27246
|
{
|
|
27176
27247
|
key: "onChangeActivated",
|
|
27177
27248
|
value: function onChangeActivated() {
|
|
27178
|
-
(0,
|
|
27249
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'aria-pressed', this.state.activated);
|
|
27179
27250
|
}
|
|
27180
27251
|
},
|
|
27181
27252
|
{
|
|
@@ -27183,8 +27254,8 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27183
27254
|
value: function onChangeName() {
|
|
27184
27255
|
this.container.classList.add("".concat(this.componentName, "_").concat(this.clearName(this.state.name)));
|
|
27185
27256
|
this.name = this.state.name;
|
|
27186
|
-
(0,
|
|
27187
|
-
(0,
|
|
27257
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'data-ref', this.state.name);
|
|
27258
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'ref', this.state.name);
|
|
27188
27259
|
}
|
|
27189
27260
|
},
|
|
27190
27261
|
{
|
|
@@ -27192,26 +27263,26 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27192
27263
|
value: function onChangeTooltip() {
|
|
27193
27264
|
var i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
27194
27265
|
if (this.get('j.o.useNativeTooltip')) {
|
|
27195
|
-
(0,
|
|
27266
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'title', i8nTooltip);
|
|
27196
27267
|
}
|
|
27197
|
-
(0,
|
|
27268
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'aria-label', i8nTooltip);
|
|
27198
27269
|
}
|
|
27199
27270
|
},
|
|
27200
27271
|
{
|
|
27201
27272
|
key: "onChangeTabIndex",
|
|
27202
27273
|
value: function onChangeTabIndex() {
|
|
27203
|
-
(0,
|
|
27274
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'tabindex', this.state.tabIndex);
|
|
27204
27275
|
}
|
|
27205
27276
|
},
|
|
27206
27277
|
{
|
|
27207
27278
|
key: "onChangeIcon",
|
|
27208
27279
|
value: function onChangeIcon() {
|
|
27209
27280
|
var textIcons = this.get('j.o.textIcons');
|
|
27210
|
-
if (textIcons === true || (0,
|
|
27281
|
+
if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_13__.isFunction)(textIcons) && textIcons(this.state.name)) {
|
|
27211
27282
|
return;
|
|
27212
27283
|
}
|
|
27213
|
-
|
|
27214
|
-
var iconElement =
|
|
27284
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.detach(this.icon);
|
|
27285
|
+
var iconElement = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_18__.Icon.makeIcon(this.j, this.state.icon);
|
|
27215
27286
|
iconElement && this.icon.appendChild(iconElement);
|
|
27216
27287
|
}
|
|
27217
27288
|
},
|
|
@@ -27229,7 +27300,7 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27229
27300
|
*/ key: "isFocused",
|
|
27230
27301
|
value: function isFocused() {
|
|
27231
27302
|
var activeElement = this.od.activeElement;
|
|
27232
|
-
return Boolean(activeElement &&
|
|
27303
|
+
return Boolean(activeElement && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.isOrContains(this.container, activeElement));
|
|
27233
27304
|
}
|
|
27234
27305
|
},
|
|
27235
27306
|
{
|
|
@@ -27283,85 +27354,85 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
27283
27354
|
}
|
|
27284
27355
|
]);
|
|
27285
27356
|
return UIButton;
|
|
27286
|
-
}(
|
|
27357
|
+
}(jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_17__.UIElement);
|
|
27287
27358
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27288
|
-
|
|
27359
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_9__.cache
|
|
27289
27360
|
], UIButton.prototype, "text", null);
|
|
27290
27361
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27291
|
-
|
|
27362
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_9__.cache
|
|
27292
27363
|
], UIButton.prototype, "icon", null);
|
|
27293
27364
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27294
|
-
(0,
|
|
27365
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.size', {
|
|
27295
27366
|
immediately: false
|
|
27296
27367
|
})
|
|
27297
27368
|
], UIButton.prototype, "onChangeSize", null);
|
|
27298
27369
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27299
|
-
(0,
|
|
27370
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.type', {
|
|
27300
27371
|
immediately: false
|
|
27301
27372
|
})
|
|
27302
27373
|
], UIButton.prototype, "onChangeType", null);
|
|
27303
27374
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27304
|
-
(0,
|
|
27375
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.role', {
|
|
27305
27376
|
immediately: false
|
|
27306
27377
|
})
|
|
27307
27378
|
], UIButton.prototype, "onChangeRole", null);
|
|
27308
27379
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27309
|
-
(0,
|
|
27380
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('parentElement')
|
|
27310
27381
|
], UIButton.prototype, "updateSize", null);
|
|
27311
27382
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27312
|
-
(0,
|
|
27383
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.variant', {
|
|
27313
27384
|
immediately: false
|
|
27314
27385
|
})
|
|
27315
27386
|
], UIButton.prototype, "onChangeStatus", null);
|
|
27316
27387
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27317
|
-
(0,
|
|
27388
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.text', {
|
|
27318
27389
|
immediately: false
|
|
27319
27390
|
})
|
|
27320
27391
|
], UIButton.prototype, "onChangeText", null);
|
|
27321
27392
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27322
|
-
(0,
|
|
27393
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.text', {
|
|
27323
27394
|
immediately: false
|
|
27324
27395
|
})
|
|
27325
27396
|
], UIButton.prototype, "onChangeTextSetMode", null);
|
|
27326
27397
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27327
|
-
(0,
|
|
27398
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.disabled')
|
|
27328
27399
|
], UIButton.prototype, "onChangeDisabled", null);
|
|
27329
27400
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27330
|
-
(0,
|
|
27401
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.activated')
|
|
27331
27402
|
], UIButton.prototype, "onChangeActivated", null);
|
|
27332
27403
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27333
|
-
(0,
|
|
27404
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.name', {
|
|
27334
27405
|
immediately: false
|
|
27335
27406
|
})
|
|
27336
27407
|
], UIButton.prototype, "onChangeName", null);
|
|
27337
27408
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27338
|
-
(0,
|
|
27409
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.tooltip', {
|
|
27339
27410
|
immediately: false
|
|
27340
27411
|
})
|
|
27341
27412
|
], UIButton.prototype, "onChangeTooltip", null);
|
|
27342
27413
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27343
|
-
(0,
|
|
27414
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.tabIndex', {
|
|
27344
27415
|
immediately: false
|
|
27345
27416
|
})
|
|
27346
27417
|
], UIButton.prototype, "onChangeTabIndex", null);
|
|
27347
27418
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27348
|
-
(0,
|
|
27419
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.icon', {
|
|
27349
27420
|
immediately: false
|
|
27350
27421
|
})
|
|
27351
27422
|
], UIButton.prototype, "onChangeIcon", null);
|
|
27352
27423
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27353
|
-
|
|
27424
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_9__.cacheHTML
|
|
27354
27425
|
], UIButton.prototype, "createContainer", null);
|
|
27355
27426
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27356
|
-
(0,
|
|
27427
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('button:click')
|
|
27357
27428
|
], UIButton.prototype, "__onActionFire", null);
|
|
27358
27429
|
UIButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27359
|
-
|
|
27430
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_10__.component
|
|
27360
27431
|
], UIButton);
|
|
27361
27432
|
function Button(jodit, stateOrText, text, variant) {
|
|
27362
27433
|
var button = new UIButton(jodit);
|
|
27363
27434
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
27364
|
-
if ((0,
|
|
27435
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(stateOrText)) {
|
|
27365
27436
|
button.state.icon.name = stateOrText;
|
|
27366
27437
|
button.state.name = stateOrText;
|
|
27367
27438
|
if (variant) {
|
|
@@ -27401,8 +27472,8 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
27401
27472
|
/* harmony import */ var _swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66773);
|
|
27402
27473
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34918);
|
|
27403
27474
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
27404
|
-
/* harmony import */ var
|
|
27405
|
-
/* harmony import */ var
|
|
27475
|
+
/* harmony import */ var jodit_core_component_view_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59609);
|
|
27476
|
+
/* harmony import */ var jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55184);
|
|
27406
27477
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5266);
|
|
27407
27478
|
/* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(8838);
|
|
27408
27479
|
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(46363);
|
|
@@ -27612,9 +27683,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_10__.Config.prototype.history = {
|
|
|
27612
27683
|
}
|
|
27613
27684
|
]);
|
|
27614
27685
|
return History;
|
|
27615
|
-
}(
|
|
27686
|
+
}(jodit_core_component_view_component__WEBPACK_IMPORTED_MODULE_8__.ViewComponent);
|
|
27616
27687
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
|
|
27617
|
-
(0,
|
|
27688
|
+
(0,jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_9__.debounce)()
|
|
27618
27689
|
], History.prototype, "onChange", null);
|
|
27619
27690
|
|
|
27620
27691
|
|
|
@@ -28027,9 +28098,8 @@ var FileBrowserTree = /*#__PURE__*/ function(UIGroup) {
|
|
|
28027
28098
|
/* harmony export */ init: function() { return /* binding */ init; }
|
|
28028
28099
|
/* harmony export */ });
|
|
28029
28100
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
28030
|
-
/* harmony import */ var
|
|
28031
|
-
/* harmony import */ var
|
|
28032
|
-
/* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3050);
|
|
28101
|
+
/* harmony import */ var jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52433);
|
|
28102
|
+
/* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3050);
|
|
28033
28103
|
/*!
|
|
28034
28104
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28035
28105
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28039,12 +28109,11 @@ var FileBrowserTree = /*#__PURE__*/ function(UIGroup) {
|
|
|
28039
28109
|
*/
|
|
28040
28110
|
|
|
28041
28111
|
|
|
28042
|
-
|
|
28043
28112
|
/**
|
|
28044
28113
|
* Init plugin if it has no dependencies, in another case wait requires plugins will be init
|
|
28045
28114
|
* @private
|
|
28046
|
-
*/ function init(jodit, pluginName, plugin, instance, doneList, waitingList) {
|
|
28047
|
-
if ((0,
|
|
28115
|
+
*/ function init(jodit, pluginName, plugin, instance, doneList, waitingList, getContainer) {
|
|
28116
|
+
if ((0,jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_1__.isInitable)(instance)) {
|
|
28048
28117
|
try {
|
|
28049
28118
|
instance.init(jodit);
|
|
28050
28119
|
} catch (e) {
|
|
@@ -28057,12 +28126,12 @@ var FileBrowserTree = /*#__PURE__*/ function(UIGroup) {
|
|
|
28057
28126
|
doneList.set(pluginName, instance);
|
|
28058
28127
|
waitingList.delete(pluginName);
|
|
28059
28128
|
if (instance.hasStyle) {
|
|
28060
|
-
(0,
|
|
28129
|
+
(0,_load__WEBPACK_IMPORTED_MODULE_2__.loadStyle)(jodit, pluginName).catch(function(e) {
|
|
28061
28130
|
!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && console.error(e);
|
|
28062
28131
|
});
|
|
28063
28132
|
}
|
|
28064
28133
|
if (instance.styles) {
|
|
28065
|
-
var style =
|
|
28134
|
+
var style = getContainer(jodit, pluginName, 'style');
|
|
28066
28135
|
style.innerHTML = instance.styles;
|
|
28067
28136
|
}
|
|
28068
28137
|
}
|
|
@@ -30011,16 +30080,10 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
30011
30080
|
"use strict";
|
|
30012
30081
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30013
30082
|
/* harmony export */ CommitStyle: function() { return /* reexport safe */ _style_commit_style__WEBPACK_IMPORTED_MODULE_1__.CommitStyle; },
|
|
30014
|
-
/* harmony export */
|
|
30015
|
-
/* harmony export */ REPLACE: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.REPLACE; },
|
|
30016
|
-
/* harmony export */ Selection: function() { return /* reexport safe */ _selection__WEBPACK_IMPORTED_MODULE_0__.Selection; },
|
|
30017
|
-
/* harmony export */ UNSET: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.UNSET; },
|
|
30018
|
-
/* harmony export */ UNWRAP: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.UNWRAP; },
|
|
30019
|
-
/* harmony export */ WRAP: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.WRAP; }
|
|
30083
|
+
/* harmony export */ Selection: function() { return /* reexport safe */ _selection__WEBPACK_IMPORTED_MODULE_0__.Selection; }
|
|
30020
30084
|
/* harmony export */ });
|
|
30021
30085
|
/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98595);
|
|
30022
30086
|
/* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84578);
|
|
30023
|
-
/* harmony import */ var _style_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98394);
|
|
30024
30087
|
/*!
|
|
30025
30088
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30026
30089
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30474,14 +30537,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30474
30537
|
/* harmony import */ var _swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49376);
|
|
30475
30538
|
/* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3233);
|
|
30476
30539
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27795);
|
|
30477
|
-
/* harmony import */ var
|
|
30478
|
-
/* harmony import */ var
|
|
30479
|
-
/* harmony import */ var
|
|
30480
|
-
/* harmony import */ var
|
|
30481
|
-
/* harmony import */ var
|
|
30482
|
-
/* harmony import */ var
|
|
30483
|
-
/* harmony import */ var
|
|
30484
|
-
/* harmony import */ var
|
|
30540
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7909);
|
|
30541
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33201);
|
|
30542
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29434);
|
|
30543
|
+
/* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31125);
|
|
30544
|
+
/* harmony import */ var jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66206);
|
|
30545
|
+
/* harmony import */ var jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(18272);
|
|
30546
|
+
/* harmony import */ var jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1305);
|
|
30547
|
+
/* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(53202);
|
|
30548
|
+
/* harmony import */ var jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(43271);
|
|
30485
30549
|
/*!
|
|
30486
30550
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
30487
30551
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -30499,26 +30563,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30499
30563
|
|
|
30500
30564
|
|
|
30501
30565
|
|
|
30566
|
+
|
|
30502
30567
|
var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function preview_tpl_next() {
|
|
30503
30568
|
var next = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'next', right = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'right';
|
|
30504
|
-
return '<div class="'.concat(CLASS_PREVIEW, "__navigation ").concat(CLASS_PREVIEW, "__navigation_arrow_").concat(next, '">') + '' +
|
|
30569
|
+
return '<div class="'.concat(CLASS_PREVIEW, "__navigation ").concat(CLASS_PREVIEW, "__navigation_arrow_").concat(next, '">') + '' + jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__.Icon.get('angle-' + right) + '</a>';
|
|
30505
30570
|
};
|
|
30506
30571
|
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(self) {
|
|
30507
30572
|
if (!self.o.contextMenu) {
|
|
30508
30573
|
return function() {};
|
|
30509
30574
|
}
|
|
30510
|
-
var contextmenu = (0,
|
|
30575
|
+
var contextmenu = (0,jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_8__.makeContextMenu)(self);
|
|
30511
30576
|
return function(e) {
|
|
30512
|
-
var a = (0,
|
|
30577
|
+
var a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_7__.getItem)(e.target, self.container);
|
|
30513
30578
|
if (!a) {
|
|
30514
30579
|
return;
|
|
30515
30580
|
}
|
|
30516
30581
|
var item = a;
|
|
30517
30582
|
var opt = self.options, ga = function ga(key) {
|
|
30518
|
-
return (0,
|
|
30583
|
+
return (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__.attr)(item, key) || '';
|
|
30519
30584
|
};
|
|
30520
30585
|
self.async.setTimeout(function() {
|
|
30521
|
-
var selectedItem = (0,
|
|
30586
|
+
var selectedItem = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_7__.elementToItem)(a, (0,jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_6__.elementsMap)(self));
|
|
30522
30587
|
if (!selectedItem) {
|
|
30523
30588
|
return;
|
|
30524
30589
|
}
|
|
@@ -30530,7 +30595,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
30530
30595
|
icon: 'pencil',
|
|
30531
30596
|
title: 'Edit',
|
|
30532
30597
|
exec: function exec() {
|
|
30533
|
-
return
|
|
30598
|
+
return jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_11__.openImageEditor.call(self, ga('href'), ga('data-name'), ga('data-path'), ga('data-source'));
|
|
30534
30599
|
}
|
|
30535
30600
|
} : false,
|
|
30536
30601
|
self.dataProvider.canI('FileRename') ? {
|
|
@@ -30557,7 +30622,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
30557
30622
|
]);
|
|
30558
30623
|
return [
|
|
30559
30624
|
4,
|
|
30560
|
-
(0,
|
|
30625
|
+
(0,jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_9__.deleteFile)(self, ga('data-name'), ga('data-source'))
|
|
30561
30626
|
];
|
|
30562
30627
|
case 1:
|
|
30563
30628
|
_state.sent();
|
|
@@ -30575,7 +30640,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
30575
30640
|
self.state.activeElements = [];
|
|
30576
30641
|
return [
|
|
30577
30642
|
2,
|
|
30578
|
-
(0,
|
|
30643
|
+
(0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__.loadTree)(self).catch(self.status)
|
|
30579
30644
|
];
|
|
30580
30645
|
}
|
|
30581
30646
|
});
|
|
@@ -30629,7 +30694,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
30629
30694
|
item = jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.prevWithClass(item, self.files.getFullElName('item'));
|
|
30630
30695
|
}
|
|
30631
30696
|
if (!item) {
|
|
30632
|
-
throw (0,
|
|
30697
|
+
throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_4__.error)('Need element');
|
|
30633
30698
|
}
|
|
30634
30699
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.detach(temp_content);
|
|
30635
30700
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.detach(preview_box);
|
|
@@ -32785,6 +32850,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32785
32850
|
|
|
32786
32851
|
|
|
32787
32852
|
|
|
32853
|
+
/***/ }),
|
|
32854
|
+
|
|
32855
|
+
/***/ 66206:
|
|
32856
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
32857
|
+
|
|
32858
|
+
"use strict";
|
|
32859
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32860
|
+
/* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
|
|
32861
|
+
/* harmony export */ getItem: function() { return /* binding */ getItem; }
|
|
32862
|
+
/* harmony export */ });
|
|
32863
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
32864
|
+
|
|
32865
|
+
/**
|
|
32866
|
+
* @private
|
|
32867
|
+
*/ var getItem = function getItem(node, root) {
|
|
32868
|
+
var tag = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'a';
|
|
32869
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, function(elm) {
|
|
32870
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag);
|
|
32871
|
+
}, root);
|
|
32872
|
+
};
|
|
32873
|
+
/**
|
|
32874
|
+
* @private
|
|
32875
|
+
*/ var elementToItem = function elementToItem(elm, elementsMap) {
|
|
32876
|
+
var key = elm.dataset.key, item = elementsMap[key || ''].item;
|
|
32877
|
+
return item;
|
|
32878
|
+
};
|
|
32879
|
+
|
|
32880
|
+
|
|
32788
32881
|
/***/ }),
|
|
32789
32882
|
|
|
32790
32883
|
/***/ 66345:
|
|
@@ -33549,7 +33642,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__.Config.prototype.controls.filebrowser
|
|
|
33549
33642
|
|
|
33550
33643
|
"use strict";
|
|
33551
33644
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33552
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
33553
33645
|
/* harmony export */ watch: function() { return /* binding */ watch; }
|
|
33554
33646
|
/* harmony export */ });
|
|
33555
33647
|
/* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50684);
|
|
@@ -33561,6 +33653,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__.Config.prototype.controls.filebrowser
|
|
|
33561
33653
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62101);
|
|
33562
33654
|
/* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31534);
|
|
33563
33655
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33201);
|
|
33656
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(71125);
|
|
33564
33657
|
/*!
|
|
33565
33658
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33566
33659
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33578,14 +33671,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__.Config.prototype.controls.filebrowser
|
|
|
33578
33671
|
|
|
33579
33672
|
|
|
33580
33673
|
|
|
33581
|
-
|
|
33582
|
-
var desc;
|
|
33583
|
-
do {
|
|
33584
|
-
desc = Object.getOwnPropertyDescriptor(obj, prop);
|
|
33585
|
-
obj = Object.getPrototypeOf(obj);
|
|
33586
|
-
}while (!desc && obj);
|
|
33587
|
-
return desc;
|
|
33588
|
-
}
|
|
33674
|
+
|
|
33589
33675
|
/**
|
|
33590
33676
|
* Watch decorator. Added observer for some change in field value
|
|
33591
33677
|
*/ function watch(observeFields, opts) {
|
|
@@ -33638,7 +33724,7 @@ function getPropertyDescriptor(obj, prop) {
|
|
|
33638
33724
|
var observableValue = (0,jodit_core_event_emitter_observable__WEBPACK_IMPORTED_MODULE_3__.observable)(value);
|
|
33639
33725
|
observableValue.on("change.".concat(teil.join('.')), callback);
|
|
33640
33726
|
}
|
|
33641
|
-
var descriptor = getPropertyDescriptor(target, key);
|
|
33727
|
+
var descriptor = (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_9__.getPropertyDescriptor)(target, key);
|
|
33642
33728
|
Object.defineProperty(component, key, {
|
|
33643
33729
|
configurable: true,
|
|
33644
33730
|
set: function set(v) {
|
|
@@ -34510,10 +34596,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('fullsize', full
|
|
|
34510
34596
|
/* harmony export */ observable: function() { return /* binding */ observable; }
|
|
34511
34597
|
/* harmony export */ });
|
|
34512
34598
|
/* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42395);
|
|
34513
|
-
/* harmony import */ var
|
|
34514
|
-
/* harmony import */ var
|
|
34515
|
-
/* harmony import */ var
|
|
34516
|
-
/* harmony import */ var
|
|
34599
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17312);
|
|
34600
|
+
/* harmony import */ var jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94013);
|
|
34601
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62101);
|
|
34602
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71125);
|
|
34517
34603
|
/*!
|
|
34518
34604
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
34519
34605
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -34570,7 +34656,7 @@ function isObservableObject(obj) {
|
|
|
34570
34656
|
var __lockEvent = {};
|
|
34571
34657
|
var __onEvents = {};
|
|
34572
34658
|
var on = function on1(event, callback) {
|
|
34573
|
-
if ((0,
|
|
34659
|
+
if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__.isArray)(event)) {
|
|
34574
34660
|
event.map(function(e) {
|
|
34575
34661
|
return on(e, callback);
|
|
34576
34662
|
});
|
|
@@ -34586,7 +34672,7 @@ function isObservableObject(obj) {
|
|
|
34586
34672
|
for(var _len = arguments.length, attr = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
34587
34673
|
attr[_key - 1] = arguments[_key];
|
|
34588
34674
|
}
|
|
34589
|
-
if ((0,
|
|
34675
|
+
if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__.isArray)(event)) {
|
|
34590
34676
|
event.map(function(e) {
|
|
34591
34677
|
return fire.apply(void 0, [
|
|
34592
34678
|
e
|
|
@@ -34624,16 +34710,16 @@ function isObservableObject(obj) {
|
|
|
34624
34710
|
return a.length;
|
|
34625
34711
|
});
|
|
34626
34712
|
store[key] = dict[key];
|
|
34627
|
-
var descriptor = (0,
|
|
34713
|
+
var descriptor = (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__.getPropertyDescriptor)(dict, key);
|
|
34628
34714
|
Object.defineProperty(dict, key, {
|
|
34629
34715
|
set: function set(value) {
|
|
34630
34716
|
var oldValue = store[key];
|
|
34631
|
-
if (!(0,
|
|
34717
|
+
if (!(0,jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_2__.isFastEqual)(store[key], value)) {
|
|
34632
34718
|
fire([
|
|
34633
34719
|
'beforeChange',
|
|
34634
34720
|
"beforeChange.".concat(prefix.join('.'))
|
|
34635
34721
|
], key, value);
|
|
34636
|
-
if ((0,
|
|
34722
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(value)) {
|
|
34637
34723
|
initAccessors(value, prefix);
|
|
34638
34724
|
}
|
|
34639
34725
|
if (descriptor && descriptor.set) {
|
|
@@ -34660,7 +34746,7 @@ function isObservableObject(obj) {
|
|
|
34660
34746
|
enumerable: true,
|
|
34661
34747
|
configurable: true
|
|
34662
34748
|
});
|
|
34663
|
-
if ((0,
|
|
34749
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(store[key])) {
|
|
34664
34750
|
initAccessors(store[key], prefix);
|
|
34665
34751
|
}
|
|
34666
34752
|
});
|
|
@@ -34718,6 +34804,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
34718
34804
|
/* harmony export */ call: function() { return /* binding */ call; },
|
|
34719
34805
|
/* harmony export */ callPromise: function() { return /* binding */ callPromise; },
|
|
34720
34806
|
/* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
|
|
34807
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
34721
34808
|
/* harmony export */ keys: function() { return /* binding */ keys; },
|
|
34722
34809
|
/* harmony export */ loadImage: function() { return /* binding */ loadImage; },
|
|
34723
34810
|
/* harmony export */ markOwner: function() { return /* binding */ markOwner; },
|
|
@@ -34828,6 +34915,14 @@ var keys = function keys(obj) {
|
|
|
34828
34915
|
return null;
|
|
34829
34916
|
}
|
|
34830
34917
|
};
|
|
34918
|
+
function getPropertyDescriptor(obj, prop) {
|
|
34919
|
+
var desc;
|
|
34920
|
+
do {
|
|
34921
|
+
desc = Object.getOwnPropertyDescriptor(obj, prop);
|
|
34922
|
+
obj = Object.getPrototypeOf(obj);
|
|
34923
|
+
}while (!desc && obj);
|
|
34924
|
+
return desc;
|
|
34925
|
+
}
|
|
34831
34926
|
|
|
34832
34927
|
|
|
34833
34928
|
/***/ }),
|
|
@@ -39434,8 +39529,8 @@ function send(uploader, data) {
|
|
|
39434
39529
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23211);
|
|
39435
39530
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28712);
|
|
39436
39531
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__);
|
|
39437
|
-
/* harmony import */ var
|
|
39438
|
-
/* harmony import */ var
|
|
39532
|
+
/* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51640);
|
|
39533
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(98394);
|
|
39439
39534
|
/*!
|
|
39440
39535
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
39441
39536
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -39467,19 +39562,19 @@ var _obj;
|
|
|
39467
39562
|
var transactions = (_obj = {}, (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(_obj, states.START, {
|
|
39468
39563
|
exec: function exec(value) {
|
|
39469
39564
|
var element = value.element, jodit = value.jodit, style = value.style, mode = value.mode, collapsed = value.collapsed;
|
|
39470
|
-
if ((0,
|
|
39565
|
+
if ((0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.isInsideInvisibleElement)(element, jodit.editor) || !collapsed && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isEmptyContent(element)) {
|
|
39471
39566
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39472
39567
|
next: states.END
|
|
39473
39568
|
});
|
|
39474
39569
|
}
|
|
39475
|
-
var elm = (0,
|
|
39570
|
+
var elm = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.getSuitParent)(style, element, jodit.editor) || (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.getSuitChild)(style, element);
|
|
39476
39571
|
if (elm) {
|
|
39477
39572
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39478
39573
|
next: states.ELEMENT,
|
|
39479
39574
|
element: elm
|
|
39480
39575
|
});
|
|
39481
39576
|
}
|
|
39482
|
-
var suit = (0,
|
|
39577
|
+
var suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.suitableClosest)(style, element, jodit.editor);
|
|
39483
39578
|
if (style.elementIsList && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isList(suit)) {
|
|
39484
39579
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39485
39580
|
next: states.LIST
|
|
@@ -39491,13 +39586,13 @@ var transactions = (_obj = {}, (0,_swc_helpers_define_property__WEBPACK_IMPORTED
|
|
|
39491
39586
|
});
|
|
39492
39587
|
}
|
|
39493
39588
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39494
|
-
next: mode !==
|
|
39589
|
+
next: mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.UNWRAP ? states.UNWRAP_CHILDREN : states.END
|
|
39495
39590
|
});
|
|
39496
39591
|
}
|
|
39497
39592
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(_obj, states.LIST, {
|
|
39498
39593
|
exec: function exec(value) {
|
|
39499
39594
|
var element = value.element, jodit = value.jodit, mode = value.mode;
|
|
39500
|
-
if (mode !==
|
|
39595
|
+
if (mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.INITIAL && mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.UNWRAP && mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.REPLACE) {
|
|
39501
39596
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39502
39597
|
next: states.END
|
|
39503
39598
|
});
|
|
@@ -39522,7 +39617,7 @@ var transactions = (_obj = {}, (0,_swc_helpers_define_property__WEBPACK_IMPORTED
|
|
|
39522
39617
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(_obj, states.TOGGLE_LIST, {
|
|
39523
39618
|
exec: function exec(value) {
|
|
39524
39619
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39525
|
-
mode: (0,
|
|
39620
|
+
mode: (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.toggleOrderedList)(value.style, value.element, value.jodit, value.mode),
|
|
39526
39621
|
next: states.END
|
|
39527
39622
|
});
|
|
39528
39623
|
}
|
|
@@ -39530,14 +39625,14 @@ var transactions = (_obj = {}, (0,_swc_helpers_define_property__WEBPACK_IMPORTED
|
|
|
39530
39625
|
exec: function exec(value) {
|
|
39531
39626
|
var _style_options_attributes;
|
|
39532
39627
|
var element = value.element, jodit = value.jodit, style = value.style;
|
|
39533
|
-
var suit = (0,
|
|
39628
|
+
var suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.suitableClosest)(style, element, jodit.editor);
|
|
39534
39629
|
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__.assert)(suit, 'This place should have an element');
|
|
39535
39630
|
// If we're applying inline styles to a block element, don't split the block
|
|
39536
39631
|
var isApplyingInlineStyle = !style.elementIsBlock && ((_style_options_attributes = style.options.attributes) === null || _style_options_attributes === void 0 ? void 0 : _style_options_attributes.style);
|
|
39537
39632
|
var shouldNotSplitBlock = isApplyingInlineStyle && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock(suit);
|
|
39538
39633
|
if (!shouldNotSplitBlock) {
|
|
39539
39634
|
if (!style.elementIsBlock) {
|
|
39540
|
-
(0,
|
|
39635
|
+
(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.extractSelectedPart)(suit, element, jodit);
|
|
39541
39636
|
}
|
|
39542
39637
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39543
39638
|
element: suit,
|
|
@@ -39552,30 +39647,30 @@ var transactions = (_obj = {}, (0,_swc_helpers_define_property__WEBPACK_IMPORTED
|
|
|
39552
39647
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(_obj, states.UNWRAP_CHILDREN, {
|
|
39553
39648
|
exec: function exec(value) {
|
|
39554
39649
|
var element = value.element, style = value.style;
|
|
39555
|
-
if (!(0,
|
|
39650
|
+
if (!(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.unwrapChildren)(style, element)) {
|
|
39556
39651
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39557
39652
|
next: states.WRAP
|
|
39558
39653
|
});
|
|
39559
39654
|
}
|
|
39560
39655
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39561
|
-
mode:
|
|
39656
|
+
mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.UNWRAP,
|
|
39562
39657
|
next: states.END
|
|
39563
39658
|
});
|
|
39564
39659
|
}
|
|
39565
39660
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(_obj, states.WRAP, {
|
|
39566
39661
|
exec: function exec(value) {
|
|
39567
39662
|
var element = value.element, jodit = value.jodit, style = value.style;
|
|
39568
|
-
var wrapper = (0,
|
|
39663
|
+
var wrapper = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.wrap)(style, element, jodit);
|
|
39569
39664
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39570
39665
|
next: style.elementIsList ? states.END : states.CHANGE,
|
|
39571
|
-
mode:
|
|
39666
|
+
mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.WRAP,
|
|
39572
39667
|
element: wrapper
|
|
39573
39668
|
});
|
|
39574
39669
|
}
|
|
39575
39670
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(_obj, states.ELEMENT, {
|
|
39576
39671
|
exec: function exec(value) {
|
|
39577
39672
|
var style = value.style, element = value.element, jodit = value.jodit;
|
|
39578
|
-
if ((0,
|
|
39673
|
+
if ((0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.toggleAttributes)(style, element, jodit, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.INITIAL, true) !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.INITIAL) {
|
|
39579
39674
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39580
39675
|
next: states.CHANGE
|
|
39581
39676
|
});
|
|
@@ -39593,8 +39688,8 @@ var transactions = (_obj = {}, (0,_swc_helpers_define_property__WEBPACK_IMPORTED
|
|
|
39593
39688
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(_obj, states.CHANGE, {
|
|
39594
39689
|
exec: function exec(value) {
|
|
39595
39690
|
var style = value.style, element = value.element, jodit = value.jodit, mode = value.mode;
|
|
39596
|
-
var newMode = (0,
|
|
39597
|
-
if (mode !==
|
|
39691
|
+
var newMode = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_6__.toggleAttributes)(style, element, jodit, value.mode);
|
|
39692
|
+
if (mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.WRAP && newMode === jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.UNSET && !element.attributes.length && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isTag(element, style.element)) {
|
|
39598
39693
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39599
39694
|
next: states.UNWRAP
|
|
39600
39695
|
});
|
|
@@ -39613,7 +39708,7 @@ var transactions = (_obj = {}, (0,_swc_helpers_define_property__WEBPACK_IMPORTED
|
|
|
39613
39708
|
}
|
|
39614
39709
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.unwrap(value.element);
|
|
39615
39710
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39616
|
-
mode:
|
|
39711
|
+
mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.UNWRAP,
|
|
39617
39712
|
next: states.END
|
|
39618
39713
|
});
|
|
39619
39714
|
}
|
|
@@ -39621,7 +39716,7 @@ var transactions = (_obj = {}, (0,_swc_helpers_define_property__WEBPACK_IMPORTED
|
|
|
39621
39716
|
exec: function exec(value) {
|
|
39622
39717
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.replace(value.element, value.style.defaultTag, value.jodit.createInside, true);
|
|
39623
39718
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, value), {
|
|
39624
|
-
mode:
|
|
39719
|
+
mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_7__.REPLACE,
|
|
39625
39720
|
next: states.END
|
|
39626
39721
|
});
|
|
39627
39722
|
}
|
|
@@ -41100,7 +41195,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41100
41195
|
* @packageDocumentation
|
|
41101
41196
|
* @module constants
|
|
41102
41197
|
*/
|
|
41103
|
-
var APP_VERSION = "4.
|
|
41198
|
+
var APP_VERSION = "4.9.4";
|
|
41104
41199
|
// prettier-ignore
|
|
41105
41200
|
var ES = "es5";
|
|
41106
41201
|
var IS_ES_MODERN = false;
|
|
@@ -42030,7 +42125,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42030
42125
|
/* harmony export */ component: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.component; },
|
|
42031
42126
|
/* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.debounce; },
|
|
42032
42127
|
/* harmony export */ derive: function() { return /* reexport safe */ _derive_derive__WEBPACK_IMPORTED_MODULE_4__.derive; },
|
|
42033
|
-
/* harmony export */
|
|
42128
|
+
/* harmony export */ getComponentClass: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.getComponentClass; },
|
|
42034
42129
|
/* harmony export */ hook: function() { return /* reexport safe */ _hook_hook__WEBPACK_IMPORTED_MODULE_5__.hook; },
|
|
42035
42130
|
/* harmony export */ idle: function() { return /* reexport safe */ _idle_idle__WEBPACK_IMPORTED_MODULE_6__.idle; },
|
|
42036
42131
|
/* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable__WEBPACK_IMPORTED_MODULE_7__.nonenumerable; },
|
|
@@ -42113,13 +42208,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42113
42208
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25045);
|
|
42114
42209
|
/* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50684);
|
|
42115
42210
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81937);
|
|
42116
|
-
/* harmony import */ var
|
|
42117
|
-
/* harmony import */ var
|
|
42118
|
-
/* harmony import */ var
|
|
42119
|
-
/* harmony import */ var
|
|
42120
|
-
/* harmony import */ var
|
|
42121
|
-
/* harmony import */ var
|
|
42122
|
-
/* harmony import */ var
|
|
42211
|
+
/* harmony import */ var jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42689);
|
|
42212
|
+
/* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32328);
|
|
42213
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(17312);
|
|
42214
|
+
/* harmony import */ var jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(52433);
|
|
42215
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(85932);
|
|
42216
|
+
/* harmony import */ var jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(55810);
|
|
42217
|
+
/* harmony import */ var jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3050);
|
|
42218
|
+
/* harmony import */ var jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(25974);
|
|
42219
|
+
/* harmony import */ var jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(86189);
|
|
42123
42220
|
/*!
|
|
42124
42221
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42125
42222
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42139,6 +42236,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42139
42236
|
|
|
42140
42237
|
|
|
42141
42238
|
|
|
42239
|
+
|
|
42240
|
+
|
|
42142
42241
|
/**
|
|
42143
42242
|
* Jodit plugin system
|
|
42144
42243
|
* @example
|
|
@@ -42152,9 +42251,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42152
42251
|
* ```
|
|
42153
42252
|
*/ var PluginSystem = /*#__PURE__*/ function() {
|
|
42154
42253
|
"use strict";
|
|
42155
|
-
function PluginSystem() {
|
|
42254
|
+
function PluginSystem(opts) {
|
|
42156
42255
|
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_0__._)(this, PluginSystem);
|
|
42157
|
-
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "
|
|
42256
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "opts", void 0);
|
|
42257
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "__items", void 0);
|
|
42258
|
+
this.opts = opts;
|
|
42259
|
+
this.__items = new Map();
|
|
42158
42260
|
}
|
|
42159
42261
|
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_1__._)(PluginSystem, [
|
|
42160
42262
|
{
|
|
@@ -42168,8 +42270,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42168
42270
|
* Add plugin in store
|
|
42169
42271
|
*/ key: "add",
|
|
42170
42272
|
value: function add(name, plugin) {
|
|
42171
|
-
this.__items.set((0,
|
|
42172
|
-
|
|
42273
|
+
this.__items.set((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_13__.normalizeName)(name), plugin);
|
|
42274
|
+
jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_5__.eventEmitter.fire("plugin:".concat(name, ":ready"));
|
|
42173
42275
|
}
|
|
42174
42276
|
},
|
|
42175
42277
|
{
|
|
@@ -42177,7 +42279,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42177
42279
|
* Get plugin from store
|
|
42178
42280
|
*/ key: "get",
|
|
42179
42281
|
value: function get(name) {
|
|
42180
|
-
return this.__items.get((0,
|
|
42282
|
+
return this.__items.get((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_13__.normalizeName)(name));
|
|
42181
42283
|
}
|
|
42182
42284
|
},
|
|
42183
42285
|
{
|
|
@@ -42185,7 +42287,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42185
42287
|
* Remove plugin from store
|
|
42186
42288
|
*/ key: "remove",
|
|
42187
42289
|
value: function remove(name) {
|
|
42188
|
-
this.__items.delete((0,
|
|
42290
|
+
this.__items.delete((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_13__.normalizeName)(name));
|
|
42189
42291
|
}
|
|
42190
42292
|
},
|
|
42191
42293
|
{
|
|
@@ -42225,7 +42327,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42225
42327
|
return;
|
|
42226
42328
|
}
|
|
42227
42329
|
var requires = plugin === null || plugin === void 0 ? void 0 : plugin.requires;
|
|
42228
|
-
if (requires && (0,
|
|
42330
|
+
if (requires && (0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_7__.isArray)(requires) && requires.length) {
|
|
42229
42331
|
if (requires.some(function(req) {
|
|
42230
42332
|
return disableList.has(req);
|
|
42231
42333
|
})) {
|
|
@@ -42239,13 +42341,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42239
42341
|
}
|
|
42240
42342
|
}
|
|
42241
42343
|
commit = true;
|
|
42242
|
-
var instance = (0,
|
|
42344
|
+
var instance = (0,jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_12__.makeInstance)(jodit, plugin);
|
|
42243
42345
|
if (!instance) {
|
|
42244
42346
|
doneList.set(name, null);
|
|
42245
42347
|
waitingList.delete(name);
|
|
42246
42348
|
return;
|
|
42247
42349
|
}
|
|
42248
|
-
(0,
|
|
42350
|
+
(0,jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_10__.init)(jodit, name, plugin, instance, doneList, waitingList, _this.opts.getContainer);
|
|
42249
42351
|
pluginsMap[name] = instance;
|
|
42250
42352
|
});
|
|
42251
42353
|
if (commit) {
|
|
@@ -42254,7 +42356,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42254
42356
|
}
|
|
42255
42357
|
};
|
|
42256
42358
|
if (extraList && extraList.length) {
|
|
42257
|
-
(0,
|
|
42359
|
+
(0,jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_11__.loadExtras)(this.__items, jodit, extraList, initPlugins);
|
|
42258
42360
|
}
|
|
42259
42361
|
initPlugins();
|
|
42260
42362
|
bindOnBeforeDestruct(jodit, pluginsMap);
|
|
@@ -42275,9 +42377,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42275
42377
|
}
|
|
42276
42378
|
var onReady = function onReady1() {
|
|
42277
42379
|
resolve();
|
|
42278
|
-
|
|
42380
|
+
jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_5__.eventEmitter.off("plugin:".concat(name, ":ready"), onReady);
|
|
42279
42381
|
};
|
|
42280
|
-
|
|
42382
|
+
jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_5__.eventEmitter.on("plugin:".concat(name, ":ready"), onReady);
|
|
42281
42383
|
});
|
|
42282
42384
|
}
|
|
42283
42385
|
}
|
|
@@ -42290,7 +42392,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42290
42392
|
jodit.e.on('beforeDestruct', function() {
|
|
42291
42393
|
Object.keys(plugins).forEach(function(name) {
|
|
42292
42394
|
var instance = plugins[name];
|
|
42293
|
-
if ((0,
|
|
42395
|
+
if ((0,jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.isDestructable)(instance)) {
|
|
42294
42396
|
instance.destruct(jodit);
|
|
42295
42397
|
}
|
|
42296
42398
|
delete plugins[name];
|
|
@@ -42300,11 +42402,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42300
42402
|
}
|
|
42301
42403
|
function getSpecialLists(jodit) {
|
|
42302
42404
|
var extraList = jodit.o.extraPlugins.map(function(s) {
|
|
42303
|
-
return (0,
|
|
42405
|
+
return (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_9__.isString)(s) ? {
|
|
42304
42406
|
name: s
|
|
42305
42407
|
} : s;
|
|
42306
42408
|
});
|
|
42307
|
-
var disableList = new Set((0,
|
|
42409
|
+
var disableList = new Set((0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_6__.splitArray)(jodit.o.disablePlugins).map(jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_13__.normalizeName));
|
|
42308
42410
|
var filter = jodit.o.safeMode ? new Set(jodit.o.safePluginsList) : null;
|
|
42309
42411
|
return {
|
|
42310
42412
|
extraList: extraList,
|
|
@@ -45458,26 +45560,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45458
45560
|
|
|
45459
45561
|
"use strict";
|
|
45460
45562
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
45461
|
-
/* harmony export */ component: function() { return /* binding */ component; }
|
|
45563
|
+
/* harmony export */ component: function() { return /* binding */ component; },
|
|
45564
|
+
/* harmony export */ getComponentClass: function() { return /* binding */ getComponentClass; }
|
|
45462
45565
|
/* harmony export */ });
|
|
45463
45566
|
/* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69262);
|
|
45464
45567
|
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73104);
|
|
45465
45568
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(34918);
|
|
45466
45569
|
/* harmony import */ var _swc_helpers_instanceof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75980);
|
|
45467
45570
|
/* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42395);
|
|
45571
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81937);
|
|
45572
|
+
/* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(421);
|
|
45468
45573
|
/*!
|
|
45469
45574
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
45470
45575
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
45471
45576
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
45472
|
-
*/ /**
|
|
45473
|
-
* [[include:core/decorators/component/README.md]]
|
|
45474
|
-
* @packageDocumentation
|
|
45475
|
-
* @module decorators/component
|
|
45476
45577
|
*/
|
|
45477
45578
|
|
|
45478
45579
|
|
|
45479
45580
|
|
|
45480
45581
|
|
|
45582
|
+
|
|
45583
|
+
|
|
45584
|
+
var componentRegistry = new Map();
|
|
45481
45585
|
/**
|
|
45482
45586
|
* Decorate components and set status isReady after constructor
|
|
45483
45587
|
* @param constructorFunction - Component constructor class
|
|
@@ -45506,8 +45610,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45506
45610
|
}
|
|
45507
45611
|
return newConstructorFunction;
|
|
45508
45612
|
}(constructorFunction);
|
|
45613
|
+
var name = (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_6__.getClassName)(constructorFunction.prototype);
|
|
45614
|
+
if (componentRegistry.has(name) && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__.IS_PROD) {
|
|
45615
|
+
throw new Error('Component with name "'.concat(name, '" is already registered'));
|
|
45616
|
+
}
|
|
45617
|
+
componentRegistry.set(name, newConstructorFunction);
|
|
45509
45618
|
return newConstructorFunction;
|
|
45510
45619
|
}
|
|
45620
|
+
function getComponentClass(name) {
|
|
45621
|
+
return componentRegistry.get(name);
|
|
45622
|
+
}
|
|
45511
45623
|
|
|
45512
45624
|
|
|
45513
45625
|
/***/ }),
|
|
@@ -45958,11 +46070,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45958
46070
|
/* harmony export */ get: function() { return /* reexport safe */ _get__WEBPACK_IMPORTED_MODULE_15__.get; },
|
|
45959
46071
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.getClassName; },
|
|
45960
46072
|
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.getDataTransfer; },
|
|
46073
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.getPropertyDescriptor; },
|
|
45961
46074
|
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.getXPathByElement; },
|
|
45962
46075
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
45963
46076
|
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes__WEBPACK_IMPORTED_MODULE_17__.humanSizeToBytes; },
|
|
45964
46077
|
/* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_22__.inView; },
|
|
45965
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.isAbort; },
|
|
45966
46078
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_14__.isAtom; },
|
|
45967
46079
|
/* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.keepNames; },
|
|
45968
46080
|
/* harmony export */ keys: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.keys; },
|
|
@@ -46807,7 +46919,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
|
|
|
46807
46919
|
var dialog = editor.dlg({
|
|
46808
46920
|
closeOnClickOverlay: true
|
|
46809
46921
|
}), i = editor.i18n.bind(editor);
|
|
46810
|
-
dialog.setMod('theme', editor.o.theme).setHeader(i('About Jodit')).setContent('<div class="jodit-about">\n <div>'.concat(i('Jodit Editor'), " v.").concat(editor.getVersion(), "</div>\n <div>").concat(i('License: %s', !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.isLicense)(editor.o.license) ? 'MIT' : (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.normalizeLicense)(editor.o.license)), '</div>\n <div>\n <a href="').concat(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE, '" target="_blank">').concat(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE, '</a>\n </div>\n <div>\n <a href="https://xdsoft.net/jodit/docs/" target="_blank">').concat(i("Jodit User's Guide"), "</a>\n ").concat(i('contains detailed help for using'), "\n </div>\n <div>").concat(i('Copyright © XDSoft.net - Chupurnov
|
|
46922
|
+
dialog.setMod('theme', editor.o.theme).setHeader(i('About Jodit')).setContent('<div class="jodit-about">\n <div>'.concat(i('Jodit Editor'), " v.").concat(editor.getVersion(), "</div>\n <div>").concat(i('License: %s', !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.isLicense)(editor.o.license) ? editor.o.license || 'MIT' : (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.normalizeLicense)(editor.o.license)), '</div>\n <div>\n <a href="').concat(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE, '" target="_blank">').concat(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE, '</a>\n </div>\n <div>\n <a href="https://xdsoft.net/jodit/docs/" target="_blank">').concat(i("Jodit User's Guide"), "</a>\n ").concat(i('contains detailed help for using'), "\n </div>\n <div>").concat(i('Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.'), "</div>\n </div>"));
|
|
46811
46923
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.css)(dialog.dialog, {
|
|
46812
46924
|
minHeight: 200,
|
|
46813
46925
|
minWidth: 420
|
|
@@ -48567,9 +48679,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
|
|
|
48567
48679
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
48568
48680
|
/* harmony export */ wrapList: function() { return /* binding */ wrapList; }
|
|
48569
48681
|
/* harmony export */ });
|
|
48570
|
-
/* harmony import */ var
|
|
48571
|
-
/* harmony import */ var
|
|
48572
|
-
/* harmony import */ var
|
|
48682
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
48683
|
+
/* harmony import */ var jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95971);
|
|
48684
|
+
/* harmony import */ var jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82794);
|
|
48685
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98394);
|
|
48573
48686
|
/*!
|
|
48574
48687
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
48575
48688
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -48577,32 +48690,33 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
|
|
|
48577
48690
|
*/
|
|
48578
48691
|
|
|
48579
48692
|
|
|
48693
|
+
|
|
48580
48694
|
/**
|
|
48581
48695
|
* Replaces non-leaf items with leaf items and either creates a new list or
|
|
48582
48696
|
* adds a new item to the nearest old list
|
|
48583
48697
|
* @private
|
|
48584
48698
|
*/ function wrapList(commitStyle, wrapper, jodit) {
|
|
48585
|
-
var result = jodit.e.fire("".concat(
|
|
48586
|
-
var newWrapper = result !== null && result !== void 0 ? result :
|
|
48699
|
+
var result = jodit.e.fire("".concat(jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__._PREFIX, "BeforeWrapList"), jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.REPLACE, wrapper, commitStyle);
|
|
48700
|
+
var newWrapper = result !== null && result !== void 0 ? result : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.replace(wrapper, 'li', jodit.createInside);
|
|
48587
48701
|
var prev = newWrapper.previousElementSibling;
|
|
48588
48702
|
var next = newWrapper.nextElementSibling;
|
|
48589
|
-
var list =
|
|
48590
|
-
list !== null && list !== void 0 ? list : list =
|
|
48591
|
-
if (!
|
|
48703
|
+
var list = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(prev, commitStyle.element) ? prev : null;
|
|
48704
|
+
list !== null && list !== void 0 ? list : list = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(next, commitStyle.element) ? next : null;
|
|
48705
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(list) || !(0,jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__.isSameAttributes)(list, commitStyle.options.attributes)) {
|
|
48592
48706
|
list = jodit.createInside.element(commitStyle.element);
|
|
48593
|
-
(0,
|
|
48594
|
-
|
|
48707
|
+
(0,jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_2__.toggleAttributes)(commitStyle, list, jodit, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.INITIAL);
|
|
48708
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.before(newWrapper, list);
|
|
48595
48709
|
}
|
|
48596
48710
|
if (prev === list) {
|
|
48597
|
-
|
|
48711
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, newWrapper);
|
|
48598
48712
|
} else {
|
|
48599
|
-
|
|
48713
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(list, newWrapper);
|
|
48600
48714
|
}
|
|
48601
|
-
if (
|
|
48602
|
-
|
|
48603
|
-
|
|
48715
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(list.nextElementSibling, commitStyle.element) && (0,jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__.elementsEqualAttributes)(list, list.nextElementSibling)) {
|
|
48716
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, Array.from(list.nextElementSibling.childNodes));
|
|
48717
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(list.nextElementSibling);
|
|
48604
48718
|
}
|
|
48605
|
-
jodit.e.fire("".concat(
|
|
48719
|
+
jodit.e.fire("".concat(jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__._PREFIX, "AfterWrapList"), jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.WRAP, list, commitStyle);
|
|
48606
48720
|
return list;
|
|
48607
48721
|
}
|
|
48608
48722
|
|
|
@@ -48722,15 +48836,17 @@ module.exports["default"] = ["Napisz coś","O Jodit","Edytor Jodit","Instrukcja
|
|
|
48722
48836
|
/* harmony import */ var _swc_helpers_instanceof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(75980);
|
|
48723
48837
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
48724
48838
|
/* harmony import */ var jodit_core_component_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80251);
|
|
48725
|
-
/* harmony import */ var
|
|
48726
|
-
/* harmony import */ var
|
|
48727
|
-
/* harmony import */ var
|
|
48728
|
-
/* harmony import */ var
|
|
48729
|
-
/* harmony import */ var
|
|
48730
|
-
/* harmony import */ var
|
|
48731
|
-
/* harmony import */ var
|
|
48732
|
-
/* harmony import */ var
|
|
48733
|
-
/* harmony import */ var
|
|
48839
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91672);
|
|
48840
|
+
/* harmony import */ var jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29200);
|
|
48841
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(68616);
|
|
48842
|
+
/* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(32328);
|
|
48843
|
+
/* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(53681);
|
|
48844
|
+
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(63468);
|
|
48845
|
+
/* harmony import */ var jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(35676);
|
|
48846
|
+
/* harmony import */ var jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(27987);
|
|
48847
|
+
/* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2496);
|
|
48848
|
+
/* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(15982);
|
|
48849
|
+
/* harmony import */ var jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40253);
|
|
48734
48850
|
/*!
|
|
48735
48851
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
48736
48852
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -48755,15 +48871,15 @@ module.exports["default"] = ["Napisz coś","O Jodit","Edytor Jodit","Instrukcja
|
|
|
48755
48871
|
|
|
48756
48872
|
|
|
48757
48873
|
|
|
48874
|
+
|
|
48875
|
+
|
|
48758
48876
|
var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
48759
48877
|
"use strict";
|
|
48760
48878
|
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(UIList, UIGroup1);
|
|
48761
|
-
function UIList(
|
|
48879
|
+
function UIList() {
|
|
48762
48880
|
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, UIList);
|
|
48763
48881
|
var _this;
|
|
48764
|
-
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, UIList, [
|
|
48765
|
-
jodit
|
|
48766
|
-
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "mode", 'horizontal'), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "removeButtons", []);
|
|
48882
|
+
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, UIList, arguments), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "mode", 'horizontal'), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "removeButtons", []);
|
|
48767
48883
|
return _this;
|
|
48768
48884
|
}
|
|
48769
48885
|
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(UIList, [
|
|
@@ -48784,7 +48900,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
48784
48900
|
value: /**
|
|
48785
48901
|
* Make new group and append it in list of elements
|
|
48786
48902
|
*/ function makeGroup() {
|
|
48787
|
-
return new
|
|
48903
|
+
return new jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_13__.UIGroup(this.jodit);
|
|
48788
48904
|
}
|
|
48789
48905
|
},
|
|
48790
48906
|
{
|
|
@@ -48793,7 +48909,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
48793
48909
|
* All buttons from list
|
|
48794
48910
|
*/ function get() {
|
|
48795
48911
|
return this.allChildren.filter(function(elm) {
|
|
48796
|
-
return jodit_core_component_component__WEBPACK_IMPORTED_MODULE_7__.Component.isInstanceOf(elm,
|
|
48912
|
+
return jodit_core_component_component__WEBPACK_IMPORTED_MODULE_7__.Component.isInstanceOf(elm, jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_12__.UIButton);
|
|
48797
48913
|
});
|
|
48798
48914
|
}
|
|
48799
48915
|
},
|
|
@@ -48803,7 +48919,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
48803
48919
|
*/ key: "getButtonsNames",
|
|
48804
48920
|
value: function getButtonsNames() {
|
|
48805
48921
|
return this.buttons.map(function(a) {
|
|
48806
|
-
return (0,_swc_helpers_instanceof__WEBPACK_IMPORTED_MODULE_5__._)(a,
|
|
48922
|
+
return (0,_swc_helpers_instanceof__WEBPACK_IMPORTED_MODULE_5__._)(a, jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_12__.UIButton) && a.state.name || '';
|
|
48807
48923
|
}).filter(function(a) {
|
|
48808
48924
|
return a !== '';
|
|
48809
48925
|
});
|
|
@@ -48821,7 +48937,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
48821
48937
|
value: function build(items) {
|
|
48822
48938
|
var _this = this;
|
|
48823
48939
|
var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
48824
|
-
items = (0,
|
|
48940
|
+
items = (0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_11__.splitArray)(items);
|
|
48825
48941
|
this.clear();
|
|
48826
48942
|
var lastBtnSeparator = false;
|
|
48827
48943
|
var line = this.makeGroup();
|
|
@@ -48841,13 +48957,13 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
48841
48957
|
case '|':
|
|
48842
48958
|
if (!lastBtnSeparator) {
|
|
48843
48959
|
lastBtnSeparator = true;
|
|
48844
|
-
elm = new
|
|
48960
|
+
elm = new jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_14__.UISeparator(_this.j);
|
|
48845
48961
|
}
|
|
48846
48962
|
break;
|
|
48847
48963
|
case '---':
|
|
48848
48964
|
{
|
|
48849
48965
|
group.setMod('before-spacer', true);
|
|
48850
|
-
var space = new
|
|
48966
|
+
var space = new jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_15__.UISpacer(_this.j);
|
|
48851
48967
|
line.append(space);
|
|
48852
48968
|
group = _this.makeGroup();
|
|
48853
48969
|
line.append(group);
|
|
@@ -48878,7 +48994,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
48878
48994
|
return !_this.removeButtons.includes(b.name) && (!b.isVisible || ((_b_isVisible = b.isVisible) === null || _b_isVisible === void 0 ? void 0 : _b_isVisible.call(b, _this.j, b)));
|
|
48879
48995
|
};
|
|
48880
48996
|
items.forEach(function(item) {
|
|
48881
|
-
if ((0,
|
|
48997
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_16__.isButtonGroup)(item)) {
|
|
48882
48998
|
var buttons = item.buttons.filter(function(b) {
|
|
48883
48999
|
return b;
|
|
48884
49000
|
});
|
|
@@ -48886,14 +49002,14 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
48886
49002
|
group = _this.makeGroup();
|
|
48887
49003
|
group.setMod('separated', true).setMod('group', item.group);
|
|
48888
49004
|
line.append(group);
|
|
48889
|
-
(0,
|
|
49005
|
+
(0,jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_18__.getStrongControlTypes)(buttons, _this.j.o.controls).filter(isNotRemoved).forEach(addButton);
|
|
48890
49006
|
}
|
|
48891
49007
|
} else {
|
|
48892
49008
|
if (!group) {
|
|
48893
49009
|
group = _this.makeGroup();
|
|
48894
49010
|
line.append(group);
|
|
48895
49011
|
}
|
|
48896
|
-
var control = (0,
|
|
49012
|
+
var control = (0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_17__.getControlType)(item, _this.j.o.controls);
|
|
48897
49013
|
isNotRemoved(control) && addButton(control);
|
|
48898
49014
|
}
|
|
48899
49015
|
});
|
|
@@ -48912,20 +49028,20 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
48912
49028
|
value: /**
|
|
48913
49029
|
* Create button instance
|
|
48914
49030
|
*/ function makeButton(control, target) {
|
|
48915
|
-
return new
|
|
49031
|
+
return new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_12__.UIButton(this.j, {
|
|
48916
49032
|
name: control.name
|
|
48917
49033
|
});
|
|
48918
49034
|
}
|
|
48919
49035
|
}
|
|
48920
49036
|
]);
|
|
48921
49037
|
return UIList;
|
|
48922
|
-
}(
|
|
49038
|
+
}(jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_13__.UIGroup);
|
|
48923
49039
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
48924
|
-
(0,
|
|
48925
|
-
(0,
|
|
49040
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_10__.watch)('mode'),
|
|
49041
|
+
(0,jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_9__.hook)('ready')
|
|
48926
49042
|
], UIList.prototype, "__onChangeMode", null);
|
|
48927
49043
|
UIList = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
48928
|
-
|
|
49044
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_8__.component
|
|
48929
49045
|
], UIList);
|
|
48930
49046
|
|
|
48931
49047
|
|