Skip to content

Pasting content does not remove trailing BR tag#392

Open
ungue wants to merge 3 commits intoVoog:masterfrom
ungue:master
Open

Pasting content does not remove trailing BR tag#392
ungue wants to merge 3 commits intoVoog:masterfrom
ungue:master

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