@syncfusion/ej2-richtexteditor 20.4.38 → 20.4.40

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 : 20.4.38
3
+ * version : 20.4.40
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@19.12.13",
3
+ "_id": "@syncfusion/ej2-richtexteditor@20.4.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-NrHw57pb65pb0YSr2lpOQ2quYsJxgnDVkWE5PmaOs3aHKQSc9pDt6w80P5ZE9psSSG1gkc4ie3l3f+gB+VsU8w==",
5
+ "_integrity": "sha512-99KINen2pXxxLc7WURF0dR7R+gc/1SCmKhe/iD3X+xyc8LIaNnBlRYaHGk1pCkmElDeEHKFOziXSl7V7NXDMjQ==",
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-release/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-19.12.13.tgz",
30
- "_shasum": "042bd3a46b2817c540d359e6cdef985e35995533",
29
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.4.38.tgz",
30
+ "_shasum": "cfd4376bcc8a43284062d004871b44ce4e6a6a72",
31
31
  "_spec": "@syncfusion/ej2-richtexteditor@*",
32
32
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
33
33
  "author": {
@@ -38,19 +38,19 @@
38
38
  },
39
39
  "bundleDependencies": false,
40
40
  "dependencies": {
41
- "@syncfusion/ej2-base": "~20.4.38",
42
- "@syncfusion/ej2-buttons": "~20.4.38",
43
- "@syncfusion/ej2-filemanager": "~20.4.38",
44
- "@syncfusion/ej2-inputs": "~20.4.38",
45
- "@syncfusion/ej2-navigations": "~20.4.38",
46
- "@syncfusion/ej2-popups": "~20.4.38",
47
- "@syncfusion/ej2-splitbuttons": "~20.4.38"
41
+ "@syncfusion/ej2-base": "~20.4.40",
42
+ "@syncfusion/ej2-buttons": "~20.4.40",
43
+ "@syncfusion/ej2-filemanager": "~20.4.40",
44
+ "@syncfusion/ej2-inputs": "~20.4.40",
45
+ "@syncfusion/ej2-navigations": "~20.4.40",
46
+ "@syncfusion/ej2-popups": "~20.4.40",
47
+ "@syncfusion/ej2-splitbuttons": "~20.4.40"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "Essential JS 2 RichTextEditor component",
51
51
  "devDependencies": {},
52
52
  "es2015": "./dist/es6/ej2-richtexteditor.es5.js",
53
- "homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme",
53
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls",
54
54
  "keywords": [
55
55
  "ej2",
56
56
  "syncfusion",
@@ -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": "20.4.38",
73
+ "version": "20.4.40",
74
74
  "sideEffects": false
75
75
  }
@@ -106,6 +106,7 @@ var FullScreen = /** @class */ (function () {
106
106
  _this.parent.toolbarModule.addFixedTBarClass();
107
107
  }
108
108
  }
109
+ _this.parent.refreshUI();
109
110
  _this.parent.trigger(events.actionComplete, { requestType: 'Minimize', targetItem: 'Minimize', args: event });
110
111
  }
111
112
  });
@@ -120,22 +120,32 @@ var HtmlEditor = /** @class */ (function () {
120
120
  }
121
121
  var previousLength = this.parent.inputElement.innerHTML.length;
122
122
  var currentLength = this.parent.inputElement.innerHTML.replace(regEx, '').length;
123
+ var focusNode = range.startContainer;
123
124
  if (previousLength > currentLength) {
124
125
  var currentChild = this.parent.inputElement.firstChild;
125
126
  while (!isNOU(currentChild) && currentChild.textContent.replace(regEx, '').trim().length > 0) {
126
127
  currentChild.innerHTML = currentChild.innerHTML.replace(regEx, '');
127
128
  currentChild = currentChild.nextElementSibling;
128
129
  }
129
- if (this.parent.inputElement.querySelector('.currentStartMark').childNodes.length > 1) {
130
- var currentChild_1 = this.parent.inputElement.querySelector('.currentStartMark').childNodes;
131
- for (var i = 0; i < currentChild_1.length; i++) {
132
- if (currentChild_1[i].nodeName === '#text' && currentChild_1[i].textContent.length === 0) {
133
- detach(currentChild_1[i]);
130
+ var currentChildNode = this.parent.inputElement.querySelector('.currentStartMark').childNodes;
131
+ if (currentChildNode.length > 1) {
132
+ for (var i = 0; i < currentChildNode.length; i++) {
133
+ if (currentChildNode[i].nodeName === '#text' && currentChildNode[i].textContent.length === 0) {
134
+ detach(currentChildNode[i]);
134
135
  i--;
135
136
  }
137
+ if (focusNode.textContent.replace(regEx, '') === currentChildNode[i].textContent) {
138
+ pointer = focusNode.textContent.length > 1 ? focusNode.textContent.length - 1 : focusNode.textContent.length;
139
+ focusNode = currentChildNode[i];
140
+ }
141
+ }
142
+ }
143
+ else if (currentChildNode.length === 1) {
144
+ if (focusNode.textContent.replace(regEx, '') === currentChildNode[0].textContent) {
145
+ focusNode = currentChildNode[0];
136
146
  }
137
147
  }
138
- this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), this.parent.inputElement.querySelector('.currentStartMark').childNodes[0], pointer);
148
+ this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), focusNode, pointer);
139
149
  }
140
150
  var currentElem = this.parent.inputElement.querySelector('.currentStartMark');
141
151
  if (!isNOU(currentElem)) {
@@ -4,7 +4,7 @@ import { setStyleAttribute, extend } from '@syncfusion/ej2-base';
4
4
  import * as events from '../base/constant';
5
5
  import * as classes from '../base/classes';
6
6
  import { RenderType, ToolbarType } from '../base/enum';
7
- import { setToolbarStatus, updateUndoRedoStatus, getTBarItemsIndex, getCollection, toObjectLowerCase, isIDevice } from '../base/util';
7
+ import { setToolbarStatus, updateUndoRedoStatus, getTBarItemsIndex, getCollection, toObjectLowerCase, isIDevice, getTooltipText } from '../base/util';
8
8
  import { updateDropDownFontFormatLocale } from '../base/util';
9
9
  import * as model from '../models/items';
10
10
  import { ToolbarRenderer } from '../renderer/toolbar-renderer';
@@ -306,6 +306,9 @@ var Toolbar = /** @class */ (function () {
306
306
  */
307
307
  Toolbar.prototype.updateItem = function (args) {
308
308
  var item = this.tools[args.updateItem.toLocaleLowerCase()];
309
+ if (this.parent.locale !== 'en-US') {
310
+ item.tooltip = getTooltipText(args.updateItem.toLocaleLowerCase(), this.locator);
311
+ }
309
312
  var trgItem = this.tools[args.targetItem.toLocaleLowerCase()];
310
313
  var index = getTBarItemsIndex(getCollection(trgItem.subCommand), args.baseToolbar.toolbarObj.items)[0];
311
314
  if (!isNOU(index)) {