@syncfusion/ej2-richtexteditor 20.1.59 → 20.1.60

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.
@@ -17066,6 +17066,10 @@ const IFRAMEHEADER = `
17066
17066
  body{color:#333;word-wrap:break-word;padding: 8px;box-sizing: border-box;}
17067
17067
  .e-rte-image {border: 0;cursor: pointer;display:
17068
17068
  block;float: none;height: auto;margin: 5px auto;max-width: 100%;position: relative;}
17069
+ .e-rte-image.e-imginline {display: inline-block;float: none;max-width: calc(100% - (2 * 5px));padding: 1px;vertical-align: bottom;}
17070
+ .e-rte-image.e-imgcenter {cursor: pointer;display: block;float: none;margin: 5px auto;max-width: 100%;position: relative;}
17071
+ .e-rte-image.e-imgright { float: right; margin: 0 auto;margin-left: 5px;text-align: right;}
17072
+ .e-rte-image.e-imgleft {float: left;margin: 0 auto;margin-right: 5px;text-align: left;}
17069
17073
  .e-img-caption { display: inline-block; float: none; margin: 5px auto; max-width: 100%;position: relative;}
17070
17074
  .e-img-caption.e-caption-inline {display: inline-block;float: none;
17071
17075
  margin: 5px auto;margin-left: 5px;margin-right: 5px;max-width: calc(100% - (2 * 5px));
@@ -21590,6 +21594,9 @@ class Image {
21590
21594
  if (target.nodeName === 'IMG') {
21591
21595
  this.imgEle = target;
21592
21596
  }
21597
+ if (target.nodeName !== '#document') {
21598
+ this.parent.currentTarget = e.target;
21599
+ }
21593
21600
  if (!isNullOrUndefined(this.dialogObj) && ((
21594
21601
  // eslint-disable-next-line
21595
21602
  !closest(target, '[id=' + "'" + this.dialogObj.element.id + "'" + ']') && this.parent.toolbarSettings.enable && this.parent.getToolbarElement() &&
@@ -21607,12 +21614,12 @@ class Image {
21607
21614
  }
21608
21615
  /* eslint-enable */
21609
21616
  }
21610
- if (e.target.tagName !== 'IMG' && this.imgResizeDiv && !(this.quickToolObj &&
21617
+ if (!(this.parent.iframeSettings.enable && this.parent.currentTarget.nodeName === 'IMG') && e.target.tagName !== 'IMG' && this.imgResizeDiv && !(this.quickToolObj &&
21611
21618
  this.quickToolObj.imageQTBar && this.quickToolObj.imageQTBar.element.contains(e.target)) &&
21612
21619
  this.contentModule.getEditPanel().contains(this.imgResizeDiv)) {
21613
21620
  this.cancelResizeAction();
21614
21621
  }
21615
- if (this.contentModule.getEditPanel().querySelector('.e-img-resize')) {
21622
+ if (this.contentModule.getEditPanel().querySelector('.e-img-resize') && !(this.parent.iframeSettings.enable && this.parent.currentTarget.nodeName === 'IMG')) {
21616
21623
  if (target.tagName !== 'IMG') {
21617
21624
  this.removeResizeEle();
21618
21625
  }
@@ -27001,6 +27008,7 @@ let RichTextEditor = class RichTextEditor extends Component {
27001
27008
  }
27002
27009
  onIframeMouseDown(e) {
27003
27010
  this.isBlur = false;
27011
+ this.currentTarget = e.target;
27004
27012
  this.notify(iframeMouseDown, e);
27005
27013
  }
27006
27014
  editorKeyDown(e) {