@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.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-richtexteditor.min.js +2 -2
- 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 +17 -0
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +17 -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 +10 -10
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -0
- package/src/rich-text-editor/renderer/dialog-renderer.js +16 -1
- package/src/rich-text-editor/renderer/image-module.js +1 -0
- package/src/rich-text-editor/renderer/video-module.js +1 -0
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/rich-text-editor/material-dark.css +1 -1
- package/styles/rich-text-editor/material.css +1 -1
|
@@ -24121,6 +24121,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
24121
24121
|
EventHandler.remove(this.parent.contentModule.getEditPanel(), Browser.touchStartEvent, this.resizeStart);
|
|
24122
24122
|
EventHandler.remove(this.parent.element.ownerDocument, 'mousedown', this.onDocumentClick);
|
|
24123
24123
|
EventHandler.remove(this.contentModule.getEditPanel(), 'cut', this.onCutHandler);
|
|
24124
|
+
EventHandler.remove(this.contentModule.getDocument(), Browser.touchMoveEvent, this.resizing);
|
|
24124
24125
|
}
|
|
24125
24126
|
}
|
|
24126
24127
|
};
|
|
@@ -27306,6 +27307,7 @@ var Video = /** @__PURE__ @class */ (function () {
|
|
|
27306
27307
|
EventHandler.remove(this.parent.contentModule.getEditPanel(), Browser.touchStartEvent, this.resizeStart);
|
|
27307
27308
|
EventHandler.remove(this.parent.element.ownerDocument, 'mousedown', this.onDocumentClick);
|
|
27308
27309
|
EventHandler.remove(this.contentModule.getEditPanel(), 'cut', this.onCutHandler);
|
|
27310
|
+
EventHandler.remove(this.contentModule.getDocument(), Browser.touchMoveEvent, this.resizing);
|
|
27309
27311
|
}
|
|
27310
27312
|
}
|
|
27311
27313
|
};
|
|
@@ -30492,8 +30494,20 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
30492
30494
|
return dlgObj;
|
|
30493
30495
|
};
|
|
30494
30496
|
DialogRenderer.prototype.beforeOpen = function (args) {
|
|
30497
|
+
if (args.element.classList.contains('e-dialog')) {
|
|
30498
|
+
var formEle = closest(args.target, 'form');
|
|
30499
|
+
if (!isNullOrUndefined(formEle)) {
|
|
30500
|
+
this.dialogEle = args.element;
|
|
30501
|
+
this.dialogEle.addEventListener('keydown', this.handleEnterKeyDown);
|
|
30502
|
+
}
|
|
30503
|
+
}
|
|
30495
30504
|
this.parent.trigger(beforeDialogOpen, args, this.beforeOpenCallback.bind(this, args));
|
|
30496
30505
|
};
|
|
30506
|
+
DialogRenderer.prototype.handleEnterKeyDown = function (args) {
|
|
30507
|
+
if (args.code === "Enter") {
|
|
30508
|
+
args.preventDefault();
|
|
30509
|
+
}
|
|
30510
|
+
};
|
|
30497
30511
|
DialogRenderer.prototype.beforeOpenCallback = function (args) {
|
|
30498
30512
|
if (args.cancel) {
|
|
30499
30513
|
this.parent.notify(clearDialogObj, null);
|
|
@@ -30503,6 +30517,9 @@ var DialogRenderer = /** @__PURE__ @class */ (function () {
|
|
|
30503
30517
|
this.parent.trigger(dialogOpen, args);
|
|
30504
30518
|
};
|
|
30505
30519
|
DialogRenderer.prototype.beforeClose = function (args) {
|
|
30520
|
+
if (this.dialogEle) {
|
|
30521
|
+
this.dialogEle.removeEventListener('keydown', this.handleEnterKeyDown);
|
|
30522
|
+
}
|
|
30506
30523
|
this.parent.trigger(beforeDialogClose, args, function (closeArgs) {
|
|
30507
30524
|
if (!closeArgs.cancel) {
|
|
30508
30525
|
if (closeArgs.container.classList.contains('e-popup-close')) {
|