-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Paste adds empty lines at the begining and the end #4620
Comments
MS Office content is not HTML 5. If you use it in HTML 5 context, you must convert it. Additionally, there is a lot of bloat, which can be tidied up without losing functionality. We made a post about it: https://1der1.com/blogs/news/ms-office-to-html-in-perfection I highly recommend: https://github.com/DiemenDesign/summernote-cleaner |
Thank you for the response. We tried with summernote-cleaner but got no luck. We will leave it for now, but thanks |
If it was a while ago when you tried, just note, that there's been recent updates by another contributor. I suggest trying it again, I hope it does what you need. |
Checklist
Steps to reproduce
Im pasting text from a word document. Text gets correctly split into paragraphs. However, at the end it adds a
<div><br></div>
making a new line. It sometimes adds that code to the begining.I also checked that the pasted text does not end in a blank line.
Expected behavior
Pasted text should end in a paragraph.
Current behavior
Pasted text ends with a blank new line (
<div><br></div>
).Minimal example reproducing the issue
No response
Environment
No summernote extensions are used
The text was updated successfully, but these errors were encountered: