Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (
<button title="{label}" tabindex="{this.props.tabIndex}" disabled="{disabled}">
<svg>
</svg>
</button>
);
}
}
AlloyEditor.Buttons[EzBtnImage.key] = AlloyEditor.EzBtnImage = EzBtnImage;
eZ.addConfig('ezAlloyEditor.ezBtnImage', EzBtnImage);
EzBtnImage.defaultProps = {
command: 'ezembed',
modifiesSelection: true,
udwTitle: Translator.trans(/*@Desc("Select an image to embed")*/ 'image_btn.udw.label', {}, 'alloy_editor'),
udwContentDiscoveredMethod: 'addImage',
udwConfigName: 'richtext_embed_image',
udwLoadContent: true,
};
return (
<button title="{label}" tabindex="{this.props.tabIndex}" disabled="{disabled}">
<svg>
</svg>
</button>
);
}
}
AlloyEditor.Buttons[EzBtnImage.key] = AlloyEditor.EzBtnImage = EzBtnImage;
const eZ = (window.eZ = window.eZ || {});
eZ.ezAlloyEditor = eZ.ezAlloyEditor || {};
eZ.ezAlloyEditor.ezBtnImage = EzBtnImage;
EzBtnImage.defaultProps = {
command: 'ezembed',
modifiesSelection: true,
udwTitle: Translator.trans(/*@Desc("Select an image")*/ 'image_btn.udw.label', {}, 'alloy_editor'),
udwContentDiscoveredMethod: 'addImage',
udwConfigName: 'richtext_embed_image',
udwLoadContent: true,
};