@syncfusion/ej2-richtexteditor 19.3.53 → 19.3.55

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 : 19.3.53
3
+ * version : 19.3.55
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.3.47",
3
+ "_id": "@syncfusion/ej2-richtexteditor@19.3.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-/BK1Sra/cZEcdzxtW5HlFA0s3mWVWhVccB6Pi1jHChg5TR/EVyb1j1xfhCLxTLPrhMmDnmu5O+aD+iNnYalEdQ==",
5
+ "_integrity": "sha512-/w+XuY76VuYlFVyWhywJW+qPNC4qAsf4ICsEMJiaYSD0uMlEDlQdAEw56vCbKF+gMnWRUp0uBwCcRZYKPkFifQ==",
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/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-19.3.47.tgz",
30
- "_shasum": "09553933f0e8a9ac2736013e839d1cc49f1c0a29",
29
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-19.3.53.tgz",
30
+ "_shasum": "ebf91ca62866526e3e847bbcb454f3d193c0bab2",
31
31
  "_spec": "@syncfusion/ej2-richtexteditor@*",
32
32
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
33
33
  "author": {
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "bundleDependencies": false,
40
40
  "dependencies": {
41
- "@syncfusion/ej2-base": "~19.3.53",
41
+ "@syncfusion/ej2-base": "~19.3.54",
42
42
  "@syncfusion/ej2-buttons": "~19.3.53",
43
- "@syncfusion/ej2-filemanager": "~19.3.53",
43
+ "@syncfusion/ej2-filemanager": "~19.3.55",
44
44
  "@syncfusion/ej2-inputs": "~19.3.53",
45
- "@syncfusion/ej2-navigations": "~19.3.53",
45
+ "@syncfusion/ej2-navigations": "~19.3.54",
46
46
  "@syncfusion/ej2-popups": "~19.3.53",
47
47
  "@syncfusion/ej2-splitbuttons": "~19.3.53"
48
48
  },
@@ -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": "19.3.53",
73
+ "version": "19.3.55",
74
74
  "sideEffects": false
75
75
  }
@@ -38,6 +38,7 @@ export declare class QuickToolbar {
38
38
  createQTBar(popupType: string, mode: string, items: (string | IToolbarItems)[], type: RenderType): BaseQuickToolbar;
39
39
  private initializeQuickToolbars;
40
40
  private onMouseDown;
41
+ private keyUpQT;
41
42
  private renderQuickToolbars;
42
43
  private renderInlineQuickToolbar;
43
44
  /**
@@ -80,6 +80,11 @@ var QuickToolbar = /** @class */ (function () {
80
80
  this.parent.isBlur = false;
81
81
  this.parent.isRTE = true;
82
82
  };
83
+ QuickToolbar.prototype.keyUpQT = function (e) {
84
+ if (e.which == 27) {
85
+ this.hideQuickToolbars();
86
+ }
87
+ };
83
88
  QuickToolbar.prototype.renderQuickToolbars = function () {
84
89
  if (this.linkQTBar || this.imageQTBar || this.textQTBar || this.tableQTBar) {
85
90
  return;
@@ -94,15 +99,19 @@ var QuickToolbar = /** @class */ (function () {
94
99
  this.renderFactory.addRenderer(RenderType.TableToolbar, this.tableQTBar);
95
100
  if (this.linkQTBar) {
96
101
  EventHandler.add(this.linkQTBar.element, 'mousedown', this.onMouseDown, this);
102
+ EventHandler.add(this.linkQTBar.element, 'keyup', this.keyUpQT, this);
97
103
  }
98
104
  if (this.imageQTBar) {
99
105
  EventHandler.add(this.imageQTBar.element, 'mousedown', this.onMouseDown, this);
106
+ EventHandler.add(this.imageQTBar.element, 'keyup', this.keyUpQT, this);
100
107
  }
101
108
  if (this.textQTBar) {
102
109
  EventHandler.add(this.textQTBar.element, 'mousedown', this.onMouseDown, this);
110
+ EventHandler.add(this.textQTBar.element, 'keyup', this.keyUpQT, this);
103
111
  }
104
112
  if (this.tableQTBar) {
105
113
  EventHandler.add(this.tableQTBar.element, 'mousedown', this.onMouseDown, this);
114
+ EventHandler.add(this.tableQTBar.element, 'keyup', this.keyUpQT, this);
106
115
  }
107
116
  };
108
117
  QuickToolbar.prototype.renderInlineQuickToolbar = function () {
@@ -111,6 +120,7 @@ var QuickToolbar = /** @class */ (function () {
111
120
  this.inlineQTBar = this.createQTBar('Inline', 'MultiRow', this.parent.toolbarSettings.items, RenderType.InlineToolbar);
112
121
  this.renderFactory.addRenderer(RenderType.InlineToolbar, this.inlineQTBar);
113
122
  EventHandler.add(this.inlineQTBar.element, 'mousedown', this.onMouseDown, this);
123
+ EventHandler.add(this.inlineQTBar.element, 'keyup', this.keyUpQT, this);
114
124
  }
115
125
  };
116
126
  /**
@@ -265,22 +275,27 @@ var QuickToolbar = /** @class */ (function () {
265
275
  QuickToolbar.prototype.destroy = function () {
266
276
  if (this.linkQTBar) {
267
277
  EventHandler.remove(this.linkQTBar.element, 'mousedown', this.onMouseDown);
278
+ EventHandler.remove(this.linkQTBar.element, 'keyup', this.keyUpQT);
268
279
  this.linkQTBar.destroy();
269
280
  }
270
281
  if (this.textQTBar) {
271
282
  EventHandler.remove(this.textQTBar.element, 'mousedown', this.onMouseDown);
283
+ EventHandler.remove(this.textQTBar.element, 'keyup', this.keyUpQT);
272
284
  this.textQTBar.destroy();
273
285
  }
274
286
  if (this.imageQTBar) {
275
287
  EventHandler.remove(this.imageQTBar.element, 'mousedown', this.onMouseDown);
288
+ EventHandler.remove(this.imageQTBar.element, 'keyup', this.keyUpQT);
276
289
  this.imageQTBar.destroy();
277
290
  }
278
291
  if (this.tableQTBar) {
279
292
  EventHandler.remove(this.tableQTBar.element, 'mousedown', this.onMouseDown);
293
+ EventHandler.remove(this.tableQTBar.element, 'keyup', this.keyUpQT);
280
294
  this.tableQTBar.destroy();
281
295
  }
282
296
  if (this.inlineQTBar) {
283
297
  EventHandler.remove(this.inlineQTBar.element, 'mousedown', this.onMouseDown);
298
+ EventHandler.remove(this.inlineQTBar.element, 'keyup', this.keyUpQT);
284
299
  if (isIDevice()) {
285
300
  EventHandler.remove(document, 'selectionchange', this.selectionChangeHandler);
286
301
  }