Opened 9 years ago
Last modified 3 years ago
#15506 new defect
Issues with using Backspace and Shift+Enter with the EnterKeyHandler plugin
Reported by: | DJ Mountney | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.14 |
Component: | Editor | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
IE7 and IE8 sometimes crashes when using shift enter in block elements, similar to bug #13697
And Firefox doesn't behave as expected when hitting backspace after a shift+enter in a block level element.
Chrome works as expected on 1.7.2 but on trunk has this bug: #15505
Steps to Repro for IE crash:
- Use an editor with ViewSource? and EnterKeyHandling? (http://jsfiddle.net/p4dmountney/ykrg2/)
- Go Into Source Mode
- Set value to <p>ab</p>
- Set cursor at the end of the ab text
- Hit Shift+Enter
- Hit Backspace
- Hit Shift+Enter
- One more time, Backspace, and Shift+Enter
Expected Result: We should have one <br> after our ab
Actual Result: Sometimes it gives one br, sometimes it gives none, but more likely you won't be able to tell because the page will crash
In Firefox, doing the same steps, you will notice that backspace doesn't delete the br, it just seems to move the cursor.
The inconstancies make it hard to make a doh test for. I've attached the patch for the doh test I was working on for the IE crash. Patch is against trunk.
Attachments (1)
Change History (5)
Changed 9 years ago by
Attachment: | EnterKeyHandling.html.patch added |
---|
comment:1 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|
comment:3 Changed 4 years ago by
Milestone: | 1.12 → 1.13 |
---|
Ticket planning... move current 1.12 tickets out to 1.13 that likely won't get fixed in 1.12.
comment:4 Changed 3 years ago by
Milestone: | 1.13 → 1.14 |
---|
Trunk robot test patch