jodit 4.20.4 → 4.20.5
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 +8 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +4 -4
- package/es2015/jodit.js +72 -27
- package/es2015/jodit.min.js +4 -4
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- 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.fat.min.js +4 -4
- package/es2018/jodit.min.js +4 -4
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +4 -4
- package/es2021/jodit.js +72 -27
- package/es2021/jodit.min.js +4 -4
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +6 -6
- package/es2021.en/jodit.js +72 -27
- package/es2021.en/jodit.min.js +4 -4
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- 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/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +93 -26
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- 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/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.d.ts +2 -0
- package/esm/core/constants.js +1 -1
- package/esm/plugins/clean-html/clean-html.d.ts +1 -0
- package/esm/plugins/clean-html/clean-html.js +15 -0
- package/esm/plugins/file/file.js +12 -1
- package/esm/plugins/link/config.d.ts +2 -0
- package/esm/plugins/link/config.js +1 -0
- package/esm/plugins/link/link.js +49 -23
- package/esm/plugins/link/template.js +4 -4
- package/package.json +1 -1
- package/types/config.d.ts +2 -0
- package/types/plugins/clean-html/clean-html.d.ts +1 -0
- package/types/plugins/link/config.d.ts +2 -0
package/es5/jodit.js
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.20.
|
|
4
|
+
* Version: v4.20.5
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -2155,7 +2155,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2155
2155
|
* @packageDocumentation
|
|
2156
2156
|
* @module constants
|
|
2157
2157
|
*/
|
|
2158
|
-
var APP_VERSION = "4.20.
|
|
2158
|
+
var APP_VERSION = "4.20.5";
|
|
2159
2159
|
// prettier-ignore
|
|
2160
2160
|
var ES = "es5";
|
|
2161
2161
|
var IS_ES_MODERN = false;
|
|
@@ -37965,7 +37965,7 @@ var cleanHtml = /*#__PURE__*/ function(Plugin) {
|
|
|
37965
37965
|
// markup out of the live tree have to be there from the start, or
|
|
37966
37966
|
// event handlers in a textarea's content run before anything
|
|
37967
37967
|
// sanitises them.
|
|
37968
|
-
jodit.e.on('safeHTML', _this.onSafeHTML).on('beforeSetNativeEditorValue', _this.onBeforeSetNativeEditorValue).on('afterSetNativeEditorValue', _this.onAfterSetNativeEditorValue);
|
|
37968
|
+
jodit.e.on('safeHTML', _this.onSafeHTML).on('cleanHTML', _this.onCleanHTML).on('beforeSetNativeEditorValue', _this.onBeforeSetNativeEditorValue).on('afterSetNativeEditorValue', _this.onAfterSetNativeEditorValue);
|
|
37969
37969
|
return _this;
|
|
37970
37970
|
}
|
|
37971
37971
|
;(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(cleanHtml, [
|
|
@@ -38183,10 +38183,40 @@ var cleanHtml = /*#__PURE__*/ function(Plugin) {
|
|
|
38183
38183
|
;(0,jodit_core_helpers_html_safe_html__WEBPACK_IMPORTED_MODULE_13__.safeHTML)(sandBox, this.j.o.cleanHTML);
|
|
38184
38184
|
}
|
|
38185
38185
|
},
|
|
38186
|
+
{
|
|
38187
|
+
key: "onCleanHTML",
|
|
38188
|
+
value: function onCleanHTML(sandBox) {
|
|
38189
|
+
var allow = (0,_helpers__WEBPACK_IMPORTED_MODULE_17__.getHash)(this.j.o.cleanHTML.allowTags);
|
|
38190
|
+
var deny = (0,_helpers__WEBPACK_IMPORTED_MODULE_17__.getHash)(this.j.o.cleanHTML.denyTags);
|
|
38191
|
+
var nodes = Array.from(sandBox.querySelectorAll('*'));
|
|
38192
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
38193
|
+
try {
|
|
38194
|
+
for(var _iterator = nodes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
38195
|
+
var node = _step.value;
|
|
38196
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_10__.Dom.isOrContains(sandBox, node)) {
|
|
38197
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_17__.visitNodeWalker)(this.j, node, allow, deny, null);
|
|
38198
|
+
}
|
|
38199
|
+
}
|
|
38200
|
+
} catch (err) {
|
|
38201
|
+
_didIteratorError = true;
|
|
38202
|
+
_iteratorError = err;
|
|
38203
|
+
} finally{
|
|
38204
|
+
try {
|
|
38205
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
38206
|
+
_iterator.return();
|
|
38207
|
+
}
|
|
38208
|
+
} finally{
|
|
38209
|
+
if (_didIteratorError) {
|
|
38210
|
+
throw _iteratorError;
|
|
38211
|
+
}
|
|
38212
|
+
}
|
|
38213
|
+
}
|
|
38214
|
+
}
|
|
38215
|
+
},
|
|
38186
38216
|
{
|
|
38187
38217
|
key: "beforeDestruct",
|
|
38188
38218
|
value: /** @override */ function beforeDestruct() {
|
|
38189
|
-
this.j.e.off('safeHTML', this.onSafeHTML).off('beforeSetNativeEditorValue', this.onBeforeSetNativeEditorValue).off('afterSetNativeEditorValue', this.onAfterSetNativeEditorValue);
|
|
38219
|
+
this.j.e.off('safeHTML', this.onSafeHTML).off('cleanHTML', this.onCleanHTML).off('beforeSetNativeEditorValue', this.onBeforeSetNativeEditorValue).off('afterSetNativeEditorValue', this.onAfterSetNativeEditorValue);
|
|
38190
38220
|
this.walker.destruct();
|
|
38191
38221
|
}
|
|
38192
38222
|
}
|
|
@@ -38226,6 +38256,9 @@ var cleanHtml = /*#__PURE__*/ function(Plugin) {
|
|
|
38226
38256
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__._)([
|
|
38227
38257
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_9__.autobind
|
|
38228
38258
|
], cleanHtml.prototype, "onSafeHTML", null);
|
|
38259
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__._)([
|
|
38260
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_9__.autobind
|
|
38261
|
+
], cleanHtml.prototype, "onCleanHTML", null);
|
|
38229
38262
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_12__.pluginSystem.add('cleanHtml', cleanHtml);
|
|
38230
38263
|
|
|
38231
38264
|
|
|
@@ -42477,11 +42510,22 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.file = {
|
|
|
42477
42510
|
var restoreSelection = function restoreSelection() {
|
|
42478
42511
|
if (selected) {
|
|
42479
42512
|
editor.s.selectRange(selected);
|
|
42513
|
+
selected = null;
|
|
42480
42514
|
}
|
|
42481
42515
|
};
|
|
42482
42516
|
var insert = function insert(url) {
|
|
42483
42517
|
var title = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
|
|
42484
42518
|
restoreSelection();
|
|
42519
|
+
if (sourceAnchor && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(editor.editor, sourceAnchor)) {
|
|
42520
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(sourceAnchor, 'href', url);
|
|
42521
|
+
if (title) {
|
|
42522
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(sourceAnchor, 'title', title);
|
|
42523
|
+
}
|
|
42524
|
+
editor.s.setCursorAfter(sourceAnchor);
|
|
42525
|
+
sourceAnchor = null;
|
|
42526
|
+
editor.synchronizeValues();
|
|
42527
|
+
return;
|
|
42528
|
+
}
|
|
42485
42529
|
if (wrapSelectionInLink(editor, url, title)) {
|
|
42486
42530
|
return;
|
|
42487
42531
|
}
|
|
@@ -50323,6 +50367,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_9__.pluginSystem.add('lineHeight', li
|
|
|
50323
50367
|
|
|
50324
50368
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.link = {
|
|
50325
50369
|
formTemplate: jodit_plugins_link_template__WEBPACK_IMPORTED_MODULE_5__.formTemplate,
|
|
50370
|
+
contentMode: 'text',
|
|
50326
50371
|
followOnDblClick: false,
|
|
50327
50372
|
processVideoLink: true,
|
|
50328
50373
|
processPastedLink: true,
|
|
@@ -50552,7 +50597,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50552
50597
|
value: function __generateForm(current, close) {
|
|
50553
50598
|
var jodit = this.jodit;
|
|
50554
50599
|
var i18n = jodit.i18n.bind(jodit);
|
|
50555
|
-
var _jodit_o_link = jodit.o.link, openInNewTabCheckbox = _jodit_o_link.openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked = _jodit_o_link.openInNewTabCheckboxDefaultChecked, noFollowCheckbox = _jodit_o_link.noFollowCheckbox, formTemplate = _jodit_o_link.formTemplate, formClassName = _jodit_o_link.formClassName, modeClassName = _jodit_o_link.modeClassName;
|
|
50600
|
+
var _jodit_o_link = jodit.o.link, openInNewTabCheckbox = _jodit_o_link.openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked = _jodit_o_link.openInNewTabCheckboxDefaultChecked, noFollowCheckbox = _jodit_o_link.noFollowCheckbox, formTemplate = _jodit_o_link.formTemplate, formClassName = _jodit_o_link.formClassName, modeClassName = _jodit_o_link.modeClassName, contentMode = _jodit_o_link.contentMode;
|
|
50556
50601
|
var html = formTemplate(jodit);
|
|
50557
50602
|
var form = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.isString)(html) ? jodit.c.fromHTML(html, {
|
|
50558
50603
|
target_checkbox_box: openInNewTabCheckbox,
|
|
@@ -50563,7 +50608,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50563
50608
|
var insert = elements.insert, unlink = elements.unlink, content_input_box = elements.content_input_box;
|
|
50564
50609
|
var target_checkbox = elements.target_checkbox, nofollow_checkbox = elements.nofollow_checkbox, url_input = elements.url_input;
|
|
50565
50610
|
var currentElement = current;
|
|
50566
|
-
var isImageContent = jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.isImage(currentElement);
|
|
50611
|
+
var isImageContent = contentMode !== 'html' && jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.isImage(currentElement);
|
|
50567
50612
|
var content_input = elements.content_input;
|
|
50568
50613
|
var className_input = elements.className_input, className_select = elements.className_select, aria_label_input = elements.aria_label_input;
|
|
50569
50614
|
if (!content_input) {
|
|
@@ -50579,7 +50624,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50579
50624
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.hide(content_input_box);
|
|
50580
50625
|
}
|
|
50581
50626
|
var _$link;
|
|
50582
|
-
var
|
|
50627
|
+
var getSelectionContent = function getSelectionContent() {
|
|
50628
|
+
if (contentMode === 'html') {
|
|
50629
|
+
return _$link ? _$link.innerHTML : jodit.s.html;
|
|
50630
|
+
}
|
|
50583
50631
|
return _$link ? _$link.innerText : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.stripTags)(jodit.s.range.cloneContents(), jodit.ed);
|
|
50584
50632
|
};
|
|
50585
50633
|
if (current && jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.closest(current, 'a', jodit.editor)) {
|
|
@@ -50588,8 +50636,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50588
50636
|
_$link = false;
|
|
50589
50637
|
}
|
|
50590
50638
|
if (!isImageContent && current) {
|
|
50591
|
-
content_input.value =
|
|
50639
|
+
content_input.value = getSelectionContent();
|
|
50592
50640
|
}
|
|
50641
|
+
var initialContent = content_input.value;
|
|
50593
50642
|
if (aria_label_input) {
|
|
50594
50643
|
aria_label_input.value = _$link ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.attr)(_$link, 'aria-label') || '' : '';
|
|
50595
50644
|
}
|
|
@@ -50608,7 +50657,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50608
50657
|
} else {
|
|
50609
50658
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.hide(unlink);
|
|
50610
50659
|
if (jodit.o.link.deriveUrlFromText && url_input && !isImageContent && !url_input.value.trim()) {
|
|
50611
|
-
url_input.value = guessUrlFromText(content_input.value);
|
|
50660
|
+
url_input.value = guessUrlFromText(contentMode === 'html' ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.stripTags)(content_input.value, jodit.ed) : content_input.value);
|
|
50612
50661
|
}
|
|
50613
50662
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
50614
50663
|
target_checkbox.checked = openInNewTabCheckboxDefaultChecked;
|
|
@@ -50640,7 +50689,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50640
50689
|
jodit.s.removeMarkers();
|
|
50641
50690
|
jodit.editor.normalize();
|
|
50642
50691
|
jodit.history.snapshot.restore(snapshot);
|
|
50643
|
-
var
|
|
50692
|
+
var contentWasChanged = initialContent !== content_input.value;
|
|
50644
50693
|
var ci = jodit.createInside;
|
|
50645
50694
|
var caretAfter = null;
|
|
50646
50695
|
if (!_$link || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.isOrContains(jodit.editor, _$link)) {
|
|
@@ -50673,7 +50722,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
50673
50722
|
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.attr)(a, 'href', url_input.value);
|
|
50674
50723
|
writeClasses(modeClassName, className_input, className_select, a);
|
|
50675
50724
|
if (!isImageContent) {
|
|
50676
|
-
|
|
50725
|
+
writeContent(jodit, a, content_input.value, contentWasChanged, url_input.value, contentMode);
|
|
50677
50726
|
}
|
|
50678
50727
|
if (openInNewTabCheckbox && target_checkbox) {
|
|
50679
50728
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
|
|
@@ -50968,7 +51017,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_12__.pluginSystem.add('link', link);
|
|
|
50968
51017
|
dropdown.close();
|
|
50969
51018
|
url.value = '#' + name;
|
|
50970
51019
|
if (!isImage && (!content.value.trim() || content.value === filled)) {
|
|
50971
|
-
content.value = filled = text;
|
|
51020
|
+
content.value = filled = jodit.o.link.contentMode === 'html' ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.htmlspecialchars)(text) : text;
|
|
50972
51021
|
}
|
|
50973
51022
|
url.focus();
|
|
50974
51023
|
});
|
|
@@ -51113,19 +51162,37 @@ function readClassnames(modeClassName, className_input, link, className_select)
|
|
|
51113
51162
|
break;
|
|
51114
51163
|
}
|
|
51115
51164
|
}
|
|
51116
|
-
function
|
|
51117
|
-
|
|
51118
|
-
|
|
51119
|
-
if (textWasChanged) {
|
|
51120
|
-
newContent = content_input.value;
|
|
51121
|
-
}
|
|
51122
|
-
} else {
|
|
51123
|
-
newContent = url_input.value;
|
|
51165
|
+
function writeContent(editor, anchor, value, changed, url, mode) {
|
|
51166
|
+
if (!changed && anchor.hasChildNodes()) {
|
|
51167
|
+
return;
|
|
51124
51168
|
}
|
|
51125
|
-
|
|
51126
|
-
|
|
51127
|
-
|
|
51169
|
+
if (mode === 'text' || !value.trim()) {
|
|
51170
|
+
anchor.textContent = value.trim() ? value : url;
|
|
51171
|
+
return;
|
|
51128
51172
|
}
|
|
51173
|
+
var sandboxDocument = editor.od.implementation.createHTMLDocument('');
|
|
51174
|
+
var sandbox = sandboxDocument.createElement('div');
|
|
51175
|
+
sandbox.innerHTML = value;
|
|
51176
|
+
editor.e.fire('safeHTML', sandbox);
|
|
51177
|
+
sanitizeLinkHTML(sandbox);
|
|
51178
|
+
sandboxDocument.body.appendChild(sandbox);
|
|
51179
|
+
editor.e.fire('cleanHTML', sandbox);
|
|
51180
|
+
sanitizeLinkHTML(sandbox);
|
|
51181
|
+
sandbox.querySelectorAll('a').forEach(function(link) {
|
|
51182
|
+
return jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.unwrap(link);
|
|
51183
|
+
});
|
|
51184
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.detach(anchor);
|
|
51185
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.moveContent(sandbox, anchor);
|
|
51186
|
+
}
|
|
51187
|
+
function sanitizeLinkHTML(sandbox) {
|
|
51188
|
+
sandbox.querySelectorAll('script,style,iframe,frame,frameset,object,embed,base,link,meta,template').forEach(function(node) {
|
|
51189
|
+
return jodit_core_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.safeRemove(node);
|
|
51190
|
+
});
|
|
51191
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_13__.safeHTML)(sandbox, {
|
|
51192
|
+
removeEventAttributes: true,
|
|
51193
|
+
removeOnError: true,
|
|
51194
|
+
safeJavaScriptLink: true
|
|
51195
|
+
});
|
|
51129
51196
|
}
|
|
51130
51197
|
|
|
51131
51198
|
|
|
@@ -51149,7 +51216,7 @@ function writeImage(a, content_input, textWasChanged, url_input) {
|
|
|
51149
51216
|
*/
|
|
51150
51217
|
|
|
51151
51218
|
var formTemplate = function formTemplate(editor) {
|
|
51152
|
-
var _editor_o_link = editor.o.link, openInNewTabCheckbox = _editor_o_link.openInNewTabCheckbox, noFollowCheckbox = _editor_o_link.noFollowCheckbox, ariaLabelInput = _editor_o_link.ariaLabelInput, modeClassName = _editor_o_link.modeClassName, selectSizeClassName = _editor_o_link.selectSizeClassName, selectMultipleClassName = _editor_o_link.selectMultipleClassName, selectOptionsClassName = _editor_o_link.selectOptionsClassName;
|
|
51219
|
+
var _editor_o_link = editor.o.link, openInNewTabCheckbox = _editor_o_link.openInNewTabCheckbox, noFollowCheckbox = _editor_o_link.noFollowCheckbox, ariaLabelInput = _editor_o_link.ariaLabelInput, modeClassName = _editor_o_link.modeClassName, contentMode = _editor_o_link.contentMode, selectSizeClassName = _editor_o_link.selectSizeClassName, selectMultipleClassName = _editor_o_link.selectMultipleClassName, selectOptionsClassName = _editor_o_link.selectOptionsClassName;
|
|
51153
51220
|
return new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIForm(editor, [
|
|
51154
51221
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
51155
51222
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
@@ -51171,10 +51238,10 @@ var formTemplate = function formTemplate(editor) {
|
|
|
51171
51238
|
})
|
|
51172
51239
|
]) : null,
|
|
51173
51240
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
51174
|
-
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
51241
|
+
new (contentMode === 'html' ? jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UITextArea : jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIInput)(editor, {
|
|
51175
51242
|
name: 'content',
|
|
51176
51243
|
ref: 'content_input',
|
|
51177
|
-
label: 'Text'
|
|
51244
|
+
label: contentMode === 'html' ? 'HTML' : 'Text'
|
|
51178
51245
|
})
|
|
51179
51246
|
], {
|
|
51180
51247
|
ref: 'content_input_box'
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.20.
|
|
4
|
+
* Version: v4.20.5
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.20.
|
|
11
|
+
* Version: v4.20.5
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|