@syncfusion/ej2-richtexteditor 20.2.44 → 20.2.49

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.2.44
3
+ * version : 20.2.49
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@20.2.43",
3
+ "_id": "@syncfusion/ej2-richtexteditor@20.2.46",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-dkfDGY2MKf2ILpa7X4k3mNk6efDSuHc+C2jA9kus1T+csXHRz3mfd5zkOnx0GLeKdQ9tkuBlNj0QasFVRk5Ivg==",
5
+ "_integrity": "sha512-FAxbJFQ7jN+BCDvMXfKxfjAADZCh+sqZcmpSQOlIMiI4yS6sqD6zCPQ4/cu+3cCOqT3hMOoWCoIEZEnVJlZWLg==",
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.2.43.tgz",
30
- "_shasum": "f4e01afae92f4fa91d69acc288b19b5970f99483",
29
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.2.46.tgz",
30
+ "_shasum": "e9b1bd287385eee5a5111fe68f948c89541b35b9",
31
31
  "_spec": "@syncfusion/ej2-richtexteditor@*",
32
32
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
33
33
  "author": {
@@ -38,13 +38,13 @@
38
38
  },
39
39
  "bundleDependencies": false,
40
40
  "dependencies": {
41
- "@syncfusion/ej2-base": "~20.2.43",
42
- "@syncfusion/ej2-buttons": "~20.2.43",
43
- "@syncfusion/ej2-filemanager": "~20.2.44",
44
- "@syncfusion/ej2-inputs": "~20.2.44",
45
- "@syncfusion/ej2-navigations": "~20.2.44",
46
- "@syncfusion/ej2-popups": "~20.2.43",
47
- "@syncfusion/ej2-splitbuttons": "~20.2.43"
41
+ "@syncfusion/ej2-base": "~20.2.48",
42
+ "@syncfusion/ej2-buttons": "~20.2.46",
43
+ "@syncfusion/ej2-filemanager": "~20.2.45",
44
+ "@syncfusion/ej2-inputs": "~20.2.48",
45
+ "@syncfusion/ej2-navigations": "~20.2.49",
46
+ "@syncfusion/ej2-popups": "~20.2.49",
47
+ "@syncfusion/ej2-splitbuttons": "~20.2.45"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "Essential JS 2 RichTextEditor component",
@@ -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.2.44",
73
+ "version": "20.2.49",
74
74
  "sideEffects": false
75
75
  }
