-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
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 <[email protected]> (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__; | ||
/******/ } | ||
]); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 <[email protected]> (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__; | ||
/******/ } | ||
]); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 <[email protected]> (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__; | ||
/******/ } | ||
]); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 <[email protected]> (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%); | ||
} | ||
|
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 <[email protected]> (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%); | ||
} | ||
|