froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 675 forks source link

Text jumps out of block quote unexpectedly when text before removed #4037

Open mikesul opened 4 years ago

mikesul commented 4 years ago
Expected behavior.

When text before a blockquote is removed, the quote text should remain within the quote.

Actual behavior.

The text jumps out of the quote, onto the line above.

Steps to reproduce the problem.

Confirmed via https://froala.com/wysiwyg-editor/. Start with the following HTML in the editor:

<p>Line 1</p>

<blockquote>
    <p>Quote</p>
</blockquote>

Highlight "Line 1". The specific method of highlighting this line is relevant. Two approaches have reproduced this for me: 1) triple clicking the line; 2) put the mouse before the "L" and drag downward until the line is highlighted.

Press backspace. "Quote" will be moved up to the cursor (outside of the blockquote) and an empty blockquote will remain.

This behavior does not happen with other paragraph formatting (headings and paragraph styles, for example).

Editor version.

3.2.1

OS.

Windows

Browser.

Chrome

coolrecep commented 3 years ago

This is still valid. Any plans to fix?

coolrecep commented 3 years ago

Still having this issue, any plan to fix?

julien-mamalian commented 10 months ago

Having the same issue on our side with the latest version (4.1.4)