Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text jumps to lower line on input #2

Open
MNewbigging opened this issue Sep 5, 2021 · 1 comment
Open

Text jumps to lower line on input #2

MNewbigging opened this issue Sep 5, 2021 · 1 comment

Comments

@MNewbigging
Copy link

Hi there, first of all thanks for the working jodit wrapper - I had a nightmare with jodit-react itself!

I've noticed that when starting to type, the text moves to a lower line (see your sandbox example). Is there something I can do to prevent this from happening?

@Fedeorlandau
Copy link
Owner

Fedeorlandau commented Sep 6, 2021

Hi @MNewbigging . This is because Jodit is adding a <p> automatically.
To solve the margin space just use css.

I've created this code sandbox for you
https://codesandbox.io/s/jodit-react-ts-forked-ousvd?file=/src/App.tsx

Thanks for reaching out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants