Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* @return {Object} The content which should be rendered.
*/
render() {
const css = 'ae-button ez-btn-ae ez-btn-ae--imageupdate ' + this.getStateClasses();
return (
<button tabindex="{this.props.tabIndex}">
<svg>
</svg>
</button>
);
}
}
AlloyEditor.Buttons[EzBtnImageUpdate.key] = AlloyEditor.EzBtnImageUpdate = EzBtnImageUpdate;
eZ.addConfig('ezAlloyEditor.ezBtnImageUpdate', EzBtnImageUpdate);
EzBtnImageUpdate.defaultProps = {
udwTitle: Translator.trans(/*@Desc("Select an image to embed")*/ 'image_update_btn.udw.title', {}, 'alloy_editor'),
udwContentDiscoveredMethod: 'updateImage',
udwConfigName: 'richtext_embed_image',
label: Translator.trans(/*@Desc("Select another image item")*/ 'image_update_btn.label', {}, 'alloy_editor'),
};
* @return {Object} The content which should be rendered.
*/
render() {
const css = 'ae-button ez-btn-ae ez-btn-ae--imageupdate ' + this.getStateClasses();
return (
<button tabindex="{this.props.tabIndex}">
<svg>
</svg>
</button>
);
}
}
AlloyEditor.Buttons[EzBtnImageUpdate.key] = AlloyEditor.EzBtnImageUpdate = EzBtnImageUpdate;
const eZ = (window.eZ = window.eZ || {});
eZ.ezAlloyEditor = eZ.ezAlloyEditor || {};
eZ.ezAlloyEditor.ezBtnImageUpdate = EzBtnImageUpdate;
EzBtnImageUpdate.defaultProps = {
udwTitle: Translator.trans(/*@Desc("Select an image")*/ 'image_update_btn.udw.title', {}, 'alloy_editor'),
udwContentDiscoveredMethod: 'updateImage',
udwConfigName: 'richtext_embed_image',
label: Translator.trans(/*@Desc("Select another image")*/ 'image_update_btn.label', {}, 'alloy_editor'),
};