@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.
@@ -24191,7 +24191,7 @@ class ToolbarModule {
24191
24191
  let isCustomized = false;
24192
24192
  const items = [];
24193
24193
  const id = parent.element.id;
24194
- const defItems = ['Ellipse', 'Arrow', 'Line', 'Rectangle', 'Pen', 'Path', 'Text'];
24194
+ const defItems = ['Ellipse', 'Arrow', 'Line', 'Rectangle', 'Pen', 'Path', 'Text', 'Image'];
24195
24195
  if (parent.toolbar) {
24196
24196
  for (let i = 0; i < defItems.length; i++) {
24197
24197
  if (parent.toolbar.indexOf(defItems[i]) !== -1) {
@@ -24221,7 +24221,7 @@ class ToolbarModule {
24221
24221
  if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Text') > -1)) {
24222
24222
  items.push({ text: this.l10n.getConstant('Text'), id: 'text', iconCss: 'e-icons e-add-text' });
24223
24223
  }
24224
- if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Image') > -1)) {
24224
+ if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Image') > -1)) {
24225
24225
  items.push({ text: this.l10n.getConstant('Image'), id: 'image', iconCss: 'e-icons e-image' });
24226
24226
  }
24227
24227
  const obj = { freehandDrawSelectedId: null };