@@ -320,7 +320,7 @@ var InsertHtml = /** @class */ (function () {
320
320
  InsertHtml.getNodeCollection = function (range, nodeSelection, node) {
321
321
  var nodes = [];
322
322
  if (range.startOffset === range.endOffset && range.startContainer === range.endContainer &&
323
- range.startContainer.nodeName != 'BR' &&
323
+ range.startContainer.nodeName != 'BR' && range.startContainer.childNodes.length > 0 &&
324
324
  (range.startContainer.nodeName === 'TD' || (range.startContainer.nodeType !== 3 &&
325
325
  node.classList && node.classList.contains('pasteContent')))) {
326
326
  nodes.push(range.startContainer.childNodes[range.endOffset]);
@@ -373,7 +373,7 @@ var InsertHtml = /** @class */ (function () {
373
373
  node.firstElementChild.insertAdjacentElement('afterend', liNode);
374
374
  }
375
375
  }
376
- if (blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH') {
376
+ if (blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH' || blockNode.nodeName === 'TR') {
377
377
  var tempSpan = createElement('span', { className: 'tempSpan' });
378
378
  range.insertNode(tempSpan);
379
379
  tempSpan.parentNode.replaceChild(node, tempSpan);
@@ -43,7 +43,7 @@ var EnterKeyAction = /** @class */ (function () {
43
43
  blockElement = curElement;
44
44
  curElement = curElement.parentElement;
45
45
  }
46
- isTableEnter = blockElement.tagName === 'TD' ? false : true;
46
+ isTableEnter = blockElement.tagName === 'TD' || blockElement.tagName === 'TBODY' ? false : true;
47
47
  }
48
48
  if (e.args.which === 13 && e.args.code === 'Enter') {
49
49
  if (isNOU(this.startNode.closest('LI')) && isNOU(this.endNode.closest('LI')) && isTableEnter &&
@@ -129,7 +129,10 @@ var EnterKeyAction = /** @class */ (function () {
129
129
  isFocusedFirst = true;
130
130
  }
131
131
  _this.removeBRElement(nearBlockNode);
132
- if (((_this.range.startOffset === 0 && _this.range.endOffset === 0) || isFocusedFirst) &&
132
+ var fireFoxEnterAtMiddle = Browser.userAgent.indexOf('Firefox') != -1 && _this.range.startOffset === 0 && _this.range.startContainer === _this.range.endContainer &&
133
+ _this.range.startContainer.nodeName === '#text' && !_this.parent.formatter.editorManager.domNode.isBlockNode(_this.range.startContainer.previousSibling) &&
134
+ _this.range.startContainer.parentElement === _this.range.startContainer.previousSibling.parentElement;
135
+ if (!fireFoxEnterAtMiddle && ((_this.range.startOffset === 0 && _this.range.endOffset === 0) || isFocusedFirst) &&
133
136
  !(!isNOU(_this.range.startContainer.previousSibling) &&
134
137
  (_this.range.startContainer.previousSibling.nodeName === 'IMG' || _this.range.startContainer.previousSibling.nodeName === 'BR'))) {
135
138
  var isNearBlockLengthZero = void 0;
@@ -57,6 +57,7 @@ var FullScreen = /** @class */ (function () {
57
57
  baseToolbar: _this.parent.getBaseToolbarObject()
58
58
  });
59
59
  }
60
+ _this.parent.refreshUI();
60
61
  _this.parent.trigger(events.actionComplete, { requestType: 'Maximize', targetItem: 'Maximize', args: event });
61
62
  }
62
63
  });
@@ -889,6 +889,8 @@ export interface ChangeEventArgs {
889
889
  value: string;
890
890
  /** Defines the event name. */
891
891
  name?: string;
892
+ /** Specifies whether the request should be saved automatically or focused out. */
893
+ isInteracted: boolean;
892
894
  }
893
895
  /**
894
896
  * Provides information about a DialogOpen event.
@@ -52,6 +52,7 @@ export declare class RichTextEditor extends Component<HTMLElement> implements IN
52
52
  private touchModule;
53
53
  private defaultResetValue;
54
54
  private isResizeInitialized;
55
+ private isValueChangeBlurhandler;
55
56
  /**
56
57
  * @hidden
57
58
 
@@ -70,7 +70,9 @@ import { DialogRenderer } from '../renderer/dialog-renderer';
70
70
  var RichTextEditor = /** @class */ (function (_super) {
71
71
  __extends(RichTextEditor, _super);
72
72
  function RichTextEditor(options, element) {
73
- return _super.call(this, options, element) || this;
73
+ var _this = _super.call(this, options, element) || this;
74
+ _this.needsID = true;
75
+ return _this;
74
76
  }
75
77
  /**
76
78
  * To provide the array of modules needed for component rendering
@@ -155,7 +157,6 @@ var RichTextEditor = /** @class */ (function (_super) {
155
157
  this.isFocusOut = false;
156
158
  this.isRTE = false;
157
159
  this.isBlur = true;
158
- this.needsID = true;
159
160
  this.defaultResetValue = null;
160
161
  this.isResizeInitialized = false;
161
162
  };
@@ -1199,7 +1200,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1199
1200
  if (this.valueContainer) {
1200
1201
  this.valueContainer.value = (this.enableHtmlEncode) ? this.value : value;
1201
1202
  }
1202
- if (this.editorMode === 'HTML' && this.inputElement && this.inputElement.innerHTML.trim() !== value.trim()) {
1203
+ if (this.editorMode === 'HTML' && this.inputElement && this.inputElement.innerHTML.replace('&amp;', '&').trim() !== value.trim()) {
1203
1204
  this.inputElement.innerHTML = value;
1204
1205
  }
1205
1206
  else if (this.editorMode === 'Markdown' && this.inputElement
@@ -1880,6 +1881,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1880
1881
  }
1881
1882
  this.setProperties({ value: this.getUpdatedValue() }, true);
1882
1883
  this.valueContainer.value = this.value;
1884
+ this.isValueChangeBlurhandler = false;
1883
1885
  this.invokeChangeEvent();
1884
1886
  };
1885
1887
  RichTextEditor.prototype.updateIntervalValue = function () {
@@ -1935,6 +1937,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1935
1937
  var value = this.getUpdatedValue();
1936
1938
  this.setProperties({ value: value });
1937
1939
  this.notify(events.toolbarRefresh, { args: e, documentNode: document });
1940
+ this.isValueChangeBlurhandler = true;
1938
1941
  this.invokeChangeEvent();
1939
1942
  this.isFocusOut = true;
1940
1943
  this.isBlur = false;
@@ -1982,7 +1985,8 @@ var RichTextEditor = /** @class */ (function (_super) {
1982
1985
  currentValue = this.value;
1983
1986
  }
1984
1987
  var eventArgs = {
1985
- value: currentValue
1988
+ value: currentValue,
1989
+ isInteracted: this.isValueChangeBlurhandler
1986
1990
  };
1987
1991
  if (this.value !== this.cloneValue) {
1988
1992
  this.trigger('change', eventArgs);
@@ -2226,6 +2226,7 @@
2226
2226
 
2227
2227
  .e-rte-table-popup.e-dialog .e-dlg-content {
2228
2228
  padding: 0;
2229
+ margin-bottom: 0;
2229
2230
  }
2230
2231
 
2231
2232
  .e-rte-quick-toolbar.e-toolbar .e-toolbar-items .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-dropdown-btn.e-tbar-btn.e-btn.e-control,
package/styles/fluent.css CHANGED
@@ -2226,6 +2226,7 @@
2226
2226
 
2227
2227
  .e-rte-table-popup.e-dialog .e-dlg-content {
2228
2228
  padding: 0;
2229
+ margin-bottom: 0;
2229
2230
  }
2230
2231
 
2231
2232
  .e-rte-quick-toolbar.e-toolbar .e-toolbar-items .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-dropdown-btn.e-tbar-btn.e-btn.e-control,
@@ -1732,6 +1732,9 @@
1732
1732
 
1733
1733
  .e-rte-table-popup.e-dialog .e-dlg-content {
1734
1734
  padding: 0;
1735
+ @if $skin-name == 'FluentUI' {
1736
+ margin-bottom: 0;
1737
+ }
1735
1738
  }
1736
1739
 
1737
1740
  @if $skin-name == 'tailwind' {
@@ -2226,6 +2226,7 @@
2226
2226
 
2227
2227
  .e-rte-table-popup.e-dialog .e-dlg-content {
2228
2228
  padding: 0;
2229
+ margin-bottom: 0;
2229
2230
  }
2230
2231
 
2231
2232
  .e-rte-quick-toolbar.e-toolbar .e-toolbar-items .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-dropdown-btn.e-tbar-btn.e-btn.e-control,
@@ -2226,6 +2226,7 @@
2226
2226
 
2227
2227
  .e-rte-table-popup.e-dialog .e-dlg-content {
2228
2228
  padding: 0;
2229
+ margin-bottom: 0;
2229
2230
  }
2230
2231
 
2231
2232
  .e-rte-quick-toolbar.e-toolbar .e-toolbar-items .e-toolbar-item .e-rte-backgroundcolor-dropdown.e-dropdown-btn.e-tbar-btn.e-btn.e-control,