@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.1.38
3
+ * version : 22.1.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-richtexteditor@*",
3
- "_id": "@syncfusion/ej2-richtexteditor@22.1.36",
3
+ "_id": "@syncfusion/ej2-richtexteditor@22.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-mS0ty0acT5STRbjz9ZSXS5y0hcs04Oe00244YG4ojqmGkymJ4OuAhd6+jZPTAzIqy4Pj9ziOOFIm+NLj1tqJLQ==",
5
+ "_integrity": "sha512-SC/GGGT4gXUzcbDC1YLWkiUw959cRVtjpJQ74HjAOeHgNurdJ0T3anhrfoxEh1U289KbzZUS677qjfarHRpFCw==",
6
6
  "_location": "/@syncfusion/ej2-richtexteditor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -26,8 +26,8 @@
26
26
  "/@syncfusion/ej2-react-richtexteditor",
27
27
  "/@syncfusion/ej2-vue-richtexteditor"
28
28
  ],
29
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-22.1.36.tgz",
30
- "_shasum": "8af01f54f053e047038c2f48f38cb58b0db212b4",
29
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-22.1.38.tgz",
30
+ "_shasum": "cad65b6adb603371c57bdc7d8978cf377bffd0b5",
31
31
  "_spec": "@syncfusion/ej2-richtexteditor@*",
32
32
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
33
33
  "author": {
@@ -39,10 +39,10 @@
39
39
  "bundleDependencies": false,
40
40
  "dependencies": {
41
41
  "@syncfusion/ej2-base": "~22.1.38",
42
- "@syncfusion/ej2-buttons": "~22.1.38",
43
- "@syncfusion/ej2-filemanager": "~22.1.38",
44
- "@syncfusion/ej2-inputs": "~22.1.38",
45
- "@syncfusion/ej2-navigations": "~22.1.38",
42
+ "@syncfusion/ej2-buttons": "~22.1.39",
43
+ "@syncfusion/ej2-filemanager": "~22.1.39",
44
+ "@syncfusion/ej2-inputs": "~22.1.39",
45
+ "@syncfusion/ej2-navigations": "~22.1.39",
46
46
  "@syncfusion/ej2-popups": "~22.1.38",
47
47
  "@syncfusion/ej2-splitbuttons": "~22.1.37"
48
48
  },
@@ -70,6 +70,6 @@
70
70
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
71
71
  },
72
72
  "typings": "index.d.ts",
73
- "version": "22.1.38",
73
+ "version": "22.1.39",
74
74
  "sideEffects": false
75
75
  }
@@ -161,7 +161,8 @@ var MsWordPaste = /** @class */ (function () {
161
161
  imgElem[i].getAttribute('v:shapes').indexOf('圖片') < 0 &&
162
162
  imgElem[i].getAttribute('v:shapes').indexOf('Grafik') < 0 &&
163
163
  imgElem[i].getAttribute('v:shapes').toLowerCase().indexOf('image') < 0 &&
164
- imgElem[i].getAttribute('v:shapes').indexOf('Graphic') < 0) {
164
+ imgElem[i].getAttribute('v:shapes').indexOf('Graphic') < 0 &&
165
+ imgElem[i].getAttribute('v:shapes').indexOf('_x0000_s') < 0) {
165
166
  detach(imgElem[i]);
166
167
  }
167
168
  }
@@ -221,7 +221,9 @@ var BaseQuickToolbar = /** @class */ (function () {
221
221
  _this.tooltip = new Tooltip({
222
222
  target: '#' + _this.element.id + ' [title]',
223
223
  openDelay: 400,
224
- showTipPointer: true
224
+ showTipPointer: true,
225
+ windowCollision: true,
226
+ position: 'BottomCenter'
225
227
  });
226
228
  _this.tooltip.appendTo(_this.element);
227
229
  }
@@ -646,7 +646,11 @@ var EmojiPicker = /** @class */ (function () {
646
646
  return;
647
647
  }
648
648
  targetEle.focus();
649
- if (!isNOU(this.clickEvent)) {
649
+ var startOffset = this.save.startOffset;
650
+ var textContent = this.save.range.startContainer.textContent;
651
+ var previousText = textContent.substring(startOffset, startOffset + 1);
652
+ // When toolbar action is clicked then only restore the range.
653
+ if (!isNOU(this.clickEvent) || previousText !== ':') {
650
654
  this.save.restore();
651
655
  }
652
656
  if (this.popupObj) {
@@ -130,7 +130,9 @@ var ToolbarRenderer = /** @class */ (function () {
130
130
  target: '#' + this.parent.getID() + '_toolbar_wrapper [title]',
131
131
  showTipPointer: true,
132
132
  openDelay: 400,
133
- cssClass: this.parent.cssClass
133
+ cssClass: this.parent.cssClass,
134
+ windowCollision: true,
135
+ position: 'BottomCenter'
134
136
  });
135
137
  this.tooltip.appendTo(args.target);
136
138
  }