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.
Files changed (66) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +20 -6
  5. package/es2015/jodit.min.js +2 -2
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.css +1 -1
  13. package/es2018/jodit.fat.min.js +2 -2
  14. package/es2018/jodit.js +20 -6
  15. package/es2018/jodit.min.js +2 -2
  16. package/es2018/plugins/debug/debug.css +1 -1
  17. package/es2018/plugins/debug/debug.js +1 -1
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  22. package/es2021/jodit.css +1 -1
  23. package/es2021/jodit.fat.min.js +2 -2
  24. package/es2021/jodit.js +20 -6
  25. package/es2021/jodit.min.js +2 -2
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +1 -1
  33. package/es2021.en/jodit.fat.min.js +2 -2
  34. package/es2021.en/jodit.js +20 -6
  35. package/es2021.en/jodit.min.js +2 -2
  36. package/es2021.en/plugins/debug/debug.css +1 -1
  37. package/es2021.en/plugins/debug/debug.js +1 -1
  38. package/es2021.en/plugins/debug/debug.min.js +1 -1
  39. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  40. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  42. package/es5/415.fat.min.js +1 -1
  43. package/es5/415.min.js +1 -1
  44. package/es5/5.fat.min.js +1 -1
  45. package/es5/5.min.js +1 -1
  46. package/es5/jodit.css +2 -2
  47. package/es5/jodit.fat.min.js +2 -2
  48. package/es5/jodit.js +20 -6
  49. package/es5/jodit.min.css +2 -2
  50. package/es5/jodit.min.js +2 -2
  51. package/es5/plugins/debug/debug.css +1 -1
  52. package/es5/plugins/debug/debug.js +1 -1
  53. package/es5/plugins/debug/debug.min.js +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  57. package/esm/config.d.ts +4 -0
  58. package/esm/core/constants.js +1 -1
  59. package/esm/plugins/link/config.d.ts +4 -0
  60. package/esm/plugins/link/config.js +1 -0
  61. package/esm/plugins/link/link.d.ts +2 -1
  62. package/esm/plugins/link/link.js +17 -4
  63. package/package.json +1 -1
  64. package/types/config.d.ts +4 -0
  65. package/types/plugins/link/config.d.ts +4 -0
  66. package/types/plugins/link/link.d.ts +2 -1
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.5.16
4
+ * Version: v4.5.17
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -8755,7 +8755,7 @@ __webpack_require__.r(__webpack_exports__);
8755
8755
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
8756
8756
  */
8757
8757
 
8758
- var APP_VERSION = "4.5.16";
8758
+ var APP_VERSION = "4.5.17";
8759
8759
  // prettier-ignore
8760
8760
  var ES = "es5";
8761
8761
  var IS_ES_MODERN = false;
@@ -22239,8 +22239,9 @@ var link = /** @class */ (function (_super) {
22239
22239
  link.prototype.afterInit = function (jodit) {
22240
22240
  var _this = this;
22241
22241
  if (jodit.o.link.followOnDblClick) {
22242
- jodit.e.on('dblclick.link', this.onDblClickOnLink);
22242
+ jodit.e.on('dblclick.link', this.__onDblClickOnLink);
22243
22243
  }
22244
+ jodit.e.on(jodit.editor, 'click.link', this.__onClickReadOnlyLink);
22244
22245
  if (jodit.o.link.processPastedLink) {
22245
22246
  jodit.e.on('processPaste.link', this.onProcessPasteLink);
22246
22247
  }
@@ -22264,7 +22265,7 @@ var link = /** @class */ (function (_super) {
22264
22265
  hotkeys: jodit.o.link.hotkeys
22265
22266
  });
22266
22267
  };
22267
- link.prototype.onDblClickOnLink = function (e) {
22268
+ link.prototype.__onDblClickOnLink = function (e) {
22268
22269
  if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(e.target, 'a')) {
22269
22270
  return;
22270
22271
  }
@@ -22448,18 +22449,30 @@ var link = /** @class */ (function (_super) {
22448
22449
  link.prototype.beforeDestruct = function (jodit) {
22449
22450
  jodit.e
22450
22451
  .off('generateLinkForm.link', this.__generateForm)
22451
- .off('dblclick.link', this.onDblClickOnLink)
22452
+ .off('dblclick.link', this.__onDblClickOnLink)
22453
+ .off(jodit.editor, 'click.link', this.__onClickReadOnlyLink)
22452
22454
  .off('processPaste.link', this.onProcessPasteLink);
22453
22455
  };
22456
+ link.prototype.__onClickReadOnlyLink = function (e) {
22457
+ var jodit = this.jodit;
22458
+ if (jodit.o.readonly &&
22459
+ jodit.o.link.preventReadOnlyNavigation &&
22460
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(e.target, 'a')) {
22461
+ e.preventDefault();
22462
+ }
22463
+ };
22454
22464
  (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
22455
22465
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
22456
- ], link.prototype, "onDblClickOnLink", null);
22466
+ ], link.prototype, "__onDblClickOnLink", null);
22457
22467
  (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
22458
22468
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
22459
22469
  ], link.prototype, "onProcessPasteLink", null);
22460
22470
  (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
22461
22471
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
22462
22472
  ], link.prototype, "__generateForm", null);
22473
+ (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
22474
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
22475
+ ], link.prototype, "__onClickReadOnlyLink", null);
22463
22476
  return link;
22464
22477
  }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .k));
22465
22478
 
@@ -30663,6 +30676,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
30663
30676
  openInNewTabCheckbox: true,
30664
30677
  modeClassName: 'input',
30665
30678
  selectMultipleClassName: true,
30679
+ preventReadOnlyNavigation: true,
30666
30680
  selectSizeClassName: 3,
30667
30681
  selectOptionsClassName: [],
30668
30682
  hotkeys: ['ctrl+k', 'cmd+k']
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.5.16
4
+ * Version: v4.5.17
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.5.16
11
+ * Version: v4.5.17
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */