jodit 4.2.39 → 4.2.40
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 +18 -9
- package/es2015/jodit.css +7 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +48 -34
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.css +53 -0
- package/es2015/plugins/debug/debug.js +162 -24
- package/es2015/plugins/debug/debug.min.css +1 -0
- package/es2015/plugins/debug/debug.min.js +2 -2
- 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.css +7 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +48 -34
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +53 -0
- package/es2018/plugins/debug/debug.js +162 -24
- package/es2018/plugins/debug/debug.min.css +1 -0
- package/es2018/plugins/debug/debug.min.js +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +7 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +48 -33
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.css +53 -0
- package/es2021/plugins/debug/debug.js +161 -24
- package/es2021/plugins/debug/debug.min.css +1 -0
- package/es2021/plugins/debug/debug.min.js +2 -2
- 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 +7 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +48 -33
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.css +53 -0
- package/es2021.en/plugins/debug/debug.js +161 -24
- package/es2021.en/plugins/debug/debug.min.css +1 -0
- package/es2021.en/plugins/debug/debug.min.js +2 -2
- 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/164.fat.min.js +1 -1
- package/es5/164.min.js +1 -1
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +11 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +54 -43
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +53 -0
- package/es5/plugins/debug/debug.js +161 -24
- package/es5/plugins/debug/debug.min.css +1 -0
- package/es5/plugins/debug/debug.min.js +2 -2
- 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/esm/core/constants.js +1 -1
- package/esm/core/ui/button/tooltip/tooltip.d.ts +1 -0
- package/esm/core/ui/button/tooltip/tooltip.js +19 -8
- package/esm/core/view/view-with-toolbar.d.ts +1 -0
- package/esm/core/view/view-with-toolbar.js +3 -0
- package/esm/modules/toolbar/collection/collection.d.ts +0 -1
- package/esm/modules/toolbar/collection/collection.js +1 -4
- package/esm/plugins/debug/debug.d.ts +1 -0
- package/esm/plugins/enter/helpers/check-br.js +2 -0
- package/esm/plugins/index.js +1 -0
- package/esm/plugins/inline-popup/inline-popup.d.ts +0 -1
- package/esm/plugins/inline-popup/inline-popup.js +7 -7
- package/package.json +1 -1
- package/types/core/ui/button/tooltip/tooltip.d.ts +1 -0
- package/types/core/view/view-with-toolbar.d.ts +1 -0
- package/types/modules/toolbar/collection/collection.d.ts +0 -1
- package/types/plugins/debug/debug.d.ts +1 -0
- package/types/plugins/inline-popup/inline-popup.d.ts +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
|
+
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
+
* Version: v4.2.40
|
|
5
|
+
* Url: https://xdsoft.net/jodit/
|
|
6
|
+
* License(s): MIT
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.jodit-debug {
|
|
10
|
+
background: #f6f6f6;
|
|
11
|
+
position: relative;
|
|
12
|
+
padding: 0;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: stretch;
|
|
16
|
+
}
|
|
17
|
+
.jodit-debug > * {
|
|
18
|
+
padding: var(--jd-padding-default);
|
|
19
|
+
}
|
|
20
|
+
.jodit-debug__tree {
|
|
21
|
+
width: 40%;
|
|
22
|
+
}
|
|
23
|
+
.jodit-debug__tree .jodit-debug__tree-elm-name {
|
|
24
|
+
color: #052e88;
|
|
25
|
+
}
|
|
26
|
+
.jodit-debug__tree .jodit-debug__tree-element_selected {
|
|
27
|
+
background: #1e7e34;
|
|
28
|
+
color: #fff;
|
|
29
|
+
}
|
|
30
|
+
.jodit-debug__tree .jodit-debug__tree-cursor {
|
|
31
|
+
background: #dc3232;
|
|
32
|
+
color: #fff;
|
|
33
|
+
}
|
|
34
|
+
.jodit-debug__events {
|
|
35
|
+
width: 40%;
|
|
36
|
+
max-height: 500px;
|
|
37
|
+
overflow: auto;
|
|
38
|
+
background: #1e7e34;
|
|
39
|
+
color: #fff;
|
|
40
|
+
}
|
|
41
|
+
.jodit-debug__events span {
|
|
42
|
+
color: #cacaca;
|
|
43
|
+
font-size: 0.8em;
|
|
44
|
+
}
|
|
45
|
+
.jodit-debug__events .jodit-debug__events-clear {
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 0;
|
|
48
|
+
right: 0;
|
|
49
|
+
padding: 5px;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
color: red;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -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.2.
|
|
4
|
+
* Version: v4.2.40
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -42,44 +42,182 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
+
|
|
45
46
|
class Debug extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .k {
|
|
46
47
|
afterInit(jodit) {
|
|
47
|
-
const mirror = jodit.create.div();
|
|
48
|
-
const tree = jodit.create.div();
|
|
49
|
-
const
|
|
48
|
+
const mirror = jodit.create.div('jodit-debug');
|
|
49
|
+
const tree = jodit.create.div('jodit-debug__tree');
|
|
50
|
+
const events = jodit.create.div('jodit-debug__events');
|
|
51
|
+
const clear = jodit.create.div('jodit-debug__events-clear', ['x']);
|
|
52
|
+
const sel = jodit.create.div('jodit-debug__sel');
|
|
50
53
|
mirror.appendChild(tree);
|
|
54
|
+
mirror.appendChild(events);
|
|
55
|
+
events.appendChild(clear);
|
|
51
56
|
mirror.appendChild(sel);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
backgroundColor: '#fcfcfc'
|
|
56
|
-
});
|
|
57
|
-
Object.assign(sel.style, {
|
|
58
|
-
paddingTop: '16px'
|
|
57
|
+
clear.addEventListener('click', () => {
|
|
58
|
+
events.innerHTML = '';
|
|
59
|
+
events.appendChild(clear);
|
|
59
60
|
});
|
|
60
|
-
jodit.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
jodit.workplace.appendChild(mirror);
|
|
62
|
+
const allEvents = [
|
|
63
|
+
'activate',
|
|
64
|
+
'afterInit',
|
|
65
|
+
'beforeactivate',
|
|
66
|
+
'beforeblur',
|
|
67
|
+
'beforedeactivate',
|
|
68
|
+
'beforefocus',
|
|
69
|
+
'beforeinput',
|
|
70
|
+
'blur',
|
|
71
|
+
'change',
|
|
72
|
+
'click',
|
|
73
|
+
'compositionend',
|
|
74
|
+
'compositionstart',
|
|
75
|
+
'compositionupdate',
|
|
76
|
+
'contextmenu',
|
|
77
|
+
'copy',
|
|
78
|
+
'cut',
|
|
79
|
+
'dblclick',
|
|
80
|
+
'deactivate',
|
|
81
|
+
'focus',
|
|
82
|
+
'focusin',
|
|
83
|
+
'focusout',
|
|
84
|
+
'focusout',
|
|
85
|
+
'input',
|
|
86
|
+
'keydown',
|
|
87
|
+
'keypress',
|
|
88
|
+
'keyup',
|
|
89
|
+
'mousedown',
|
|
90
|
+
'mouseup',
|
|
91
|
+
'paste',
|
|
92
|
+
'selectionchange',
|
|
93
|
+
'selectionstart',
|
|
94
|
+
'dragstart',
|
|
95
|
+
'drop',
|
|
96
|
+
'dragover',
|
|
97
|
+
'resize touchstart touchend',
|
|
98
|
+
'updateDebug',
|
|
99
|
+
'beforeCommand',
|
|
100
|
+
'afterCommand',
|
|
101
|
+
'wheel'
|
|
102
|
+
];
|
|
103
|
+
function updateTree() {
|
|
65
104
|
const range = jodit.selection.range;
|
|
66
|
-
tree.innerHTML = render(jodit.editor);
|
|
105
|
+
tree.innerHTML = render(jodit.editor, 0, range);
|
|
67
106
|
sel.innerHTML = `start ${range.startContainer.nodeName} ${range.startOffset}<br>end ${range.endContainer.nodeName} ${range.endOffset}`;
|
|
68
|
-
}
|
|
107
|
+
}
|
|
108
|
+
function onSomeEvent(e) {
|
|
109
|
+
const event = jodit.e.current;
|
|
110
|
+
const div = jodit.create.div();
|
|
111
|
+
div.innerHTML = `<span>${new Date().toLocaleTimeString()}</span> ${renderEvent(event, e)}`;
|
|
112
|
+
events.appendChild(div);
|
|
113
|
+
events.scrollTop = events.scrollHeight;
|
|
114
|
+
jodit.async.setTimeout(() => {
|
|
115
|
+
events.children.length > 100 &&
|
|
116
|
+
events.removeChild(events.children[0]);
|
|
117
|
+
}, 100);
|
|
118
|
+
}
|
|
119
|
+
function renderEvent(event, e) {
|
|
120
|
+
const result = [event !== null && event !== void 0 ? event : e.type];
|
|
121
|
+
switch (event) {
|
|
122
|
+
case 'beforeCommand':
|
|
123
|
+
case 'afterCommand':
|
|
124
|
+
result.push(`<span>${e.toString()}</span>`);
|
|
125
|
+
break;
|
|
126
|
+
case 'keydown':
|
|
127
|
+
case 'keyup':
|
|
128
|
+
case 'keypress':
|
|
129
|
+
if (e.shiftKey &&
|
|
130
|
+
e.key !== 'Shift') {
|
|
131
|
+
result.push('Shift+');
|
|
132
|
+
}
|
|
133
|
+
if (e.ctrlKey &&
|
|
134
|
+
e.key !== 'Control') {
|
|
135
|
+
result.push('Ctrl+');
|
|
136
|
+
}
|
|
137
|
+
if (e.altKey &&
|
|
138
|
+
e.key !== 'Alt') {
|
|
139
|
+
result.push('Alt');
|
|
140
|
+
}
|
|
141
|
+
result.push(`${e.key}`);
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
if (e && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isNode(e.target)) {
|
|
145
|
+
result.push(`<span>${e.target.nodeName}</span>`);
|
|
146
|
+
}
|
|
147
|
+
return result.join(' ');
|
|
148
|
+
}
|
|
149
|
+
jodit.e
|
|
150
|
+
.on('keydown keyup keypress change afterInit updateDebug', updateTree)
|
|
151
|
+
.on(allEvents, onSomeEvent)
|
|
152
|
+
.on(jodit.od, 'selectionchange', onSomeEvent)
|
|
153
|
+
.on(jodit.od, 'selectionchange', updateTree);
|
|
69
154
|
}
|
|
70
155
|
beforeDestruct(jodit) { }
|
|
71
156
|
}
|
|
72
|
-
function renderText(elm) {
|
|
157
|
+
function renderText(elm, range) {
|
|
73
158
|
if (!elm.nodeValue) {
|
|
74
159
|
return "<span style='color:red'>empty</span>";
|
|
75
160
|
}
|
|
76
|
-
|
|
161
|
+
let value = elm.nodeValue;
|
|
162
|
+
if (range.collapsed) {
|
|
163
|
+
if (elm === range.startContainer) {
|
|
164
|
+
value =
|
|
165
|
+
value.slice(0, range.startOffset) +
|
|
166
|
+
'%CURSOR%' +
|
|
167
|
+
value.slice(range.startOffset);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
if (elm === range.startContainer && elm === range.endContainer) {
|
|
172
|
+
value =
|
|
173
|
+
value.slice(0, range.startOffset) +
|
|
174
|
+
'%START-CURSOR%' +
|
|
175
|
+
value.slice(range.startOffset, range.endOffset) +
|
|
176
|
+
'%END-CURSOR%' +
|
|
177
|
+
value.slice(range.endOffset);
|
|
178
|
+
}
|
|
179
|
+
else if (elm === range.startContainer) {
|
|
180
|
+
value =
|
|
181
|
+
value.slice(0, range.startOffset) +
|
|
182
|
+
'%CURSOR%' +
|
|
183
|
+
value.slice(range.startOffset);
|
|
184
|
+
}
|
|
185
|
+
else if (elm === range.endContainer) {
|
|
186
|
+
value =
|
|
187
|
+
value.slice(0, range.endOffset) +
|
|
188
|
+
'%CURSOR%' +
|
|
189
|
+
value.slice(range.endOffset);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return (0,jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__/* .stripTags */ .K)(value.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), 'INV'))
|
|
193
|
+
.replace(/%CURSOR%/, '<span class="jodit-debug__tree-cursor">|</span>')
|
|
194
|
+
.replace(/%START-CURSOR%/, '<span class="jodit-debug__tree-cursor">|')
|
|
195
|
+
.replace(/%END-CURSOR%/, '|</span>');
|
|
77
196
|
}
|
|
78
|
-
function render(elm, level
|
|
79
|
-
|
|
80
|
-
|
|
197
|
+
function render(elm, level, range) {
|
|
198
|
+
var _a;
|
|
199
|
+
const isSelected = (_a = window.getSelection()) === null || _a === void 0 ? void 0 : _a.containsNode(elm);
|
|
200
|
+
const content = [
|
|
201
|
+
`<span class="jodit-debug__tree-elm-name">${elm.nodeName}</span>`,
|
|
202
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(elm) ? `- ${renderText(elm, range)}` : ''
|
|
203
|
+
]
|
|
204
|
+
.map(i => i.trim())
|
|
205
|
+
.filter(Boolean);
|
|
206
|
+
return `<div class="${isSelected ? 'jodit-debug__tree-element_selected' : ''}" style='padding-left: ${level * 5}px'>
|
|
207
|
+
${content.join(' ')}
|
|
81
208
|
${Array.from(elm.childNodes)
|
|
82
|
-
.map(
|
|
209
|
+
.map((ch, index) => {
|
|
210
|
+
const result = [];
|
|
211
|
+
if (range.startContainer === elm && index === range.startOffset) {
|
|
212
|
+
result.push('<span class="jodit-debug__tree-cursor">|</span>');
|
|
213
|
+
}
|
|
214
|
+
result.push(render(ch, level + 1, range));
|
|
215
|
+
if (range.endContainer === elm && index === range.endOffset) {
|
|
216
|
+
result.push('<span class="jodit-debug__tree-cursor">|</span>');
|
|
217
|
+
}
|
|
218
|
+
return result;
|
|
219
|
+
})
|
|
220
|
+
.flat()
|
|
83
221
|
.join('')}
|
|
84
222
|
</div>`;
|
|
85
223
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-debug{align-items:stretch;background:#f6f6f6;display:flex;justify-content:space-between;padding:0;position:relative}.jodit-debug>*{padding:var(--jd-padding-default)}.jodit-debug__tree{width:40%}.jodit-debug__tree .jodit-debug__tree-elm-name{color:#052e88}.jodit-debug__tree .jodit-debug__tree-element_selected{background:#1e7e34;color:#fff}.jodit-debug__tree .jodit-debug__tree-cursor{background:#dc3232;color:#fff}.jodit-debug__events{background:#1e7e34;color:#fff;max-height:500px;overflow:auto;width:40%}.jodit-debug__events span{color:#cacaca;font-size:.8em}.jodit-debug__events .jodit-debug__events-clear{color:red;cursor:pointer;padding:5px;position:absolute;right:0;top:0}
|
|
@@ -1,10 +1,10 @@
|
|
|
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.2.
|
|
4
|
+
* Version: v4.2.40
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
"use strict";!function(e,
|
|
10
|
+
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(self,(function(){return(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[486],{40773:function(e,t,n){n.r(t),n.d(t,{Debug:function(){return i}});var s=n(17352),o=n(55186),a=(n(56298),n(61793)),r=n(29866);class i extends r.k{afterInit(e){const t=e.create.div("jodit-debug"),n=e.create.div("jodit-debug__tree"),s=e.create.div("jodit-debug__events"),a=e.create.div("jodit-debug__events-clear",["x"]),r=e.create.div("jodit-debug__sel");function i(){const t=e.selection.range;n.innerHTML=c(e.editor,0,t),r.innerHTML=`start ${t.startContainer.nodeName} ${t.startOffset}<br>end ${t.endContainer.nodeName} ${t.endOffset}`}function d(t){const n=e.e.current,a=e.create.div();a.innerHTML=`<span>${(new Date).toLocaleTimeString()}</span> ${function(e,t){const n=[null!=e?e:t.type];switch(e){case"beforeCommand":case"afterCommand":n.push(`<span>${t.toString()}</span>`);break;case"keydown":case"keyup":case"keypress":t.shiftKey&&"Shift"!==t.key&&n.push("Shift+"),t.ctrlKey&&"Control"!==t.key&&n.push("Ctrl+"),t.altKey&&"Alt"!==t.key&&n.push("Alt"),n.push(`${t.key}`)}return t&&o.J.isNode(t.target)&&n.push(`<span>${t.target.nodeName}</span>`),n.join(" ")}(n,t)}`,s.appendChild(a),s.scrollTop=s.scrollHeight,e.async.setTimeout((()=>{s.children.length>100&&s.removeChild(s.children[0])}),100)}t.appendChild(n),t.appendChild(s),s.appendChild(a),t.appendChild(r),a.addEventListener("click",(()=>{s.innerHTML="",s.appendChild(a)})),e.workplace.appendChild(t),e.e.on("keydown keyup keypress change afterInit updateDebug",i).on(["activate","afterInit","beforeactivate","beforeblur","beforedeactivate","beforefocus","beforeinput","blur","change","click","compositionend","compositionstart","compositionupdate","contextmenu","copy","cut","dblclick","deactivate","focus","focusin","focusout","focusout","input","keydown","keypress","keyup","mousedown","mouseup","paste","selectionchange","selectionstart","dragstart","drop","dragover","resize touchstart touchend","updateDebug","beforeCommand","afterCommand","wheel"],d).on(e.od,"selectionchange",d).on(e.od,"selectionchange",i)}beforeDestruct(e){}}function d(e,t){if(!e.nodeValue)return"<span style='color:red'>empty</span>";let n=e.nodeValue;return t.collapsed?e===t.startContainer&&(n=n.slice(0,t.startOffset)+"%CURSOR%"+n.slice(t.startOffset)):e===t.startContainer&&e===t.endContainer?n=n.slice(0,t.startOffset)+"%START-CURSOR%"+n.slice(t.startOffset,t.endOffset)+"%END-CURSOR%"+n.slice(t.endOffset):e===t.startContainer?n=n.slice(0,t.startOffset)+"%CURSOR%"+n.slice(t.startOffset):e===t.endContainer&&(n=n.slice(0,t.endOffset)+"%CURSOR%"+n.slice(t.endOffset)),(0,a.K)(n.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"INV")).replace(/%CURSOR%/,'<span class="jodit-debug__tree-cursor">|</span>').replace(/%START-CURSOR%/,'<span class="jodit-debug__tree-cursor">|').replace(/%END-CURSOR%/,"|</span>")}function c(e,t,n){var s;const a=null===(s=window.getSelection())||void 0===s?void 0:s.containsNode(e),r=[`<span class="jodit-debug__tree-elm-name">${e.nodeName}</span>`,o.J.isText(e)?`- ${d(e,n)}`:""].map((e=>e.trim())).filter(Boolean);return`<div class="${a?"jodit-debug__tree-element_selected":""}" style='padding-left: ${5*t}px'>\n\t\t${r.join(" ")}\n\t${Array.from(e.childNodes).map(((s,o)=>{const a=[];return n.startContainer===e&&o===n.startOffset&&a.push('<span class="jodit-debug__tree-cursor">|</span>'),a.push(c(s,t+1,n)),n.endContainer===e&&o===n.endOffset&&a.push('<span class="jodit-debug__tree-cursor">|</span>'),a})).flat().join("")}\n</div>`}}},function(e){return e(e.s=40773)}])}));
|
package/es2021/jodit.css
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.2.
|
|
4
|
+
* Version: v4.2.40
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -3587,6 +3587,12 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
3587
3587
|
}
|
|
3588
3588
|
.jodit-tabs__button {
|
|
3589
3589
|
min-width: 80px;
|
|
3590
|
+
max-width: 210px;
|
|
3591
|
+
}
|
|
3592
|
+
.jodit-tabs__button .jodit-ui-button__text {
|
|
3593
|
+
white-space: nowrap;
|
|
3594
|
+
flex: 1;
|
|
3595
|
+
justify-content: space-around;
|
|
3590
3596
|
}
|
|
3591
3597
|
.jodit-tabs__button_columns_3 {
|
|
3592
3598
|
width: calc(100% / 3);
|