@syncfusion/ej2-richtexteditor 22.2.10 → 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.10
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.9",
3
+ "_id": "@syncfusion/ej2-richtexteditor@22.2.10",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-78MlcIbPWFlPsrRzTGAympS5eiCqkjg3iEDSK1fX7mjNnIir8l3KqWflqkNcQtR6WiKhiuP2O4EOb3gwG1KxDA==",
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.9.tgz",
30
- "_shasum": "8e11f18edec2f7f8b6ff02469ce638d3f14c5117",
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.10",
41
+ "@syncfusion/ej2-base": "~22.2.12",
42
42
  "@syncfusion/ej2-buttons": "~22.2.9",
43
- "@syncfusion/ej2-filemanager": "~22.2.10",
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.10",
73
+ "version": "22.2.12",
74
74
  "sideEffects": false
75
75
  }
@@ -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,