jodit 3.23.2 → 3.23.3
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/build/jodit.css +2 -2
- package/build/jodit.es2018.css +1 -1
- package/build/jodit.es2018.en.css +1 -1
- package/build/jodit.es2018.en.js +20 -9
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +20 -9
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +18 -10
- package/build/jodit.min.css +1 -1
- package/build/jodit.min.js +1 -1
- package/build/plugins/debug/debug.es2018.en.js +1 -1
- package/build/plugins/debug/debug.es2018.js +1 -1
- package/build/plugins/debug/debug.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.js +1 -1
- package/build/vdom.css +1 -1
- package/build/vdom.js +1 -1
- package/package.json +1 -1
- package/src/core/ui/element.ts +10 -6
- package/src/modules/toolbar/button/button.ts +7 -1
- package/src/types/toolbar.d.ts +43 -6
- package/types/core/ui/element.d.ts +1 -0
- package/types/types/toolbar.d.ts +43 -6
package/build/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
|
|
4
|
-
* Version: v3.23.
|
|
4
|
+
* Version: v3.23.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -16199,18 +16199,21 @@ var UIElement = (function (_super) {
|
|
|
16199
16199
|
return this.j.c.div(this.componentName);
|
|
16200
16200
|
};
|
|
16201
16201
|
UIElement.prototype.createContainer = function (options) {
|
|
16202
|
-
var _this = this;
|
|
16203
16202
|
var result = this.render(options);
|
|
16204
16203
|
if ((0, is_string_1.isString)(result)) {
|
|
16205
|
-
var elm = this.
|
|
16206
|
-
.replace(/\*([^*]+?)\*/g, function (_, name) { return icon_1.Icon.get(name) || ''; })
|
|
16207
|
-
.replace(/&__/g, this.componentName + '__')
|
|
16208
|
-
.replace(/~([^~]+?)~/g, function (_, s) { return _this.i18n(s); }));
|
|
16204
|
+
var elm = this.parseTemplate(result);
|
|
16209
16205
|
elm.classList.add(this.componentName);
|
|
16210
16206
|
return elm;
|
|
16211
16207
|
}
|
|
16212
16208
|
return result;
|
|
16213
16209
|
};
|
|
16210
|
+
UIElement.prototype.parseTemplate = function (result) {
|
|
16211
|
+
var _this = this;
|
|
16212
|
+
return this.j.c.fromHTML(result
|
|
16213
|
+
.replace(/\*([^*]+?)\*/g, function (_, name) { return icon_1.Icon.get(name) || ''; })
|
|
16214
|
+
.replace(/&__/g, this.componentName + '__')
|
|
16215
|
+
.replace(/~([^~]+?)~/g, function (_, s) { return _this.i18n(s); }));
|
|
16216
|
+
};
|
|
16214
16217
|
UIElement.prototype.destruct = function () {
|
|
16215
16218
|
dom_1.Dom.safeRemove(this.container);
|
|
16216
16219
|
this.parentElement = null;
|
|
@@ -18121,7 +18124,7 @@ var View = (function (_super) {
|
|
|
18121
18124
|
_this.parent = null;
|
|
18122
18125
|
_this.mods = {};
|
|
18123
18126
|
_this.components = new Set();
|
|
18124
|
-
_this.version = "3.23.
|
|
18127
|
+
_this.version = "3.23.3";
|
|
18125
18128
|
_this.buffer = storage_1.Storage.makeStorage();
|
|
18126
18129
|
_this.storage = storage_1.Storage.makeStorage(true, _this.componentName);
|
|
18127
18130
|
_this.OPTIONS = View_1.defaultOptions;
|
|
@@ -18248,10 +18251,10 @@ var View = (function (_super) {
|
|
|
18248
18251
|
configurable: true
|
|
18249
18252
|
});
|
|
18250
18253
|
View.prototype.getVersion = function () {
|
|
18251
|
-
return "3.23.
|
|
18254
|
+
return "3.23.3";
|
|
18252
18255
|
};
|
|
18253
18256
|
View.getVersion = function () {
|
|
18254
|
-
return "3.23.
|
|
18257
|
+
return "3.23.3";
|
|
18255
18258
|
};
|
|
18256
18259
|
View.prototype.initOptions = function (options) {
|
|
18257
18260
|
this.options = (0, helpers_1.ConfigProto)(options || {}, (0, helpers_1.ConfigProto)(this.options || {}, View_1.defaultOptions));
|
|
@@ -24267,7 +24270,12 @@ var ToolbarButton = (function (_super) {
|
|
|
24267
24270
|
name: key.toString(),
|
|
24268
24271
|
template: childTemplate &&
|
|
24269
24272
|
(function (j, k, v) { return childTemplate(j, k, v, _this); }),
|
|
24270
|
-
exec: control.
|
|
24273
|
+
exec: control.childExec
|
|
24274
|
+
? function (view, current, options) {
|
|
24275
|
+
var _a;
|
|
24276
|
+
return (_a = control.childExec) === null || _a === void 0 ? void 0 : _a.call(control, view, current, tslib_1.__assign(tslib_1.__assign({}, options), { parentControl: control }));
|
|
24277
|
+
}
|
|
24278
|
+
: control.exec,
|
|
24271
24279
|
data: control.data,
|
|
24272
24280
|
command: control.command,
|
|
24273
24281
|
isActive: control.isChildActive,
|
package/build/jodit.min.css
CHANGED