@syncfusion/ej2-richtexteditor 28.1.33 → 28.1.35

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 (78) hide show
  1. package/dist/ej2-richtexteditor.min.js +2 -2
  2. package/dist/ej2-richtexteditor.umd.min.js +2 -2
  3. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-richtexteditor.es2015.js +24 -7
  5. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es5.js +24 -7
  7. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  8. package/dist/global/ej2-richtexteditor.min.js +2 -2
  9. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +7 -7
  12. package/src/editor-manager/plugin/inserthtml.js +15 -4
  13. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -3
  14. package/styles/bds-lite.css +8 -2
  15. package/styles/bds.css +8 -2
  16. package/styles/bootstrap-dark-lite.css +8 -2
  17. package/styles/bootstrap-dark.css +8 -2
  18. package/styles/bootstrap-lite.css +8 -2
  19. package/styles/bootstrap.css +8 -2
  20. package/styles/bootstrap4-lite.css +8 -2
  21. package/styles/bootstrap4.css +8 -2
  22. package/styles/bootstrap5-dark-lite.css +8 -2
  23. package/styles/bootstrap5-dark.css +8 -2
  24. package/styles/bootstrap5-lite.css +8 -2
  25. package/styles/bootstrap5.3-lite.css +8 -2
  26. package/styles/bootstrap5.3.css +8 -2
  27. package/styles/bootstrap5.css +8 -2
  28. package/styles/fabric-dark-lite.css +8 -2
  29. package/styles/fabric-dark.css +8 -2
  30. package/styles/fabric-lite.css +8 -2
  31. package/styles/fabric.css +8 -2
  32. package/styles/fluent-dark-lite.css +8 -2
  33. package/styles/fluent-dark.css +8 -2
  34. package/styles/fluent-lite.css +8 -2
  35. package/styles/fluent.css +8 -2
  36. package/styles/fluent2-lite.css +8 -2
  37. package/styles/fluent2.css +8 -2
  38. package/styles/highcontrast-light-lite.css +8 -2
  39. package/styles/highcontrast-light.css +8 -2
  40. package/styles/highcontrast-lite.css +8 -2
  41. package/styles/highcontrast.css +8 -2
  42. package/styles/material-dark-lite.css +8 -2
  43. package/styles/material-dark.css +8 -2
  44. package/styles/material-lite.css +8 -2
  45. package/styles/material.css +8 -2
  46. package/styles/material3-dark-lite.css +8 -2
  47. package/styles/material3-dark.css +8 -2
  48. package/styles/material3-lite.css +8 -2
  49. package/styles/material3.css +8 -2
  50. package/styles/rich-text-editor/_layout.scss +6 -5
  51. package/styles/rich-text-editor/_tailwind3-definition.scss +1 -1
  52. package/styles/rich-text-editor/bds.css +8 -2
  53. package/styles/rich-text-editor/bootstrap-dark.css +8 -2
  54. package/styles/rich-text-editor/bootstrap.css +8 -2
  55. package/styles/rich-text-editor/bootstrap4.css +8 -2
  56. package/styles/rich-text-editor/bootstrap5-dark.css +8 -2
  57. package/styles/rich-text-editor/bootstrap5.3.css +8 -2
  58. package/styles/rich-text-editor/bootstrap5.css +8 -2
  59. package/styles/rich-text-editor/fabric-dark.css +8 -2
  60. package/styles/rich-text-editor/fabric.css +8 -2
  61. package/styles/rich-text-editor/fluent-dark.css +8 -2
  62. package/styles/rich-text-editor/fluent.css +8 -2
  63. package/styles/rich-text-editor/fluent2.css +8 -2
  64. package/styles/rich-text-editor/highcontrast-light.css +8 -2
  65. package/styles/rich-text-editor/highcontrast.css +8 -2
  66. package/styles/rich-text-editor/material-dark.css +8 -2
  67. package/styles/rich-text-editor/material.css +8 -2
  68. package/styles/rich-text-editor/material3-dark.css +8 -2
  69. package/styles/rich-text-editor/material3.css +8 -2
  70. package/styles/rich-text-editor/tailwind-dark.css +8 -2
  71. package/styles/rich-text-editor/tailwind.css +8 -2
  72. package/styles/rich-text-editor/tailwind3.css +13 -8
  73. package/styles/tailwind-dark-lite.css +8 -2
  74. package/styles/tailwind-dark.css +8 -2
  75. package/styles/tailwind-lite.css +8 -2
  76. package/styles/tailwind.css +8 -2
  77. package/styles/tailwind3-lite.css +13 -8
  78. package/styles/tailwind3.css +13 -8
