@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.
@@ -3404,7 +3404,9 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
3404
3404
  target: '#' + this.parent.getID() + '_toolbar_wrapper [title]',
3405
3405
  showTipPointer: true,
3406
3406
  openDelay: 400,
3407
- cssClass: this.parent.cssClass
3407
+ cssClass: this.parent.cssClass,
3408
+ windowCollision: true,
3409
+ position: 'BottomCenter'
3408
3410
  });
3409
3411
  this.tooltip.appendTo(args.target);
3410
3412
  }
@@ -6144,7 +6146,9 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
6144
6146
  _this.tooltip = new Tooltip({
6145
6147
  target: '#' + _this.element.id + ' [title]',
6146
6148
  openDelay: 400,
6147
- showTipPointer: true
6149
+ showTipPointer: true,
6150
+ windowCollision: true,
6151
+ position: 'BottomCenter'
6148
6152
  });
6149
6153
  _this.tooltip.appendTo(_this.element);
6150
6154
  }
@@ -17589,7 +17593,8 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
17589
17593
  imgElem[i].getAttribute('v:shapes').indexOf('圖片') < 0 &&
17590
17594
  imgElem[i].getAttribute('v:shapes').indexOf('Grafik') < 0 &&
17591
17595
  imgElem[i].getAttribute('v:shapes').toLowerCase().indexOf('image') < 0 &&
17592
- imgElem[i].getAttribute('v:shapes').indexOf('Graphic') < 0) {
17596
+ imgElem[i].getAttribute('v:shapes').indexOf('Graphic') < 0 &&
17597
+ imgElem[i].getAttribute('v:shapes').indexOf('_x0000_s') < 0) {
17593
17598
  detach(imgElem[i]);
17594
17599
  }
17595
17600
  }
@@ -23221,7 +23226,11 @@ var EmojiPicker = /** @__PURE__ @class */ (function () {
23221
23226
  return;
23222
23227
  }
23223
23228
  targetEle.focus();
23224
- if (!isNullOrUndefined(this.clickEvent)) {
23229
+ var startOffset = this.save.startOffset;
23230
+ var textContent = this.save.range.startContainer.textContent;
23231
+ var previousText = textContent.substring(startOffset, startOffset + 1);
23232
+ // When toolbar action is clicked then only restore the range.
23233
+ if (!isNullOrUndefined(this.clickEvent) || previousText !== ':') {
23225
23234
  this.save.restore();
23226
23235
  }
23227
23236
  if (this.popupObj) {