@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.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-richtexteditor.umd.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +15 -0
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +15 -0
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +2 -2
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +1 -0
- package/src/rich-text-editor/actions/quick-toolbar.js +15 -0
|
@@ -5711,6 +5711,11 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5711
5711
|
this.parent.isBlur = false;
|
|
5712
5712
|
this.parent.isRTE = true;
|
|
5713
5713
|
};
|
|
5714
|
+
QuickToolbar.prototype.keyUpQT = function (e) {
|
|
5715
|
+
if (e.which == 27) {
|
|
5716
|
+
this.hideQuickToolbars();
|
|
5717
|
+
}
|
|
5718
|
+
};
|
|
5714
5719
|
QuickToolbar.prototype.renderQuickToolbars = function () {
|
|
5715
5720
|
if (this.linkQTBar || this.imageQTBar || this.textQTBar || this.tableQTBar) {
|
|
5716
5721
|
return;
|
|
@@ -5725,15 +5730,19 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5725
5730
|
this.renderFactory.addRenderer(RenderType.TableToolbar, this.tableQTBar);
|
|
5726
5731
|
if (this.linkQTBar) {
|
|
5727
5732
|
EventHandler.add(this.linkQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5733
|
+
EventHandler.add(this.linkQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5728
5734
|
}
|
|
5729
5735
|
if (this.imageQTBar) {
|
|
5730
5736
|
EventHandler.add(this.imageQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5737
|
+
EventHandler.add(this.imageQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5731
5738
|
}
|
|
5732
5739
|
if (this.textQTBar) {
|
|
5733
5740
|
EventHandler.add(this.textQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5741
|
+
EventHandler.add(this.textQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5734
5742
|
}
|
|
5735
5743
|
if (this.tableQTBar) {
|
|
5736
5744
|
EventHandler.add(this.tableQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5745
|
+
EventHandler.add(this.tableQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5737
5746
|
}
|
|
5738
5747
|
};
|
|
5739
5748
|
QuickToolbar.prototype.renderInlineQuickToolbar = function () {
|
|
@@ -5742,6 +5751,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5742
5751
|
this.inlineQTBar = this.createQTBar('Inline', 'MultiRow', this.parent.toolbarSettings.items, RenderType.InlineToolbar);
|
|
5743
5752
|
this.renderFactory.addRenderer(RenderType.InlineToolbar, this.inlineQTBar);
|
|
5744
5753
|
EventHandler.add(this.inlineQTBar.element, 'mousedown', this.onMouseDown, this);
|
|
5754
|
+
EventHandler.add(this.inlineQTBar.element, 'keyup', this.keyUpQT, this);
|
|
5745
5755
|
}
|
|
5746
5756
|
};
|
|
5747
5757
|
/**
|
|
@@ -5896,22 +5906,27 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5896
5906
|
QuickToolbar.prototype.destroy = function () {
|
|
5897
5907
|
if (this.linkQTBar) {
|
|
5898
5908
|
EventHandler.remove(this.linkQTBar.element, 'mousedown', this.onMouseDown);
|
|
5909
|
+
EventHandler.remove(this.linkQTBar.element, 'keyup', this.keyUpQT);
|
|
5899
5910
|
this.linkQTBar.destroy();
|
|
5900
5911
|
}
|
|
5901
5912
|
if (this.textQTBar) {
|
|
5902
5913
|
EventHandler.remove(this.textQTBar.element, 'mousedown', this.onMouseDown);
|
|
5914
|
+
EventHandler.remove(this.textQTBar.element, 'keyup', this.keyUpQT);
|
|
5903
5915
|
this.textQTBar.destroy();
|
|
5904
5916
|
}
|
|
5905
5917
|
if (this.imageQTBar) {
|
|
5906
5918
|
EventHandler.remove(this.imageQTBar.element, 'mousedown', this.onMouseDown);
|
|
5919
|
+
EventHandler.remove(this.imageQTBar.element, 'keyup', this.keyUpQT);
|
|
5907
5920
|
this.imageQTBar.destroy();
|
|
5908
5921
|
}
|
|
5909
5922
|
if (this.tableQTBar) {
|
|
5910
5923
|
EventHandler.remove(this.tableQTBar.element, 'mousedown', this.onMouseDown);
|
|
5924
|
+
EventHandler.remove(this.tableQTBar.element, 'keyup', this.keyUpQT);
|
|
5911
5925
|
this.tableQTBar.destroy();
|
|
5912
5926
|
}
|
|
5913
5927
|
if (this.inlineQTBar) {
|
|
5914
5928
|
EventHandler.remove(this.inlineQTBar.element, 'mousedown', this.onMouseDown);
|
|
5929
|
+
EventHandler.remove(this.inlineQTBar.element, 'keyup', this.keyUpQT);
|
|
5915
5930
|
if (isIDevice()) {
|
|
5916
5931
|
EventHandler.remove(document, 'selectionchange', this.selectionChangeHandler);
|
|
5917
5932
|
}
|