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

remove paragraph & break tag from empty text editor. #1576

Open
rajat-madaan opened this issue May 19, 2021 · 1 comment
Open

remove paragraph & break tag from empty text editor. #1576

rajat-madaan opened this issue May 19, 2021 · 1 comment

Comments

@rajat-madaan
Copy link

rajat-madaan commented May 19, 2021

when I am deleting everything from text editor still medium editor adding a paragraph with a break inside it. You can see the attached image.

issue

I want to remove that paragraph & break the tag if I don't have any content inside my text editor.

Can anyone please help with the same?

Thanks.

@ariel-devsar
Copy link

Hi @rajatmadaan786 hey I'm having the same issue, did you find a solution for that?.

I can remove all the string when the value in the input is an empty string I can return an empty string instead of <p><br></p> because I need to show another thing when the value is an empty string, but everytime you remove one character is adding the <P> and that is anoying to check everytime that case

did you find some config or elegant solution to fix that?

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