Pressing delete key in empty quote can move-up text from following quote

Steffen

Well-known member
Affected version
2.2.12
Consider this situation:
Code:
[QUOTE="Alice"]
I'm Alice!
[/QUOTE]
[QUOTE="Bob"]
I'm Bob!
[/QUOTE]

Screenshot from 2023-01-30 11-20-18.png

Now place your cursor at the beginning of the first quote. Continue to press the "Delete" key until the quote is empty. Now presse "Delete" once more. This is the result:

Screenshot from 2023-01-30 11-22-52.webp

The text from Bob's quote has been moved up into Alice's quote. I don't know enough about the internals of Froala to say anything about where/how this could possibly be fixed but from a user perspective this looks like a bug. Maybe pressing "Delete" inside an empty quote should just do nothing? Or maybe it should delete the empty quote. But it should not delete the following quote and magically moves its contents into the current quote. :)
 
Or maybe it should delete the empty quote.
We occasionally get complaints from users that "quotes can't be deleted" because they try to delete them by pressing delet within an empty quote (with no text after the quote).

So deleting an empty quote when pressing delete inside it seems logical to me - this would fix this issue and the complaints from our users :)
 
Back
Top Bottom