Skip to content

Commit

Permalink
New version 3.23.3. Read more https://github.com/xdan/jodit/blob/mast…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Nov 15, 2022
1 parent 985bea0 commit 07370b7
Show file tree
Hide file tree
Showing 23 changed files with 80 additions and 50 deletions.
4 changes: 2 additions & 2 deletions build/jodit.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.en.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
29 changes: 20 additions & 9 deletions build/jodit.es2018.en.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -10584,15 +10584,18 @@ let UIElement = UIElement_1 = class UIElement extends jodit_core_component__WEBP
createContainer(options) {
const result = this.render(options);
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .H)(result)) {
const elm = this.j.c.fromHTML(result
.replace(/\*([^*]+?)\*/g, (_, name) => jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon.get */ .J.get(name) || '')
.replace(/&__/g, this.componentName + '__')
.replace(/~([^~]+?)~/g, (_, s) => this.i18n(s)));
const elm = this.parseTemplate(result);
elm.classList.add(this.componentName);
return elm;
}
return result;
}
parseTemplate(result) {
return this.j.c.fromHTML(result
.replace(/\*([^*]+?)\*/g, (_, name) => jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon.get */ .J.get(name) || '')
.replace(/&__/g, this.componentName + '__')
.replace(/~([^~]+?)~/g, (_, s) => this.i18n(s)));
}
destruct() {
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(this.container);
this.parentElement = null;
Expand Down Expand Up @@ -12486,7 +12489,7 @@ let View = View_1 = class View extends jodit_modules__WEBPACK_IMPORTED_MODULE_3_
this.parent = null;
this.mods = {};
this.components = new Set();
this.version = "3.23.2";
this.version = "3.23.3";
this.buffer = _storage__WEBPACK_IMPORTED_MODULE_0__/* .Storage.makeStorage */ .Ke.makeStorage();
this.storage = _storage__WEBPACK_IMPORTED_MODULE_0__/* .Storage.makeStorage */ .Ke.makeStorage(true, this.componentName);
this.OPTIONS = View_1.defaultOptions;
Expand Down Expand Up @@ -12568,10 +12571,10 @@ let View = View_1 = class View extends jodit_modules__WEBPACK_IMPORTED_MODULE_3_
return this.__isFullSize;
}
getVersion() {
return "3.23.2";
return "3.23.3";
}
static getVersion() {
return "3.23.2";
return "3.23.3";
}
initOptions(options) {
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(this.options || {}, View_1.defaultOptions));
Expand Down Expand Up @@ -17868,7 +17871,15 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
name: key.toString(),
template: childTemplate &&
((j, k, v) => childTemplate(j, k, v, this)),
exec: control.exec,
exec: control.childExec
? (view, current, options) => {
var _a;
return (_a = control.childExec) === null || _a === void 0 ? void 0 : _a.call(control, view, current, {
...options,
parentControl: control
});
}
: control.exec,
data: control.data,
command: control.command,
isActive: control.isChildActive,
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.en.min.js

Large diffs are not rendered by default.

29 changes: 20 additions & 9 deletions build/jodit.es2018.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -10717,15 +10717,18 @@ let UIElement = UIElement_1 = class UIElement extends jodit_core_component__WEBP
createContainer(options) {
const result = this.render(options);
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .H)(result)) {
const elm = this.j.c.fromHTML(result
.replace(/\*([^*]+?)\*/g, (_, name) => jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon.get */ .J.get(name) || '')
.replace(/&__/g, this.componentName + '__')
.replace(/~([^~]+?)~/g, (_, s) => this.i18n(s)));
const elm = this.parseTemplate(result);
elm.classList.add(this.componentName);
return elm;
}
return result;
}
parseTemplate(result) {
return this.j.c.fromHTML(result
.replace(/\*([^*]+?)\*/g, (_, name) => jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon.get */ .J.get(name) || '')
.replace(/&__/g, this.componentName + '__')
.replace(/~([^~]+?)~/g, (_, s) => this.i18n(s)));
}
destruct() {
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(this.container);
this.parentElement = null;
Expand Down Expand Up @@ -12619,7 +12622,7 @@ let View = View_1 = class View extends jodit_modules__WEBPACK_IMPORTED_MODULE_3_
this.parent = null;
this.mods = {};
this.components = new Set();
this.version = "3.23.2";
this.version = "3.23.3";
this.buffer = _storage__WEBPACK_IMPORTED_MODULE_0__/* .Storage.makeStorage */ .Ke.makeStorage();
this.storage = _storage__WEBPACK_IMPORTED_MODULE_0__/* .Storage.makeStorage */ .Ke.makeStorage(true, this.componentName);
this.OPTIONS = View_1.defaultOptions;
Expand Down Expand Up @@ -12701,10 +12704,10 @@ let View = View_1 = class View extends jodit_modules__WEBPACK_IMPORTED_MODULE_3_
return this.__isFullSize;
}
getVersion() {
return "3.23.2";
return "3.23.3";
}
static getVersion() {
return "3.23.2";
return "3.23.3";
}
initOptions(options) {
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(this.options || {}, View_1.defaultOptions));
Expand Down Expand Up @@ -18001,7 +18004,15 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
name: key.toString(),
template: childTemplate &&
((j, k, v) => childTemplate(j, k, v, this)),
exec: control.exec,
exec: control.childExec
? (view, current, options) => {
var _a;
return (_a = control.childExec) === null || _a === void 0 ? void 0 : _a.call(control, view, current, {
...options,
parentControl: control
});
}
: control.exec,
data: control.data,
command: control.command,
isActive: control.isChildActive,
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.min.js

