Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

New line after and before IMMUTABLE. #1182

Closed
leniartek opened this issue Apr 27, 2017 · 4 comments
Closed

New line after and before IMMUTABLE. #1182

leniartek opened this issue Apr 27, 2017 · 4 comments

Comments

@leniartek
Copy link

Hi,
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.
image

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

image

@gocreating
Copy link

same problem + 1

@zhiquan-yu
Copy link

This #327 explains.

@thibaudcolas
Copy link
Contributor

This is a duplicate of #850 (and #327 in a sense).

@niveditc
Copy link
Contributor

niveditc commented Feb 2, 2019

Closing since this is a duplicate

@niveditc niveditc closed this as completed Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants