jodit 4.5.15 → 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/es2018/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.15
4
+ * Version: v4.5.17
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -8369,7 +8369,7 @@ __webpack_require__.r(__webpack_exports__);
8369
8369
  * Released under MIT see LICENSE.txt in the project root for license information.
8370
8370
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
8371
8371
  */
8372
- const APP_VERSION = "4.5.15";
8372
+ const APP_VERSION = "4.5.17";
8373
8373
  // prettier-ignore
8374
8374
  const ES = "es2018";
8375
8375
  const IS_ES_MODERN = true;
@@ -21479,8 +21479,9 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
21479
21479
  /** @override */
21480
21480
  afterInit(jodit) {
21481
21481
  if (jodit.o.link.followOnDblClick) {
21482
- jodit.e.on('dblclick.link', this.onDblClickOnLink);
21482
+ jodit.e.on('dblclick.link', this.__onDblClickOnLink);
21483
21483
  }
21484
+ jodit.e.on(jodit.editor, 'click.link', this.__onClickReadOnlyLink);
21484
21485
  if (jodit.o.link.processPastedLink) {
21485
21486
  jodit.e.on('processPaste.link', this.onProcessPasteLink);
21486
21487
  }
@@ -21504,7 +21505,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
21504
21505
  hotkeys: jodit.o.link.hotkeys
21505
21506
  });
21506
21507
  }
21507
- onDblClickOnLink(e) {
21508
+ __onDblClickOnLink(e) {
21508
21509
  if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(e.target, 'a')) {
21509
21510
  return;
21510
21511
  }
@@ -21686,19 +21687,31 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
21686
21687
  beforeDestruct(jodit) {
21687
21688
  jodit.e
21688
21689
  .off('generateLinkForm.link', this.__generateForm)
21689
- .off('dblclick.link', this.onDblClickOnLink)
21690
+ .off('dblclick.link', this.__onDblClickOnLink)
21691
+ .off(jodit.editor, 'click.link', this.__onClickReadOnlyLink)
21690
21692
  .off('processPaste.link', this.onProcessPasteLink);
21691
21693
  }
21694
+ __onClickReadOnlyLink(e) {
21695
+ const { jodit } = this;
21696
+ if (jodit.o.readonly &&
21697
+ jodit.o.link.preventReadOnlyNavigation &&
21698
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(e.target, 'a')) {
21699
+ e.preventDefault();
21700
+ }
21701
+ }
21692
21702
  }
21693
21703
  (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
21694
21704
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
21695
- ], link.prototype, "onDblClickOnLink", null);
21705
+ ], link.prototype, "__onDblClickOnLink", null);
21696
21706
  (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
21697
21707
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
21698
21708
  ], link.prototype, "onProcessPasteLink", null);
21699
21709
  (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
21700
21710
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
21701
21711
  ], link.prototype, "__generateForm", null);
21712
+ (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
21713
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
21714
+ ], link.prototype, "__onClickReadOnlyLink", null);
21702
21715
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
21703
21716
  function writeClasses(modeClassName, className_input, className_select, a) {
21704
21717
  var _a;
@@ -29590,6 +29603,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
29590
29603
  openInNewTabCheckbox: true,
29591
29604
  modeClassName: 'input',
29592
29605
  selectMultipleClassName: true,
29606
+ preventReadOnlyNavigation: true,
29593
29607
  selectSizeClassName: 3,
29594
29608
  selectOptionsClassName: [],
29595
29609
  hotkeys: ['ctrl+k', 'cmd+k']