@syncfusion/ej2-richtexteditor 22.2.9 → 22.2.12

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.2.9
3
+ * version : 22.2.12
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.2.5",
3
+ "_id": "@syncfusion/ej2-richtexteditor@22.2.10",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-JD2rI4AXswHa0DJrFyCzhSMhCDLfixX6gyKis6hc0mBOTWXWMz7oMOLhTQeZ2MogDzr43av+HCSUk6GKF9ENgQ==",
5
+ "_integrity": "sha512-/s7i93DDpA+4DmbZILSVt+DqyUB+0SM3L8ySW03X+M0kYtOMISKalOC1Ltdy1vRYyr3sP7J4U8qHP9Od0UI2jg==",
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.2.5.tgz",
30
- "_shasum": "fd9b305e9dcde612739e66a6accb774688e89e50",
29
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-22.2.10.tgz",
30
+ "_shasum": "1ba3e6ac565ffd94931aea112724104b805afb1c",
31
31
  "_spec": "@syncfusion/ej2-richtexteditor@*",
32
32
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
33
33
  "author": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "bundleDependencies": false,
40
40
  "dependencies": {
41
- "@syncfusion/ej2-base": "~22.2.9",
41
+ "@syncfusion/ej2-base": "~22.2.12",
42
42
  "@syncfusion/ej2-buttons": "~22.2.9",
43
- "@syncfusion/ej2-filemanager": "~22.2.5",
44
- "@syncfusion/ej2-inputs": "~22.2.9",
45
- "@syncfusion/ej2-navigations": "~22.2.8",
46
- "@syncfusion/ej2-popups": "~22.2.9",
43
+ "@syncfusion/ej2-filemanager": "~22.2.12",
44
+ "@syncfusion/ej2-inputs": "~22.2.12",
45
+ "@syncfusion/ej2-navigations": "~22.2.11",
46
+ "@syncfusion/ej2-popups": "~22.2.11",
47
47
  "@syncfusion/ej2-splitbuttons": "~22.2.8"
48
48
  },
49
49
  "deprecated": false,
@@ -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.2.9",
73
+ "version": "22.2.12",
74
74
  "sideEffects": false
75
75
  }
@@ -46,7 +46,7 @@ var EnterKeyAction = /** @class */ (function () {
46
46
  }
47
47
  isTableEnter = blockElement.tagName === 'TD' || blockElement.tagName === 'TBODY' ? false : true;
48
48
  }