@@ -5937,7 +5937,9 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
5937
5937
  args.cancel = true;
5938
5938
  return;
5939
5939
  }
5940
- proxy.parent.notify(selectionRestore, {});
5940
+ if (Browser.info.name === 'safari') {
5941
+ proxy.parent.notify(selectionRestore, {});
5942
+ }
5941
5943
  var element = (args.event) ? args.event.target : null;
5942
5944
  proxy.currentElement = dropDown.element;
5943
5945
  proxy.currentDropdown = dropDown;
@@ -5965,10 +5967,14 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
5965
5967
  args.element.tabIndex = -1;
5966
5968
  dropDown.element.removeAttribute('type');
5967
5969
  dropDown.element.onmousedown = function () {
5968
- proxy.parent.notify(selectionSave, {});
5970
+ if (Browser.info.name === 'safari') {
5971
+ proxy.parent.notify(selectionSave, {});
5972
+ }
5969
5973
  };
5970
5974
  dropDown.element.onkeydown = function () {
5971
- proxy.parent.notify(selectionSave, {});
5975
+ if (Browser.info.name === 'safari') {
5976
+ proxy.parent.notify(selectionSave, {});
5977
+ }
5972
5978
  };
5973
5979
  return dropDown;
5974
5980
  };
@@ -21701,7 +21707,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
21701
21707
  InsertHtml.pasteInsertHTML = function (nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode, enterAction) {
21702
21708
  var isCursor = range.startOffset === range.endOffset &&
21703
21709
  range.startContainer === range.endContainer;
21704
- if (isCursor && range.startContainer === editNode && editNode.textContent === '') {
21710
+ if (isCursor && range.startContainer === editNode && editNode.textContent === '' && range.startOffset === 0 && range.endOffset === 0) {
21705
21711
  var currentBlockNode = this.getImmediateBlockNode(nodes[nodes.length - 1], editNode);
21706
21712
  nodeSelection.setSelectionText(docElement, currentBlockNode, currentBlockNode, 0, 0);
21707
21713
  range = nodeSelection.getRange(docElement);
@@ -22092,9 +22098,20 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
22092
22098
  }
22093
22099
  }
22094
22100
  if (blockNode && blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH' || blockNode.nodeName === 'TR') {
22095
- var tempSpan = createElement('span', { className: 'tempSpan' });
22096
- range.insertNode(tempSpan);
22097
- tempSpan.parentNode.replaceChild(node, tempSpan);
22101
+ var parentElem = range.startContainer;
22102
+ while (!isNullOrUndefined(parentElem) && parentElem.parentElement !== blockNode) {
22103
+ parentElem = parentElem.parentElement;
22104
+ }
22105
+ range.deleteContents();
22106
+ var splitedElm = nodeCutter.GetSpliceNode(range, parentElem);
22107
+ if (splitedElm) {
22108
+ splitedElm.parentNode.replaceChild(node, splitedElm);
22109
+ }
22110
+ else {
22111
+ range.insertNode(node);
22112
+ }
22113
+ this.contentsDeleted = true;
22114
+ return;
22098
22115
  }
22099
22116
  else {
22100
22117
  var nodeSelection = new NodeSelection(editNode);