Skip to content

Commit

Permalink
New version 3.24.4. 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 Feb 5, 2023
1 parent f02cecc commit 5509bc7
Show file tree
Hide file tree
Showing 35 changed files with 130,365 additions and 3 deletions.
5,960 changes: 5,960 additions & 0 deletions build/jodit.css

Large diffs are not rendered by default.

4,879 changes: 4,879 additions & 0 deletions build/jodit.es2018.css

Large diffs are not rendered by default.

4,879 changes: 4,879 additions & 0 deletions build/jodit.es2018.en.css

Large diffs are not rendered by default.

33,486 changes: 33,486 additions & 0 deletions build/jodit.es2018.en.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/jodit.es2018.en.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/jodit.es2018.en.min.js

Large diffs are not rendered by default.

33,660 changes: 33,660 additions & 0 deletions build/jodit.es2018.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/jodit.es2018.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/jodit.es2018.min.js

Large diffs are not rendered by default.

41,356 changes: 41,356 additions & 0 deletions build/jodit.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions build/jodit.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/jodit.min.js

Large diffs are not rendered by default.

97 changes: 97 additions & 0 deletions build/plugins/debug/debug.es2018.en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.24.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/

"use strict";
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(self, function() {
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[101],{

/***/ 86206:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Debug": function() { return /* binding */ Debug; }
/* harmony export */ });
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57549);
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17332);
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24263);
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40332);
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86893);
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/





class Debug extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
afterInit(jodit) {
const mirror = jodit.create.div();
const tree = jodit.create.div();
const sel = jodit.create.div();
mirror.appendChild(tree);
mirror.appendChild(sel);
jodit.workplace.appendChild(mirror);
Object.assign(mirror.style, {
padding: '16px',
backgroundColor: '#fcfcfc'
});
Object.assign(sel.style, {
paddingTop: '16px'
});
jodit.e
.on('keydown keyup keypress change afterInit updateDebug', () => {
tree.innerHTML = render(jodit.editor);
})
.on(jodit.od, 'selectionchange', () => {
const range = jodit.selection.range;
tree.innerHTML = render(jodit.editor);
sel.innerHTML = `start ${range.startContainer.nodeName} ${range.startOffset}<br>end ${range.endContainer.nodeName} ${range.endOffset}`;
});
}
beforeDestruct(jodit) { }
}
function renderText(elm) {
if (!elm.nodeValue) {
return "<span style='color:red'>empty</span>";
}
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.stripTags)(elm.nodeValue.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.INVISIBLE_SPACE_REG_EXP)(), 'INV'));
}
function render(elm, level = 0) {
return `<div style='padding-left: ${level * 5}px'>
${elm.nodeName} ${jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isText */ .i.isText(elm) ? `- ${renderText(elm)}` : ''}
${Array.from(elm.childNodes)
.map(ch => render(ch, level + 1))
.join('')}
</div>`;
}
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem.add */ .pw.add('debug', Debug);


/***/ })

},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
/******/ var __webpack_exports__ = (__webpack_exec__(86206));
/******/ return __webpack_exports__;
/******/ }
]);
});
1 change: 1 addition & 0 deletions build/plugins/debug/debug.es2018.en.min.js

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

97 changes: 97 additions & 0 deletions build/plugins/debug/debug.es2018.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.24.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/

"use strict";
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(self, function() {
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[101],{

/***/ 86206:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Debug": function() { return /* binding */ Debug; }
/* harmony export */ });
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57549);
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17332);
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24263);
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40332);
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86893);
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/





class Debug extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
afterInit(jodit) {
const mirror = jodit.create.div();
const tree = jodit.create.div();
const sel = jodit.create.div();
mirror.appendChild(tree);
mirror.appendChild(sel);
jodit.workplace.appendChild(mirror);
Object.assign(mirror.style, {
padding: '16px',
backgroundColor: '#fcfcfc'
});
Object.assign(sel.style, {
paddingTop: '16px'
});
jodit.e
.on('keydown keyup keypress change afterInit updateDebug', () => {
tree.innerHTML = render(jodit.editor);
})
.on(jodit.od, 'selectionchange', () => {
const range = jodit.selection.range;
tree.innerHTML = render(jodit.editor);
sel.innerHTML = `start ${range.startContainer.nodeName} ${range.startOffset}<br>end ${range.endContainer.nodeName} ${range.endOffset}`;
});
}
beforeDestruct(jodit) { }
}
function renderText(elm) {
if (!elm.nodeValue) {
return "<span style='color:red'>empty</span>";
}
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.stripTags)(elm.nodeValue.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.INVISIBLE_SPACE_REG_EXP)(), 'INV'));
}
function render(elm, level = 0) {
return `<div style='padding-left: ${level * 5}px'>
${elm.nodeName} ${jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isText */ .i.isText(elm) ? `- ${renderText(elm)}` : ''}
${Array.from(elm.childNodes)
.map(ch => render(ch, level + 1))
.join('')}
</div>`;
}
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem.add */ .pw.add('debug', Debug);