Large diffs are not rendered by default.

28 changes: 18 additions & 10 deletions build/jodit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -16199,18 +16199,21 @@ var UIElement = (function (_super) {
return this.j.c.div(this.componentName);
};
UIElement.prototype.createContainer = function (options) {
var _this = this;
var result = this.render(options);
if ((0, is_string_1.isString)(result)) {
var elm = this.j.c.fromHTML(result
.replace(/\*([^*]+?)\*/g, function (_, name) { return icon_1.Icon.get(name) || ''; })
.replace(/&__/g, this.componentName + '__')
.replace(/~([^~]+?)~/g, function (_, s) { return _this.i18n(s); }));
var elm = this.parseTemplate(result);
elm.classList.add(this.componentName);
return elm;
}
return result;
};
UIElement.prototype.parseTemplate = function (result) {
var _this = this;
return this.j.c.fromHTML(result
.replace(/\*([^*]+?)\*/g, function (_, name) { return icon_1.Icon.get(name) || ''; })
.replace(/&__/g, this.componentName + '__')
.replace(/~([^~]+?)~/g, function (_, s) { return _this.i18n(s); }));
};
UIElement.prototype.destruct = function () {
dom_1.Dom.safeRemove(this.container);
this.parentElement = null;
Expand Down Expand Up @@ -18121,7 +18124,7 @@ var View = (function (_super) {
_this.parent = null;
_this.mods = {};
_this.components = new Set();
_this.version = "3.23.2";
_this.version = "3.23.3";
_this.buffer = storage_1.Storage.makeStorage();
_this.storage = storage_1.Storage.makeStorage(true, _this.componentName);
_this.OPTIONS = View_1.defaultOptions;
Expand Down Expand Up @@ -18248,10 +18251,10 @@ var View = (function (_super) {
configurable: true
});
View.prototype.getVersion = function () {
return "3.23.2";
return "3.23.3";
};
View.getVersion = function () {
return "3.23.2";
return "3.23.3";
};
View.prototype.initOptions = function (options) {
this.options = (0, helpers_1.ConfigProto)(options || {}, (0, helpers_1.ConfigProto)(this.options || {}, View_1.defaultOptions));
Expand Down Expand Up @@ -24267,7 +24270,12 @@ var ToolbarButton = (function (_super) {
name: key.toString(),
template: childTemplate &&
(function (j, k, v) { return childTemplate(j, k, v, _this); }),
exec: control.exec,
exec: control.childExec
? function (view, current, options) {
var _a;
return (_a = control.childExec) === null || _a === void 0 ? void 0 : _a.call(control, view, current, tslib_1.__assign(tslib_1.__assign({}, options), { parentControl: control }));
}
: control.exec,
data: control.data,
command: control.command,
isActive: control.isChildActive,
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/jodit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/plugins/debug/debug.es2018.en.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/plugins/debug/debug.es2018.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/plugins/debug/debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/plugins/speech-recognize/speech-recognize.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/plugins/speech-recognize/speech-recognize.es2018.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/plugins/speech-recognize/speech-recognize.es2018.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/plugins/speech-recognize/speech-recognize.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/vdom.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/vdom.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.23.2
* Version: v3.23.3
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "3.23.2",
"version": "3.23.3",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down

0 comments on commit 07370b7

Please sign in to comment.