@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
@@ -5928,7 +5928,9 @@ class ToolbarRenderer {
5928
5928
  args.cancel = true;
5929
5929
  return;
5930
5930
  }
5931
- proxy.parent.notify(selectionRestore, {});
5931
+ if (Browser.info.name === 'safari') {
5932
+ proxy.parent.notify(selectionRestore, {});
5933
+ }
5932
5934
  const element = (args.event) ? args.event.target : null;
5933
5935
  proxy.currentElement = dropDown.element;
5934
5936
  proxy.currentDropdown = dropDown;
@@ -5956,10 +5958,14 @@ class ToolbarRenderer {
5956
5958
  args.element.tabIndex = -1;
5957
5959
  dropDown.element.removeAttribute('type');
5958
5960
  dropDown.element.onmousedown = () => {
5959
- proxy.parent.notify(selectionSave, {});
5961
+ if (Browser.info.name === 'safari') {
5962
+ proxy.parent.notify(selectionSave, {});
5963
+ }
5960
5964
  };
5961
5965
  dropDown.element.onkeydown = () => {
5962
- proxy.parent.notify(selectionSave, {});
5966
+ if (Browser.info.name === 'safari') {
5967
+ proxy.parent.notify(selectionSave, {});
5968
+ }
5963
5969
  };
5964
5970
  return dropDown;
5965
5971
  }
@@ -22101,7 +22107,7 @@ class InsertHtml {
22101
22107
  static pasteInsertHTML(nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode, enterAction) {
22102
22108
  const isCursor = range.startOffset === range.endOffset &&
22103
22109
  range.startContainer === range.endContainer;
22104
- if (isCursor && range.startContainer === editNode && editNode.textContent === '') {
22110
+ if (isCursor && range.startContainer === editNode && editNode.textContent === '' && range.startOffset === 0 && range.endOffset === 0) {
22105
22111
  const currentBlockNode = this.getImmediateBlockNode(nodes[nodes.length - 1], editNode);
22106
22112
  nodeSelection.setSelectionText(docElement, currentBlockNode, currentBlockNode, 0, 0);
22107
22113
  range = nodeSelection.getRange(docElement);
@@ -22488,9 +22494,20 @@ class InsertHtml {
22488
22494
  }
22489
22495
  }
22490
22496
  if (blockNode && blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH' || blockNode.nodeName === 'TR') {
22491
- const tempSpan = createElement('span', { className: 'tempSpan' });
22492
- range.insertNode(tempSpan);
22493
- tempSpan.parentNode.replaceChild(node, tempSpan);
22497
+ let parentElem = range.startContainer;
22498
+ while (!isNullOrUndefined(parentElem) && parentElem.parentElement !== blockNode) {
22499
+ parentElem = parentElem.parentElement;
22500
+ }
22501
+ range.deleteContents();
22502
+ const splitedElm = nodeCutter.GetSpliceNode(range, parentElem);
22503
+ if (splitedElm) {
22504
+ splitedElm.parentNode.replaceChild(node, splitedElm);
22505
+ }
22506
+ else {
22507
+ range.insertNode(node);
22508
+ }
22509
+ this.contentsDeleted = true;
22510
+ return;
22494
22511
  }
22495
22512
  else {
22496
22513
  const nodeSelection = new NodeSelection(editNode);