You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.
The code that handles inline mode (allowBlockElements=false) assumes that when pressing the Enter key, the range is always collapsed. When it happens not to be, the selected characters are not deleted when inserting the new line.
The text was updated successfully, but these errors were encountered:
danburzo
changed the title
Pressing Enter with selection in inline-mode behaves incorrectly
Pressing Enter while having a selection in inline-mode behaves incorrectly
Jul 22, 2016
danburzo
changed the title
Pressing Enter while having a selection in inline-mode behaves incorrectly
Pressing Enter while having a selection in inline-mode does not delete the range content
Jul 22, 2016
Note: It's also now apparent that the check to see if there's content at the right of the cursor fails in both Chrome and Firefox, i.e. pressing Enter in the middle of a word will insert two <br> elements.
The code that handles inline mode (
allowBlockElements=false
) assumes that when pressing the Enter key, the range is always collapsed. When it happens not to be, the selected characters are not deleted when inserting the new line.The text was updated successfully, but these errors were encountered: