4

how to get rid of a break after and before every IMMUTABLE object in editor. When I add image for example.

const contentStateWithEntity = contentState.createEntity(
            "image",
            "IMMUTABLE",
            { src: urlValue }
        );

I place cursor where the red mark is and add image, I got line break after and before. enter image description here

Same with custom entity, I am not abble to even place cursor to the right of the icon (red square), how to fix that?

enter image description here

Piotr Leniartek
  • 1,177
  • 2
  • 14
  • 33

0 Answers0