@syncfusion/ej2-richtexteditor 19.3.47 → 19.3.53

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 (42) hide show
  1. package/CHANGELOG.md +12 -0
  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 +14 -3
  5. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es5.js +14 -3
  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 +12 -12
  12. package/src/rich-text-editor/actions/dropdown-buttons.js +10 -0
  13. package/src/rich-text-editor/actions/enter-key.js +1 -0
  14. package/src/rich-text-editor/base/rich-text-editor.js +1 -2
  15. package/src/rich-text-editor/renderer/toolbar-renderer.js +3 -2
  16. package/styles/bootstrap-dark.css +4 -0
  17. package/styles/bootstrap.css +4 -0
  18. package/styles/bootstrap4.css +4 -0
  19. package/styles/bootstrap5-dark.css +4 -0
  20. package/styles/bootstrap5.css +4 -0
  21. package/styles/fabric-dark.css +4 -0
  22. package/styles/fabric.css +4 -0
  23. package/styles/highcontrast-light.css +4 -0
  24. package/styles/highcontrast.css +4 -0
  25. package/styles/material-dark.css +4 -0
  26. package/styles/material.css +4 -0
  27. package/styles/rich-text-editor/_layout.scss +4 -0
  28. package/styles/rich-text-editor/bootstrap-dark.css +4 -0
  29. package/styles/rich-text-editor/bootstrap.css +4 -0
  30. package/styles/rich-text-editor/bootstrap4.css +4 -0
  31. package/styles/rich-text-editor/bootstrap5-dark.css +4 -0
  32. package/styles/rich-text-editor/bootstrap5.css +4 -0
  33. package/styles/rich-text-editor/fabric-dark.css +4 -0
  34. package/styles/rich-text-editor/fabric.css +4 -0
  35. package/styles/rich-text-editor/highcontrast-light.css +4 -0
  36. package/styles/rich-text-editor/highcontrast.css +4 -0
  37. package/styles/rich-text-editor/material-dark.css +4 -0
  38. package/styles/rich-text-editor/material.css +4 -0
  39. package/styles/rich-text-editor/tailwind-dark.css +4 -0
  40. package/styles/rich-text-editor/tailwind.css +4 -0
  41. package/styles/tailwind-dark.css +4 -0
  42. package/styles/tailwind.css +4 -0
@@ -2739,7 +2739,8 @@ class ToolbarRenderer {
2739
2739
  this.parent.notify(beforeDropDownItemRender, args);
2740
2740
  }
2741
2741
  dropDownOpen(args) {
2742
- if (args.element.parentElement.getAttribute('id').indexOf('TableCell') > -1) {
2742
+ if (args.element.parentElement.getAttribute('id').indexOf('TableCell') > -1 && !isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-merge')) &&
2743
+ (!isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-horizontal-split')) || !isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-vertical-split')))) {
2743
2744
  const listEle = args.element.querySelectorAll('li');
2744
2745
  if (this.parent.inputElement.querySelectorAll('.e-cell-select').length === 1) {
2745
2746
  addClass([listEle[0]], 'e-disabled');
@@ -3591,6 +3592,11 @@ class DropDownButtons {
3591
3592
  for (const prop of Object.keys(newProp)) {
3592
3593
  switch (prop) {
3593
3594
  case 'fontFamily':
3595
+ if (this.parent.inlineMode.enable) {
3596
+ if (!isNullOrUndefined(this.parent.fontFamily.default)) {
3597
+ this.getEditNode().style.fontFamily = this.parent.fontFamily.default;
3598
+ }
3599
+ }
3594
3600
  if (this.fontNameDropDown) {
3595
3601
  for (const fontFamily$$1 of Object.keys(newProp.fontFamily)) {
3596
3602
  switch (fontFamily$$1) {
@@ -3621,6 +3627,11 @@ class DropDownButtons {
3621
3627
  }
3622
3628
  break;
3623
3629
  case 'fontSize':
3630
+ if (this.parent.inlineMode) {
3631
+ if (!isNullOrUndefined(this.parent.fontSize.default)) {
3632
+ this.getEditNode().style.fontSize = this.parent.fontSize.default;
3633
+ }
3634
+ }
3624
3635
  if (this.fontSizeDropDown) {
3625
3636
  for (const fontSize$$1 of Object.keys(newProp.fontSize)) {
3626
3637
  switch (fontSize$$1) {
@@ -24116,6 +24127,7 @@ class EnterKeyAction {
24116
24127
  detach(nearBlockNode);
24117
24128
  }
24118
24129
  }
24130
+ this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
24119
24131
  }
24120
24132
  else if (nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG')) {
24121
24133
  if (!isNullOrUndefined(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
@@ -25637,8 +25649,7 @@ let RichTextEditor = class RichTextEditor extends Component {
25637
25649
  this.setProperties({ value: this.valueTemplate });
25638
25650
  }
25639
25651
  else {
25640
- const compiledString = compile(this.valueTemplate);
25641
- const compiledTemplate = compiledString({});
25652
+ const compiledTemplate = compile(this.valueTemplate)('', this, 'valueTemplate');
25642
25653
  for (let i = 0; i < compiledTemplate.length; i++) {
25643
25654
  const item = compiledTemplate[i];
25644
25655
  append([item], this.element);