@syncfusion/ej2-richtexteditor 28.1.39 → 28.1.41

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 : 28.1.39
3
+ * version : 28.1.41
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@28.1.38",
3
+ "_id": "@syncfusion/ej2-richtexteditor@28.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-VgcAoOpiEA/QFH8o0/1zMctqznoFqjYtvQtK8ep3Km41VszqWndVLw+FI0+bS9d51fTHTDIKKY4FSk+I1eoMRA==",
5
+ "_integrity": "sha512-0KqSNDw/9+yUG6PLOvq4wOdLHA1K+yc4GQpGzG8C2ObKSx+5gVmtQFIQ6aVkJMlMIiDf7Z1hnYwjEI9336U1jA==",
6
6
  "_location": "/@syncfusion/ej2-richtexteditor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -25,8 +25,8 @@
25
25
  "/@syncfusion/ej2-react-richtexteditor",
26
26
  "/@syncfusion/ej2-vue-richtexteditor"
27
27
  ],
28
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-28.1.38.tgz",
29
- "_shasum": "344a03d500b197a42d3a8f28f1b7766e7bf90b2f",
28
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-28.1.39.tgz",
29
+ "_shasum": "4ba1fd2991037302c8e01fa5181ed21d0d8199dc",
30
30
  "_spec": "@syncfusion/ej2-richtexteditor@*",
31
31
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
32
32
  "author": {
@@ -39,12 +39,12 @@
39
39
  "dependencies": {
40
40
  "@syncfusion/ej2-base": "~28.1.33",
41
41
  "@syncfusion/ej2-buttons": "~28.1.39",
42
- "@syncfusion/ej2-dropdowns": "~28.1.39",
42
+ "@syncfusion/ej2-dropdowns": "~28.1.41",
43
43
  "@syncfusion/ej2-filemanager": "~28.1.39",
44
- "@syncfusion/ej2-inputs": "~28.1.37",
45
- "@syncfusion/ej2-navigations": "~28.1.39",
44
+ "@syncfusion/ej2-inputs": "~28.1.41",
45
+ "@syncfusion/ej2-navigations": "~28.1.41",
46
46
  "@syncfusion/ej2-popups": "~28.1.39",
47
- "@syncfusion/ej2-splitbuttons": "~28.1.37"
47
+ "@syncfusion/ej2-splitbuttons": "~28.1.41"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "Essential JS 2 RichTextEditor component",
@@ -80,6 +80,6 @@
80
80
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
81
81
  },
82
82
  "typings": "index.d.ts",
83
- "version": "28.1.39",
83
+ "version": "28.1.41",
84
84
  "sideEffects": false
85
85
  }
@@ -569,6 +569,26 @@ var HtmlEditor = /** @class */ (function () {
569
569
  if (isNOU(this.oldRangeElement)) {
570
570
  return;
571
571
  }
572
+ else if (findBlockElement[0].previousSibling) {
573
+ var prevSibling = findBlockElement[0].previousSibling;
574
+ var currentElement = findBlockElement[0];
575
+ if (prevSibling.textContent.trim()) {
576
+ if (prevSibling.lastChild.nodeName === 'BR') {
577
+ prevSibling.removeChild(prevSibling.lastChild);
578
+ }
579
+ var cursorpointer = prevSibling.lastChild.textContent.length;
580
+ var lastChild = prevSibling.lastChild;
581
+ var childNodes = Array.from(currentElement.childNodes);
582
+ for (var i = 0; i < childNodes.length; i++) {
583
+ prevSibling.appendChild(childNodes[i].cloneNode(true));
584
+ }
585
+ this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), lastChild, cursorpointer);
586
+ currentElement.parentNode.removeChild(currentElement);
587
+ }
588
+ else {
589
+ prevSibling.parentNode.removeChild(prevSibling);
590
+ }
591
+ }
572
592
  else {
573
593
  if (this.oldRangeElement.tagName === 'OL' || this.oldRangeElement.tagName === 'UL') {
574
594
  this.oldRangeElement = this.oldRangeElement.lastElementChild.lastElementChild
@@ -15,6 +15,8 @@ export declare class Resize {
15
15
  private constructor();
16
16
  private addEventListener;
17
17
  private renderResizable;
18
+ private onIFrameLoad;
19
+ private removeMouseUpEventListener;
18
20
  private resizeStart;
19
21
  private performResize;
20
22
  private stopResize;
@@ -36,13 +36,24 @@ var Resize = /** @class */ (function () {
36
36
  this.iframeElement = this.parent.contentModule.getDocument().querySelectorAll('iframe');
37
37
  if (!isNullOrUndefined(this.iframeElement)) {
38
38
  this.iframeElement.forEach(function (iframe) {
39
- EventHandler.add(iframe.contentDocument, 'mouseup', _this.stopResize, _this);
39
+ EventHandler.add(iframe, 'load', _this.onIFrameLoad, _this);
40
40
  });
41
41
  }
42
42
  this.touchStartEvent = (Browser.info.name === 'msie') ? 'pointerdown' : 'touchstart';
43
43
  EventHandler.add(this.resizer, 'mousedown', this.resizeStart, this);
44
44
  EventHandler.add(this.resizer, this.touchStartEvent, this.resizeStart, this);
45
45
  };
46
+ Resize.prototype.onIFrameLoad = function (e) {
47
+ var iframe = e.target;
48
+ if (iframe.nodeName === 'IFRAME' && iframe.contentDocument) {
49
+ EventHandler.add(iframe.contentDocument, 'mouseup', this.stopResize, this);
50
+ }
51
+ };
52
+ Resize.prototype.removeMouseUpEventListener = function (iframe) {
53
+ if (iframe.contentDocument) {
54
+ EventHandler.remove(iframe.contentDocument, 'mouseup', this.stopResize);
55
+ }
56
+ };
46
57
  Resize.prototype.resizeStart = function (e) {
47
58
  var _this = this;
48
59
  this.isResizing = false;
@@ -149,7 +160,7 @@ var Resize = /** @class */ (function () {
149
160
  }
150
161
  if (!isNullOrUndefined(this.iframeElement)) {
151
162
  this.iframeElement.forEach(function (iframe) {
152
- EventHandler.remove(iframe.contentDocument, 'mouseup', _this.stopResize);
163
+ _this.removeMouseUpEventListener(iframe);
153
164
  });
154
165
  }
155
166
  if (this.resizer) {