medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

remove paragraph & break tag from empty text editor.

Open rajat-madaan opened this issue 3 years ago • 1 comments

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.

rajat-madaan avatar May 19 '21 17:05 rajat-madaan

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?

ariel-devsar avatar Jul 26 '21 22:07 ariel-devsar