@syncfusion/ej2-image-editor 25.1.40 → 25.1.42

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.
@@ -24258,7 +24258,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24258
24258
  var isCustomized = false;
24259
24259
  var items = [];
24260
24260
  var id = parent.element.id;
24261
- var defItems = ['Ellipse', 'Arrow', 'Line', 'Rectangle', 'Pen', 'Path', 'Text'];
24261
+ var defItems = ['Ellipse', 'Arrow', 'Line', 'Rectangle', 'Pen', 'Path', 'Text', 'Image'];
24262
24262
  if (parent.toolbar) {
24263
24263
  for (var i = 0; i < defItems.length; i++) {
24264
24264
  if (parent.toolbar.indexOf(defItems[i]) !== -1) {
@@ -24288,7 +24288,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
24288
24288
  if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Text') > -1)) {
24289
24289
  items.push({ text: this.l10n.getConstant('Text'), id: 'text', iconCss: 'e-icons e-add-text' });
24290
24290
  }
24291
- if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Image') > -1)) {
24291
+ if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Image') > -1)) {
24292
24292
  items.push({ text: this.l10n.getConstant('Image'), id: 'image', iconCss: 'e-icons e-image' });
24293
24293
  }
24294
24294
  var obj = { freehandDrawSelectedId: null };