jodit 4.5.16 → 4.5.17
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 +15 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +20 -6
- package/es2015/jodit.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +20 -6
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- 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 +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +20 -6
- package/es2021/jodit.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +20 -6
- package/es2021.en/jodit.min.js +2 -2
- 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/415.fat.min.js +1 -1
- package/es5/415.min.js +1 -1
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +20 -6
- 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/esm/config.d.ts +4 -0
- package/esm/core/constants.js +1 -1
- package/esm/plugins/link/config.d.ts +4 -0
- package/esm/plugins/link/config.js +1 -0
- package/esm/plugins/link/link.d.ts +2 -1
- package/esm/plugins/link/link.js +17 -4
- package/package.json +1 -1
- package/types/config.d.ts +4 -0
- package/types/plugins/link/config.d.ts +4 -0
- package/types/plugins/link/link.d.ts +2 -1
package/es2015/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.5.
|
|
4
|
+
* Version: v4.5.17
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -8359,7 +8359,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8359
8359
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8360
8360
|
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8361
8361
|
*/
|
|
8362
|
-
const APP_VERSION = "4.5.
|
|
8362
|
+
const APP_VERSION = "4.5.17";
|
|
8363
8363
|
// prettier-ignore
|
|
8364
8364
|
const ES = "es2015";
|
|
8365
8365
|
const IS_ES_MODERN = true;
|
|
@@ -21453,8 +21453,9 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
21453
21453
|
/** @override */
|
|
21454
21454
|
afterInit(jodit) {
|
|
21455
21455
|
if (jodit.o.link.followOnDblClick) {
|
|
21456
|
-
jodit.e.on('dblclick.link', this.
|
|
21456
|
+
jodit.e.on('dblclick.link', this.__onDblClickOnLink);
|
|
21457
21457
|
}
|
|
21458
|
+
jodit.e.on(jodit.editor, 'click.link', this.__onClickReadOnlyLink);
|
|
21458
21459
|
if (jodit.o.link.processPastedLink) {
|
|
21459
21460
|
jodit.e.on('processPaste.link', this.onProcessPasteLink);
|
|
21460
21461
|
}
|
|
@@ -21478,7 +21479,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
21478
21479
|
hotkeys: jodit.o.link.hotkeys
|
|
21479
21480
|
});
|
|
21480
21481
|
}
|
|
21481
|
-
|
|
21482
|
+
__onDblClickOnLink(e) {
|
|
21482
21483
|
if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(e.target, 'a')) {
|
|
21483
21484
|
return;
|
|
21484
21485
|
}
|
|
@@ -21660,19 +21661,31 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
|
|
|
21660
21661
|
beforeDestruct(jodit) {
|
|
21661
21662
|
jodit.e
|
|
21662
21663
|
.off('generateLinkForm.link', this.__generateForm)
|
|
21663
|
-
.off('dblclick.link', this.
|
|
21664
|
+
.off('dblclick.link', this.__onDblClickOnLink)
|
|
21665
|
+
.off(jodit.editor, 'click.link', this.__onClickReadOnlyLink)
|
|
21664
21666
|
.off('processPaste.link', this.onProcessPasteLink);
|
|
21665
21667
|
}
|
|
21668
|
+
__onClickReadOnlyLink(e) {
|
|
21669
|
+
const { jodit } = this;
|
|
21670
|
+
if (jodit.o.readonly &&
|
|
21671
|
+
jodit.o.link.preventReadOnlyNavigation &&
|
|
21672
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(e.target, 'a')) {
|
|
21673
|
+
e.preventDefault();
|
|
21674
|
+
}
|
|
21675
|
+
}
|
|
21666
21676
|
}
|
|
21667
21677
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
21668
21678
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
21669
|
-
], link.prototype, "
|
|
21679
|
+
], link.prototype, "__onDblClickOnLink", null);
|
|
21670
21680
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
21671
21681
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
21672
21682
|
], link.prototype, "onProcessPasteLink", null);
|
|
21673
21683
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
21674
21684
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
21675
21685
|
], link.prototype, "__generateForm", null);
|
|
21686
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
21687
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
21688
|
+
], link.prototype, "__onClickReadOnlyLink", null);
|
|
21676
21689
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
|
|
21677
21690
|
function writeClasses(modeClassName, className_input, className_select, a) {
|
|
21678
21691
|
var _a;
|
|
@@ -29539,6 +29552,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
|
|
|
29539
29552
|
openInNewTabCheckbox: true,
|
|
29540
29553
|
modeClassName: 'input',
|
|
29541
29554
|
selectMultipleClassName: true,
|
|
29555
|
+
preventReadOnlyNavigation: true,
|
|
29542
29556
|
selectSizeClassName: 3,
|
|
29543
29557
|
selectOptionsClassName: [],
|
|
29544
29558
|
hotkeys: ['ctrl+k', 'cmd+k']
|