@syncfusion/ej2-richtexteditor 20.3.56 → 20.3.59

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 (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/ej2-richtexteditor.min.js +2 -2
  3. package/dist/ej2-richtexteditor.umd.min.js +2 -2
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +14 -4
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +14 -4
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/dist/global/ej2-richtexteditor.min.js +2 -2
  10. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +9 -9
  13. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -2
  14. package/src/rich-text-editor/actions/enter-key.js +8 -2
  15. package/src/rich-text-editor/actions/html-editor.js +5 -0
  16. package/styles/bootstrap-dark.css +1 -1
  17. package/styles/bootstrap.css +1 -1
  18. package/styles/bootstrap4.css +1 -1
  19. package/styles/bootstrap5-dark.css +1 -1
  20. package/styles/bootstrap5.css +1 -1
  21. package/styles/fabric-dark.css +1 -1
  22. package/styles/fabric.css +1 -1
  23. package/styles/fluent-dark.css +1 -1
  24. package/styles/fluent.css +1 -1
  25. package/styles/highcontrast-light.css +1 -1
  26. package/styles/highcontrast.css +1 -1
  27. package/styles/material-dark.css +1 -1
  28. package/styles/material.css +1 -1
  29. package/styles/rich-text-editor/bootstrap-dark.css +1 -1
  30. package/styles/rich-text-editor/bootstrap.css +1 -1
  31. package/styles/rich-text-editor/bootstrap4.css +1 -1
  32. package/styles/rich-text-editor/bootstrap5-dark.css +1 -1
  33. package/styles/rich-text-editor/bootstrap5.css +1 -1
  34. package/styles/rich-text-editor/fabric-dark.css +1 -1
  35. package/styles/rich-text-editor/fabric.css +1 -1
  36. package/styles/rich-text-editor/fluent-dark.css +1 -1
  37. package/styles/rich-text-editor/fluent.css +1 -1
  38. package/styles/rich-text-editor/highcontrast-light.css +1 -1
  39. package/styles/rich-text-editor/highcontrast.css +1 -1
  40. package/styles/rich-text-editor/material-dark.css +1 -1
  41. package/styles/rich-text-editor/material.css +1 -1
  42. package/styles/rich-text-editor/tailwind-dark.css +1 -1
  43. package/styles/rich-text-editor/tailwind.css +1 -1
  44. package/styles/tailwind-dark.css +1 -1
  45. package/styles/tailwind.css +1 -1
  46. package/.eslintrc.json +0 -244
  47. package/tslint.json +0 -111
@@ -16924,8 +16924,7 @@ class MsWordPaste {
16924
16924
  }
16925
16925
  }
16926
16926
  }
16927
- values[i] = valueSplit.join(';') + ';';
16928
- const changedValue = styleProperty + values[i];
16927
+ const changedValue = styleProperty + valueSplit.join(';') + ';';
16929
16928
  resultElem[j].setAttribute('style', changedValue);
16930
16929
  }
16931
16930
  else {
@@ -18612,6 +18611,11 @@ class HtmlEditor {
18612
18611
  if (e.args.code === 'Backspace' && e.args.keyCode === 8 && currentRange.startOffset === 0 &&
18613
18612
  currentRange.endOffset === 0 && this.parent.getSelection().length === 0 && currentRange.startContainer.textContent.length > 0 &&
18614
18613
  currentRange.startContainer.parentElement.tagName !== 'TD' && currentRange.startContainer.parentElement.tagName !== 'TH') {
18614
+ let checkNode = currentRange.startContainer.nodeName === '#text' ? currentRange.startContainer.parentElement : currentRange.startContainer;
18615
+ if (!this.parent.formatter.editorManager.domNode.isBlockNode(checkNode) &&
18616
+ !isNullOrUndefined(checkNode.previousSibling) && checkNode.previousSibling.nodeName === 'BR') {
18617
+ return;
18618
+ }
18615
18619
  this.rangeElement = this.getRootBlockNode(currentRange.startContainer);
18616
18620
  if (this.rangeElement.tagName === 'OL' || this.rangeElement.tagName === 'UL') {
18617
18621
  const liElement = this.getRangeLiNode(currentRange.startContainer);
@@ -28363,9 +28367,15 @@ class EnterKeyAction {
28363
28367
  if (!isNearBlockLengthZero) {
28364
28368
  let currentFocusElem = insertElem;
28365
28369
  let finalFocusElem;
28366
- while (!isNullOrUndefined(currentFocusElem) && currentFocusElem.nodeName !== '#text') {
28370
+ if (this.range.startOffset === this.range.endOffset && this.range.startOffset != 0) {
28371
+ while (!isNullOrUndefined(currentFocusElem) && currentFocusElem.nodeName !== '#text' &&
28372
+ currentFocusElem.nodeName !== 'BR') {
28373
+ finalFocusElem = currentFocusElem;
28374
+ currentFocusElem = currentFocusElem.lastChild;
28375
+ }
28376
+ }
28377
+ else {
28367
28378
  finalFocusElem = currentFocusElem;
28368
- currentFocusElem = currentFocusElem.lastChild;
28369
28379
  }
28370
28380
  finalFocusElem.innerHTML = '<br>';
28371
28381
  if (!isImageNode) {