Skip to content

Commit 6b80665

Browse files
author
Benjamin Kniffler
committed
allow custom Image component via options in draft-js-dnd-plugin
1 parent a51098d commit 6b80665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

draft-js-dnd-plugin/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const uploadPlugin = (config = {}) => {
3030
const blockRendererConfig = {
3131
...config,
3232
emitter,
33-
Image: decorateComponentWithProps(Image, { theme, attachButtons }),
33+
Image: decorateComponentWithProps(config.Image || Image, { theme, attachButtons }),
3434
};
3535

3636
return {

0 commit comments

Comments
 (0)