jodit 4.0.0-beta.91 → 4.0.0-beta.94

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 (87) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +36 -5
  3. package/README.md +7 -7
  4. package/es2015/jodit.css +1 -1
  5. package/es2015/jodit.fat.min.js +2 -2
  6. package/es2015/jodit.js +20 -10
  7. package/es2015/jodit.min.js +2 -2
  8. package/es2015/plugins/debug/debug.js +1 -1
  9. package/es2015/plugins/debug/debug.min.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  13. package/es2018/jodit.css +1 -1
  14. package/es2018/jodit.fat.min.js +2 -2
  15. package/es2018/jodit.js +20 -10
  16. package/es2018/jodit.min.js +2 -2
  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 -10
  25. package/es2021/jodit.min.js +2 -2
  26. package/es2021/plugins/debug/debug.js +1 -1
  27. package/es2021/plugins/debug/debug.min.js +1 -1
  28. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  31. package/es2021.en/jodit.css +1 -1
  32. package/es2021.en/jodit.fat.min.js +2 -2
  33. package/es2021.en/jodit.js +20 -10
  34. package/es2021.en/jodit.min.js +2 -2
  35. package/es2021.en/plugins/debug/debug.js +1 -1
  36. package/es2021.en/plugins/debug/debug.min.js +1 -1
  37. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  38. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  39. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  40. package/es5/jodit.css +2 -2
  41. package/es5/jodit.fat.min.js +2 -2
  42. package/es5/jodit.js +39839 -39828
  43. package/es5/jodit.min.css +2 -2
  44. package/es5/jodit.min.js +2 -2
  45. package/es5/plugins/debug/debug.js +1 -1
  46. package/es5/plugins/debug/debug.min.js +1 -1
  47. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  48. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  49. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  50. package/esm/core/constants.js +1 -1
  51. package/esm/core/selection/selection.js +14 -5
  52. package/esm/modules/image-editor/config.js +2 -2
  53. package/esm/modules/uploader/helpers/build-data.js +3 -2
  54. package/esm/modules/widget/color-picker/color-picker.js +1 -1
  55. package/esm/plugins/about/about.js +1 -1
  56. package/esm/plugins/add-new-line/config.js +1 -1
  57. package/esm/plugins/bold/bold.js +6 -6
  58. package/esm/plugins/class-span/class-span.js +1 -1
  59. package/esm/plugins/clean-html/config.js +1 -1
  60. package/esm/plugins/clipboard/config.js +4 -4
  61. package/esm/plugins/color/config.js +1 -1
  62. package/esm/plugins/copy-format/copy-format.js +1 -1
  63. package/esm/plugins/font/config.js +2 -2
  64. package/esm/plugins/format-block/config.js +1 -1
  65. package/esm/plugins/fullsize/config.js +2 -2
  66. package/esm/plugins/hr/hr.js +1 -1
  67. package/esm/plugins/image/image.js +1 -1
  68. package/esm/plugins/indent/config.js +2 -2
  69. package/esm/plugins/index.js +3 -0
  70. package/esm/plugins/justify/justify.js +1 -1
  71. package/esm/plugins/line-height/config.js +1 -1
  72. package/esm/plugins/link/config.js +2 -2
  73. package/esm/plugins/ordered-list/config.js +2 -2
  74. package/esm/plugins/print/print.js +1 -1
  75. package/esm/plugins/redo-undo/redo-undo.js +2 -2
  76. package/esm/plugins/search/config.js +1 -1
  77. package/esm/plugins/source/config.js +1 -1
  78. package/esm/plugins/speech-recognize/config.js +1 -1
  79. package/esm/plugins/spellcheck/config.js +1 -1
  80. package/esm/plugins/symbols/config.js +1 -1
  81. package/esm/plugins/table/config.js +1 -1
  82. package/esm/plugins/video/config.js +1 -1
  83. package/esm/plugins/wrap-nodes/wrap-nodes.js +2 -2
  84. package/esm/styles/icons/index.d.ts +27 -27
  85. package/esm/styles/icons/index.js +27 -27
  86. package/package.json +1 -1
  87. package/types/styles/icons/index.d.ts +27 -27
package/es2018/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.0.0-beta.91
4
+ * Version: v4.0.0-beta.94
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1715,7 +1715,7 @@ __webpack_require__.r(__webpack_exports__);
1715
1715
  * Released under MIT see LICENSE.txt in the project root for license information.
1716
1716
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1717
1717
  */
1718
- const APP_VERSION = "4.0.0-beta.91";
1718
+ const APP_VERSION = "4.0.0-beta.94";
1719
1719
  // prettier-ignore
1720
1720
  const ES = "es2018";
1721
1721
  const IS_ES_MODERN = true;
@@ -10734,7 +10734,7 @@ class Selection {
10734
10734
  const range = this.createRange();
10735
10735
  let start = node, last = node;
10736
10736
  do {
10737
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(start)) {
10737
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(start) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(start, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
10738
10738
  break;
10739
10739
  }
10740
10740
  last = start;
@@ -10742,7 +10742,7 @@ class Selection {
10742
10742
  } while (start);
10743
10743
  if (!start) {
10744
10744
  const fakeNode = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
10745
- if (!/^(img|br|input)$/i.test(last.nodeName)) {
10745
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(last, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
10746
10746
  last.appendChild(fakeNode);
10747
10747
  last = fakeNode;
10748
10748
  }
@@ -10750,8 +10750,17 @@ class Selection {
10750
10750
  start = last;
10751
10751
  }
10752
10752
  }
10753
- range.selectNodeContents(start || last);
10754
- range.collapse(inStart);
10753
+ const workElm = start || last;
10754
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(workElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
10755
+ range.selectNodeContents(workElm);
10756
+ range.collapse(inStart);
10757
+ }
10758
+ else {
10759
+ inStart || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(workElm, 'br')
10760
+ ? range.setStartBefore(workElm)
10761
+ : range.setEndAfter(workElm);
10762
+ range.collapse(inStart);
10763
+ }
10755
10764
  this.selectRange(range);
10756
10765
  return last;
10757
10766
  }
@@ -23729,8 +23738,9 @@ function buildData(uploader, data) {
23729
23738
  return data;
23730
23739
  }
23731
23740
  const newData = new FD();
23732
- Object.keys(data).forEach(key => {
23733
- newData.append(key, data[key]);
23741
+ const dict = data;
23742
+ Object.keys(dict).forEach(key => {
23743
+ newData.append(key, dict[key]);
23734
23744
  });
23735
23745
  return newData;
23736
23746
  }
@@ -40998,10 +41008,10 @@ class wrapNodes extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin
40998
41008
  return;
40999
41009
  }
41000
41010
  jodit.e
41001
- .on('drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn', this.preprocessInput, {
41011
+ .on('drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn', this.preprocessInput, {
41002
41012
  top: true
41003
41013
  })
41004
- .on('afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn', this.postProcessSetEditorValue);
41014
+ .on('afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn', this.postProcessSetEditorValue);
41005
41015
  }
41006
41016
  /** @override **/
41007
41017
  beforeDestruct(jodit) {