draft-js-utils icon indicating copy to clipboard operation
draft-js-utils copied to clipboard

Override rendering of ENTITY_TYPE.IMAGE

Open MykolaGolubyev opened this issue 8 years ago • 1 comments

Hello, Is it possible to change the way Image gets rendered as HTML? For my task it would be enough to override ENTITY_ATTR_MAP for the image.

More context: I am using Image Alignment plugin (https://www.draft-js-plugins.com/plugin/alignment) and need to propagate align property to the generated html

MykolaGolubyev avatar Sep 29 '17 12:09 MykolaGolubyev

Hey could you get around this? I'm trying to do the same... The align is not saved in the HTML, so when I convert it back to edtiorState I loose the alignment.

jpvalenciag avatar Apr 26 '18 19:04 jpvalenciag