/***/ })

},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
/******/ var __webpack_exports__ = (__webpack_exec__(86206));
/******/ return __webpack_exports__;
/******/ }
]);
});
1 change: 1 addition & 0 deletions build/plugins/debug/debug.es2018.min.js

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

96 changes: 96 additions & 0 deletions build/plugins/debug/debug.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.24.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/

"use strict";
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(self, function() {
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[101],{

/***/ 86206:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {


/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Debug = void 0;
var tslib_1 = __webpack_require__(20255);
var plugin_1 = __webpack_require__(57549);
var global_1 = __webpack_require__(17332);
var dom_1 = __webpack_require__(24263);
var helpers_1 = __webpack_require__(40332);
var constants_1 = __webpack_require__(86893);
var Debug = (function (_super) {
tslib_1.__extends(Debug, _super);
function Debug() {
return _super !== null && _super.apply(this, arguments) || this;
}
Debug.prototype.afterInit = function (jodit) {
var mirror = jodit.create.div();
var tree = jodit.create.div();
var sel = jodit.create.div();
mirror.appendChild(tree);
mirror.appendChild(sel);
jodit.workplace.appendChild(mirror);
Object.assign(mirror.style, {
padding: '16px',
backgroundColor: '#fcfcfc'
});
Object.assign(sel.style, {
paddingTop: '16px'
});
jodit.e
.on('keydown keyup keypress change afterInit updateDebug', function () {
tree.innerHTML = render(jodit.editor);
})
.on(jodit.od, 'selectionchange', function () {
var range = jodit.selection.range;
tree.innerHTML = render(jodit.editor);
sel.innerHTML = "start ".concat(range.startContainer.nodeName, " ").concat(range.startOffset, "<br>end ").concat(range.endContainer.nodeName, " ").concat(range.endOffset);
});
};
Debug.prototype.beforeDestruct = function (jodit) { };
return Debug;
}(plugin_1.Plugin));
exports.Debug = Debug;
function renderText(elm) {
if (!elm.nodeValue) {
return "<span style='color:red'>empty</span>";
}
return (0, helpers_1.stripTags)(elm.nodeValue.replace((0, constants_1.INVISIBLE_SPACE_REG_EXP)(), 'INV'));
}
function render(elm, level) {
if (level === void 0) { level = 0; }
return "<div style='padding-left: ".concat(level * 5, "px'>\n\t\t").concat(elm.nodeName, " ").concat(dom_1.Dom.isText(elm) ? "- ".concat(renderText(elm)) : '', "\n\t").concat(Array.from(elm.childNodes)
.map(function (ch) { return render(ch, level + 1); })
.join(''), "\n</div>");
}
global_1.pluginSystem.add('debug', Debug);


/***/ })

},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
/******/ var __webpack_exports__ = (__webpack_exec__(86206));
/******/ return __webpack_exports__;
/******/ }
]);
});
1 change: 1 addition & 0 deletions build/plugins/debug/debug.min.js

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

42 changes: 42 additions & 0 deletions build/plugins/speech-recognize/speech-recognize.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.24.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/

@keyframes jdSpeakAnimation {
0% {
fill: green;
opacity: 0.3;
}
100% {
fill: #4285f4;
}
}
svg.jodit-icon_speechRecognize {
stroke: none !important;
}
.jodit-toolbar-button_pulse_true svg {
animation-duration: 0.7s;
animation-iteration-count: infinite;
animation-name: jdSpeakAnimation;
}
.jodit-speech-recognize__list-item {
display: flex;
padding: var(--jd-padding-default);
}
.jodit-speech-recognize__popup {
font-family: var(--jd-font-default);
font-size: var(--jd-font-size-default);
position: absolute;
top: 50%;
left: 50%;
padding: 24px;
border-radius: 8px;
background-color: rgba(240, 240, 240, 0.4);
font-size: 32px;
transform: translate(-50%, -50%);
}

42 changes: 42 additions & 0 deletions build/plugins/speech-recognize/speech-recognize.es2018.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
* Version: v3.24.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/

@keyframes jdSpeakAnimation {
0% {
fill: green;
opacity: 0.3;
}
100% {
fill: #4285f4;
}
}
svg.jodit-icon_speechRecognize {
stroke: none !important;
}
.jodit-toolbar-button_pulse_true svg {
animation-duration: 0.7s;
animation-iteration-count: infinite;
animation-name: jdSpeakAnimation;
}
.jodit-speech-recognize__list-item {
display: flex;
padding: var(--jd-padding-default);
}
.jodit-speech-recognize__popup {
font-family: var(--jd-font-default);
font-size: var(--jd-font-size-default);
position: absolute;
top: 50%;
left: 50%;
padding: 24px;
border-radius: 8px;
background-color: rgba(240, 240, 240, 0.4);
font-size: 32px;
transform: translate(-50%, -50%);
}

Loading

0 comments on commit 5509bc7

Please sign in to comment.