@syncfusion/ej2-richtexteditor 22.1.38 → 22.1.39

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.
@@ -3409,7 +3409,9 @@ class ToolbarRenderer {
3409
3409
  target: '#' + this.parent.getID() + '_toolbar_wrapper [title]',
3410
3410
  showTipPointer: true,
3411
3411
  openDelay: 400,
3412
- cssClass: this.parent.cssClass
3412
+ cssClass: this.parent.cssClass,
3413
+ windowCollision: true,
3414
+ position: 'BottomCenter'
3413
3415
  });
3414
3416
  this.tooltip.appendTo(args.target);
3415
3417
  }
@@ -6102,7 +6104,9 @@ class BaseQuickToolbar {
6102
6104
  this.tooltip = new Tooltip({
6103
6105
  target: '#' + this.element.id + ' [title]',
6104
6106
  openDelay: 400,
6105
- showTipPointer: true
6107
+ showTipPointer: true,
6108
+ windowCollision: true,
6109
+ position: 'BottomCenter'
6106
6110
  });
6107
6111
  this.tooltip.appendTo(this.element);
6108
6112
  }
@@ -17463,7 +17467,8 @@ class MsWordPaste {
17463
17467
  imgElem[i].getAttribute('v:shapes').indexOf('圖片') < 0 &&
17464
17468
  imgElem[i].getAttribute('v:shapes').indexOf('Grafik') < 0 &&
17465
17469
  imgElem[i].getAttribute('v:shapes').toLowerCase().indexOf('image') < 0 &&
17466
- imgElem[i].getAttribute('v:shapes').indexOf('Graphic') < 0) {
17470
+ imgElem[i].getAttribute('v:shapes').indexOf('Graphic') < 0 &&
17471
+ imgElem[i].getAttribute('v:shapes').indexOf('_x0000_s') < 0) {
17467
17472
  detach(imgElem[i]);
17468
17473
  }
17469
17474
  }
@@ -23126,7 +23131,11 @@ class EmojiPicker {
23126
23131
  return;
23127
23132
  }
23128
23133
  targetEle.focus();
23129
- if (!isNullOrUndefined(this.clickEvent)) {
23134
+ const startOffset = this.save.startOffset;
23135
+ const textContent = this.save.range.startContainer.textContent;
23136
+ const previousText = textContent.substring(startOffset, startOffset + 1);
23137
+ // When toolbar action is clicked then only restore the range.
23138
+ if (!isNullOrUndefined(this.clickEvent) || previousText !== ':') {
23130
23139
  this.save.restore();
23131
23140
  }
23132
23141
  if (this.popupObj) {