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

Pasting content does not remove trailing BR tag #392

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ungue
Copy link

@ungue ungue commented Mar 26, 2018

Hi.

When you have useLineBreaks option disabled and paste text, a
tag is always appended after the pasted text:

Suppose we have this markup:
<p><br></p>

Then, we paste the text 'Hello':
<p>Hello<br></p>

If we press enter to start a new line, the markup looks as follows:

<p>Hello<br></p>
<p><br></p>

Note the extra br

The desired markup should be:

<p>Hello</p>
<p><br></p>

This PR removes that trailing br when pasting content.

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

Successfully merging this pull request may close these issues.

1 participant