49
- if (e.args.which === 13 && (!Browser.isDevice ? e.args.code === 'Enter' : e.args.key === 'Enter')) {
49
+ if (e.args.which === 13 && !e.args.ctrlKey && (!Browser.isDevice ? e.args.code === 'Enter' : e.args.key === 'Enter')) {
50
50
  if (isNOU(this.startNode.closest('LI, UL, OL')) && isNOU(this.endNode.closest('LI, UL, OL')) && isTableEnter &&
51
51
  isNOU(this.startNode.closest('PRE')) && isNOU(this.endNode.closest('PRE'))) {
52
52
  var shiftKey_1 = e.args.shiftKey;
@@ -1790,6 +1790,10 @@ var RichTextEditor = /** @class */ (function (_super) {
1790
1790
  // eslint-disable-next-line
1791
1791
  var imgPadding = 12;
1792
1792
  var imgResizeBorder = 2;
1793
+ if (isNOU(this.contentModule) || isNOU(this.contentModule.getEditPanel())) {
1794
+ EventHandler.remove(this.contentModule.getDocument(), Browser.touchMoveEvent, this.imageModule.resizing);
1795
+ return maxWidth;
1796
+ }
1793
1797
  var editEle = this.contentModule.getEditPanel();
1794
1798
  var eleStyle = window.getComputedStyle(editEle);
1795
1799
  var editEleMaxWidth = editEle.offsetWidth - (imgPadding + imgResizeBorder +
@@ -5,6 +5,7 @@ import { IRichTextEditor } from '../base/interface';
5
5
  */
6
6
  export declare class DialogRenderer {
7
7
  dialogObj: Dialog;
8
+ private dialogEle;
8
9
  private parent;
9
10
  constructor(parent?: IRichTextEditor);
10
11
  protected addEventListener(): void;
@@ -19,6 +20,7 @@ export declare class DialogRenderer {
19
20
  */
20
21
  render(e: DialogModel): Dialog;
21
22
  private beforeOpen;
23
+ private handleEnterKeyDown;
22
24
  private beforeOpenCallback;
23
25
  private open;
24
26
  private beforeClose;
@@ -1,5 +1,5 @@
1
1
  import { Dialog } from '@syncfusion/ej2-popups';
2
- import { isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
2
+ import { closest, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
3
3
  import * as events from '../base/constant';
4
4
  /**
5
5
  * Dialog Renderer
@@ -45,8 +45,20 @@ var DialogRenderer = /** @class */ (function () {
45
45
  return dlgObj;
46
46
  };
47
47
  DialogRenderer.prototype.beforeOpen = function (args) {
48
+ if (args.element.classList.contains('e-dialog')) {
49
+ var formEle = closest(args.target, 'form');
50
+ if (!isNOU(formEle)) {
51
+ this.dialogEle = args.element;
52
+ this.dialogEle.addEventListener('keydown', this.handleEnterKeyDown);
53
+ }
54
+ }
48
55
  this.parent.trigger(events.beforeDialogOpen, args, this.beforeOpenCallback.bind(this, args));
49
56
  };
57
+ DialogRenderer.prototype.handleEnterKeyDown = function (args) {
58
+ if (args.code === "Enter") {
59
+ args.preventDefault();
60
+ }
61
+ };
50
62
  DialogRenderer.prototype.beforeOpenCallback = function (args) {
51
63
  if (args.cancel) {
52
64
  this.parent.notify(events.clearDialogObj, null);
@@ -56,6 +68,9 @@ var DialogRenderer = /** @class */ (function () {
56
68
  this.parent.trigger(events.dialogOpen, args);
57
69
  };
58
70
  DialogRenderer.prototype.beforeClose = function (args) {
71
+ if (this.dialogEle) {
72
+ this.dialogEle.removeEventListener('keydown', this.handleEnterKeyDown);
73
+ }
59
74
  this.parent.trigger(events.beforeDialogClose, args, function (closeArgs) {
60
75
  if (!closeArgs.cancel) {
61
76
  if (closeArgs.container.classList.contains('e-popup-close')) {
@@ -94,6 +94,7 @@ var Image = /** @class */ (function () {
94
94
  EventHandler.remove(this.parent.contentModule.getEditPanel(), Browser.touchStartEvent, this.resizeStart);
95
95
  EventHandler.remove(this.parent.element.ownerDocument, 'mousedown', this.onDocumentClick);
96
96
  EventHandler.remove(this.contentModule.getEditPanel(), 'cut', this.onCutHandler);
97
+ EventHandler.remove(this.contentModule.getDocument(), Browser.touchMoveEvent, this.resizing);
97
98
  }
98
99
  }
99
100
  };
@@ -71,6 +71,7 @@ var Video = /** @class */ (function () {
71
71
  EventHandler.remove(this.parent.contentModule.getEditPanel(), Browser.touchStartEvent, this.resizeStart);
72
72
  EventHandler.remove(this.parent.element.ownerDocument, 'mousedown', this.onDocumentClick);
73
73
  EventHandler.remove(this.contentModule.getEditPanel(), 'cut', this.onCutHandler);
74
+ EventHandler.remove(this.contentModule.getDocument(), Browser.touchMoveEvent, this.resizing);
74
75
  }
75
76
  }
76
77
  };
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  /*! component's theme wise override definitions and variables */
3
3
  /*! richtexteditor icons */
4
4
  .e-rte-toolbar .e-alignments::before,
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  /*! component's theme wise override definitions and variables */
3
3
  /*! richtexteditor icons */
4
4
  .e-rte-toolbar .e-alignments::before,
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  /*! component's theme wise override definitions and variables */
3
3
  /*! richtexteditor icons */
4
4
  .e-rte-toolbar .e-alignments::before,
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  /*! component's theme wise override definitions and variables */
3
3
  /*! richtexteditor icons */
4
4
  .e-rte-toolbar .e-alignments::before,